qit.ho.cx

qit.ho.cx(s=1.0, n=30)

Bosonic controlled addition operator.

Parameters
  • s (float) – scale factor

  • n (int) – truncation dimension

Returns

controlled addition operator

Return type

array[complex]

Returns the n-dimensional approximation for the bosonic two-mode controlled addition operator

CX(s):=exp(isQP)

in the number basis. In the position basis it has the effect

CX(s)|x1,x2x=|x1,x2+sx1x.