Site Tools


single-qubit-gates

Qubit gates

Qubit gates (single-qubit gates) are $2 \times 2$ unitary matrices that act on a single Qubit. Every such gate corresponds to a rotation on the Bloch sphere. The most general single-qubit gate (up to global phase) is the U gate $U(\theta, \phi, \lambda)$, which spans all of $SU(2)$; every named single-qubit gate is a special case of it.

Pauli gates

The Pauli gates $I$, $X$, $Y$, $Z$ are $\pi$ rotations about the $x$-, $y$-, $z$-axes (and the trivial identity). $X$ is the quantum NOT — it swaps $\lvert 0\rangle \leftrightarrow \lvert 1\rangle$. $Z$ leaves $\lvert 0\rangle$ fixed and flips the sign of $\lvert 1\rangle$. $Y = iXZ$ does both simultaneously. All four are self-inverse: $X^2 = Y^2 = Z^2 = I$.

Hadamard gate

The Hadamard gate maps the $Z$-basis to the $X$-basis and back: $H\lvert 0\rangle = \lvert +\rangle$, $H\lvert 1\rangle = \lvert -\rangle$. It is a $\pi$ rotation about the axis halfway between $x$ and $z$. Applying $H$ twice is the identity.

$$H = \frac{1}{\sqrt{2}}\begin{pmatrix}1 & 1\\1 & -1\end{pmatrix}$$

Phase gates

Phase gates leave $\lvert 0\rangle$ unchanged and multiply $\lvert 1\rangle$ by a phase — a rotation about the $z$-axis that acts only on one basis state:

$$S = \begin{pmatrix}1 & 0\\0 & i\end{pmatrix} \qquad T = \begin{pmatrix}1 & 0\\0 & e^{i\pi/4}\end{pmatrix} \qquad P(\lambda) = \begin{pmatrix}1 & 0\\0 & e^{i\lambda}\end{pmatrix}$$

The S gate applies a $\pi/2$ phase ($S^2 = Z$), the T gate applies $\pi/4$ ($T^2 = S$), and the P gate generalizes to an arbitrary angle $\lambda$. The $T$ gate is important for universality: Clifford gates alone (generated by $H$, $S$, CX) are efficiently simulable classically; adding $T$ makes the gate set universal.

Rotation gates

The rotation gates $R_x(\theta)$, $R_y(\theta)$, $R_z(\theta)$ rotate the Bloch vector by a continuous angle $\theta$ about each axis, defined via $R_k(\theta) = e^{-i\theta\sigma_k/2}$. Any single-qubit unitary decomposes as $U = R_z(\alpha)R_y(\beta)R_z(\gamma)$ (Euler angle decomposition). The Pauli gates are the $\theta = \pi$ special cases: $X = iR_x(\pi)$, $Z = iR_z(\pi)$.

Universal parameterization

The U gate $U(\theta, \phi, \lambda) = R_z(\phi)R_y(\theta)R_z(\lambda)$ covers all single-qubit rotations:

$$U(\theta, \phi, \lambda) = \begin{pmatrix}\cos\frac{\theta}{2} & -e^{i\lambda}\sin\frac{\theta}{2}\\[4pt] e^{i\phi}\sin\frac{\theta}{2} & e^{i(\phi+\lambda)}\cos\frac{\theta}{2}\end{pmatrix}$$

Notable special cases: $H = U(\pi/2, 0, \pi)$, $X = U(\pi, 0, \pi)$, $S = U(0, 0, \pi/2)$.

Gate list

single-qubit-gates.txt · Last modified: (external edit)