qit.ho.coherent_state

qit.ho.coherent_state(alpha, n=30)

Coherent states of a harmonic oscillator.

Parameters
  • alpha (complex) – displacement parameter

  • n (int) – truncation dimension

Returns

coherent state

Return type

array[complex]

Returns the n-dimensional approximation to the coherent state |α,

|α:=D(α)|0=e|α|22k=0αkk!|k,

in the number basis. The coherent states are eigenstates of the annihilation operator, a|α=α|α.