thewalrus.fock_gradients.grad_displacement¶
-
fock_gradients.
grad_displacement
(T, r, phi)¶ Calculates the gradients of the displacement gate with respect to the displacement magnitude and angle.
- Parameters
T (array[complex]) – array representing the gate
r (float) – displacement magnitude
phi (float) – displacement angle
- Returns
The gradient of the displacement gate with respect to r and phi
- Return type
tuple[array[complex], array[complex]]
code/api/thewalrus.fock_gradients.grad_displacement
Download Python script
Download Notebook
View on GitHub
Downloads