qit.ho.position_state¶
- qit.ho.position_state(q, n=30)¶
Position eigenstates of a harmonic oscillator.
- Parameters
q (float) – dimensionless position coordinate
n (int) – truncation dimension
- Returns
approximate position eigenstate
- Return type
array[complex]
Returns the n-dimensional approximation of the eigenstate
of the dimensionless position operator Q in the number basis.Difference equation: