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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Pauli expectation estimation

The estimation of an observable built from tensor products of Pauli operators using suitable measurement bases.

Also called Pauli measurement, observable estimation

Edition released Coverage: Overview · Technical
On this page

Definition and significance

Many quantum algorithms need expectation values rather than full state reconstruction. A Pauli string has outcomes +1 or -1, and its expectation can be estimated by rotating each relevant qubit into the appropriate basis, measuring, and multiplying eigenvalue labels. A Hamiltonian written as a sum of Pauli strings then becomes a weighted collection of such estimates.

This is a scientific measurement model. It should not be presented as a requirement that website visitors run circuits or perform experiments.

Mechanism and mathematical treatment

To measure X using computational readout, apply H before measuring Z. To measure Y, apply S dagger followed by H, so the effective observable is S H Z H S dagger=S X S dagger=Y. A Z measurement needs no basis rotation. Map measured bit b to eigenvalue (-1)^b.

For a Pauli string P, the sample mean of N independent outcomes has variance (1-<P>^2)/N. A sum H=sum_j h_j P_j estimated from independent shot groups has variance sum_j h_j^2(1-<P_j>^2)/N_j. Joint measurement of commuting terms can introduce useful or harmful covariances that must be retained.

Fully worked reference example

For the Bell state (|00>+|11>)/sqrt(2), <ZZ>=1 because both possible Z outcomes have even parity. Applying H to both qubits leaves the state in the same Bell form, so <XX>=1. For YY, acting on |00> gives -|11> and acting on |11> gives -|00>; hence <YY>=-1.

For H=ZZ+XX+YY, the expectation is therefore 1. Each Pauli outcome is deterministic on this state, so the ideal measurement variance for these three terms is zero. Noise or state-preparation error can make the observed variances nonzero. This example also shows why summing probabilities without eigenvalue signs gives the wrong answer.

Limitations and common misconceptions

Terms that commute as matrices may not be measurable together using only independent single-qubit basis rotations. Qubit-wise commutativity is a stricter sufficient condition for that simple strategy. Measurement grouping is a resource optimization, not permission to discard covariance or systematic readout bias.

Scientific relationships

Observable interfaces can estimate Pauli-sum expectations.

Pauli observables determine signed measurement outcomes.

Ancilla interference can estimate selected overlaps and unitary expectations, though direct Pauli measurements can be simpler.

Term coefficients and variances guide a finite measurement budget.

Phase-sensitive correlations in a three-qubit state

Let |psi_phi>=(|000>+exp(i phi)|111>)/sqrt(2). The operator XXX exchanges the two basis components without extra phase, so its expectation is cos(phi). The operator XXY maps |000> to i|111> and |111> to -i|000>, giving expectation sin(phi). The operator YYY gives -sin(phi) because its three local Y factors contribute a different overall phase. These signs follow from matrix action and should be retained in any measurement table.

At phi=pi/3, <XXX>=1/2 and <XXY>=sqrt(3)/2. For H=2XXX-(1/2)XXY, the expectation is 1-sqrt(3)/4, approximately 0.566987. The computational Z-basis distribution contains only 000 and 111 with equal probabilities for every phi, so it cannot reveal either of these phase-sensitive correlations. The measurement basis is part of the observable definition.

To estimate XXX, apply H to all three qubits and multiply their measured eigenvalue signs. To estimate XXY, use the Y-basis rotation on the last qubit and X-basis rotations on the first two. A measured bit string with odd parity contributes -1; even parity contributes +1. The product is one signed sample of the complete Pauli string, not three independent samples of its expectation.

From counts to a complete estimator

Suppose one Pauli measurement produces thirteen even-parity and seven odd-parity outcomes in twenty shots. The sample mean is (13-7)/20=0.3. The empirical second moment is exactly one because every outcome squares to one. An unbiased estimate of the single-shot variance is [20/(20-1)](1-0.3^2)=91/95, approximately 0.957895. Dividing by twenty gives an estimated variance of the sample mean of 91/1900.

This estimated variance is not the same as the true variance 1-mu^2, because mu is unknown and the empirical mean fluctuates. For a rigorous distribution-free bound on independent outcomes in [-1,1], a Hoeffding inequality gives probability at most 2exp(-N epsilon^2/2) that the mean differs from its true expectation by more than epsilon. Requiring epsilon=0.1 and failure probability 0.05 gives N at least 738. The bound is conservative and does not use an observed low variance.

For M separately estimated observables, applying a union bound with per-observable failure probability delta/M gives a simultaneous guarantee at total failure probability at most delta. This introduces a logarithmic dependence on M in the simple Hoeffding allocation. It is distinct from estimating one weighted Hamiltonian mean directly, for which different variance-aware strategies may be preferable.

A numerical Hamiltonian variance ledger

For the phase-state example, XXX has variance 1-(1/2)^2=3/4, and XXY has variance 1-3/4=1/4. If the first expectation uses 1000 independent shots and the second uses 500, the energy-estimator variance is 4(3/4)/1000+(1/4)(1/4)/500=0.003125. Its standard deviation is sqrt(0.003125), approximately 0.055902.

The two terms anticommute because their last-qubit factors X and Y anticommute while their other factors match. They therefore cannot be assigned simultaneous sharp outcomes on one copy. The separate-shot variance formula is appropriate for the stated strategy. A more general measurement method could estimate the Hamiltonian in another basis, but it would have a different circuit and statistical model.

If an identity factor appears in a Pauli string, that qubit's measured bit must be excluded from the parity product. For example, XIZ uses only the first and third qubits. Including the middle bit estimates a different operator. A reference implementation can express this through an explicit support mask and a basis label for each supported qubit, keeping qubit-to-classical-bit routing separate from the observable's tensor order.

A specified readout-bias model

Assume each recorded bit independently flips with probability e, identical across the w supported qubits. The recorded eigenvalue sign is the true sign multiplied by an independent random sign with mean 1-2e. Therefore a weight-w Pauli expectation is attenuated by (1-2e)^w. For e=0.03 and w=3, the attenuation is 0.94^3=0.830584.

Dividing by this known attenuation removes bias within the stated model, but increases estimator variance by the reciprocal squared factor. Uncertainty in e introduces another error contribution, and correlated readout errors invalidate the simple product formula. A corrected expectation may lie outside [-1,1] in a finite sample because it is an estimator, not necessarily the expectation of a physical reconstructed state. Clipping it changes its bias.

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.