Table of Contents

Phase gate

Phase gate (or P gate) is a single-qubit quantum gate that applies a phase shift $\phi$ to the $\lvert 1\rangle$ component of a qubit while leaving the $\lvert 0\rangle$ component unchanged. It is a rotation about the $z$-axis of the Bloch sphere.

$$P(\phi) = \begin{pmatrix}1 & 0\\ 0 & e^{i\phi}\end{pmatrix}$$

Applied to a general qubit $\lvert\psi\rangle = a\lvert 0\rangle + b\lvert 1\rangle$, the phase gate multiplies the $\lvert 1\rangle$ amplitude by $e^{i\phi}$.

$$P(\phi)\lvert\psi\rangle = a\lvert 0\rangle + e^{i\phi}b\lvert 1\rangle$$

Since it only modifies the relative phase between $\lvert 0\rangle$ and $\lvert 1\rangle$, the measurement probabilities $|a|^2$ and $|b|^2$ are unchanged. The effect is only observable through interference.

Special cases

Several important single-qubit gates are special cases of $P(\phi)$.

$$Z = P(\pi) = \begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}$$ $$S = P\!\left(\frac{\pi}{2}\right) = \begin{pmatrix}1 & 0\\ 0 & i\end{pmatrix}$$ $$T = P\!\left(\frac{\pi}{4}\right) = \begin{pmatrix}1 & 0\\ 0 & e^{i\pi/4}\end{pmatrix}$$

The $T$ gate (sometimes called the $\pi/8$ gate) is particularly important in fault-tolerant quantum computing. Together with the Hadamard gate $H$ and the CNOT gate, $T$ forms a universal gate set for quantum computation.