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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum Monte Carlo estimation

Quantum Monte Carlo estimation encodes an expectation into a quantum amplitude and estimates it using coherent operations, potentially improving query dependence on additive error.

Also called amplitude-based expectation estimation

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

Plain explanation

Classical Monte Carlo estimates an average from random samples. Quantum amplitude-estimation methods can reduce the number of coherent oracle uses required for a desired additive precision under a suitable access model. The algorithm needs a reversible preparation of the relevant distribution and function. The phrase Monte Carlo speedup does not mean that arbitrary classical data become free to load.

Mathematical construction

Let probabilities p_i and bounded values f_i in [0,1] be encoded so that A|0> = sum_i sqrt(p_i)|i>(sqrt(1-f_i)|0>+sqrt(f_i)|1>). Measuring the final qubit gives 1 with probability a=sum_i p_i f_i. Amplitude estimation targets a. A and its inverse, or appropriate variants, are resources; their implementation cost must be included.

Solved expectation

Take p=(1/4,3/4) and f=(0,2/3). The success probability is a=(1/4)0+(3/4)(2/3)=1/2. Classical independent Bernoulli sampling of that final flag has variance 1/4 per sample and standard error 1/(2 sqrt(N)). At N=10,000 this is 0.005. Ideal amplitude-estimation query scaling can be proportional to 1/epsilon rather than 1/epsilon squared, but constants, confidence and circuit depth depend on the chosen variant.

Where the comparison can fail

If one coherent query requires a very expensive state preparation, a better asymptotic query count may not yield a faster workflow. Classical variance reduction, quasi-Monte Carlo, analytic integration and learned surrogates can improve the relevant baseline. Heavy tails, truncation and discretization also alter the quantity being estimated.

From a bounded expectation to an amplitude

Let a random variable X take values x_i with probabilities p_i. If L<=f(x_i)<=U and U>L, define g_i=[f(x_i)-L]/(U-L). A unitary construction that prepares sum_i sqrt(p_i)|i>[sqrt(1-g_i)|0>+sqrt(g_i)|1>] has ancilla-one probability a=sum_i p_i g_i. The desired expectation is E[f]=L+(U-L)a. If the amplitude estimate has absolute error at most epsilon_a, the corresponding expectation error is at most (U-L)epsilon_a. The chosen range therefore directly affects the required precision.

For values f=(-2,1,4) and probabilities (1/4,1/2,1/4), choose L=-2 and U=4. The normalized values are (0,1/2,1), so a=1/2 and E[f]=-2+6(1/2)=1. An amplitude error of 0.01 becomes an expectation error of 0.06. If a loose bound U-L=60 is used instead, the same amplitude error gives a bound of 0.6. Loose normalization can substantially worsen the query requirement even when the underlying expectation has not changed.

What the quadratic query comparison actually compares

For independent Bernoulli samples with success probability a, the sample mean has variance a(1-a)/N, at most 1/(4N). Achieving root-mean-square error at most epsilon therefore requires N at least 1/(4epsilon^2) by this variance bound. Coherent amplitude-estimation constructions can improve the dependence on additive precision under their oracle and success-probability assumptions. The comparison is between access models, not between an inexpensive classical sample and an arbitrary black-box quantum computer at no preparation cost.

Suppose a classical sample costs one time unit. An illustrative quantum routine uses C/epsilon coherent oracle calls, each costing K time units, and fixed overhead H. Compare T_classical=1/(4epsilon^2) with T_quantum=KC/epsilon+H. Ignoring H only for a first estimate, the quantum expression becomes smaller when epsilon<1/(4KC). With KC=100, the threshold is epsilon<0.0025. At epsilon=0.01 the respective expressions are 2,500 and 10,000; at epsilon=0.001 they are 250,000 and 100,000. These are algebraic scaling examples with assumed constants, not predicted runtimes or a universal resource estimate.

Coherence is a resource of the oracle

An amplitude-estimation iterate ordinarily needs coherent access to the state-preparation map, its inverse and reflections or equivalent controlled operations. A procedure that samples a classical random variable and writes the sampled value into a register is not automatically a coherent implementation of that oracle. Keeping unobserved records of the random branch can destroy the interference the algorithm needs. Reversible arithmetic also introduces work registers that must be handled consistently.

For the three-point distribution above, a preparation can be described exactly because the probabilities are simple. A realistic distribution may require discretization, truncation and a costly reversible approximation to its cumulative structure. Those modeling errors add to amplitude-estimation error. If a tail is discarded, its contribution must be bounded using assumptions about the payoff or observable. Merely normalizing the retained probabilities hides the change of distribution.

Variance reduction remains relevant

Classical Monte Carlo has more options than raw independent sampling. Importance sampling, control variates, stratification, quasi-Monte Carlo and analytic conditioning can reduce cost when their assumptions fit the problem. For example, if f(X)=c+delta(X) and c is known exactly, only E[delta] needs numerical estimation. The unknown part may have a much smaller range or variance. Similar structure may help a quantum construction, but a comparison should grant each method the structure it actually uses.

The source basis for this record concerns algorithms and applications of amplitude estimation. The numerical examples here are original accounting illustrations. The probability distribution describes the loaded inputs. A reversible operation computes the value, and the success ancilla encodes the quantity to be estimated. It should not draw all sampled values as simultaneously readable classical outputs.

A control variate changes the unknown quantity

Let Y be a simulated payoff and X a correlated quantity whose expectation mu_X is known. The estimator based on Z=Y-c(X-mu_X) remains unbiased for E[Y] for any fixed c. Its variance is Var(Y)+c^2 Var(X)-2c Cov(X,Y). When Var(X)>0, differentiating this quadratic gives the minimizing coefficient c_star=Cov(X,Y)/Var(X), with residual variance Var(Y)(1-rho^2), where rho is the correlation coefficient.

For Var(Y)=9, Var(X)=4 and Cov(X,Y)=5, the coefficient is 5/4 and the residual variance is 9-25/4=2.75. The covariance is consistent with Cauchy-Schwarz because 25<=36. The raw estimator's variance is more than three times larger. The coefficient is assumed known here; estimating it from data introduces another statistical step that a full procedure must account for.

This derivation explains why an amplitude-estimation comparison against unmodified independent sampling can be incomplete when a strong control variate is available. It does not remove a possible quantum query benefit. It changes the fair baseline and may also change the bounded residual that a quantum oracle needs to encode. The input information and preprocessing cost must be stated for both procedures.

Sources