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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Measurement covariance in quantum estimation

Measurement covariance quantifies how jointly estimated observable outcomes fluctuate together and therefore affects the uncertainty of their weighted sum.

Edition released Coverage: Overview · Technical · Research
On this page

Explanation and significance

Commuting observables can sometimes be measured in one setting. This saves settings but introduces statistical relationships between estimates because they share shots. Ignoring covariance can overstate or understate final precision. The quantity is classical covariance of measurement outcomes, even though the underlying state can be quantum.

Mechanism and mathematical structure

For estimator O=sum_j c_j P_j measured jointly, Var(O)=sum_j c_j²Var(P_j)+2sum_(j<k)c_jc_k Cov(P_j,P_k). Dividing by the number of independent shots gives the variance of the sample mean. Measurement compatibility and the chosen estimator determine which covariance terms are available.

Fully worked reference example

Prepare a classical mixture of|00> and|11>, each with probability 1/2, and measure Z0,Z1 jointly. Each outcome has mean 0 and variance 1, while Cov(Z0,Z1)=1 because they always agree. For O=Z0-Z1, variance is 1+1-2=0. Treating estimates as independent would predict variance 2 per shot, missing exact cancellation. For O=Z0+Z1, the variance is 1+1+2=4, larger than an independent estimate would suggest.

Limits and misconceptions

Commuting as operators does not always mean a chosen hardware measurement setting measures them both without additional gates. Calibration error is not removed by increasing shots. Correlations across different runs require a broader time-series treatment.

Scientific relationships

Is used in Hamiltonian expectation estimation and benchmark error bars. Depends on measurement grouping. Is distinct from physical noise correlation between qubits.

Joint outcomes determine the relevant covariance

For jointly measured commuting Pauli observables P and Q, the covariance of their ±1 outcomes is ⟨PQ⟩−⟨P⟩⟨Q⟩. This is a statement about the joint measurement distribution. If the same two expectation values are instead estimated on independent preparations, their sample means have zero sampling covariance under independence, even though the state has a nonzero operator correlation. The measurement allocation therefore changes the uncertainty calculation without changing the state.

Take computational-basis probabilities p00=0.5, p01=0.2, p10=0.1, p11=0.2. Then ⟨Z0⟩=0.4, ⟨Z1⟩=0.2, and ⟨Z0Z1⟩=0.4. Their variances are 0.84 and 0.96, and covariance is 0.4−0.08=0.32. For H=2Z0−Z1, the jointly measured single-shot variance is 4×0.84+0.96−4×0.32=3.04. The exact outcome values 1,3,−3,−1 have mean 0.6 and second moment 3.4, independently confirming variance 3.4−0.36=3.04.

Grouping can help or hurt at fixed shot count

For H=2Z0+Z1 in the same state, the joint single-shot variance is 4×0.84+0.96+4×0.32=5.60. Positive covariance helps the difference and hurts the sum because coefficient signs matter. This does not imply that separate measurements are automatically cheaper: separating terms requires its own allocation of total shots and may lose simultaneous information. A fair comparison fixes total executions or time and includes basis-change costs.

With total N independent shots split equally between separate estimates, the variance for either signed combination is [8×0.84+2×0.96]/N=8.64/N. Joint measurement gives 3.04/N or 5.60/N, both smaller in this particular comparison. An optimal unequal separate allocation can reduce 8.64/N, but the outcome still depends on coefficients and variances. No universal grouping rule follows from commutation alone.

Commutation and physical measurement compatibility

Qubit-wise commuting Pauli strings can share local basis rotations. More general commuting strings may require an entangling measurement basis. For example, XX and ZZ commute, but measuring each qubit only in X or only in Z does not jointly reveal both. A Bell-basis measurement can access both ideally, at the cost of additional gates. Their covariance is then linked to the product XX·ZZ=−YY, including the sign from Pauli multiplication.

That sign can be checked directly on |Φ+⟩: XX and ZZ both equal +1, while YY equals −1, so −YY equals +1 as required. Ignoring the sign would produce an inconsistent covariance. Errors in the extra measurement circuit can change the actual joint distribution, so the ideal commuting-observable formula must be paired with the implemented measurement model.

Temporal dependence and effective information

For a stationary sequence of scalar shot values with variance σ² and lag-k correlation ρk, the sample-mean variance is σ²[N+2Σk=1 to N−1 (N−k)ρk]/N². Independent-shot formulas recover σ²/N when every nonzero-lag correlation vanishes. For a long sequence with summable correlations, the variance inflation is approximately 1+2Σρk. Calling the raw number of shots the effective sample size can therefore substantially overstate precision.

