qit.ho.position¶
- qit.ho.position(n=30)¶
Position operator.
- Parameters
n (int) – truncation dimension
- Returns
position operator
- Return type
array[complex]
Returns the n-dimensional truncation of the dimensionless position operator Q in the number basis.
(Equivalently,
). These operators fulfill . The Hamiltonian of the harmonic oscillator is