Sign in
← Atlas
Exact & formalGatesRotation 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.

rotation gatesingle qubitreal amplitude

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

RY(θ) is the gate of choice whenever a circuit needs to move probability amplitude between |0⟩ and |1⟩ without introducing a complex relative phase.

Circuit & simulation
P(|0⟩) at θ=π/250%
P(|1⟩) at θ=π/250%
What this takes and returns
Takes1 qubitWhat joins here

Takes a 1-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 1 qubits can feed it.

15 entries meet this end. Named below.

Returns1 qubitWhat joins here

Returns a 1-qubit register a next stage can take. This is the end that joins.

13 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Definition

RY(θ)=eiθ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=(0ii0)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)1R_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 H1H|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.
Implementation
Native
ry-rotation.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit q;
ry(pi/2) q;
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

doi.org/10.1017/cbo9780511976667