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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Sampling problems in quantum computing

Computational tasks defined by producing samples from a specified probability distribution rather than returning one decision or numerical value.

Also called quantum sampling

Edition released Coverage: Overview · Technical
On this page

Definition and significance

A sampling task asks a device to draw outputs with a target distribution. Quantum circuits naturally produce such distributions through measurement. Sampling hardness is different from solving a useful optimization problem or computing every output probability.

Mechanism and mathematical treatment

For distributions p and q on finite outcomes, total variation distance is (1/2)sum_x |p(x)-q(x)|. It measures the largest difference in probability assigned to any event. Approximate-sampling claims must specify a distance criterion, a noise model and whether the computational argument applies to that approximation.

Fully worked reference example

Let p=(1/2,1/2,0,0) and q=(1/2,0,1/2,0). Their total variation distance is (1/2)(0+1/2+1/2+0)=1/2. Both have two equally likely outcomes, yet they place probability on different labels. Matching entropy or histogram shape alone therefore does not establish matching distributions.

Limitations and common misconceptions

A benchmark statistic can be compatible with several different distributions. Verification may become difficult when exact probabilities are expensive to compute. Sampling advantage should not be described as evidence that the device solves unrelated business problems.

Scientific relationships

Sampling distributions and deciding languages are different output tasks.

Identical low-order marginals can hide a large sampling error

On three bits, let P be uniform over the even-parity strings 000,011,101,110. Let Q be uniform over all eight strings. Every individual bit is fair under both distributions. Every pair of bits is also uniform under both. Yet the event of even total parity has probability one under P and one-half under Q, so their total variation distance is at least one-half.

Direct calculation gives exactly one-half: each even string differs by 1/4-1/8=1/8, and each odd string differs by 0-1/8=-1/8. Half the sum of eight absolute differences is 1/2. The example demonstrates that matching all one- and two-bit marginals does not certify the full three-bit distribution. A benchmark restricted to those marginals would miss the parity structure entirely.

The same construction works on n bits: uniform even parity versus fully uniform has total variation distance 1/2, while every proper subset of fewer than n bits has the same uniform marginal. Higher-order correlations can therefore carry the entire discrepancy. The output labels and the tested events matter, not only entropy or local frequencies.

Per-outcome additive accuracy can be misleading

In the n-bit parity example, the absolute difference at each individual string is only 2^(-n). That becomes exponentially small even though the total variation distance stays 1/2. A guarantee of small additive error for each probability does not imply a useful global sampling guarantee unless its dependence on the number of outcomes is included.

In general, if every one of N outcome probabilities differs by at most epsilon, then total variation is at most N epsilon/2. This follows directly from summing the absolute errors. To guarantee a fixed total variation through that route, epsilon must shrink proportionally to 1/N. A claim that all probabilities are approximated to a fixed absolute tolerance can become nearly vacuous when individual probabilities themselves are exponentially small.

Multiplicative probability approximation is another task, with difficulties near zero probabilities. Approximate sampling requires drawing from a distribution close in a specified metric. Strong simulation requires computing probabilities or amplitudes to a stated accuracy. Neither should be assumed to follow from the other without a reduction and its resource cost.

Observable errors and event probabilities

For any event A, |P(A)-Q(A)| is at most the total variation distance. For a real function f with |f| at most one, the expectation difference is at most 2 times that distance, since |sum_x f(x)(P(x)-Q(x))| is bounded by the sum of absolute differences. The factor two can be attained by a sign function that separates positive and negative probability discrepancies.

In the parity example, choose f(x)=(-1)^(x0+x1+x2). Its expectation is one under P and zero under Q, a difference of one, matching 2 times the distance 1/2. This connects the distribution metric to a concrete measurable correlation. It also shows that testing only one chosen observable can certify at most that observable's agreement unless additional assumptions constrain the distribution.

For a four-outcome numerical example, P=(1/2,1/4,1/8,1/8) and Q=(3/8,3/8,1/8,1/8) have distance 1/8. The event consisting only of the first outcome attains that difference. Their discrepancy is localized, unlike the parity example where it is spread across every label. The same scalar distance can describe different error patterns.

Empirical histograms and output support

An empirical histogram from S samples has support on at most S distinct outcomes. If the true distribution is uniform on N labels and S<N, the event consisting of unobserved labels has true probability at least 1-S/N and empirical probability zero. Therefore the histogram's total variation distance from the true distribution is at least 1-S/N. A small sample cannot reconstruct an enormous uniform distribution as a close explicit histogram.

This does not prevent a compact sampler from representing the uniform distribution exactly through a short generative rule. It distinguishes learning an explicit full histogram from producing new samples. A quantum circuit can likewise define a large distribution compactly while a small observed sample reveals only limited information about it. Verification methods must exploit a justified structure or test a narrower property.

Noise models and computational-hardness conjectures must be attached to the same approximate distribution being discussed. A theorem about exact ideal sampling does not automatically certify the difficulty of a noisy distribution, and a favorable benchmark statistic does not establish closeness in total variation by itself. Those are separate mathematical implications requiring evidence.

Sources

  • Scott Aaronson; Alex Arkhipov · · Research paper · Publication status unspecified · toc.cs.uchicago.edu
    Verification scope

    Selected source text checked ·

    Bibliographic identity and abstract or official summary checked; full-paper theorem-by-theorem review remains pending. Original worked examples in the corpus are independent derivations, not reproduced source examples.