Amplitude Estimation
Amplitude estimation turns the success probability of a reversible quantum preparation into a classical numerical estimate. It uses the fact that amplitude amplification rotates through an angle determined by that probability: estimating the rotation angle therefore estimates the probability.
For additive error at fixed confidence, the standard coherent algorithm uses applications of its basic iterate. Direct independent sampling uses preparations. The coherent algorithm needs stronger access—including an inverse preparation and controlled operations—and a query reduction does not by itself imply the same reduction in gates or runtime.
Helpful background. Amplitude amplification develops the two-reflection rotation. Quantum phase estimation explains controlled powers and Fourier decoding. Quantum oracles distinguishes those operations from ordinary oracle access.
The probability to be estimated
Section titled “The probability to be estimated”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 requested 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 accuracy requirements, and a one-run constant-confidence theorem is different from a protocol whose failure probability is chosen by the user.
Preparation, reflections and controlled operations
Section titled “Preparation, reflections and controlled operations”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 with and requires controlled for . These are separate capabilities:
- a known gate circuit can be compiled into a controlled circuit, with its phases tracked and an additional implementation cost; an unknown oracle does not automatically provide controlled access;
- controlled does not automatically make a unit-cost primitive;
- a native powered oracle and repetitions of a base iterate have different query and depth costs;
- 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 circuit also uses 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 contribute additional errors.
The two Grover eigenphases
Section titled “The two Grover eigenphases”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 .
From a phase register to a probability estimate
Section titled “From a phase register to a probability estimate”Take with . 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
Exact outcome probabilities and phase folding
Section titled “Exact outcome probabilities and phase folding”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.
Accuracy, confidence and the endpoints
Section titled “Accuracy, confidence and the endpoints”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.
Two finite examples
Section titled “Two finite examples”Exactly representable phases
Section titled “Exactly representable phases”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
Three controlled-power blocks contain seven repeated base iterates. This exact example isolates the sign convention: a wrong controlled sign changes the answer even with perfect gates.
Four bins and a biased estimate
Section titled “Four bins and a biased estimate”Now take
Substitution into the two-kernel law gives
The probabilities sum to one, but the decoded mean is
The decoded-error event has probability , and every outcome in it obeys . This directly computed event uses a tighter radius for this particular example than the general theorem supplies.
For and , outcomes and both report , so their probabilities add. The lower distribution has mean , although the true value is . Finite bias and a probabilistic error guarantee can coexist.
Accumulated implementation error
Section titled “Accumulated implementation error”Assume all circuit approximations in this paragraph remain unitary. 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
For normalized pure states, a vector-distance bound also bounds the total variation distance between their measurement distributions. Thus an ideal event with probability at least still has probability at least . Choose before applying the median argument to the implemented circuit. Measurement noise requires an additional channel or outcome-distribution bound. 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 counts and direct sampling
Section titled “Query counts and direct sampling”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 specified 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 counts are:
| 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; the count describes a different implementation using repeated base operations.
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.
Methods without a Fourier transform
Section titled “Methods without a Fourier transform”Several alternatives measure success after selected uncontrolled powers:
The inverse preparation is still needed inside . Different powers reveal different oscillations, so one must resolve their ambiguity; a single high power usually does not identify .
| Method | Data and guarantee |
|---|---|
| Maximum likelihood | Fit good/bad shots from a chosen set of powers. Suzuki and collaborators give asymptotic Fisher-information analysis and simulations; these alone are not finite-sample correctness bounds. |
| Iterative estimation | Choose powers adaptively and propagate confidence intervals. Grinko and collaborators prove finite additive-error guarantees for their specified interval construction and shot budgets. |
| Grover-only estimation | Aaronson and Rall give a rigorous adaptive counting method and amplitude-estimation extension without a QFT. Their relative-error and access assumptions specify the comparison. |
| Limited-depth estimation | Giurgica-Tiron and collaborators trade total calls against maximum sequential depth. Their power-law result assumes statistical regularity; the separate QoPrime family has a fully rigorous discrete-parameter construction. |
For example, the Chernoff–Hoeffding version of Grinko and collaborators’ Theorem 1 gives an interval of width at most , containing with probability at least . With the theorem’s shot-budget conditions, its number of applications satisfies
in the small-error regime. This bound concerns that algorithm and interval construction, not arbitrary adaptive fits. A Fisher-information lower bound on variance does not establish an upper bound on estimation error. Noise-model studies, such as Tanaka and collaborators’, likewise apply to the specified model.
Encoding expectation values and counts
Section titled “Encoding expectation values and counts”A bounded expectation becomes an amplitude only through a reversible encoder. For a distribution and a real function , a coherent 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 circuit cost includes 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 finds a marked item, whereas amplitude estimation estimates the marked fraction.
Fixed-point amplification solves a different task: it produces high success uniformly over a promised range. It does not return a numerical estimate of , nor does its completed-sequence guarantee imply monotonic behavior at every intermediate step.
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 calculation
Section titled “3. Reproduce the exact-grid sign calculation”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 four-bin distribution and its bias
Section titled “4. Reproduce the four-bin distribution and its bias”For and , verify the complete distribution, expectation, decoded-error event, and operation counts.
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 operation counts and an error bound
Section titled “5. Derive the operation counts and an error bound”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. Why one power is not enough
Section titled “7. Why one power is not enough”Suppose every shot applies exactly one ordinary Grover iterate before the good/bad measurement. Compare the complete measurement distributions for and . Can arbitrarily many such shots distinguish them? What additional power would resolve this example?
Solution
The one-iterate success probability is . It vanishes for both and , so both experiments always report failure. No number of independent shots at this single power distinguishes the two probabilities. Shots at have success probability , and therefore distinguish this pair with sufficiently many samples. Combining suitable powers, or restricting the possible angle to a known interval, prevents such ambiguities in an estimation procedure.
8. Encode a signed expectation and allocate error
Section titled “8. Encode a signed expectation and allocate error”Let and . Rescale to , write a normalized address–flag state, and recover from the flag-one probability. If each encoded value of has error at most and remains in , what amplitude-estimation error suffices for total expectation error at most ? Assume the address probabilities are exact.
Solution
The rescaled values are , giving
The squared amplitudes sum to . The flag-one probability is , and , agreeing with the direct weighted sum.
Encoding errors change by at most . If amplitude estimation has additive error at most relative to the encoded probability, then
on the algorithm’s stated success event. Encoding bias is systematic; taking more shots does not remove it. Other preparation, arithmetic or circuit errors would need part of the same accuracy allowance.
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.