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