Skip to main content
KetQat

Appearance

Equation · introductory

Expansion of an operator in the Pauli basis

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=12n∑P∈{I,X,Y,Z}⊗nTr⁡(PA) PA = \frac{1}{2^{n}} \sum_{P \in \{I, X, Y, Z\}^{\otimes n}} \tr(P A)\, P

The Pauli strings P=P1⊗⋯⊗PnP = P_1 \otimes \dots \otimes P_n, Pk∈{I,X,Y,Z}P_k \in \{I, X, Y, Z\}, satisfy

Tr⁡(P†Q)=2n δPQ.\tr(P\dagg Q) = 2^{n}\, \delta_{PQ} .

Indeed Tr⁡(P†Q)=∏kTr⁡(PkQk)\tr(P\dagg Q) = \prod_k \tr(P_k Q_k), and for single-qubit Paulis Tr⁡(PkQk)=2\tr(P_k Q_k) = 2 if Pk=QkP_k = Q_k and 00 otherwise, because PkQkP_k Q_k is then a phase times XX, YY or ZZ, all of which are traceless. So the 4n4^n strings are orthogonal for the Hilbert–Schmidt inner product ⟨A,B⟩=Tr⁡(A†B)\langle A, B \rangle = \tr(A\dagg B). They are 4n=dim⁡L(C2n)4^n = \dim L(\C^{2^n}) in number, hence a basis, and expanding in an orthogonal basis gives the formula. Since every Pauli string is Hermitian, AA is Hermitian if and only if every coefficient Tr⁡(PA)\tr(PA) is real, and Tr⁡(A†A)=2−n∑P∣Tr⁡(PA)∣2\tr(A\dagg A) = 2^{-n} \sum_P \abs{\tr(PA)}^2.

For a density operator the coefficient of I⊗nI^{\otimes n} is 11, and the other coefficients are the expectation values Tr⁡(Pρ)\tr(P\rho); for one qubit this is the Bloch representation. The same expansion shows that a code correcting the errors XX, YY and ZZ 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.
Part of
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. 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

  1. 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).