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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Probability distributions and finite-shot uncertainty

Quantum measurement probabilities describe an ideal distribution, while finite-shot data fluctuate statistically around that distribution under a sampling model.

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

Definition and importance

A probability distribution assigns nonnegative numbers summing to one to mutually exclusive outcomes. Quantum mechanics supplies such distributions through the Born rule. Repeating a preparation and measurement produces samples. The observed frequency is an estimator, not the exact probability itself.

The common independent-identically-distributed model assumes stable preparation and measurement across shots. Drift, memory, and correlated noise can violate it. A large shot count does not automatically remove systematic bias.

Fully solved binomial example

Suppose an ideal outcome has probability p=0.3 and N=1000 independent shots are collected. The expected count is Np=300 and count variance is Np(1-p)=210. The standard deviation is sqrt(210), approximately 14.491. The frequency standard deviation is sqrt[p(1-p)/N], approximately 0.014491.

A normal approximation gives a rough 95 percent interval around the true mean frequency of 0.3 plus or minus 1.96 times 0.014491, or approximately 0.2716 to 0.3284. This is a sampling illustration under a known p, not a universal confidence interval for an unknown parameter. Near zero or one, or with small N, a naive normal interval can be poor.

Expectations of Pauli measurements

If a Pauli observable returns plus or minus one with p_+=(1+m)/2, its mean is m and single-shot variance is 1-m^2. The sample-mean variance under independence is (1-m^2)/N. At m=0, 10,000 shots give standard error 0.01. Estimating many observables requires distributing shots and accounting for covariance when measurements are shared.

Limits and misconception controls

A histogram with no observed errors does not prove the true error probability is zero. More decimal places in a reported mean do not create more information. Postselection changes the sampled distribution and must report acceptance rates. Error bars should identify whether they represent standard deviation, standard error, a confidence interval, or a Bayesian credible interval.

Several outcome counts fluctuate together

For one measurement with M mutually exclusive outcomes, define the indicator I_i to be one when outcome i occurs and zero otherwise. Its mean is p_i. For distinct outcomes i and j in the same shot, I_iI_j is always zero, so their covariance is −p_ip_j. For the same outcome, the variance is p_i(1−p_i).

With N independent identically distributed shots, the frequency f_i is the average of its indicators. Its covariance matrix is therefore [diag(p)−ppᵀ]/N. The off-diagonal terms are not optional: all frequencies sum to one, so an upward fluctuation in one must be compensated elsewhere. The vector of all ones is a null vector of the covariance matrix.

For two-qubit computational outcomes ordered 00,01,10,11, take probabilities (0.4,0.3,0.2,0.1). With N = 1000, the expected counts are (400,300,200,100). These are model expectations, not fabricated observations. The covariance of the 00 and 01 frequencies is −0.12/1000, and their variances are 0.24/1000 and 0.21/1000. Four independent binomial simulations would fail to enforce the fixed total count.

Shared samples change uncertainty propagation

Assign A = +1 or −1 according to the first measured bit's Z value and B similarly for the second. The distribution above gives means 0.4 and 0.2. Their product has mean 0.4−0.3−0.2+0.1 = zero, so the single-shot covariance is −0.08.

The variance of the sample estimate of A+B is [0.84+0.96+2(−0.08)]/N = 1.64/N. It can also be computed directly: A+B takes values two, zero, zero, and minus two, giving mean 0.6 and second moment two. Subtracting the squared mean gives the same variance 1.64.

Ignoring the covariance would give 1.8/N instead. The issue is not a new quantum uncertainty relation; it is classical uncertainty propagation for multiple quantities extracted from the same records. If separate independent data sets were used, the covariance term would change, together with the sampling arrangement and total resource accounting.

Zero observed events still permit a nonzero probability

Suppose an event with fixed probability p is absent in all N independent trials. The probability of that record is (1−p)ᴺ. A one-sided upper confidence limit obtained by inverting the binomial tail satisfies (1−p_U)ᴺ = α, hence p_U = 1−α^(1/N).

For N = 100 and α = 0.05, the upper limit is approximately 0.0295131. The observed frequency zero therefore does not establish zero underlying probability. The approximation p_U ≈ −log α/N gives about 0.0299573 and explains the familiar scale of roughly three events divided by the sample size at this confidence level.

