mm.physics.gaussian.squeezing_symplectic¶
- mrmustard.physics.gaussian.squeezing_symplectic(r, phi)[source]¶
Symplectic matrix of a squeezing gate.
The dimension depends on the dimension of
r
andphi
.- Parameters:
r (scalar or vector) – squeezing magnitude
phi (scalar or vector) – rotation parameter
- Returns:
symplectic matrix of a squeezing gate
- Return type:
Tensor
code/api/mrmustard.physics.gaussian.squeezing_symplectic
Download Python script
Download Notebook
View on GitHub