sf.physics.gaussian.controlled_Z¶
- mrmustard.physics.gaussian.controlled_Z(g)[source]¶
Controlled PHASE gate of two-gaussian modes.
\[C_Z = \exp(ig q_1 \otimes q_2 / \hbar).\]Reference: https://arxiv.org/pdf/2110.03247.pdf, Equation 8. https://arxiv.org/pdf/1110.3234.pdf, Equation 161.
- Parameters:
g (float) – interaction strength
- Returns:
the C_Z(g) matrix (in xxpp ordering)
code/api/mrmustard.physics.gaussian.controlled_Z
Download Python script
Download Notebook
View on GitHub