EquationIntermediateEquations

Rotation Gates

Rotations about the Pauli axes defined by matrix exponentials with half the angle in the exponent.

$$R_P(\theta)=e^{-i\theta P/2}=\cos\tfrac{\theta}{2}\,I-i\sin\tfrac{\theta}{2}\,P,\quad P\in\{X,Y,Z\}$$

Symbols

$\theta$Rotation angle
$P$Pauli matrix (rotation axis)
$R_P(\theta)$Rotation gate about axis P

$\theta$ is the rotation angle on the Bloch sphere, $P$ is the Pauli matrix that defines the axis, and $I$ is the identity. The expanded form holds because $P^2=I$. Explicitly: $R_Y(\theta)=\begin{pmatrix}\cos\frac{\theta}{2}&-\sin\frac{\theta}{2}\\ \sin\frac{\theta}{2}&\cos\frac{\theta}{2}\end{pmatrix}$ and $R_Z(\theta)=\mathrm{diag}(e^{-i\theta/2},e^{i\theta/2})$. This is the Qiskit and lab convention. $R_Z(\lambda)$ equals $P(\lambda)$ up to a global phase $e^{-i\lambda/2}$.

Example

$R_X(\pi)=\cos\tfrac{\pi}{2}I-i\sin\tfrac{\pi}{2}X=-iX$, i.e. $X$ up to a global phase. $R_Y(\pi/2)|0\rangle=\cos\tfrac{\pi}{4}|0\rangle+\sin\tfrac{\pi}{4}|1\rangle=|+\rangle$ (verified). A full rotation gives $R_Z(2\pi)=-I$: physically the same state.

Test your understanding

The quiz needs JavaScript.

Related topics

References

  1. Michael A. Nielsen; Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press doi:10.1017/CBO9780511976667The standard reference for quantum computing; the Crossref record gives 2012 for the Cambridge Core online edition.
  2. IBM Quantum (2025). Qiskit SDK API documentation. IBM Quantum Documentation quantum.cloud.ibm.com