qit.ho.displace

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

Bosonic displacement operator.

Parameters
  • alpha (complex) – displacement parameter

  • n (int) – truncation dimension

Returns

displacement operator

Return type

array[complex]

Returns the n-dimensional approximation for the bosonic phase space displacement operator

D(α):=exp(αaαa)=exp(i2(QImαPReα))

in the number basis. This yields

D(α)QD(α)=Q+2ReαI,D(α)PD(α)=P+2ImαI,

and thus the displacement operator displaces the state of a harmonic oscillator in phase space.