• Mathematics

Pauli Decomposition

The expansion of any operator on n qubits as a linear combination of tensor products of Pauli matrices, providing a universal basis for expressing Hamiltonians and observables.

Pauli decomposition is the expression of any 2n×2n2^n \times 2^n matrix as a linear combination of nn-qubit Pauli strings (tensor products of the single-qubit Pauli matrices {I,X,Y,Z}\{I, X, Y, Z\}). Since the 4n4^n Pauli strings form a complete orthogonal basis for the space of 2n×2n2^n \times 2^n matrices, any operator on nn qubits can be uniquely decomposed in this form. This decomposition is fundamental to how quantum computers evaluate Hamiltonians and other observables.

Mathematical formulation

Any operator AA on nn qubits can be written as:

A=P{I,X,Y,Z}naPPA = \sum_{P \in \{I,X,Y,Z\}^{\otimes n}} a_P \cdot P

where the sum runs over all 4n4^n Pauli strings and the coefficients are:

aP=12nTr(PA)a_P = \frac{1}{2^n} \text{Tr}(P \cdot A)

This follows from the orthogonality of Pauli strings under the trace inner product: Tr(PQ)=2nδPQ\text{Tr}(P^\dagger Q) = 2^n \delta_{PQ}.

For a Hermitian operator A=AA = A^\dagger, all coefficients aPa_P are real numbers.

Example: two-qubit Hamiltonian

Consider the Heisenberg interaction Hamiltonian:

H=JxX1X2+JyY1Y2+JzZ1Z2+h1Z1+h2Z2H = J_x X_1 X_2 + J_y Y_1 Y_2 + J_z Z_1 Z_2 + h_1 Z_1 + h_2 Z_2

This is already in Pauli-decomposed form with five nonzero terms. The Pauli strings are XXX \otimes X, YYY \otimes Y, ZZZ \otimes Z, ZIZ \otimes I, and IZI \otimes Z, with coefficients JxJ_x, JyJ_y, JzJ_z, h1h_1, and h2h_2.

For a general 4×44 \times 4 matrix on 2 qubits, the decomposition would involve all 42=164^2 = 16 Pauli strings: IIII, IXIX, IYIY, IZIZ, XIXI, XXXX, XYXY, XZXZ, YIYI, YXYX, YYYY, YZYZ, ZIZI, ZXZX, ZYZY, ZZZZ.

Role in quantum computing

Measuring expectation values: To compute ψHψ\langle\psi|H|\psi\rangle on a quantum computer, decompose HH into Pauli strings and measure each one separately:

H=PaPP\langle H \rangle = \sum_P a_P \langle P \rangle

Each Pauli string PP can be measured by applying appropriate single-qubit rotations to diagonalize it, then measuring in the computational basis. Commuting Pauli strings can be measured simultaneously, reducing the number of distinct circuits needed.

Hamiltonian simulation: Trotterization simulates eiHte^{-iHt} by decomposing HH into Pauli terms and approximating the evolution as a product of easier-to-implement Pauli rotations:

eiHtPeiaPPte^{-iHt} \approx \prod_P e^{-ia_P P t}

Each eiaPPte^{-ia_P P t} can be implemented as a circuit using CNOT gates and single-qubit rotations.

Quantum chemistry: Molecular Hamiltonians, after the Jordan-Wigner or Bravyi-Kitaev transformation from fermionic to qubit operators, are expressed as sums of Pauli strings. A typical molecular Hamiltonian for 20 qubits may have thousands to millions of Pauli terms, and reducing this count through grouping and truncation is an active research area.

Computational considerations

The number of Pauli terms grows as O(4n)O(4^n) in the worst case, but physical Hamiltonians are typically sparse in the Pauli basis. The measurement cost of estimating H\langle H \rangle scales with the number of distinct measurement bases needed, which can be reduced by grouping commuting terms. Advanced techniques like classical shadow tomography can estimate many Pauli expectation values from a fixed number of random measurements.

Why it matters for learners

Pauli decomposition is the interface between physical problems (expressed as Hamiltonians) and quantum hardware (which measures Pauli observables). Understanding this decomposition is essential for working with VQE, Hamiltonian simulation, and quantum chemistry applications. It also clarifies why the number and structure of Pauli terms in a Hamiltonian directly determines the cost of evaluating it on a quantum computer.

See also