# Fock gradients of Gaussian gates¶

This module contains the Fock representation of the standard Gaussian gates as well as their gradients.

 displacement(r, phi, cutoff[, dtype]) Calculates the matrix elements of the displacement gate using a recurrence relation. squeezing(r, theta, cutoff[, dtype]) Calculates the matrix elements of the squeezing gate using a recurrence relation. beamsplitter(theta, phi, cutoff[, dtype]) Calculates the Fock representation of the beamsplitter. two_mode_squeezing(r, theta, cutoff[, dtype]) Calculates the matrix elements of the two-mode squeezing gate recursively. mzgate(theta, phi, cutoff[, dtype]) Calculates the Fock representation of the Mach-Zehnder interferometer. grad_displacement(T, r, phi) Calculates the gradients of the displacement gate with respect to the displacement magnitude and angle. grad_squeezing(T, r, phi) Calculates the gradients of the squeezing gate with respect to the squeezing magnitude and angle grad_beamsplitter(T, theta, phi) Calculates the gradients of the beamsplitter gate with respect to the transmissivity angle and reflection phase grad_two_mode_squeezing(T, r, theta) Calculates the gradients of the two-mode squeezing gate with respect to the squeezing magnitude and angle grad_mzgate(T, theta, phi) Calculates the gradients of the Mach-Zehnder interferometer with respect to the transmissivity angle and reflection phase