Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Pauli decomposition of operators

The expansion of a qubit operator in the tensor-product Pauli basis.

Also called Pauli expansion

Edition released Coverage: Overview · Technical
On this page

Definition and significance

Pauli strings form an orthogonal basis for operators on qubits. This representation connects a matrix Hamiltonian to measurable observables and circuit operations. A sparse representation can be useful, but a generic n-qubit operator may require all 4^n terms.

Mechanism and mathematical treatment

For n qubits, Tr(P_j P_k)=2^n delta_jk when the Pauli strings have no arbitrary phase factors. Thus A=sum_P a_P P with a_P=Tr(PA)/2^n. If A is Hermitian, these coefficients are real. Complex coefficients are possible for general non-Hermitian operators.

Fully worked reference example

For A=[[2,1-i],[1+i,4]], the coefficients are a_I=3, a_X=1, a_Y=1 and a_Z=-1, giving A=3I+X+Y-Z. Its eigenvalues are 3 plus or minus sqrt(3), since (X+Y-Z)^2=3I. This independent spectral calculation checks the decomposition.

Limitations and common misconceptions

Expanding every matrix into Paulis can be exponentially expensive. The usefulness of a Hamiltonian representation depends on term structure, coefficient magnitudes and required measurement precision, not just the fact that a Pauli expansion exists.

Scientific relationships

A Hamiltonian expansion determines measurable expectation terms.

Fermionic operators can be mapped into Pauli strings.

Decomposing a complex two-qubit projector

Consider |psi>=(|01>+i sqrt(3)|10>)/2 and its projector rho. The populations are one-quarter on 01 and three-quarters on 10, so <ZI>=-1/2, <IZ>=1/2, and <ZZ>=-1. The relative imaginary phase makes <XX> and <YY> zero. Directly applying the remaining two-body operators gives <XY>=-sqrt(3)/2 and <YX>=sqrt(3)/2.

Consequently rho=[II-(1/2)ZI+(1/2)IZ-ZZ-(sqrt(3)/2)XY+(sqrt(3)/2)YX]/4. The signs of XY and YX are opposite, which would be lost by treating the amplitudes as real. For example, XY maps |01> to -i|10> and |10> to i|01>; substituting the two amplitudes gives the negative expectation. This calculation fixes the tensor order and the Y convention explicitly.

Pauli orthogonality supplies another check. The six nonzero expansion coefficients are 1/4, -1/8, 1/8, -1/4, -sqrt(3)/8, and sqrt(3)/8. Their squared magnitudes sum to one-quarter. Multiplying by dimension four gives Tr(rho squared)=1, consistent with a pure-state projector. The coefficient of II also gives Tr(rho)=4 times 1/4=1. These two invariants check different aspects of the decomposition.

Non-Hermitian operators and coefficient phases

The transition operator |00><11| provides a complementary example. Since |0><1|=(X+iY)/2, its expansion is [XX-YY+iXY+iYX]/4. The imaginary coefficients are necessary because the transition operator is not Hermitian. Adding its adjoint cancels the imaginary terms and leaves (XX-YY)/2; subtracting its adjoint and multiplying by i produces a different Hermitian combination with real coefficients.

For any Hermitian A, the coefficient Tr(PA)/d is real because its complex conjugate is Tr(AP)/d, equal by cyclicity of trace. This argument requires Hermitian Pauli representatives with phases fixed, rather than an overcomplete Pauli group containing arbitrary factors of i. The group and the operator basis are related objects, but only the latter supplies the unique coefficient list used here.

A density operator's real Pauli coefficients are constrained jointly by positivity. They are not independent probabilities. For instance, (I+X+Z)/2 has trace one and real coefficients but eigenvalues (1+sqrt(2))/2 and (1-sqrt(2))/2, the second negative. A valid coefficient-extraction calculation therefore does not by itself prove that an arbitrary supplied matrix is a physical state.

Truncation error and positivity

If the XY and YX terms are removed from the displayed projector, the result is diag(0,1/4,3/4,0). It has purity 5/8. The squared Frobenius error is four times the sum of the two discarded coefficient squares, or 3/8. Its trace distance from the original projector is sqrt(3)/4, obtained from the two nonzero eigenvalues plus and minus sqrt(3)/4 of their difference. The two norms quantify different errors even in this small case.

Here truncation happens to implement computational dephasing and preserves positivity. Arbitrary Pauli truncation need not. The Bell projector (II+XX-YY+ZZ)/4 is positive, but dropping only its YY term gives (II+XX+ZZ)/4, whose Bell-basis eigenvalues include -1/4. A compression rule that keeps the largest coefficients therefore requires a separate physicality or observable-error analysis if its output is to be interpreted as a density matrix.

For a general expansion A=sum_P a_P P and a chosen retained set, the squared Frobenius truncation error is d times the sum of squared discarded coefficients. This follows directly from orthogonality and is exact. It does not guarantee the same relative error in every expectation or eigenvalue. Operator-norm bounds can be obtained from the Frobenius norm, but may be loose for structured observables.

Measurement and representation consequences

The terms XY and YX commute because they anticommute on two separate sites; both also commute with ZZ. They can therefore share a suitable joint measurement basis. The local terms ZI and IZ do not commute with each of XY and YX, so simply grouping every nonzero term into one local setting is invalid. Global commutation and qubit-by-qubit measurement compatibility are distinct conditions.

The identity contribution needs no shots. For an energy expansion its coefficient is known exactly from the model, while uncertainty enters through the measured nonidentity expectations and coefficient uncertainty if those coefficients are themselves inferred. A sparse Pauli list can make selected expectations tractable without constructing the full matrix. Conversely, decomposing an arbitrary dense matrix requires reading its many entries and can produce all 4 to the n coefficients.

The projector has six Pauli coefficients. After dephasing, Frobenius norm and trace distance give different error measures. Truncating the Bell projector can even produce a negative eigenvalue. These exact examples separate coefficient sparsity from positivity, measurement grouping, and computational complexity.

Sources

  • A. Barenco et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevA.52.3457
    Verification scope

    Selected source text checked ·

    Source anchors gate-decomposition conventions. New worked instances are independent mathematical constructions, not reported experiments.

  • Alberto Peruzzo et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1038/ncomms5213
    Verification scope

    Selected source text checked ·

    Primary formal source anchor; original worked examples independently derived, not reported experiments.