QuantumSimulator
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Menu
physics
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
simulator
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
wiringStudio
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Home/Quantum Physics/Lessons/RY Gate (Y-Rotation)
Ry

RY Gate (Y-Rotation)

RotationSingle-qubitY-rot

Rotates the qubit around the Y axis of the Bloch sphere by a chosen angle θ.

Intuition

RY rotates a qubit around the Y axis of the Bloch sphere. Its distinguishing property is that it produces superpositions with purely real amplitudes. Starting from ∣0⟩, an RY rotation creates states like cos(θ/2)∣0⟩+sin(θ/2)∣1⟩, with no imaginary parts. RX and RZ both introduce imaginary phase factors, but RY does not. This makes RY the cleanest gate for preparing states with a specific probability distribution.

Matrix representation
(cos2θ​sin2θ​​−sin2θ​cos2θ​​)
Action on states
Ry​(θ)∣ψ⟩=e−iθY/2∣ψ⟩
Bloch sphere
|0⟩
→
RY(π/2)|0⟩
Circuit
q0Ry
State comparison
Before RY Gate
|0⟩
|0\u27E9
100%
|1\u27E9
0%
Bloch: (0.00, 0.00, 1.00)
→
After RY Gate
RY(π/2)|0⟩
|0\u27E9
85%
|1\u27E9
15%
Bloch: (0.71, 0.00, 0.71)
Full technical statement

RY(θ)=exp(−iθY/2)=cos(θ/2)I − i sin(θ/2)Y. Because the Pauli-Y matrix is purely imaginary in the computational basis, the resulting rotation matrix has only real entries: [[cos(θ/2), −sin(θ/2)], [sin(θ/2),cos(θ/2)]]. This means RY maps real-valued states to real-valued states. No complex phases are introduced. At θ=π, RY(π) equals the Y gate up to a global phase (a prefactor that multiplies the entire state and does not affect measurements).

What changes in measurements

Creates superpositions with tunable measurement probabilities, controlled directly by the angle θ.

What stays hidden until later

At θ=π, this becomes the Y gate up to global phase.

Bloch sphere

Rotates the Bloch vector by θ around the Y axis. The motion stays in the XZ plane. From ∣0⟩, an RY(π/2) rotation reaches the equator with a real-valued superposition.

Step-by-step example

Preparing a state with known probabilities

  1. 1Goal: create a state with 75% probability of measuring ∣0⟩ and 25% for ∣1⟩.
  2. 2We need cos²(θ/2)=0.75. Solving gives θ/2= arccos(0​.75)≈π/6, so θ≈π/3.
  3. 3Apply RY(π/3) to ∣0⟩. The state becomes cos(π/6)∣0⟩+sin(π/6)∣1⟩≈0.866∣0⟩+0.5∣1⟩.
  4. 4Measure. The result is ∣0⟩ with probability 75% and ∣1⟩ with probability 25%, as desired.
Where this gate appears
  • Preparing quantum states with specific amplitude distributions
  • Variational circuits (VQE, QAOA) where gate angles are optimized by a classical computer
  • Amplitude encoding of classical data into quantum states
  • The ZYZ Euler decomposition, where any single-qubit gate equals RZ RY RZ
Connected gates
  • RY(π) = −iY — the Y gate up to global phase
  • Any single-qubit gate = RZ(α) RY(β) RZ(γ), known as the Euler decomposition (a way of breaking any rotation into three simpler rotations around fixed axes)
  • RY uniquely preserves real amplitudes: real input states stay real
  • H ≈ RY(π/2) followed by a Z correction
Tempting but wrong

It is tempting to think RX and RY are interchangeable since both create superpositions. That sounds plausible because both tilt the Bloch vector toward the equator. What actually happens is that RY uniquely produces real amplitudes from basis states, while RX introduces imaginary phase factors. This distinction matters for circuit analysis and appears in decomposition theorems.

Why this gate matters for what comes next

RY is the workhorse of state preparation. When you need to encode specific probability distributions into a qubit, RY gives you direct, clean control over the amplitudes without introducing unwanted imaginary phases.

Test your understanding

Why does RY uniquely produce real amplitudes from |0⟩?

Quick reference →↗ Nielsen and Chuang, Quantum Computation and Quantum Information
←
Previous
RX Gate
Next
RZ Gate
→
← Back to all lessons