The 4^n tensor products of I, X, Y and Z are an orthogonal basis of all operators on n qubits for the Hilbert–Schmidt inner product, so every operator is the sum of these strings weighted by the normalised traces tr(PA).
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
A=2n1P∈{I,X,Y,Z}⊗n∑Tr(PA)P
The Pauli strings P=P1⊗⋯⊗Pn, Pk∈{I,X,Y,Z}, satisfy
Tr(P†Q)=2nδPQ.
Indeed Tr(P†Q)=∏kTr(PkQk), and for single-qubit Paulis Tr(PkQk)=2 if
Pk=Qk and 0 otherwise, because PkQk is then a phase times X, Y or Z, all of
which are traceless. So the 4n strings are orthogonal for the Hilbert–Schmidt inner
product ⟨A,B⟩=Tr(A†B). They are 4n=dimL(C2n) in
number, hence a basis, and expanding in an orthogonal basis gives the formula. Since every
Pauli string is Hermitian, A is Hermitian if and only if every coefficient Tr(PA) is
real, and Tr(A†A)=2−n∑P∣Tr(PA)∣2.
For a density operator the coefficient of I⊗n is 1, and the other
coefficients are the expectation values Tr(Pρ); for one qubit this is the
Bloch representation. The same expansion shows that a
code correcting the errors X, Y and Z on a set of qubits corrects every operator
supported there, the discretisation step of
quantum error correction, and it is the starting point
of the Pauli twirl. See section 10.3 of
Nielsen and Chuang for its use in error correction.
Holds when
A is any linear operator on the n-qubit space, of dimension 2 to the n.
The sum runs over the 4^n Pauli strings without phases.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Orthogonality tr(P Q) = 2^n delta, the expansion, the Hermiticity criterion and the Parseval identity re-derived and checked numerically for all 64 three-qubit Pauli strings on a random complex matrix. Nielsen and Chuang section 10.3 (error-correction theory, discretisation of errors) location from my knowledge of the book; book not openly readable.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 0fa7756369ba054f. Source file knowledge/records/equation/pauli-operator-expansion.md in the content repository (readable there once it is public).