RY rotation

Rotates about the Y axis. Real amplitudes only, so it is the easiest way to prepare a state with chosen probabilities.

Rotation · 1 qubit · reviewed November 2026

Matrix

[ cos(θ/2)  −sin(θ/2) ]
[ sin(θ/2)   cos(θ/2) ]

What it does

|0⟩→cos(θ/2)|0⟩ + sin(θ/2)|1⟩

In plain words

RY(θ) on |0⟩ gives a state with probability sin²(θ/2) of reading 1. It is the usual way to load a single number into a qubit, and the builder’s teleportation example uses RY(π/3) as the message.

Identities

  • RY(θ)·RY(−θ) = I
  • RY(π/2)·|0⟩ = |+⟩

Where it is used

  • State preparation
  • Amplitude encoding
  • Ansatz circuits

Code

# Qiskit
qc.ry(theta, 0)

// OpenQASM 2.0
ry(theta) q[0];

Qiskit prints qubit 0 on the right of a bitstring. The builder prints it on the left.

See it in an example

Related gates

Questions

How do I get a 30% chance of reading 1?

Choose θ so that sin²(θ/2) = 0.3, which gives θ ≈ 1.159 radians.

Try the Ry(θ) gate in the Circuit Builder →