thewalrus.fock_gradients.two_mode_squeezing

fock_gradients.two_mode_squeezing(r, theta, cutoff, dtype=<class 'numpy.complex128'>)

Calculates the matrix elements of the two-mode squeezing gate recursively.

Parameters
  • r (float) – squeezing magnitude

  • theta (float) – squeezing angle

  • cutoff (int) – Fock ladder cutoff

  • dtype (data type) – Specifies the data type used for the calculation

Returns

The Fock representation of the gate

Return type

array[float]