The confidence statement concerns the coverage of a rule applied across repeated samples under the assumed model. It does not assign a posterior probability distribution to the fixed unknown p. A Bayesian upper credible bound requires a prior and can give a different number. Both approaches depend on stable sampling and an adequate description of which event is being counted.

Postselection makes the usable sample size random

Let each of N = 500 shots be accepted with probability q = 0.2. The acceptance count K has mean one hundred and variance eighty. Conditional on acceptance, suppose the outcome of interest has probability p = 0.7. Its unconditional probability per attempted shot is qp = 0.14, so its expected count over all attempts is seventy.

Given that K = 100 accepted shots were obtained, their positive count follows a binomial distribution with parameter 0.7 under the stated independent sampling model. The conditional frequency has standard deviation √(0.21/100), approximately 0.045826. Using all five hundred attempted shots in that denominator would instead give approximately 0.020494, understating the uncertainty of the conditional frequency.

The fraction positive among all attempts estimates qp, while the fraction positive among accepted attempts estimates p. They answer different questions. If K is zero, the latter estimator is undefined; assigning it value zero would fabricate a conditional frequency for an event that supplied no accepted sample. Acceptance statistics and conditional statistics should therefore be retained together.

A conservative simultaneous bound needs no independent outcome bins

Chebyshev's inequality bounds the probability that one frequency differs from its true probability by at least ε by its variance divided by ε². Applying the union bound across the M outcomes gives a simultaneous failure probability at most [1−Σ_i p_i²]/(Nε²). The outcome bins need not be mutually independent for this union bound.

For the four-outcome model, the squared probabilities sum to 0.3. At N = 1000 and ε = 0.1, the bound is 0.07. Thus all four frequency errors are below 0.1 with probability at least 0.93 under the model. This is a deliberately conservative analytic guarantee, not an exact coverage calculation or the sharpest available interval construction.

The covariance matrix accounts for dependence between outcome bins. Attempted and accepted shots use different denominators, and the zero-event bound changes with N. These are sampling calculations. Confidence coverage and statistical variation do not account for acceptance loss or systematic errors.

One campaign can ask enough questions to manufacture a surprise

A benchmark campaign may compare dozens of circuits, calibrations, devices and parameter choices. Even if every individual statistical test has a small false-positive probability, the chance of at least one apparent surprise can become large. Selecting the most flattering comparison after the search conceals the size of that campaign. This worked model assumes all tested null hypotheses are true and computes the exact independent-test probability of at least one false alert. It then introduces a simple family-wide bound by dividing the desired total error allowance among the tests. The exact probability uses independence. The union-bound guarantee does not, provided each individual false-positive bound is valid. Keeping those two claims separate is the main mathematical lesson. A correction is not a complete scientific analysis. It can reduce the power to detect a real effect, and it does not repair data leakage, a biased estimator or an inappropriate null model. The number of comparisons therefore belongs in the experiment plan. Predeclared endpoints and a fresh validation set can make the campaign easier to interpret than a long list of selected p-values.

Model: P(at least one false alert) = 1-(1-alpha)^m under independence; Expected number of false alerts = m alpha; Bonferroni per-test cutoff = desired_family_bound/m Assumptions: Every null hypothesis is true in this scenario. Exact family probabilities use independent tests. Each individual cutoff is a valid false-positive probability bound.

At least one false alert occurs with probability 18.209306% under the independent all-null scenario. The correction is a declared campaign rule, not a substitute for replication or a complete analysis of statistical power. A laboratory must count the comparisons actually searched, including hidden tuning decisions.

Limitations: Repeated tuning and unpublished comparisons also belong to the search. A corrected alert is not the probability that a claim is true.

Specified synthetic inputs
QuantityValue
Tests in campaign20
Per-test false-positive probability0.01
Desired family upper bound0.05
Calculated baseline results · Approximate values use up to 6 significant digits.
Calculated quantitySynthetic result
Expected false alerts0.2
Chance of one or more false alerts0.182093
Bonferroni per-test cutoff0.0025
Bonferroni family upper bound0.05
Independent-test family probability after correction0.0488301

An outlying batch changes the question behind an average

