Commuting-observable measurement grouping
The organization of observable terms into jointly measurable sets while retaining their covariance structure.
On this page
Definition, purpose and input assumptions
Grouping can reduce the number of distinct measurement preparations needed for a Hamiltonian expectation. Qubit-wise commuting Pauli strings share compatible local measurement bases. More general commuting sets may require entangling basis transformations. Joint measurability and low estimator variance are related but different concerns.
Mathematical mechanism
For terms c_i P_i measured together, the variance of their combined per-shot value is sum_i c_i^2 Var(P_i)+2sum_(i<j)c_i c_j Cov(P_i,P_j). Discarding covariance gives an incorrect uncertainty estimate. The operators XX and YY commute because they anticommute on two sites, but they are not qubit-wise commuting and cannot both be read from one fixed independent local basis.
Fully solved reference example
For the Bell state(|00>+|11>)/sqrt(2), Z0 and Z1 have zero means and perfect positive correlation. Estimate H=2Z0+Z1 from one computational-basis shot. Outcome00 gives 3 and 11 gives -3, so mean 0 and variance 9. The separate marginal variances weighted by coefficients would sum to 4+1=5; the missing covariance term is 4.
This does not mean grouping is worse at equal total resources: one joint shot supplies both terms, whereas independent measurements use separate preparations. A fair comparison must allocate the same total number of state preparations and account for covariance.
Limitations and classical comparison
Grouping heuristics can reduce settings while increasing circuit depth or susceptibility to readout error. A universal claim that fewer groups always means fewer shots is false. The relevant quantity is uncertainty in the requested combined observable at matched preparation and gate cost.
Scientific relationships
Grouping is used in Pauli expectation estimation and shot allocation. It depends on Pauli commutation and is distinct from assuming independent term estimates.
Joint Bell-basis estimation of three commuting terms
Consider H=2XX-YY+(1/2)ZZ and a state diagonal in the Bell basis with weights 2/5,1/10,1/5,3/10 on Φ+,Φ-,Ψ+,Ψ-. The three Pauli products commute globally. Their joint energy values on these states are 7/2,-5/2,1/2,-3/2. The mean energy is 4/5, and the second moment is 25/4, giving per-shot energy variance 561/100.
A Bell-basis measurement can be implemented by CNOT q0→q1 followed by H on q0 and computational-basis measurement. If the resulting bits are b0,b1, then XX has eigenvalue (-1)^b0, ZZ has eigenvalue (-1)^b1, and YY has eigenvalue -(-1)^{b0+b1}. The minus sign follows from XX·ZZ=-YY. The per-shot energy estimator is therefore 2(-1)^b0+(-1)^{b0+b1}+(1/2)(-1)^b1.
The four decoded bitstrings 00,10,01,11 correspond to Φ+,Φ-,Ψ+,Ψ- and reproduce the four energy values above. This specifies a complete joint measurement and classical decoding rule. Reading each output bit as though it directly represented one original qubit's Z value would estimate a different observable, because the entangling basis change has transformed what the bits mean.
Exact covariances and a fair preparation budget
The individual means are <XX>=1/5, <YY>=-2/5, and <ZZ>=0. Their variances are 24/25,21/25,1. The covariances are Cov(XX,YY)=2/25, Cov(XX,ZZ)=2/5, and Cov(YY,ZZ)=-1/5. For example, the first follows from XX·YY=-ZZ and subtraction of the product of the means.
Multiplying the individual variances by squared coefficients gives 4(24/25)+21/25+1/4=493/100. The weighted covariance contribution is 17/25, bringing the total to 561/100. Ignoring covariance would understate the variance of the actual shared-shot energy estimator even though every individual Pauli estimate is correct.
With T total state preparations devoted to the joint setting, the energy variance is 5.61/T. If the three terms are measured independently with equal allocation, it is 14.79/T. Optimizing independent allocations instead gives [2√(24/25)+√(21/25)+1/2]²/T, which is still larger than the joint value. The relevant comparison grants each strategy the same total number of preparations, rather than comparing one joint shot with three separate shots as though they cost the same.
The result does not imply that every commuting group improves precision. Coefficients and state correlations determine the shared-shot variance, while entangling diagonalizers can add physical error and duration. The calculation establishes a benefit for this specific ideal state, observable, and preparation-cost model.
Readout error changes different parity terms differently
Suppose each measured Bell-basis bit independently flips with probability η, and let r=1-2η. Single-bit signs are attenuated by r, while their two-bit product is attenuated by r². The observed energy mean in this example becomes (2/5)r+(2/5)r². At η=0.05, it is 0.684 instead of 0.8, a bias of -0.116.
This bias remains even with infinitely many shots. Dividing the decoded sign estimators by r or r² can correct it under the exact independent-flip model and known η, but increases statistical fluctuations. Unknown correlations, calibration uncertainty, or errors in the CNOT and Hadamard require a broader model. A smaller number of measurement settings is therefore not itself a validation of the final energy estimate.
The three observables also have only two independent eigenvalue bits. Once XX and ZZ are known, YY is determined by their product and sign. This algebraic dependence explains why a two-qubit Bell measurement can supply all three values. It does not authorize simultaneous readout of an additional Pauli operator that fails to commute with the group.
Grouping as an optimization problem
Qubit-wise grouping uses only local basis rotations and can be represented by a conflict graph whose color classes are compatible settings. Global commuting grouping admits larger families but may require entangling diagonalizers. A minimum-color partition optimizes setting count, whereas minimum total variance or execution time depends on coefficients, correlations, setup overhead, and basis-change cost. Those objectives need not choose the same partition.
Identity terms in H require no shots and contribute only a known scalar offset. Repeated Pauli strings can be combined algebraically before grouping. Other simplifications depend on a justified symmetry sector or known expectation, and should not be inferred from a single noisy pilot estimate. A term that appears small on one trial state may change during a variational optimization.
For this example, the density matrix and Bell probabilities are small enough to calculate classically exactly. In a larger application, pilot data can estimate group variances, but uncertainty in those estimates affects allocation. A group with nearly zero empirical variance after few shots should not automatically receive no further measurements unless an independent mathematical condition guarantees it.
Sources
Verification scope
Selected source text checked ·
Primary formal source anchor; original worked examples independently derived, not reported experiments.
Verification scope
Selected source text checked ·
Source anchors gate-decomposition conventions. New worked instances are independent mathematical constructions, not reported experiments.