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 and phi.

Parameters:
  • r (scalar or vector) – squeezing magnitude

  • phi (scalar or vector) – rotation parameter

Returns:

symplectic matrix of a squeezing gate

Return type:

Tensor