• Fundamentals
  • Also: Rx, Ry, Rz gates
  • Also: parameterized rotations

Rotation Gates

Parameterized single-qubit gates that rotate the qubit state by a specified angle around the X, Y, or Z axis of the Bloch sphere.

Rotation gates are parameterized single-qubit gates that rotate the quantum state by an angle θ\theta around a specified axis of the Bloch sphere. The three standard rotation gates, Rx(θ)R_x(\theta), Ry(θ)R_y(\theta), and Rz(θ)R_z(\theta), correspond to rotations around the xx, yy, and zz axes respectively. Together, they can express any single-qubit unitary operation, making them the building blocks of universal single-qubit control.

Definitions

The rotation gates are defined as matrix exponentials of the Pauli operators:

Rx(θ)=eiθX/2=(cos(θ/2)isin(θ/2)isin(θ/2)cos(θ/2))R_x(\theta) = e^{-i\theta X/2} = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix}

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}

Rz(θ)=eiθZ/2=(eiθ/200eiθ/2)R_z(\theta) = e^{-i\theta Z/2} = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix}

Each gate satisfies Rk(0)=IR_k(0) = I (identity), Rk(2π)=IR_k(2\pi) = -I (global phase of 1-1), and Rk(4π)=IR_k(4\pi) = I (full period, reflecting the spin-1/2 nature of qubits).

Relationship to common gates

Many standard gates are special cases of rotation gates:

GateEquivalent rotation (up to global phase)
Pauli XXRx(π)R_x(\pi)
Pauli YYRy(π)R_y(\pi)
Pauli ZZRz(π)R_z(\pi)
Hadamard HHRy(π/2)Rz(π)R_y(\pi/2) \cdot R_z(\pi)
SS gateRz(π/2)R_z(\pi/2)
T gateRz(π/4)R_z(\pi/4)
X\sqrt{X}Rx(π/2)R_x(\pi/2)

Euler decomposition

Any single-qubit unitary UU (up to global phase) can be decomposed into three rotation gates:

U=Rz(α)Ry(β)Rz(γ)U = R_z(\alpha) R_y(\beta) R_z(\gamma)

This is the ZYZ Euler decomposition. Alternative decompositions using other axis orderings (XYX, ZXZ, etc.) are equally valid. This universality means that any native gate set containing rotations around two non-parallel axes can produce arbitrary single-qubit gates.

In practice, hardware platforms implement RzR_z as a virtual gate (a software frame change with zero duration and zero error), while RxR_x and RyR_y require physical microwave pulses. This makes the ZXZ decomposition preferable on platforms like IBM’s, where RzR_z is free:

U=Rz(α)Rx(β)Rz(γ)U = R_z(\alpha) R_x(\beta) R_z(\gamma)

Role in variational algorithms

Rotation gates are the parameterized components of variational quantum circuits used in VQE and QAOA. A typical variational ansatz consists of layers of rotation gates with trainable angles θi\theta_i interspersed with entangling gates:

from qiskit import QuantumCircuit

qc = QuantumCircuit(3)
for i in range(3):
    qc.ry(theta[i], i)      # Parameterized rotation layer
qc.cx(0, 1)                  # Entangling layer
qc.cx(1, 2)
for i in range(3):
    qc.ry(theta[i + 3], i)  # Second rotation layer

Gradients of the circuit output with respect to rotation angles can be computed exactly using the parameter shift rule:

Oθ=12[Oθ+π/2Oθπ/2]\frac{\partial \langle O \rangle}{\partial \theta} = \frac{1}{2}\left[\langle O \rangle_{\theta + \pi/2} - \langle O \rangle_{\theta - \pi/2}\right]

This formula is exact (not a finite-difference approximation) because rotation gates generate a specific algebraic structure.

Why it matters for learners

Rotation gates are the most commonly used parameterized gates and appear in virtually every quantum algorithm. Understanding their matrix forms, Bloch sphere interpretation, and relationship to Pauli operators provides the foundation for circuit design, transpilation, and variational algorithm construction.

See also