phased_xx_max

guppylang.std.qsystem.sol.phased_xx_max(q1: qubit, q2: qubit, phase: angle) None[source]

phased_xx_max gate command. Maximally entangling PhasedXX gate at a given phase.

Equivalent to \(\mathrm{PhasedXX}(\frac{\pi}{2}, \theta_2)\): a maximally entangling \(XX\) rotation conjugated by \(\mathrm{Rz}(\theta_2)\) (operators in matrix-multiplication order):

\[\mathrm{phased\_xx\_max}(\theta_2) = (\mathrm{Rz}(\theta_2) \otimes \mathrm{Rz}(\theta_2))\; e^{-\tfrac{i\pi}{4} X \otimes X}\; (\mathrm{Rz}(-\theta_2) \otimes \mathrm{Rz}(-\theta_2))\]

Use xx_max for the zero-phase special case.