thewalrus.fock_gradients.grad_two_mode_squeezing

fock_gradients.grad_two_mode_squeezing(T, r, theta)

Calculates the gradients of the two-mode squeezing gate with respect to the squeezing magnitude and angle

Parameters
  • T (array[complex]) – array representing the gate

  • r (float) – squeezing magnitude

  • theta (float) – squeezing angle

Returns

The gradient of the two-mode squeezing gate with respect to r and phi

Return type

tuple[array[complex], array[complex]]