Amplitude Estimation
Amplitude estimation returns a classical estimate of the success probability
of a licensed coherent preparation . Direct Bernoulli sampling uses preparations to reach additive accuracy at fixed confidence. The standard coherent algorithm uses the conjugate eigenphases of an amplitude-amplification iterate and reaches the query scale . Neither expression is automatically a gate count, runtime, or end-to-end advantage.
The improvement requires more than samples: it needs , , two reflections, a fixed unitary representative of the Grover iterate, and controlled powered access. Amplitude Amplification owns the two-reflection geometry; Quantum Phase Estimation owns the general eigenphase circuit and Fourier decoder. This page owns their amplitude-specific composition, the two-branch probability law, the fold, precision and confidence, expectation encodings, and the full access-sensitive resource comparison.
Required background. Amplitude Amplification supplies the good–bad plane and exact iterate. Quantum Phase Estimation supplies controlled powers and inverse-Fourier phase decoding. Quantum Oracles supplies the distinction among ordinary, inverse, controlled, and powered access.
Helpful background. The Quantum Algorithms and Complexity guide supplies the chapter claim discipline. Algorithmic Primitives organizes the composition into access, processing, interference, and readout. Query Complexity owns general lower-bound methods, while Grover Search owns uniform marked-item recovery and search optimality.
The Coherent Amplitude-Estimation Problem
Section titled “The Coherent Amplitude-Estimation Problem”Work in a finite-dimensional Hilbert space with a normalized reference state . A measurement-free unitary and an orthogonal projector define
For , normalize the two projected components:
They are orthonormal because , and the prepared state is
where
The endpoint cases must be handled without dividing by a vanishing norm. If , the prepared state is entirely bad. If , it is entirely good. Both cases have well-defined phase-estimation behavior, derived below, even though one of the normalized vectors is unnecessary.
For declared and , the output is a classical random variable with a statement of the form
This is an estimation task, not a search task. It does not return a good witness, expose every basis amplitude, or leave encoded as a reusable exact quantum number. Additive and relative error are different contracts, and a one-run constant-confidence theorem is different from a protocol whose failure probability is chosen by the user.
The Ten-Field Amplitude-Estimation Claim Record
Section titled “The Ten-Field Amplitude-Estimation Claim Record”An amplitude-estimation claim is meaningful only when all ten fields below refer to the same problem and cost model.
- Problem family and size. Identify the family of preparations and good projectors, the parameter tending to infinity, and the quantity whose accuracy is being varied.
- Promise and instance. State the allowed range of , any lower bound or endpoint promise, the values of and , and the finite instance under discussion.
- Access and encoding. Declare , , , both reflections, the chosen representative of , controlled powers, registers, arithmetic, loading, and cleanup.
- Output and use. Specify the classical estimate or interval, its error convention, and the downstream computation that consumes it.
- Success and error. Give a finite probability statement, endpoint conditions, implementation-error metric, and any confidence-amplification rule.
- Algorithmic idea. Name the conjugate Grover eigenphases, the phase schedule, the fold, and whether Fourier, likelihood, or adaptive inference is used.
- Executable procedure. List preparation, controlled or uncontrolled iterates, measurements, repetitions, stopping conditions, and classical postprocessing in runnable order.
- Resource ledger. Count forward and inverse preparations, each reflection, base and powered queries, coherent depth, qubits, gates, synthesis, measurements, inference, error correction, and physical time.
- Classical comparator. Match the encoded quantity, input access, output, accuracy, confidence, loading, and total-cost currency before comparing against sampling or another classical method.
- Evidence and limits. Distinguish theorem, exact finite audit, simulation, noise-model study, and experiment, then state what the evidence does not establish.
The record blocks several silent substitutions: a sampler for an invertible preparation, an uncontrolled iterate for a controlled one, Fisher information for a finite upper bound, and a query reduction for a practical runtime advantage.
Licensed Preparation, Reflections, and Controlled Iterates
Section titled “Licensed Preparation, Reflections, and Controlled Iterates”The standard construction starts from four coherent components:
Their ordered product defines the exact amplitude-amplification iterate
The leading minus sign fixes a unitary representative, not merely a ray. It is irrelevant when a fixed number of uncontrolled iterates is followed by a measurement, because it then produces only an overall phase. It becomes a relative phase when is applied conditionally, so standard amplitude estimation must preserve it.
The primary phase-estimation implementation chooses and requires controlled for . These are separate capabilities:
- an ordinary circuit for does not automatically license controlled ;
- controlled does not automatically make a unit-cost primitive;
- a native powered oracle and repetitions of a base iterate have different query and depth ledgers;
- a measurement-based sampler does not automatically provide or coherent workspace cleanup.
If a controlled reflection about is compiled as
the unconditional outer pair cancels on the control-zero branch, while the controlled reference reflection acts on the control-one branch. A controlled and the controlled phase associated with the leading minus sign remain necessary. Other valid compilations may distribute controls differently, but their component costs must be stated rather than hidden inside the symbol .
The standard access record also includes an -qubit phase register, an inverse Quantum Fourier Transform, one control-register measurement, and classical evaluation of . Approximate reflections, arithmetic, synthesized rotations, garbage registers, and measurement noise require separate error entries.
Grover Eigenphases Encode the Success Probability
Section titled “Grover Eigenphases Encode the Success Probability”Conjugating the reference reflection gives
In the ordered basis , multiplication by and the leading minus sign yields
Thus is a rotation through in real coordinate convention. Its complex eigenvectors are
and direct multiplication gives
The prepared state has equal squared overlap with the two eigenvectors:
Writing an eigenvalue as therefore produces the conjugate phases
These phases encode the same probability because . Replacing by instead shifts both phases by . For even , the output distribution is translated by modulo , and the decoded random estimate is complemented: . On an exact-grid instance, the wrong representative therefore returns exactly .
Standard QPE-Based Amplitude Estimation
Section titled “Standard QPE-Based Amplitude Estimation”Take . Prepare the control register uniformly and the work register as :
The controlled-power stage implements . Substituting the eigenvector decomposition gives
Each orthogonal work-register branch carries the ordinary phase gradient for or . Apply the inverse Fourier transform to the control register and measure
The amplitude-specific classical decoder is
The circuit is not a new derivation of general phase estimation: its special content is the equal conjugate-phase mixture and the nonlinear fold from phase to probability. The algorithm returns one random classical estimate after measurement. Retaining the control register coherently would require a new output and error contract.
Exact Output Law and the sin² Decoder
Section titled “Exact Output Law and the sin² Decoder”For a single eigenphase , define the finite Fourier kernel
When numerator and denominator vanish together, the value is the limiting value one. Unitarity of the inverse Fourier transform gives .
The kernel follows directly from a finite geometric series. Its numerator measures the failure of the phase gradient to close after terms, while its denominator measures the separation between the true phase and the candidate grid point. This interpretation is useful but does not turn the distribution into a continuous density: remains a discrete outcome, and the removable singularity must be assigned before numerical evaluation.
The two work-register eigenvectors are orthogonal. Tracing out that register therefore removes cross terms rather than adding amplitudes from the two branches. The exact measured law is
The identities
and
show both the mirror symmetry of the distribution and why one decoder handles the two phases. Indices in the first identity are taken modulo .
The factors are quantum overlap weights, not an extra classical coin inserted by the algorithm. A hypothetical preparation of one Grover eigenvector would give one kernel, but has equal support on both. Conversely, adding the two kernel amplitudes before squaring would be wrong because their work-register labels are orthogonal.
If is an integer, the corresponding branch occupies one exact bin. Off the grid, the Dirichlet-shaped kernel spreads over all bins. The nonlinear decoder then generally has finite- bias; no theorem below says that . The exact law, not an asymptotic normal approximation, is the appropriate object for checking small instances.
Precision, Confidence, and Endpoint Cases
Section titled “Precision, Confidence, and Endpoint Cases”The amplitude-estimation theorem of Brassard, Høyer, Mosca, and Tapp states that, for every positive integer ,
with probability at least for , and with probability strictly greater than
for integer . Here enlarges the accepted phase window in one run; it is not a repetition count.
To connect phase and probability carefully, fold the measured phase into :
Then . On the circular phase-window event associated with either conjugate branch, . Taylor’s theorem applied to , with and , gives
Taking produces the stated bound. Since , the uniform one-run error is at most for , which establishes the fixed-confidence scale .
The endpoints are exact only under their stated grid conditions. At , has phase zero on the prepared state, so and with certainty. At , the phase is ; the decoder returns one with certainty when is even, including every primary power-of-two construction with . For odd , phase lies between bins and the endpoint is not exact.
To reach a chosen confidence, repeat an odd number of independent runs that each meet the same error target and return their median. With ,
Thus this elementary construction uses base iterates. It is rigorous, but it is not a claim that this confidence dependence is optimal among all variants.
Implementation error needs a compatible norm. Suppose the initial prepared state has vector-norm error at most , every implemented controlled base iterate has operator-norm error at most , and the implemented inverse-QFT unitary has operator-norm error at most . If iterates are used, telescoping and contractivity give the conservative premeasurement bound
Measurement noise must be priced separately in a declared channel, trace-distance, or total-variation metric. The bound is a worst-case coherent budget, not a stochastic-noise model, and keeping it constant as grows requires the per-iterate error to decrease with .
Query Scaling and the Classical Sampling Comparator
Section titled “Query Scaling and the Classical Sampling Comparator”For a matched direct-sampling baseline, prepare and measure independent Bernoulli variables with . Hoeffding’s inequality gives
so it is sufficient to take
This is a theorem about independent samples from the declared Bernoulli experiment. It is not a lower bound on every classical algorithm for a structured application. The coherent comparison grants stronger access and must charge for that access.
For the primary repeated-base construction, the exact component ledger is:
| Resource | Count in one run |
|---|---|
| phase-register qubits | |
| controlled-power blocks | |
| repeated base applications | |
| longest coherent power | |
| forward | |
| inverse | |
| good reflection | |
| reference reflection | |
| inverse Fourier transforms | |
| measurements and decoders | each |
The forward count includes the initial preparation. The remaining forward calls and all inverse/reflection calls arise from the repeated iterate decompositions. If is instead a primitive, report powered queries and the physical cost of those powers; do not also call them unit-cost primitive queries.
Total query count and maximum coherent depth answer different questions. The standard controlled-power stage preserves one coherent phase register through the longest block, so the repeated-base realization has sequential oracle depth of order even though it contains only labeled power blocks. Shot-based variants may distribute some circuits across independent runs, but then pay in total calls and classical inference.
At fixed nontrivial success probability, Nayak and Wu’s Boolean-mean lower bound makes the worst-case quantum-query dependence optimal for families large enough to support the requested precision, for example . A fixed finite saturates rather than supporting an arbitrarily small- asymptotic. This lower bound belongs to the Boolean-query regime, not to every encoding of a real-world expectation.
Query counts still omit two-qubit gates, ancillas, coherent depth, arithmetic, rotation synthesis, loading, uncomputation, repetitions, inference, routing, error correction, and physical spacetime. Those quantities decide whether the query advantage survives as an end-to-end advantage.
QFT-Free and Iterative Variants
Section titled “QFT-Free and Iterative Variants”The standard construction is primary because its finite distribution and error theorem are explicit. Several alternatives change the circuit and inference contract; “QFT-free” does not mean “access-free” or “proof-free.”
| Regime | Data collected | Licensed conclusion |
|---|---|---|
| Maximum-likelihood AE | Good/bad shots after selected $Q^r\mathcal A | 0\rangle\sin^2((2r+1)\theta)$ |
| Iterative AE | Adaptive powers and confidence intervals | Grinko et al. prove an additive interval guarantee without QPE. Under their theorem’s conditions, the midpoint has error at most with confidence , and the number of applications obeys . |
| Rigorous Grover-only estimation | Adaptive measurements of uncontrolled Grover iterates | Aaronson and Rall prove that the QFT is unnecessary for optimal approximate-counting scaling and give a rigorous amplitude-estimation extension. Their access and relative-error conventions must accompany the result. |
| Low-depth AE | Many shorter circuits whose largest sequential oracle depth is bounded | Giurgica-Tiron et al. establish total-query/depth tradeoffs. Their power-law result assumes the regularity needed for a Bernstein–von Mises theorem; their QoPrime construction has a separate fully rigorous proof for its discrete tradeoff family. |
Maximum-likelihood inference can be valuable, but an asymptotic Cramér–Rao or Fisher-information lower bound on variance is not a correctness upper bound. Tanaka et al. analyze maximum-likelihood schedules under a specified noise model; those model-dependent and numerical results should not be promoted to unconditional hardware guarantees. Likewise, observed slopes from a finite simulation do not establish the asymptotic theorem for a new schedule.
All these methods still require coherent preparation, inverse access through the Grover iterate, success and reference reflections, long powers or an adaptive sequence of powers, measurements, and classical inference. Their resource currencies differ, so comparisons should report total calls and largest sequential depth separately.
Expectation Values, Applications, and Ownership Limits
Section titled “Expectation Values, Applications, and Ownership Limits”A bounded expectation becomes an amplitude only through a reversible encoder. For a distribution and a real function , a licensed preparation can have the form
with any work registers coherently cleaned or explicitly retained. Declaring the flag-one subspace good gives
For with , encode
and multiply the final additive error by . If , the expectation is already known. This rescaling covers signed real functions. Complex functions or non-diagonal observables need an additional explicit reduction, such as separate real and imaginary tests; the word “expectation” alone supplies no circuit.
The ledger must include state preparation for , reversible evaluation of , finite-precision arithmetic, the controlled rotation, garbage cleanup, and every induced bias. An efficiently indexed classical table does not automatically have an efficient coherent loader and inverse. Montanaro’s quantum Monte Carlo results give rigorous query improvements under their access assumptions, whereas Herbert exhibits a state-preparation setting in which loading costs remove the advertised speedup. These are compatible statements because they analyze different complete interfaces.
Approximate counting is the specialization in which marks of uniform inputs. Then and satisfies, at constant confidence,
For , a relative-error scale
requires a rough scale or an adaptive counting protocol; an algorithm cannot insert the unknown into its own stopping rule. Grover Search retains marked-item recovery, while this page estimates the marked fraction.
Fixed-point amplification is also a different output problem: it monotonically raises success under a lower-bound promise rather than numerically estimating . General phase estimation retains the single-eigenphase kernel, and the Mathematical Toolkit expectation-value page retains the classical probability formalism. Applications in finance, materials, normalization estimation, or risk analysis are licensed only after their encoders, comparators, depth, and total costs are supplied.
Two Reproducible Finite Audits
Section titled “Two Reproducible Finite Audits”These audits are exact theorem checks, not random experiments or hardware evidence. The first isolates phase folding and the controlled-sign convention; the second displays an inexact-grid distribution and finite bias.
Exact-grid phase folding and controlled-sign audit
Section titled “Exact-grid phase folding and controlled-sign audit”Take
The iterate is
Its phases and are exactly on the grid, so
If the controlled circuit implements , the phases become and . The exact outcomes and decode to
The audit record is:
- Problem family and size. This is one two-eigenphase instance with an eight-point Fourier grid and a three-qubit phase register.
- Promise and instance. The known audit value is , strictly between the endpoints, with exact-grid phase .
- Access and encoding. Exact , , both reflections, the representative , controlled repeated powers, and an ideal inverse Fourier transform are licensed.
- Output and use. The output is the classical folded estimate from one three-bit measurement; no good witness is requested.
- Success and error. Correct access returns with certainty. Replacing by returns with certainty, exposing a controlled-sign error rather than statistical uncertainty.
- Algorithmic idea. Equal orthogonal eigenbranches occupy bins one and seven, which the decoder folds to the same probability.
- Executable procedure. Prepare, apply controlled powers , inverse-transform, measure, and decode; repeat symbolically with .
- Resource ledger. There are three controlled-power blocks, seven base iterates, longest power , eight forward preparations, seven inverses, seven of each reflection, one inverse transform, one measurement, and one decoder.
- Classical comparator. No sampling comparator is inferred from this exact-grid identity; it audits the coherent convention and component count.
- Evidence and limits. Exact arithmetic verifies phases, probabilities, decoded quadratic numbers, sign complement, and ledger. It does not test approximate synthesis, noise, or asymptotic performance.
Rational inexact-grid kernel and finite bias
Section titled “Rational inexact-grid kernel and finite bias”Now take
Substitution into the two-kernel law gives
The probabilities sum to one, but the decoded mean is
The audit-specific decoded-error event has probability , and every outcome in it obeys . This is not the latent branch-conditioned phase-window event and does not replace the general Brassard–Høyer–Mosca–Tapp radius.
The audit record is:
- Problem family and size. This is one inexact-grid instance with two conjugate kernels, four outcomes, and a two-qubit phase register.
- Promise and instance. The checked value is with , which is not a multiple of .
- Access and encoding. The same ideal standard interface is licensed, with powers and compiled from repeated controlled base iterates.
- Output and use. One measurement returns , which is mapped to the classical estimate , , or .
- Success and error. The exact output law is ; the stated decoded-error event has probability , and the estimator mean is .
- Algorithmic idea. The two mirrored finite kernels are mixed because their work-register eigenvectors are orthogonal, then folded by one decoder.
- Executable procedure. Evaluate both exact kernels, average them, decode each bin, sum the expectation and event probability, and audit the repeated-base counts.
- Resource ledger. There are two controlled-power blocks, three base iterates, longest power , four forward preparations, three inverses, three of each reflection, one inverse transform, one measurement, and one decoder.
- Classical comparator. The finite table checks no asymptotic speedup; a sampling comparison requires the same accuracy, confidence, and encoded Bernoulli quantity.
- Evidence and limits. Exact rational arithmetic verifies normalization, bias, the decoded-error event, and every count. It does not prove the general theorem or model implementation error.
One deterministic program reproduces both audits:
const assert = (condition, label) => { if (!condition) throw new Error(label);};
const gcd = (a, b) => b === 0n ? (a < 0n ? -a : a) : gcd(b, a % b);const rational = (n, d = 1n) => { const sign = d < 0n ? -1n : 1n; const divisor = gcd(n, d); return [sign * n / divisor, sign * d / divisor];};const addR = ([an, ad], [bn, bd]) => rational(an * bd + bn * ad, ad * bd);const subR = ([an, ad], [bn, bd]) => rational(an * bd - bn * ad, ad * bd);const mulR = ([an, ad], [bn, bd]) => rational(an * bn, ad * bd);const equalR = ([an, ad], [bn, bd]) => an * bd === bn * ad;const absR = ([n, d]) => [n < 0n ? -n : n, d];const lessEqualR = ([an, ad], [bn, bd]) => an * bd <= bn * ad;
// Exact u + v sqrt(2), stored as (u + v sqrt(2)) / d.const quad = (u, v, d = 1n) => ({ u, v, d });const addQ = (x, y) => quad( x.u * y.d + y.u * x.d, x.v * y.d + y.v * x.d, x.d * y.d,);const mulQ = (x, y) => quad( x.u * y.u + 2n * x.v * y.v, x.u * y.v + x.v * y.u, x.d * y.d,);const negQ = (x) => quad(-x.u, -x.v, x.d);const equalQ = (x, y) => x.u * y.d === y.u * x.d && x.v * y.d === y.v * x.d;
// Audit 1: exact grid and the controlled-sign complement.const aExact = quad(2n, -1n, 4n);const aComplement = quad(2n, 1n, 4n);assert(equalQ(addQ(aExact, aComplement), quad(1n, 0n)), 'a + complement');const sineCosine = quad(0n, 1n, 2n);assert(equalQ( addQ(mulQ(sineCosine, sineCosine), mulQ(sineCosine, sineCosine)), quad(1n, 0n),), 'Q column norm');assert(equalQ( addQ(mulQ(sineCosine, sineCosine), mulQ(negQ(sineCosine), sineCosine)), quad(0n, 0n),), 'Q column orthogonality');assert(equalQ( addQ(mulQ(sineCosine, sineCosine), mulQ(sineCosine, sineCosine)), quad(1n, 0n),), 'Q determinant');
const exactPhases = [1n, 7n];const cosinePiYOver4 = [ quad(1n, 0n), quad(0n, 1n, 2n), quad(0n, 0n), quad(0n, -1n, 2n), quad(-1n, 0n), quad(0n, -1n, 2n), quad(0n, 0n), quad(0n, 1n, 2n),];const decoder8 = cosinePiYOver4.map((cosine) => quad(cosine.d - cosine.u, -cosine.v, 2n * cosine.d));const distributionFromExactBins = (size, bins) => { const distribution = Array.from({ length: size }, () => [0n, 1n]); bins.forEach((bin) => { distribution[Number(bin)] = addR(distribution[Number(bin)], [1n, 2n]); }); return distribution;};const exactDistribution = distributionFromExactBins(8, exactPhases);const expectedExactDistribution = [ [0n, 1n], [1n, 2n], [0n, 1n], [0n, 1n], [0n, 1n], [0n, 1n], [0n, 1n], [1n, 2n],];assert(exactPhases.every((phase) => phase >= 0n && phase < 8n), 'exact bins');assert(exactDistribution.every((p, y) => equalR(p, expectedExactDistribution[y])), 'audit 1 distribution');assert(equalR(exactDistribution.reduce(addR, [0n, 1n]), [1n, 1n]), 'audit 1 normalization');assert(exactPhases.every((phase) => equalQ(decoder8[Number(phase)], aExact)), 'bins 1 and 7 decode a');
const wrongPhases = exactPhases.map((phase) => (phase + 4n) % 8n);assert(wrongPhases[0] === 5n && wrongPhases[1] === 3n, 'phase shift modulo M');const wrongDistribution = distributionFromExactBins(8, wrongPhases);assert(equalR(wrongDistribution[3], [1n, 2n]) && equalR(wrongDistribution[5], [1n, 2n]), 'wrong-sign distribution');assert(equalR(wrongDistribution.reduce(addR, [0n, 1n]), [1n, 1n]), 'wrong-sign normalization');assert(wrongPhases.every((phase) => equalQ(decoder8[Number(phase)], aComplement)), 'bins 5 and 3 decode one minus a');assert(!equalQ(aExact, aComplement), 'controlled-sign failure is visible');
const ledger8 = { powerBlocks: 3n, baseQ: 7n, longestPower: 4n, forwardA: 8n, inverseA: 7n, goodReflection: 7n, referenceReflection: 7n, inverseQft: 1n, measurement: 1n, decoder: 1n,};assert(ledger8.powerBlocks === 3n && ledger8.baseQ === 7n, 'M=8 powers');assert(ledger8.longestPower === 4n, 'M=8 longest power');assert(ledger8.forwardA === 8n && ledger8.inverseA === 7n, 'M=8 preparations');assert(ledger8.goodReflection === 7n && ledger8.referenceReflection === 7n, 'M=8 reflections');assert(ledger8.inverseQft === 1n && ledger8.measurement === 1n && ledger8.decoder === 1n, 'M=8 terminal ledger');
// Audit 2: exact rational inexact-grid law and finite bias.const cosinePhase = [[1n, 2n], [-1n, 2n], [-1n, 1n]];const quarterTurnCosines = [1n, 0n, -1n, 0n];const probabilities = Array.from({ length: 4 }, (_, y) => { let numerator = [4n, 1n]; for (let d = 1; d < 4; d += 1) { const gridCosine = quarterTurnCosines[(d * y) % 4]; const coefficient = [2n * BigInt(4 - d) * gridCosine, 1n]; numerator = addR(numerator, mulR(coefficient, cosinePhase[d - 1])); } return mulR(numerator, [1n, 16n]);});const cosineDoubleAngle = [1n, 0n, -1n, 0n];const estimates = cosineDoubleAngle.map((cosine) => rational(1n - cosine, 2n));const expectedEstimates = [[0n, 1n], [1n, 2n], [1n, 1n], [1n, 2n]];const expectedProbabilities = [[3n, 16n], [3n, 8n], [1n, 16n], [3n, 8n]];probabilities.forEach((p, y) => { assert(equalR(p, expectedProbabilities[y]), `audit 2 probability y=${y}`);});assert(equalR(probabilities.reduce(addR, [0n, 1n]), [1n, 1n]), 'audit 2 normalization');assert(estimates.every((value, y) => equalR(value, expectedEstimates[y])), 'audit 2 decoded values');const expectation = probabilities.reduce( (sum, p, y) => addR(sum, mulR(p, estimates[y])), [0n, 1n],);assert(equalR(expectation, [7n, 16n]), 'finite expectation');const eventProbability = [0, 1, 3].reduce( (sum, y) => addR(sum, probabilities[y]), [0n, 1n],);assert(equalR(eventProbability, [15n, 16n]), 'decoded-error event');assert([0, 1, 3].every((y) => lessEqualR(absR(subR(estimates[y], [1n, 4n])), [1n, 4n])), 'decoded-error tolerance');
const ledger4 = { powerBlocks: 2n, baseQ: 3n, longestPower: 2n, forwardA: 4n, inverseA: 3n, goodReflection: 3n, referenceReflection: 3n, inverseQft: 1n, measurement: 1n, decoder: 1n,};assert(ledger4.powerBlocks === 2n && ledger4.baseQ === 3n, 'M=4 powers');assert(ledger4.longestPower === 2n, 'M=4 longest power');assert(ledger4.forwardA === 4n && ledger4.inverseA === 3n, 'M=4 preparations');assert(ledger4.goodReflection === 3n && ledger4.referenceReflection === 3n, 'M=4 reflections');assert(ledger4.inverseQft === 1n && ledger4.measurement === 1n && ledger4.decoder === 1n, 'M=4 terminal ledger');
console.log('exact amplitude-estimation audits: PASS');Common Amplitude-Estimation Failures
Section titled “Common Amplitude-Estimation Failures”Starting from samples instead of coherent access. Classical samples do not supply an invertible unitary, reflections, or controlled powers. State the actual coherent interface before invoking the algorithm.
Dropping the leading minus sign. A global phase of an uncontrolled iterate becomes relative under control. For even , this error complements the decoded estimate rather than leaving it unchanged.
Treating powered access as free. Standard QPE has controlled-power blocks but repeated base iterates. Quote the currency actually licensed.
Keeping only one eigenphase branch. The prepared state is not a Grover eigenstate. The output law is an equal mixture of conjugate kernels, not one kernel with coherent cross terms.
Calling the estimator unbiased. Exact-grid instances are unbiased because they are exact. Off the grid, nonlinear folding can produce finite bias, as the second audit shows.
Calling a repetition count. In the BHMT theorem, is a one-run phase-window parameter. Independent median repetitions use the separate symbol and a separate tail bound.
Confusing estimation with amplification. Fixed-point schedules increase success probability; they do not return a numerical confidence interval for .
Using queries as runtime. Loading, reversible arithmetic, controlled compilation, maximum coherent depth, inference, noise tolerance, and physical resources remain outside a bare query count.
Exercises
Section titled “Exercises”1. Derive the eigenphases and folded decoder
Section titled “1. Derive the eigenphases and folded decoder”Starting from the matrix for , derive its two normalized eigenvectors, decompose into them, identify the phases and , and prove that one decoder handles both branches.
Solution
For and ,
Normalization gives . Solving for the real basis vectors and inserting gives
Thus each eigenbranch has weight , with phases and modulo one. If outcomes near the branches are and , then
so the decoder is branch-independent.
2. Derive the exact two-kernel law and endpoints
Section titled “2. Derive the exact two-kernel law and endpoints”Derive the mixture distribution, prove mirror symmetry, and analyze and for even and odd .
Solution
Conditioned on an eigenphase , inverse-Fourier measurement has law . The work-register eigenstates are orthogonal, so tracing them out yields
Replacing by interchanges the two kernels, proving mirror symmetry with indices modulo . At , the prepared state has eigenphase zero and the only outcome is , so the estimate is zero. At , the phase is . If is even, the exact bin is and the decoder returns one. If is odd, is not an integer; the finite kernel spreads over bins and the estimate is not deterministically one. The equal-mixture formula itself was derived for ; the endpoints follow directly from their one-dimensional prepared subspaces.
3. Reproduce the exact-grid sign audit
Section titled “3. Reproduce the exact-grid sign audit”For and , reproduce both correct outcomes and show why omitting the controlled leading minus sign returns .
Solution
The two phases are and , both grid points. QPE therefore returns or with branch weights . In either case,
Using shifts each phase by . Hence the bins become and . They decode as
The failure is deterministic here because every phase is exactly representable. Three power blocks contain seven base iterates and have longest coherent power .
4. Reproduce the rational finite-bias audit
Section titled “4. Reproduce the rational finite-bias audit”For and , verify the complete distribution, expectation, decoded-error event, and component ledger.
Solution
Here . Substitution in the two Dirichlet kernels gives
The decoder gives , so
Outcomes each lie within of , and their total probability is . The powers and use three base iterates, so the complete counts are four forward preparations; three inverse preparations; three calls to each reflection; longest power ; and one inverse transform, two-bit measurement, and decoder.
5. Derive the repeated-base and error ledgers
Section titled “5. Derive the repeated-base and error ledgers”For , derive every repeated-base component count and then prove the conservative coherent implementation-error bound.
Solution
The controlled powers have exponents , so their sum is
and the largest block is . Each base contains one forward preparation, one inverse, and both reflections. Adding the initial preparation gives forward calls and of each other component.
Let the initial state error be at most in vector norm. Replace ideal controlled iterates one at a time; unitarity and the operator-norm bound make each replacement contribute at most . Replacing the inverse QFT contributes at most . The triangle inequality gives
This is premeasurement coherent error. A noisy measurement needs a compatible channel or outcome-distribution metric rather than an unnamed term added to the vector norm.
6. Derive precision, confidence, and the matched baseline
Section titled “6. Derive precision, confidence, and the matched baseline”Derive the probability-error inequality, its worst-case query scale, the median confidence boost, and the direct-sampling Hoeffding comparator.
Solution
For , Taylor’s theorem and give
The phase event has with probability at least . Since , choosing gives uniform additive error at this fixed confidence. For odd independent runs, Hoeffding applied to their success indicators yields
so suffices. Direct Bernoulli sampling instead obeys , requiring . The comparison concerns matched access to the same encoded quantity; it is not yet a total-runtime theorem.
7. Separate the amplitude-estimation variants
Section titled “7. Separate the amplitude-estimation variants”For each of standard QPE-based AE, maximum-likelihood AE, iterative AE, rigorous Grover-only estimation, and low-depth AE, state what is measured and what kind of guarantee is justified.
Solution
Standard AE coherently superposes controlled powers, inverse-Fourier measures the phase register, and has the exact two-kernel BHMT bound. Maximum-likelihood AE measures good/bad outcomes after selected uncontrolled powers and fits ; Fisher information and observed scaling do not alone give a finite correctness upper bound. Iterative AE adaptively chooses powers and updates confidence intervals; the Grinko theorem supplies an explicit additive-error, failure-probability, and query bound.
Aaronson–Rall-type Grover-only methods prove that optimal query scaling does not require a QFT, but their own access, adaptivity, and error conventions must be retained. Low-depth methods trade total calls against maximum sequential depth. Power-law guarantees need stated statistical regularity, while the QoPrime family has a separate rigorous proof. A noise-model likelihood study is evidence about that model, not an unconditional hardware theorem.
8. Repair an expectation-value speedup claim
Section titled “8. Repair an expectation-value speedup claim”Repair the claim: “Amplitude estimation always computes any expectation value quadratically faster.” Include loading, reversible arithmetic, a matched comparator, total cost, and evidence limitations.
Solution
A defensible replacement is the following complete record.
- Problem family and size. Consider a declared family of distributions and bounded real functions , with input size and target additive accuracy specified.
- Promise and instance. Give finite bounds , the requested , and any promise controlling loading, arithmetic error, or the expectation’s scale.
- Access and encoding. License coherent preparation of , reversible evaluation and rescaling of , the flag rotation, cleanup, inverse preparation, both reflections, and controlled or variant-specific powers.
- Output and use. Return a classical estimate of with its additive interval and intended downstream use; do not claim a witness or a coherent exact value.
- Success and error. Combine statistical failure, finite-precision bias, coherent implementation error, and endpoint conditions in compatible metrics.
- Algorithmic idea. Encode the rescaled expectation as a flag-one probability and estimate the conjugate Grover angle using the named standard, iterative, likelihood, or low-depth procedure.
- Executable procedure. Load, evaluate, rotate, clean, apply the declared powers, measure, infer, rescale, and repeat or adapt until the stated stopping rule is met.
- Resource ledger. Count preparation and inverse calls, reflections, oracle depth, loader and arithmetic gates, qubits, synthesis, measurements, inference, error correction, and physical time—not queries alone.
- Classical comparator. Compare with the best relevant classical method under the same data access, output accuracy, confidence, preprocessing, and hardware-cost currency; direct sampling is only one possible comparator.
- Evidence and limits. The ideal query theorem gives an versus direct-sampling accuracy dependence under coherent access. It does not prove that loading is efficient, that total runtime is quadratically smaller, or that a finite simulation or noise-model fit establishes practical advantage.
References
Section titled “References”- S. Aaronson and P. Rall, “Quantum Approximate Counting, Simplified,” Proceedings of the 3rd Symposium on Simplicity in Algorithms, 24–32 (2020), doi:10.1137/1.9781611976014.5.
- G. Brassard, P. Høyer, M. Mosca, and A. Tapp, “Quantum Amplitude Amplification and Estimation,” Contemporary Mathematics 305, 53–74 (2002), doi:10.1090/conm/305/05215.
- T. Giurgica-Tiron, I. Kerenidis, F. Labib, A. Prakash, and W. Zeng, “Low Depth Algorithms for Quantum Amplitude Estimation,” Quantum 6, 745 (2022), doi:10.22331/q-2022-06-27-745.
- D. Grinko, J. Gacon, C. Zoufal, and S. Woerner, “Iterative Quantum Amplitude Estimation,” npj Quantum Information 7, 52 (2021), doi:10.1038/s41534-021-00379-1.
- S. Herbert, “No Quantum Speedup with Grover–Rudolph State Preparation for Quantum Monte Carlo Integration,” Physical Review E 103, 063302 (2021), doi:10.1103/PhysRevE.103.063302.
- W. Hoeffding, “Probability Inequalities for Sums of Bounded Random Variables,” Journal of the American Statistical Association 58, 13–30 (1963), doi:10.1080/01621459.1963.10500830.
- A. Montanaro, “Quantum Speedup of Monte Carlo Methods,” Proceedings of the Royal Society A 471, 20150301 (2015), doi:10.1098/rspa.2015.0301.
- A. Nayak and F. Wu, “The Quantum Query Complexity of Approximating the Median and Related Statistics,” in Proceedings of the 31st Annual ACM Symposium on Theory of Computing, 384–393 (1999), doi:10.1145/301250.301349.
- Y. Suzuki, S. Uno, R. Raymond, T. Tanaka, T. Onodera, and N. Yamamoto, “Amplitude Estimation without Phase Estimation,” Quantum Information Processing 19, 75 (2020), doi:10.1007/s11128-019-2565-2.
- T. Tanaka, Y. Suzuki, S. Uno, R. Raymond, T. Onodera, and N. Yamamoto, “Amplitude Estimation via Maximum Likelihood on Noisy Quantum Computer,” Quantum Information Processing 20, 293 (2021), doi:10.1007/s11128-021-03215-9.