rotations 2 qubits 1 parameter
$yy$ Rotation
Two-qubit rotation generated by $Y \otimes Y$.
The $R_{yy}$ gate rotates in the $YY$ interaction basis by angle $\theta$.
$$ R_{yy}(\theta) = \exp\left(-i\frac{\theta}{2}Y\otimes Y\right) $$
In the computational basis:
$$ \begin{bmatrix} \cos\tfrac{\theta}{2} & 0 & 0 & i\sin\tfrac{\theta}{2} \\ 0 & \cos\tfrac{\theta}{2} & -i\sin\tfrac{\theta}{2} & 0 \\ 0 & -i\sin\tfrac{\theta}{2} & \cos\tfrac{\theta}{2} & 0 \\ i\sin\tfrac{\theta}{2} & 0 & 0 & \cos\tfrac{\theta}{2} \end{bmatrix} $$
Properties
- Entangling for $\theta$ that are not an integer multiple of $\pi$.
- Related to $R_{xx}$ by single-qubit phase rotations: $R_{yy}(\theta) = (S \otimes S)\,R_{xx}(\theta)\,(S^\dagger \otimes S^\dagger)$.
- Generated by a $YY$ interaction Hamiltonian.
Usage
- Entangling layers in variational algorithms.
- Basis-changed implementations of $XX$ or $ZZ$ couplings.
The unitary, drawn
Every entry of the matrix as a disc. The area is the transition probability $|U_{jk}|^2$; the colour and the hand are the phase. Rows are outputs $\langle j|$, columns inputs $|k\rangle$, in the computational basis. Each parameter has a slider; play runs through the family along the path of the Quirk link ($\theta = 2\pi t$).
Phase
Disc area $= |U_{jk}|^2$. Hover an entry for its value, or take the JSON.
Weyl chamber
Where this gate sits among all two-qubit gates, up to single-qubit rotations before and after.
Coordinates:
not entangling entangling perfect entangler
$(a, b, c)$ means the gate equals $e^{i(a\,XX + b\,YY + c\,ZZ)}$ up to single-qubit gates, reduced to the chamber $\pi/4 \ge a \ge b \ge |c|$ (the convention of the canonical gate, Qiskit and Cirq). The $a = \pi/4$ face is a mirror: $(\pi/4, b, c)$ and $(\pi/4, b, -c)$ are the same gate. Drag the figure to rotate it, double-click to reset.
SDK support
How to call this gate in each framework. Hover a ⓘ for a note; the support matrix compares every gate at once.
| SDK | Name |
|---|---|
| Qiskit | qiskit.circuit.library.RYYGate |
| PennyLane | pennylane.IsingYY |
| Cirq | cirq.YYPowGate ⓘ |
| Q# | Std.Intrinsic.Ryy |
| PyQuil | pyquil.simulation.matrices.RYY ⓘ |
| Braket | braket.circuits.gates.YY |
| BQSKit | bqskit.ir.gates.RYYGate |
| Qibo | qibo.gates.RYY |
| pytket | pytket.circuit.OpType.YYPhase ⓘ |
| Stim | SQRT_YY ⓘ |
| OpenQASM | — |