Table of Contents

Rotation gates

Rotation gates ($R_X$, $R_Y$, $R_Z$) are parametric single-qubit gates that apply rotations around the x, y, z axes of the Bloch sphere by angle $\theta$. They are fundamental building blocks for state preparation and variational quantum algorithms, since any single-qubit unitary can be decomposed as a product of rotations around two perpendicular axes.

The three rotation gates

Matrix representations

$$R_X(\theta) = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$$

$$R_Y(\theta) = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2) \\ \sin(\theta/2) & \cos(\theta/2) \end{pmatrix}$$

$$R_Z(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2} \end{pmatrix}$$

Common properties

All three rotation gates share:

Special cases and relations to Pauli gates

At $\theta = \pi$, rotations relate to Pauli gates (up to global phase):

$R_Z(\pi/2)$ equals the S gate; $R_Z(\pi/4)$ equals the T gate.

Euler angle decomposition

Any single-qubit unitary can be decomposed as:

$$U(\phi, \theta, \lambda) = R_Z(\phi) R_Y(\theta) R_Z(\lambda)$$

This is the standard Euler angle parametrization. The U gate implements this directly. Alternatively, $R_X R_Y R_Z$ or other axis orderings work depending on convention.

Uses

Implementation notes

Relations