State-preparation and measurement errors
State-preparation and measurement errors are imperfections in preparing reference inputs and assigning outcomes, often grouped under the abbreviation SPAM.
Also called SPAM
On this page
Explanation and significance
They can obscure gate characterization because a wrong final outcome may originate before, during or after the gate. A protocol must separate these contributions or clearly state what combination it estimates. Calling all observed disagreement gate error is generally unjustified.
Mechanism and mathematical structure
For a prepared state rho, channel E and measurement effect M, outcome probability is Tr[M E(rho)]. An observed probability alone does not identify which of rho, E or M is wrong. Different experimental designs introduce extra constraints, nuisance parameters or self-consistent models to resolve part of this ambiguity.
Fully worked reference example
Suppose a nominal |0> preparation actually gives |1> with probability 0.02. A detector reports the wrong bit with symmetric probability 0.03. With no gate error, the observed probability of reporting 1 is 0.98×0.03+0.02×0.97=0.0488. Interpreting the 4.88% disagreement as an identity-gate error would be wrong. The preparation and measurement errors partly cancel on some shots and compound on others.
Limits and misconceptions
Randomized benchmarking reduces sensitivity to fixed SPAM under its assumptions but does not magically characterize preparation or measurement. Drift and gate-dependent measurement effects can violate simple separation. Report reference preparation quality and assignment asymmetry where relevant.
Scientific relationships
Is a characterization concern. Affects tomography and benchmarking. Is distinct from decoherence during a gate.
Preparation and assignment can be observationally ambiguous
Let p be the true probability of state |1> before readout. Define a=P(report 1|0) and b=P(report 0|1). The observed probability is r=a+(1−a−b)p. Without independent information about p, observing r cannot determine a and b. Reference preparations labeled zero and one are physical operations with their own error, not automatically exact standards.
Suppose two nominal reference preparations give observed probabilities r0=0.05 and r1=0.94. If they are ideal |0> and |1>, the inferred assignment errors are a=0.05 and b=0.06. If their actual excited probabilities are instead p0=0.02 and p1=0.98, the same data imply contrast 1−a−b=(0.94−0.05)/0.96=0.927083, a≈0.0314583, and b≈0.0414583. Both physical models reproduce the two observed frequencies. More data of the same insufficient type do not resolve the attribution.
A Bloch-vector version of the ambiguity
For a preparation with Z polarization z and a symmetric detector of contrast m, the probability of reporting plus is (1+mz)/2. Only the product mz is observed. Preparation polarization 0.9 with detector contrast 0.8 gives the same probability 0.86 as polarization 0.8 with contrast 0.9. Additional trusted operations or self-consistent constraints are needed to separate the two factors.
There is also a reference-frame freedom: conjugating all preparations, gates, and measurement effects by the same unitary leaves every experimental probability unchanged. A self-consistent characterization must distinguish such representational freedom from experimentally meaningful error. An apparent discrepancy relative to an ideal gate can depend on how that reference is chosen, even while predicted outcome probabilities agree.
Assignment inversion amplifies uncertainty
For the binary model, p=(r−a)/(1−a−b) when the denominator is nonzero. If a and b are treated as known, the standard error in r is magnified by 1/|1−a−b|. Take synthetic a=0.1, b=0.2, r=0.5, and 1,000 independent shots. The inferred p is 0.4/0.7≈0.571429. The binomial standard error of r is sqrt(0.25/1000)≈0.0158114, and the inferred p standard error is approximately 0.0225877.
The larger uncertainty is a cost of undoing a lossy classical observation channel. If calibration estimates of a and b also fluctuate, their uncertainty must be propagated. Derivatives are dp/dr=1/(1−a−b), dp/da=(r+b−1)/(1−a−b)², and dp/db=(r−a)/(1−a−b)². Covariances between estimated quantities can matter. Treating the assignment matrix as exact after a finite calibration produces overly narrow uncertainty estimates.
The binary model has a domain of validity
Population in a leakage level can produce a readout response different from either computational state. A two-by-two assignment matrix may then be insufficient, especially if leaked population depends on circuit length or preceding gates. Correlated multi-qubit measurement also cannot always be represented as a tensor product of independent binary matrices. The appropriate observation model must cover the states that the experiment actually reaches.
A fitted correction can yield negative inferred probabilities when finite data lie outside its calibrated range. This is a symptom of statistical fluctuation or model mismatch, not a negative physical population. Constraining an estimate to the physical interval changes its statistical behavior and can introduce bias. The reporting method should specify how those cases are handled rather than silently clipping values and retaining an incompatible error bar.
What benchmarking can and cannot separate
In an idealized randomized-benchmarking model, fixed preparation and measurement contributions enter nuisance parameters in a survival curve A p^m+B. The decay parameter can then be less sensitive to fixed SPAM than a direct survival probability. This benefit depends on the model: if the measurement response changes with sequence length, drift, leakage, or simultaneous operation, the endpoint parameters need not remain fixed.
An extracted decay constant therefore does not independently certify state preparation or readout. Conversely, poor preparation does not mean every gate in the middle has the same error. Different protocols constrain different combinations of physical processes. The labels attached to reported error rates should follow the observable and assumptions that produced them.
Correlated assignment can preserve a misleading parity
Suppose a two-qubit detector reports both bits flipped with probability 0.02 and otherwise reports them correctly. Each marginal detector has a two-percent error, yet the reported parity is always unchanged. An independent model with the same marginal error predicts a parity error of 2×0.02×0.98=0.0392. Calibrating only single-qubit assignment therefore fails to identify the joint observation channel. Conversely, checking only parity would miss these correlated two-bit errors altogether. A multi-qubit task can be sensitive to individual outcomes, parity, or other functions, so the appropriate calibration must constrain the combinations it uses. This example concerns classical assignment errors and does not assert that the underlying quantum measurement preserved populations or coherence.
Sources
Verification scope
Citation identity checked ·
Average-error interpretation is conditional on protocol and noise assumptions.
Verification scope
Recorded source check ·
Gram-matrix rank, fiducials, germs, gauge freedom and selected goodness-of-fit discussion checked.
Selected primary-text review; no replication of full experimental dataset or current hardware performance claim.