rotations 2 qubits 1 parameter
Controlled $y$ Rotation
Rotates the target about the $y$ axis by $\theta$ when the control qubit is in the $|1\rangle$ state.
The controlled-$R_y$ gate applies the single-qubit rotation $R_y(\theta)$ to the target, conditioned on the control.
$$ \mathrm{C}R_y(\theta) = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & \cos\frac{\theta}{2} & -\sin\frac{\theta}{2} \\ 0 & 0 & \sin\frac{\theta}{2} & \cos\frac{\theta}{2} \end{bmatrix} $$
Special values
| $\theta$ | Gate |
|---|---|
| $0$ | Identity |
| $\pi$ | Controlled-$Y$, up to a phase of $-i$ on the control's $\lvert 1\rangle$ subspace |
Properties
- Real, so it lies in the orthogonal group — the only one of the three controlled rotations with this property.
- Inverse: $\mathrm{C}R_y(\theta)^\dagger = \mathrm{C}R_y(-\theta)$.
- Related to $\mathrm{C}R_x$ by conjugating the target with $S$: $\mathrm{C}R_y(\theta) = (I \otimes S) \, \mathrm{C}R_x(\theta) \, (I \otimes S^\dagger)$.
Decompositions
- Two CNOTs and two rotations: $\mathrm{C}R_y(\theta) = (I \otimes R_y(\theta/2)) \, \mathrm{CNOT} \, (I \otimes R_y(-\theta/2)) \, \mathrm{CNOT}$.
Usage
- Ubiquitous in state preparation: cascades of $\mathrm{C}R_y$ gates load arbitrary real amplitudes, and it is the standard entangler in many variational ansätze.
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 = 4\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.CRYGate |
| PennyLane | pennylane.CRY |
| Cirq | — ⓘ |
| Q# | — ⓘ |
| PyQuil | — ⓘ |
| Braket | — ⓘ |
| BQSKit | bqskit.ir.gates.CRYGate |
| Qibo | qibo.gates.CRY |
| pytket | pytket.circuit.OpType.CRy ⓘ |
| Stim | — |
| OpenQASM | stdgates.inc: cry |