A single disturbed acquisition can dominate the arithmetic mean of a small batch. That influence is sometimes a reason to inspect equipment and repeat the acquisition; it is not automatic permission to delete the inconvenient record. An analysis rule should say what kind of contamination it addresses and which physical quantity remains the target after the rule is applied. The constructed record compares an arithmetic mean, a median and a precisely defined trimmed mean. The extra disturbance is visible and synthetic, so its influence can be calculated exactly. The exercise does not argue that the median is universally superior. For an observable whose physical definition is an expectation value, replacing the mean with a different statistic can change the estimand rather than merely improve the estimate. The explicitly supplied observations show how changing one point affects each summary. A real contamination model needs independent evidence. Documenting saturation, a known synchronization fault or a predetermined rejection rule is stronger than choosing whichever summary makes a desired conclusion look stable.

Model: Mean = sum(x_i)/n; Median = the middle ordered observation for odd n; One-per-tail trimmed mean averages x_(2) through x_(n-1) Assumptions: Eleven observations are explicitly constructed. The disturbance is added to one known record. No sampling distribution or confidence interval is inferred.

The disturbance shifts the mean by 0.454545 from the stipulated target. The comparison demonstrates influence, not a claim that a median estimates every physical observable correctly. For an expectation value defined as a mean, robust summaries can change the estimand and must be justified by a contamination model.

Limitations: Discarding values after seeing an answer can bias the analysis. A robust location statistic need not estimate a quantum expectation value.

Specified synthetic inputs
QuantityValue
Ordinary noise scale1
Target level10
Single-batch disturbance5
Ordinary noise pattern-2,-1,0,1,2,-1,0,1,0,-2,2
Disturbed observation, one-based11
Observations trimmed from each tail1
Calculated baseline results · Approximate values use up to 6 significant digits.
Calculated quantitySynthetic result
Arithmetic mean10.4545
Median10
One-point-per-tail trimmed mean10
Mean minus target0.454545
Median minus target0
Trimmed mean minus target0
All eleven constructed observations
BatchResponse
18
29
310
411
512
69
710
811
910
108
1117

More shots change the estimate, not the channel

Independent Bernoulli trials with known p = 0.18 separate count and fraction variation.

Model: Mean count = Np; count SD = √(Np(1 − p)); fraction SD = √(p(1 − p)/N).

Assumptions: Independent identically distributed trials with fixed known p. No bias, drift or correlations. Count and fraction have different units.

Count variation grows with N while fraction variation shrinks. These model standard deviations are not a guarantee for every sample.

No claim that real-device shots meet these assumptions.

Synthetic example results
Shots NExpected onesCount standard deviationFraction standard deviation
509.02.7170.0543
20036.05.4330.0272
1,000180.012.1490.0121
10,0001,800.038.4190.0038

Minimum repeated-trial count under a stated model

For independent trials with constant known success probability p, the probability of at least one success after n trials is 1−(1−p)^n. For 0<p<1 and a target 0<c<1, the minimum integer is the ceiling of ln(1−c)/ln(1−p), with the neighboring integer checked when numerical rounding matters. At p=0.01 and c=0.95, 299 trials pass the target whereas 298 do not. A zero target needs no trials; p=0 cannot reach a positive target; p=1 reaches any positive attainable target in one trial. For p<1, certainty c=1 requires an unbounded number of trials. This is a model probability, not a confidence level inferred from data.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 1: Mathematical preliminaries
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Foundations II: Measurement and Evolution
    John Preskill · Lecture or course notes · preskill.caltech.edu

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

  • NIST/SEMATECH · Scientific reference · itl.nist.gov
    Verification scope

    7.2.4.1. Confidence intervals — NIST/SEMATECH e-Handbook of Statistical Methods
    NIST/SEMATECH · Scientific reference · itl.nist.gov

    Selected text checked ·

    Full section inspected for binomial-tail inversion, exact versus approximate proportion intervals, and one-sided versus two-sided coverage.

    Only the statistical construction is used. The zero-count one-sided upper endpoint is derived independently with tail probability alpha, rather than importing the source two-sided alpha/2 convention. The multinomial covariance, shared-observable variance and postselection examples are original model calculations. No publication date is inferred from access time.

    NIST: confidence intervals for proportions
    Reference · itl.nist.gov

    Citation identity checked ·

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