position¶
- position(mode)¶
Builds the dimensionless position (quadrature) operator of a single mode.
\[\hat{q} = \frac{1}{\sqrt{2}}\left(b^\dagger + b\right) \, .\]>>> from qiskit_bosons.operators.library import position >>> position(0).is_hermitian() True
- Parameters:
mode (int) – the mode index.
- Returns:
The position operator as a
BosonOperator.- Return type: