mm.physics.gaussian.beam_splitter_symplectic

mrmustard.physics.gaussian.beam_splitter_symplectic(theta, phi)[source]

Symplectic matrix of a Beam-splitter gate.

The dimension is \(4\times 4\).

Parameters:
  • theta (Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]) – transmissivity parameter

  • phi (Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]) – phase parameter

Returns:

symplectic (orthogonal) matrix of a beam-splitter gate

Return type:

Matrix