For an illustrative autoregressive correlation ρk=rᵏ with r=0.8, the long-run inflation is (1+r)/(1−r)=9. One thousand correlated outcomes then carry roughly the mean-estimation information of 111 independent outcomes under this model. This equivalence concerns one estimator and a specified correlation structure; it is not a general conversion for every rare event or nonlinear statistic.

Covariance estimation and calibration terms

A sample covariance matrix from too few repeated settings can be noisy or rank deficient. The true covariance of any real linear combination must be nonnegative, so a proposed covariance matrix must be positive semidefinite. Estimating each pair from incompatible datasets without reconciling uncertainties can violate that constraint. Shrinkage or a structured covariance model can stabilize inference, while introducing assumptions that should be stated.

A shared readout contrast can correlate calibration errors even between independently sampled terms. Total uncertainty includes conditional sampling variance and variation in conditional means. The two Hamiltonian signs and the r = 0.8 temporal example show why observable covariance, grouping, time correlations, and shared calibration need to be accounted for at the estimator level.

Estimating a product from different data is a different statistic

If P and Q are measured on separate independently prepared copies, multiplying their sample means estimates ⟨P⟩⟨Q⟩. It does not estimate ⟨PQ⟩. In the explicit distribution above these values are 0.08 and 0.4, respectively. Their difference, 0.32, is precisely the physical joint-outcome covariance. A calculation that substitutes the product of means for the product observable would erase the effect it is trying to quantify. Conversely, when estimating covariance from a finite shared dataset, the usual sample covariance uses a correction for the fitted means. Dividing the centered sum by N rather than N−1 produces the familiar finite-sample bias under independent identically distributed sampling. These bookkeeping distinctions matter most when substantial cancellations make the final observable variance small compared with the individual term variances.

A reported covariance should also identify its unit: per-shot covariance and covariance of sample means differ by the independent sample count.

A fair control experiment can start with the pairing

Imagine comparing two pulse implementations during a day when a laboratory drifts between warmer and cooler operating conditions. Running all of A first and all of B later confounds implementation with time. Even if the total number of shots is large, a difference between the batches can masquerade as a difference between the methods. The experimental unit must be identified before the error bar is chosen. A matched design asks A and B to encounter similar conditions and records their difference within each match. A disturbance shared by both measurements can then cancel. The relevant variation is the variation of the differences, rather than the sum of two variances treated as unrelated. Pairing earns this benefit only when the correspondence is real. Pairing unrelated records after inspecting their outcomes is not the same experiment. This synthetic model constructs ten matched batches with a shared disturbance and smaller difference noise. Its calculation shows the exact standard-error consequence of retaining or discarding the match. The interpretation depends on what was randomized, what was repeated, and which conditions were shared. A quantum benchmark can have thousands of circuit shots while still having very few independent calibration batches.

Model: d_i = B_i - A_i; mean difference = sum(d_i)/n; SE_paired = sample_SD(d)/sqrt(n); SE_unpaired = sqrt(sample_Var(A)/n + sample_Var(B)/n) Assumptions: Each pair shares the declared disturbance. Difference-noise values are constructed, not sampled from a fitted distribution. The sample standard deviation uses denominator n - 1.

The variance ratio is 24 in this constructed batch. Matching is useful because the common disturbance is genuinely shared. These ten deliberately chosen observations do not validate a population distribution or establish a significance level.

Limitations: A narrow paired interval does not correct systematic bias. A significance test would additionally need a justified sampling model.

Specified synthetic inputs
QuantityValue
Common disturbance scale0.5
Difference noise scale0.5
True shift1.2
Response baseline50
Shared disturbance pattern-3,-2,0,2,3,1,-1,4,-4,0
Difference-noise pattern-1,0,1,0,-1,1,0,1,-1,0
Calculated baseline results · Approximate values use up to 6 significant digits.
Calculated quantitySynthetic result
Batch pairs10
Mean B minus A1.2
Paired standard error0.129099
Unpaired standard error0.632456
Unpaired / paired variance24
All ten matched synthetic observations · Approximate values use up to 6 significant digits.
PairABB − A
148.549.20.7
24950.21.2
35051.71.7
45152.21.2
551.552.20.7
650.552.21.7
749.550.71.2
85253.71.7
94848.70.7
105051.21.2

Correlated measurements can call for an unexpected weight

