phased_xx¶
- guppylang.std.qsystem.sol.phased_xx(q1: qubit, q2: qubit, angle1: angle, angle2: angle) None[source]¶
phased_xx gate command. The native 2-qubit entangling gate on Sol.
\[\mathrm{PhasedXX}(\theta_1, \theta_2) = \exp\Bigl( {-\tfrac{i\theta_1}{2}} (\cos\theta_2\,X + \sin\theta_2\,Y) \otimes (\cos\theta_2\,X + \sin\theta_2\,Y) \Bigr)\]Equivalently, this is an \(XX\)-rotation conjugated by \(\mathrm{Rz}(\theta_2)\) on both qubits — “phased” refers to the \(\mathrm{Rz}(\theta_2)\) conjugation, “xx” to the underlying \(XX\) rotation (operators in matrix-multiplication order):
\[\mathrm{PhasedXX}(\theta_1, \theta_2) = (\mathrm{Rz}(\theta_2) \otimes \mathrm{Rz}(\theta_2))\; e^{-\tfrac{i\theta_1}{2} X \otimes X}\; (\mathrm{Rz}(-\theta_2) \otimes \mathrm{Rz}(-\theta_2))\]