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\left(-i s Q \otimes P\right)\]in the number basis. In the position basis it has the effect
\[CX(s)\ket{x_1, x_2}_x = \ket{x_1, x_2 + s x_1}_x.\]