Two instruments can agree because both see the same disturbance. Agreement then contains less independent information than it appears to. Conversely, carefully combining correlated signals can sometimes cancel a disturbance. The deciding object is the covariance matrix, which records how the errors move together as well as how large each error is. For two unbiased estimates, any weights that sum to one preserve the common mean. The variance is a quadratic function of one remaining weight. Minimizing it can produce an ordinary weighted average or a coefficient outside the interval from zero to one. A negative weight subtracts a correlated contribution; it is not a negative probability. Such cancellation also makes the answer more dependent on the validity of the error model. The cases compare three choices: equal weights, an independence-based weighting, and a covariance-aware weighting. All three are evaluated using the same actual covariance. That last step matters: an algorithm should not be rewarded by calculating its uncertainty under the very assumption being questioned. Varying the correlation while keeping both individual uncertainties fixed isolates the role of shared noise.

Model: Var(wA+(1-w)B) = w² v_A + (1-w)² v_B + 2w(1-w)c; w* = (v_B-c)/(v_A+v_B-2c); c = rho × s_A × s_B Assumptions: Both estimates are unbiased for the same quantity. The covariance matrix is positive definite in the tested regimes. Weights are chosen from known uncertainty inputs, not from favorable observed outcomes.

Both weights lie between zero and one in this regime. The estimate is unbiased only because both inputs were assumed unbiased and the weights sum to one. A gain error or wrong covariance can reverse this result.

Limitations: Negative weights can amplify calibration mistakes. A shared offset is bias and does not disappear because a variance is small.

Specified synthetic inputs
QuantityValue
Sensor A standard uncertainty1
Sensor B standard uncertainty1.8
Correlation-0.3
Calculated baseline results · Approximate values use up to 6 significant digits.
Calculated quantitySynthetic result
Optimal A weight0.710526
Optimal B weight0.289474
Combined standard uncertainty0.744453
Equal-weight uncertainty0.888819
Ignore-correlation weight, evaluated correctly0.754658

Not every measurement deserves the same weight

Two synthetic independent unbiased observations estimate the same quantity. Their standard deviations are known and fixed. Under those assumptions, inverse-variance weighting gives more influence to the less uncertain observation. This is a scalar educational example, not a reproduction of the temporal-mode method in the homodyne paper. Real correlated measurement data require an appropriate covariance treatment and independent calibration.

Model: wᵢ = 1 / sᵢ²; estimate = Σ(wᵢxᵢ) / Σwᵢ; SD = √(1 / Σwᵢ) The smaller uncertainty does not establish that the detector produced less physical noise. It reflects how the available information was combined under the assumed model. An unmodelled bias or mistaken uncertainty estimate can undermine the result. Selecting weights after looking for a favourable answer can also create a misleading comparison. Calibration and evaluation roles should remain separate.

The observations and standard deviations are synthetic, not measured voltages from the cited experiment.

Synthetic example results
EstimatorEstimateSD under assumptions
Inverse variance10.40.894427
Equal average111.118034

Shared noise survives averaging

Two readings have the same standard deviation s and correlation rho. The standard deviation of their average is s sqrt((1+rho)/2). This is a two-variable covariance calculation, not a universal model of every detector. The example holds the individual uncertainty fixed and changes only correlation. It shows why the word independent matters in an averaging claim.

Model: SD of the average = s × √((1 + ρ) / 2), for two equal-SD readings The calculation does not change the physical source of the noise. It changes what follows from the assumed joint statistics. A real experiment needs evidence for its covariance model and should test whether that model remains stable. A correlation estimated from the same data used to celebrate an improvement may require a separate validation step.

The formula covers two specified readings. A longer time series needs its own correlation model.

Synthetic example results
CorrelationAverage SD
00.707107
0.50.866025
0.90.974679
11

Sources

  • Thomas Lubinski et al. · · Research paper · Preprint recorded · arXiv
    Verification scope

    Citation identity checked ·

    Preprint timestamp; journal article 2023. Workload and timing boundaries matter.

  • Steven T. Flammia; Yi-Kai Liu · · Research paper · Preprint recorded · arXiv
    Verification scope

    Recorded source check ·

    Pure-target Pauli importance sampling and distinction between sampled settings and finite measurement repetitions checked.

    Selected access as stated; no full proof replication, experimental replication, or present performance ranking.

  • Reference · itl.nist.gov
    Verification scope

    Citation identity checked ·

    This check establishes the source title and link. Scientific claim review is separate.

  • Reference · physics.nist.gov
    Verification scope

    Citation identity checked ·

    This check establishes the source title and link. Scientific claim review is separate.

  • Reference · arXiv
    Verification scope

    Citation identity checked ·

    This check establishes the source title and link. Scientific claim review is separate.

  • · Reference · nature.com
    Verification scope

    Citation identity checked ·

    This check establishes the source title and link. Scientific claim review is separate.