Overview
Quantum mechanics predicts probabilities, and every experiment or simulation estimates them from finitely many samples. Probability theory supplies two things that quantum science uses everywhere. The first is the language: outcomes, events, random variables, expectations and independence, axiomatised by Kolmogorov. The second is a small toolkit of tail bounds, inequalities that say how unlikely it is for an average of random samples to be far from its mean. These bounds decide how many shots a variational algorithm needs, how many Monte Carlo trials certify a logical error rate, why random codes and random circuits behave typically, and how fault-tolerance proofs control the probability of many simultaneous faults.
This page states the definitions and the bounds with proofs. Standard references are Durrett for measure-theoretic probability and Mitzenmacher and Upfal for the tail bounds as used in algorithms. Entropy and channels are in classical information theory.
Intuition
If you flip a fair coin 100 times you expect about 50 heads. Probability theory makes "about" precise in increasingly strong ways. Knowing only the mean, Markov's inequality says a nonnegative quantity is rarely much larger than its mean. Knowing also the variance, Chebyshev's inequality says deviations of many standard deviations are rare, and the standard deviation of an average shrinks like : that is the law of large numbers and the familiar shot-noise scaling. Knowing that the samples are independent and bounded gives far more: the probability of a large deviation falls exponentially in the number of samples (Hoeffding and Chernoff). That exponential is why a few thousand shots already pin down an expectation value to a percent with overwhelming confidence, and why random constructions in coding theory succeed with probability exponentially close to one.
The opposite question, whether a random quantity is not too small, is answered by the Paley–Zygmund inequality, which needs only the first two moments.
Mathematical Definitions
A probability space is a triple where is a set (the outcomes), is a -algebra of subsets of (the events: it contains and is closed under complements and countable unions), and satisfies and for every sequence of pairwise disjoint events. When is finite or countable one may take to be all subsets and for a probability vector .
A random variable is a function that is measurable, meaning for every ; its distribution is the measure on Borel sets. Its expectation is the integral , defined when (for discrete , ), and its variance is .
Events are independent if for every ; random variables are independent if the events are independent for all Borel sets . For the conditional probability is .
Two consequences of the axioms are used constantly: expectation is linear, , with no independence needed; and the union bound holds for any countable family of events. For independent and with finite variances, .
The axioms are those of Kolmogorov; a modern treatment is chapter 1 of Durrett. In quantum mechanics the outcome probabilities of a measurement on a fixed state, given by the Born rule, form such a space; the difference from classical probability lies in incompatible measurements, which have no common outcome space.
For probability distributions and on a countable set , the total variation distance is
It is a metric with values in , and it has three equivalent descriptions:
- Events. , attained at . Indeed , so the positive part equals the negative part and each is half the sum, and any other collects less of the positive part or some of the negative part.
- Couplings. over all pairs of random variables on a common probability space with and (Proposition 4.7 of Levin and Peres).
- Testing. Given one sample from or from with prior probability each, the largest achievable probability of guessing correctly is , achieved by guessing exactly on .
Applying any stochastic map (a channel, or a function of the sample) to both distributions cannot increase . The quantum counterpart is the trace distance, which equals the largest total variation distance between the outcome distributions of a single measurement applied to the two states (section 9.2 of Nielsen and Chuang).
- Distributions on a finite or countable set; the same statements hold for general measures with sums replaced by integrals against a dominating measure.
Theorems
Moment bounds
Markov. If and , then
Proof. pointwise; take expectations.
More generally, for any nondecreasing with , . The choice gives the Chernoff bound.
Chebyshev. If , then for every
Proof. Apply Markov to at level .
Both bounds are tight in general: for Markov, with probability and otherwise; for Chebyshev, with probability each and otherwise (when ). See section 3.3 of Mitzenmacher and Upfal or chapter 1 of Durrett.
- Markov needs X nonnegative with finite mean; Chebyshev needs a finite variance.
Let be pairwise uncorrelated random variables with and , and let . Then for every
Proof. Uncorrelatedness gives ; apply Chebyshev's inequality.
The rate is what the argument gives; for bounded variables the Hoeffding inequality improves the dependence on the failure probability from polynomial to exponential. For i.i.d. variables with only convergence in probability still holds, and the strong law gives almost-sure convergence; both are in chapter 2 of Durrett. The law is the reason that repeating a quantum measurement and averaging estimates an expectation value: each shot is an independent sample of the outcome distribution.
- The variables are pairwise uncorrelated with a common mean and a common finite variance; independence and identical distribution are sufficient.
- The finite-variance hypothesis can be dropped for i.i.d. variables with a finite mean, but then no rate follows from this argument.
Exponential concentration
Let be independent random variables with almost surely, and let . Then for every
the same bound holds for , and so is at most twice the right-hand side.
For the empirical mean of i.i.d. samples in this reads , so
samples give accuracy with probability at least . This is Theorem 2 of Hoeffding. The bound charges the worst-case variance ; when the actual variance is much smaller, as for rare events, the relative-entropy Chernoff bound is much sharper.
- The variables are independent; correlations can invalidate the bound.
- Each variable takes values in a known bounded interval [a_i, b_i] almost surely.
Proof · Proof of Hoeffding's inequality
Hoeffding's lemma. If and , then for all .
If then and there is nothing to prove, so let ; then because . By convexity of , for ,
Taking expectations and using , . Put and ; then and the right side equals with
Now , so , and with , so . By Taylor's theorem with remainder, .
The inequality. Let , which is centred and takes values in an interval of length . For , by Markov's inequality applied to and independence,
The exponent is minimised at , where it equals . The lower tail follows by applying this to , and the two-sided bound by the union bound. This is the argument of Hoeffding.
1. General form. Let be i.i.d. copies of with empirical mean , and let . Then
2. Relative-entropy form for 0/1 variables. Let and , and suppose
which holds in particular if the are independent with . Then
the relative entropy between Bernoulli distributions with parameters and in nats ( is the same quantity in bits). Applied to the same bound controls the lower tail of independent variables, since .
Part 1 is the exponential-moment method of Chernoff; for i.i.d. variables the exponent is the best possible rate (Cramér's theorem). Part 2 for independent variables is in Hoeffding; the extension to the correlated hypothesis is due to Panconesi and Srinivasan and is stated in this form by Impagliazzo and Kabanets. The correlated version is the form needed for local stochastic noise in fault tolerance, where the probability that a given set of locations is faulty decays geometrically in its size but faults need not be independent. Its quantum counterpart for distinguishing two states is the quantum Chernoff bound.
- Part 1 needs i.i.d. samples whose moment generating function is finite for the s used.
- Part 2 needs 0/1-valued variables with the stated bound on joint occurrences, which independence with means at most p implies; 0 < p <= q <= 1.
- Natural logarithms in the exponent; the relative entropy in bits is the nats value divided by ln 2.
Proof · Proof of the Chernoff bound
Part 1. For , by Markov's inequality applied to the nonnegative variable and independence,
This holds for every ; take the infimum of the right-hand side.
Part 2. Fix . Because , . Expanding the product over and using ,
where the inequality uses the hypothesis and . Markov's inequality gives
If , choose , which is because . Then and
If the event is , whose probability is at most by the hypothesis with , and . For independent with the hypothesis holds because the joint probability factors. The lower-tail identity is immediate from the formula. This is the standard exponential-moment argument, written out in full; Impagliazzo and Kabanets give an alternative, combinatorial proof of part 2.
The two tails are and for ; adding them gives the formula (Theorems 4.4 and 4.5 and Corollary 4.6 of Mitzenmacher and Upfal). They follow from the Chernoff bound by bounding the exponent from below.
For i.i.d. Bernoulli() samples with empirical frequency , and the formula becomes . So
samples estimate within relative error with probability at least . The cost scales as : the expected number of observed events must be about , whatever is. The additive Hoeffding bound with tolerance would instead ask for samples, a factor of order more, because it charges the worst-case variance instead of . This is the bound to use when budgeting simulations of small logical error rates.
- X is a sum of independent 0/1 random variables and mu is its expectation (for n i.i.d. Bernoulli(p) samples, mu = np).
- The relative tolerance satisfies 0 < delta <= 1.
Anticoncentration
Proof. Let . Split the mean on and its complement and apply the Cauchy–Schwarz inequality on :
Rearranging, ; square both sides.
Where Markov and Chebyshev bound the probability that a variable is large, this bounds the probability that it is not small, using only the ratio of the first two moments. The inequality is due to Paley and Zygmund. It gives the anticoncentration of 2-designs, the input to hardness arguments for random circuit sampling.
- Z is a nonnegative random variable with 0 < E[Z^2] < infinity.
Worked Examples
Shots to estimate a Pauli expectation value
Measuring a Pauli observable on copies of a state gives outcomes whose mean is . Each shot lies in , so and the Hoeffding bound gives . For accuracy and failure probability ,
shots suffice, that is after rounding up. Chebyshev with the worst-case variance would ask for : the exponential bound saves a factor of almost ten here, and the saving grows as shrinks, since Hoeffding depends on rather than . If observables must all be accurate at once, the union bound replaces by , which costs only an additive .
Shots to estimate a small logical error rate
Suppose a decoder simulation has logical error probability per shot and we want relative error with confidence (). The multiplicative Chernoff bound requires
shots, which corresponds to about observed failures. The additive Hoeffding bound with tolerance would ask for shots, five orders of magnitude more. Relative-error questions about rare events must be budgeted with the Chernoff form.
Total variation of two coins
For and , , so the best single-sample guess between the two coins is correct with probability . With independent tosses the error probability of the optimal test decays exponentially in , with exponent given by the Chernoff information; its quantum version is the quantum Chernoff bound.
Applications
- Measurement statistics. Outcome probabilities of a POVM form a probability distribution; estimating them is a sampling problem (measurement and probability).
- Fault tolerance. Local stochastic noise is an assumption that joint fault probabilities decay geometrically, exactly the hypothesis of the correlated Chernoff bound; counting arguments of this type underlie the threshold theorem.
- Random codes. The Gilbert–Varshamov bound and random-coding proofs of the noisy-channel coding theorem bound the probability that a random code is bad by a union bound over codewords.
- Random circuits. Anticoncentration of 2-designs follows from the Paley–Zygmund inequality.
- Distinguishability. Total variation distance is the classical restriction of the trace distance between quantum states.
Limitations and Common Pitfalls
- Independence is an assumption, not a default. Hoeffding and the independent form of Chernoff fail for correlated samples, such as consecutive rounds of a drifting experiment or shots that share a calibration. Use the correlated hypothesis of the Chernoff bound, martingale versions, or blocking.
- Bounds are not confidence intervals for adaptively chosen quantities. Selecting the best of many estimates and then quoting its Hoeffding interval ignores the selection; apply a union bound over everything examined.
- Additive versus relative error. An additive bound is meaningless for probabilities much smaller than ; small rates need the multiplicative form.
- Range, not variance. Hoeffding uses only the range of each variable; when the variance is much smaller than the squared range, Bernstein-type or Chernoff bounds are sharper. Conversely, unbounded or heavy-tailed estimators (for instance, single snapshots of randomized-measurement protocols) do not satisfy Hoeffding's hypotheses at all; median-of-means estimators are the usual remedy.
- Logarithms. The Chernoff exponent is in nats; quoting it as a relative entropy in bits changes the base of the exponential to .
- Quantum outcomes need a fixed measurement. Incompatible quantum measurements have no joint distribution in one probability space; classical probability applies to the outcomes of one chosen measurement at a time, which is the content of Bell nonlocality.