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 |p of the dimensionless momentum operator P in the number basis.

See position, momentum.

Difference equation:

r1=i2pr0,k+1rk+1=i2prk+krk1,whenk>=1.