Pauli Matrices
The Pauli matrices $X,Y,Z$ together with $I$ form a basis for all single-qubit matrices; they are both Hermitian and unitary, with eigenvalues $\pm1$.
The Pauli matrices: $$X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.$$ Each is Hermitian ($P=P^\dagger$) and unitary, so its square is $I$ and its eigenvalues are $\pm1$. They pairwise anticommute: $XY=iZ$ and $YX=-iZ$, and in general $\sigma_j\sigma_k=\delta_{jk}I+i\epsilon_{jkl}\sigma_l$.
Their importance is twofold. As gates: $X$ is the bit flip (NOT), $Z$ is the phase flip, and $Y=iXZ$ combines them. As observables: measuring $Z$ is the computational measurement, and the Bloch vector is $(\langle X\rangle,\langle Y\rangle,\langle Z\rangle)$. The set $\{I,X,Y,Z\}$ is a basis for $2\times2$ matrices, so every single-qubit observable can be written $aI+bX+cY+dZ$ with real coefficients. For $n$ qubits, Pauli strings such as $Z\otimes Z$ or $X\otimes I\otimes Y$, of which there are $4^n$, form a basis for operators; that is why the Hamiltonians in VQE and QAOA are written as sums of Pauli strings, as in SparsePauliOp in Qiskit.
Rotations are generated by the Pauli matrices: $R_P(\theta)=e^{-i\theta P/2}=\cos\tfrac{\theta}{2}I-i\sin\tfrac{\theta}{2}P$.
Another property is that each has zero trace, $\mathrm{Tr}\,X=\mathrm{Tr}\,Y=\mathrm{Tr}\,Z=0$, and that they are orthogonal under the product $\mathrm{Tr}(A^\dagger B)$, which allows the coefficients of any matrix to be extracted: $c_P=\tfrac12\mathrm{Tr}(PA)$.
Mathematical formula
Worked example
Check $XY=iZ$: $XY=\begin{pmatrix}0&1\\1&0\end{pmatrix}\begin{pmatrix}0&-i\\i&0\end{pmatrix}=\begin{pmatrix}i&0\\0&-i\end{pmatrix}=iZ$. The expectation value of $Z$ in $|+\rangle$: $\tfrac12(1)+\tfrac12(-1)=0$, and of $X$: $\langle+|X|+\rangle=1$, because $|+\rangle$ is an eigenvector of $X$ with eigenvalue $+1$.
Test your understanding
The quiz needs JavaScript.
Related topics
References
- 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.
- Microsoft (2025). Pauli Measurements in Quantum Computing. Azure Quantum documentation learn.microsoft.com
