mm.physics.gaussian.quadratic_phase¶
- mrmustard.physics.gaussian.quadratic_phase(s)[source]¶
Quadratic phase single mode gate.
\[P = \exp(i s q^2 / 2 \hbar)\]Reference: https://strawberryfields.ai/photonics/conventions/gates.html
- Parameters:
s (float) – interaction strength
- Returns:
the \(P(s)\) matrix (in
xxpp
ordering)- Return type:
Tensor
code/api/mrmustard.physics.gaussian.quadratic_phase
Download Python script
Download Notebook
View on GitHub