Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Quantum Monte Carlo integration and risk estimation

Build a quantum Monte Carlo estimator while retaining the full model and error budget.

21 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Encode a three-outcome payoff into a flag probability.
  • Propagate probability error into original payoff units.
  • Separate model, discretisation and estimator error.

Replace many random samples with coherent estimation

Section titled “Replace many random samples with coherent estimation”

Monte Carlo integration estimates an expectation by averaging random samples. It is useful when a direct deterministic sum or integral is expensive. Quantum approaches often preserve the same modelling problem but replace ordinary sample averaging with coherent mean or amplitude estimation. The possible improvement concerns precision scaling under a coherent access model, not a guarantee that quantum hardware automatically simulates every random process faster.

For a high-school example, imagine estimating the average payoff of a game. A classical program repeatedly draws an outcome, evaluates its payoff and averages the results. A quantum construction prepares a coherent representation of the outcome distribution and encodes the payoff into a flag probability. Interference helps estimate the overall probability, which is then converted back into the expected payoff.

Review probabilities and amplitudes, sampling and query complexity. The expectation is a weighted average, not the outcome of any one trial.

WORKED DIAGRAM · AA12A mean encoded in one flag
A mean encoded in one flagThe expected payoff is 2.5 and the flag probability is 5/12. A probability error of 0.01 contributes payoff error 0.06, before model and arithmetic errors.STEP 1Probabilities:1/4,1/2,1/4STEP 2Payoffs: 0,2,6STEP 3Divide by 6 → flagP=5/12STEP 4Multiply estimate by6 → mean 2.5
The expected payoff is 2.5 and the flag probability is 5/12. A probability error of 0.01 contributes payoff error 0.06, before model and arithmetic errors.

State the distribution, payoff function, numerical range or variance bound, target error and confidence. Assume a coherent implementation of the randomised process and payoff computation, including any inverse operations needed by the estimator. The desired output is a small classical estimate, so it is well matched to quantum measurement. The difficult input preparation and arithmetic still need to be charged.

For a bounded payoff between L and U, rescale it to a value between zero and one. Encode that value as a success probability, estimate it, then undo the affine scaling. The original-unit error is the probability-estimation error multiplied by U minus L. A wide payoff range can therefore require more precise probability estimation.

Let outcomes have probabilities one quarter, one half and one quarter, with payoffs zero, two and six. The expected payoff is zero plus one plus one and a half, or 2.5. Divide payoffs by six to obtain bounded values zero, one third and one. The flag’s probability of one is therefore five twelfths. Multiplying an estimate of that probability by six recovers the payoff estimate.

If the flag estimate has additive error 0.01, the payoff estimate has additive error 0.06. This propagation is simple but essential. Reporting “one-percent error” without saying whether it refers to probability, payoff range or relative payoff error is ambiguous. For this example, relative error is the absolute payoff error divided by 2.5.

The coherent preparation must represent the stated probabilities. Preparing equal amplitudes over the three labels would instead produce a uniform distribution and estimate a different expectation. Likewise, putting payoffs directly into amplitudes without the proper rotation changes the quantity being averaged. Check the encoding on a tiny model before scaling the circuit.

Independent classical samples have uncertainty that typically shrinks with the inverse square root of their number. Amplitude-estimation-style methods can use longer coherent experiments to improve the oracle-use dependence on additive accuracy. This trades shallow independent trials for coherent access and depth. Confidence factors and distribution assumptions depend on the selected method.

Montanaro analyses a broad quantum mean-estimation approach for bounded-variance subroutines and applications to Monte Carlo methods. The result is conditional on coherent access and the relevant variance information, rather than a blanket claim about every financial or physical simulation. Read the quantum Monte Carlo paper.

Begin with the quantity of interest and identify all approximation layers. Discretise continuous variables if necessary, choose a truncated domain if tails must be bounded, prepare the distribution, evaluate the payoff reversibly and encode it into a flag. Apply a chosen estimator, then transform its error and confidence back into the original units. Finally compare the total cost with a classical method at the same error.

Discretisation and truncation error exist before measurement. More quantum queries cannot repair a biased distribution model. A good budget separates model error, finite-grid error, arithmetic approximation, estimator error and physical implementation error. Choose each tolerance so that no single hidden contribution dominates the claimed final accuracy.

Rare-event probabilities and tail expectations can be much smaller than typical payoffs. A useful additive error for an ordinary mean may be useless for a rare loss probability. Estimating a quantile also involves locating a threshold through repeated probability queries; estimating a conditional tail mean adds further operations. Do not label every such task “one amplitude estimate.”

Heavy-tailed distributions may require truncation and justified tail bounds or algorithms designed for finite variance. If the variance is unknown or unstable, the advertised sample scaling needs reassessment. These are statistical assumptions, not quantum-specific exceptions. The same careful problem statement improves the classical baseline as well.

Charge the coherent random-process generator, payoff arithmetic, inverse operations, maximum depth and repeated runs. Compare with variance reduction, quasi-Monte Carlo or analytic simplifications when they apply. An oracle theorem can show a real algorithmic advantage while a particular small application remains cheaper classically. The theorem and the engineering decision answer different questions.

This chapter is an algorithmic explanation, not financial advice or a claim that a particular risk model is adequate. The statistical model should be validated independently of the computational backend. Faster estimation of a wrong model produces a more precise wrong answer.

Exercise 1. For the worked example, what probability accuracy is needed for payoff error at most 0.03?

Check the worked answer

The payoff scale is six, so probability error must be at most 0.005, before allowing for other error sources. If model and arithmetic errors consume part of the total budget, the estimator tolerance must be tighter.

Exercise 2. Why does a coherent Monte Carlo query not necessarily cost the same as one ordinary sample?

Check the worked answer

It may need reversible random-process generation, payoff arithmetic, workspace, uncomputation and inverse access. Ordinary classical sampling can discard temporary information. Those implementation differences belong in the end-to-end resource comparison.

PAUSE & THINK

What flag-probability error is needed for payoff error at most 0.03 in the example?

Choose your answer
ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.