← Atlas

Gates · Rotation gate

RY rotation gate

A parametrized single-qubit rotation about the Bloch-sphere Y axis whose matrix entries are always real, making it the standard tool for encoding real-valued amplitudes.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

RY(π/3) on |0⟩

One qubit starting at |0⟩, rotated by π/3 — a third of a half-turn, so the qubit ends up part way between |0⟩ and |1⟩ rather than at either.

q0Step 1 of 1 · RY(π/3)RY(π/3)

Step 1 of 1 · RY(π/3)

Probability of each outcome after this step

  • 075%
  • 125%
  1. Rotates the qubit by π/3, leaving it 75% likely to read 0 and 25% to read 1 — cos²(π/6) and sin²(π/6). Both amplitudes stay real and in phase, which is why RY is the rotation people reach for when they want probabilities and nothing else.

    Probability spreads from 1 outcome to 2.

Readout Measuring gives 0 about three times in four. RX and RY at the same angle give exactly these probabilities, so a bar chart cannot tell them apart — the phase panel can.

Open in Studio
  • Steps1
  • Wires1
  • Qubits1
  • Depth1 gate
  • Parameterθ (radians)
  • Papers1

Definition

RY(θ)=e−iθY/2=(cos⁡(θ/2)−sin⁡(θ/2)sin⁡(θ/2)cos⁡(θ/2))R_Y(\theta) = e^{-i\theta Y/2} = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{pmatrix}

Unlike RXR_X or RZR_Z, every entry of RY(θ)R_Y(\theta) is a real number for real θ\theta: the −i-i prefactor from the exponential exactly cancels the ±i\pm i entries of Y=(0−ii0)Y = \begin{pmatrix}0 & -i \\ i & 0\end{pmatrix}, leaving a real 2×22\times 2 rotation matrix — the same form as a classical rotation matrix in the (∣0⟩,∣1⟩)(|0\rangle, |1\rangle) plane.

Action on basis states

RY(θ)∣0⟩=cos⁡(θ/2)∣0⟩+sin⁡(θ/2)∣1⟩,RY(θ)∣1⟩=−sin⁡(θ/2)∣0⟩+cos⁡(θ/2)∣1⟩R_Y(\theta)|0\rangle = \cos(\theta/2)|0\rangle + \sin(\theta/2)|1\rangle, \qquad R_Y(\theta)|1\rangle = -\sin(\theta/2)|0\rangle + \cos(\theta/2)|1\rangle

At θ=π/2\theta = \pi/2, RY(π/2)∣0⟩=12(∣0⟩+∣1⟩)R_Y(\pi/2)|0\rangle = \tfrac{1}{\sqrt2}(|0\rangle + |1\rangle) — the same state Hadamard produces on ∣0⟩|0\rangle, but RY(π/2)∣1⟩=12(−∣0⟩+∣1⟩)R_Y(\pi/2)|1\rangle = \tfrac{1}{\sqrt2}(-|0\rangle + |1\rangle) differs from H∣1⟩H|1\rangle by an overall sign.

Key identities

  • RY(π)=−iYR_Y(\pi) = -iY: a full π\pi rotation reproduces the Pauli-Y flip up to global phase −i-i.
  • XRY(θ)X=RY(−θ)X R_Y(\theta) X = R_Y(-\theta): since XYX=−YXYX = -Y, conjugating by XX reverses the rotation direction.
  • Because its output amplitudes are real, RY(θ)R_Y(\theta) is the standard primitive for amplitude encoding — loading a classical probability vector (cos⁡(θ/2),sin⁡(θ/2))(\cos(\theta/2), \sin(\theta/2)) into a qubit — and for the mixer layers of variational circuits such as hardware-efficient ansätze.
  • RY(θ)=RZ(−π/2) RX(θ) RZ(π/2)R_Y(\theta) = R_Z(-\pi/2)\,R_X(\theta)\,R_Z(\pi/2): an axis change from XX to YY via conjugation by a ZZ rotation, mirroring the HH-conjugation identity that relates RXR_X and RZR_Z.

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Textbook / standard citation
Method
Expand exp(-iθY/2) as a Pauli-basis Taylor series and compare against the parametrized RY matrix; check that all matrix entries stay real for real θ.
Result
Pass · RY(θ) = cos(θ/2)·I - i·sin(θ/2)·Y, and every entry is a real number for real θ.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
rotation gatesingle qubitreal amplitude

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.