Quantum Phase Estimation
Quantum phase estimation (QPE) measures the phase of a unitary eigenvalue. If
controlled powers of and an inverse Fourier transform produce an estimate of . An exactly representable phase is recovered with certainty by the ideal circuit; otherwise the output has a calculable distribution of nearby values and tails. For a general target state, QPE also partially measures which eigenspace the target occupies.
This connects interference to spectroscopy, order finding and amplitude estimation. The essential resources are a suitable target preparation and coherent controlled powers, whose implementation can cost much more than the short binary answer suggests.
Helpful background. Phase kickback explains how a target eigenphase becomes a control’s relative phase; the quantum Fourier transform supplies the decoder and its bit-order convention.
Eigenphases and controlled evolution
Section titled “Eigenphases and controlled evolution”An overall phase multiplying an isolated state is unobservable. A controlled operation makes it observable relative to the branch on which nothing happens:
Here the control applies on its branch. The target remains in , while interference on the control can reveal modulo one. Increasing increases sensitivity but also creates more phase ambiguity; several powers resolve that ambiguity together.
An available implementation of does not automatically provide controlled-, particularly for an unknown black box. A known circuit can be controlled gate by gate, with additional cost. Moreover, and induce the same unconditional target channel but different controlled operations: becomes a relative control phase. A physical phase reference and the controlled implementation therefore belong to the problem specification.
The ideal analysis below assumes exact controlled powers and an exact inverse QFT. Implementation errors and imperfect target preparation are considered after the probability law.
From powered unitaries to a binary estimate
Section titled “From powered unitaries to a binary estimate”Let and write the control-register basis in most-significant-bit-first order,
Hadamards prepare . Control then applies . On branch , these powers multiply to , giving
The controls now form a phase-gradient state: neighboring basis amplitudes differ by . The target factors out because it is an eigenstate.
The top control is the most significant bit, so it controls . The block includes the bit ordering in the displayed Fourier definition; the measured integer is . For an eigenstate the target is unchanged.
Use the positive-sign Fourier convention
If , the control state is exactly . Applying returns and measurement gives with certainty. For example, produces . This non-palindromic example also detects an omitted bit reversal: would mean six, not three, unless the readout is explicitly reversed.
An exact -qubit QFT has an elementary decomposition. Approximate QFT circuits omit sufficiently small rotations, introducing a separate error. See the QFT derivation for the gates and swaps. One measurement still returns one integer, not an entire list of eigenvalues.
Finite-resolution phase probabilities
Section titled “Finite-resolution phase probabilities”For an arbitrary phase, the amplitude of outcome after the inverse QFT is
Phases live on a circle. Define
Subtracting the integer leaves the exponential sum unchanged. Summing its geometric progression gives
At take the continuous value . The tails are part of the ideal measurement distribution. In particular, a phase near one can yield with high probability: that is a nearby estimate on the circle.
For and , direct substitution gives
These adjacent bins carry about of the probability. A single result is an estimate with error , not an assertion that the unknown phase equals .
Nearest bin and confidence
Section titled “Nearest bin and confidence”Choose a nearest grid point on the circle, including either choice at a tie. Its distance is at most , and elementary sine bounds yield
This is a guarantee for one particular bin, and is below one half. It alone does not justify majority voting on that bin. Confidence can instead be increased by accepting a specified neighborhood and using additional phase qubits, or by a repetition scheme with a proved success event. Arithmetic averages or medians of representatives in require particular care at the zero/one seam.
Extra phase qubits and what to report
Section titled “Extra phase qubits and what to report”State accuracy as an inequality. For and , a sufficient choice is
Then the unrounded estimate obeys
Here is a direct, conservative tail argument. Put . For , the denominator bound gives . At most two outcomes have distance in each interval . The failure event has , so
The chosen number of qubits is sufficient, not optimal. It guarantees proximity, not recovery of a uniquely defined first binary digits for phases arbitrarily close to a binary boundary.
Rounding to the nearest -bit grid point adds at most of circular error; discarding digits can add almost . If the final answer must be rounded to bits while retaining error at most , run the same bound with target raw error first. One extra phase qubit then leaves room for the rounding error.
Finite-resolution measurement of a general target
Section titled “Finite-resolution measurement of a general target”Let the distinct unitary eigenvalues have spectral projectors :
Reading the control outcome applies the target Kraus operator
Thus, for any initial density operator ,
The probabilities are a weighted mixture of phase distributions because different eigenspaces are orthogonal. The conditional state need not be an eigenstate: several eigenspaces can contribute coherently to the same bin. Within a degenerate eigenspace, is a scalar, so it does not resolve or dephase the vectors inside that eigenspace.
For a concrete example, take , two orthogonal eigenvectors with phases and , and input . Outcome zero has amplitudes
It therefore occurs with probability and leaves
This finite-resolution filter preserves a superposition. Exact projective measurement is obtained when all relevant distinct phases lie on distinct grid points; well-separated peaks approximate that behavior.
No amplitude is created in an eigenspace absent from the input. However, Fourier tails can produce numerical estimates near an eigenphase that is absent. Those are different claims. Likewise, QPE does not favor low energy by itself: a well-resolved, identifiable eigenspace of initial weight requires order fresh attempts to see once on average. Finite-resolution false positives and preparation errors must also be included when accepting a result as a particular energy.
Discarding the phase register
Section titled “Discarding the phase register”Ignoring the readout averages the conditional states with their probabilities. Substituting and using discrete Fourier orthogonality, , gives
The same channel results if the control register is simply traced out, even before the inverse QFT. A unitary acting only on that discarded register cannot change the target’s reduced state. This is an average over coherent evolutions, not a prescription to replace every run by a particular eigenstate.
In the spectral decomposition, each coherence block is multiplied by
Consequently, eigenspace populations and all coherence within a degenerate eigenspace are preserved. Distinct phases on the -point grid have zero multiplier, recovering the nonselective projective measurement . At finite resolution, off-grid coherences can survive, as the example above illustrates.
Discarding the phase register therefore generally changes the target, even when no result is used. To restore an arbitrary input coherently, retain the register and reverse the entire ideal QPE circuit before measurement or other loss of coherence. Reversing only the inverse QFT leaves the controlled-power entanglement in place.
Precision, evolution time and implementation error
Section titled “Precision, evolution time and implementation error”There are controlled-power blocks, but their cost depends on the available operations:
| Available operation | Implementing | Total cost of the powers |
|---|---|---|
| Supplied powered-unitary primitive | One call to the specified power | calls in this stronger access model |
| Repeated controlled- | base calls | base calls |
| Controlled Hamiltonian simulation | Evolution for time | Simulated durations sum to |
Structured arithmetic can implement powers efficiently without literal repetition, as in Shor’s algorithm. For energy estimation with , the total interrogation time in the standard sequential circuit is
The longest individual block lasts ; the target remains coherent across all blocks and the decoder. At fixed confidence, the bin scale gives an energy resolution of order . More confidence or a small initial overlap increases the total experimental cost. Merely counting output bits or controlled-power boxes hides these costs.
To separate implementation from ideal statistical error, suppose the target preparation has trace distance at most from the specified input. If implemented controlled blocks differ from their ideal unitaries in operator norm by at most , and the inverse QFT differs by at most , telescoping the circuit and using measurement contractivity bounds the change in any output-event probability by
This bound applies to unitary implementation errors; general noise can instead be bounded using channel distances. Long powers are often harder because simulation and calibration errors accumulate with duration. An operator-norm error does not receive an additional weight merely because its block has the largest power. For repeated base gates each of error at most , a conservative total contribution is .
Energy estimation without a phase ambiguity
Section titled “Energy estimation without a phase ambiguity”For , the shifted unitary
has eigenphase
The minus sign follows from the time-evolution operator. The offset is a genuine control phase and must be implemented consistently. An energy interval of width is mapped injectively into the phase circle if .
Injectivity of the exact mapping alone does not make naive finite-precision decoding safe. Taking puts the upper endpoint at phase zero, so a nearby estimate just below one must be unwrapped before converting it to an energy.
A convenient alternative puts the entire promised interval away from that seam:
Then . If the circular phase error is strictly less than , the reported representative in has the same ordinary absolute error, and
For example, a promised range in a chosen energy unit gives , and . Energy has phase ; phase error at most means energy error at most in that unit. If , the promised energy is already known and this construction is unnecessary.
Abrams and Lloyd developed the eigenvalue application; molecular examples and resource studies include Aspuru-Guzik and collaborators and Reiher and collaborators. A useful calculation must include preparation overlap and controlled-evolution error, not only phase bins. Trotter–Suzuki methods treats one implementation and its energy bias; digital quantum simulation places it among other methods.
Semiclassical and iterative measurements
Section titled “Semiclassical and iterative measurements”The Griffiths–Niu construction replaces a Fourier transform immediately followed by computational-basis measurement with sequential one-qubit measurements and classical phase corrections. It preserves those output statistics; it does not implement a coherent Fourier transform for use by a later quantum subroutine. Reordering the controlled powers appropriately also allows the phase register to be replaced by a reused ancilla.
In an iterative protocol, each round applies a selected controlled power and a correction determined by earlier outcomes. Width decreases, but rounds become sequential and accurate measurement, reset and feedforward matter. The largest required power remains. Dobšíček and collaborators give a concrete single-ancilla implementation.
For an eigenstate, the target can be retained or the same eigenstate can be prepared again. For an unknown superposition, retaining the target preserves the correlations that make successive bits refer to a common phase. Preparing a fresh superposition independently for every bit generally samples different latent eigenphases and need not reproduce standard QPE. Repeated statistical experiments on such inputs require an explicit mixture-estimation analysis.
Kitaev’s approach instead estimates sine and cosine quadratures of for selected powers, then combines their modular information classically. One experiment with control correction followed by a Hadamard gives
Choosing or reveals the two quadratures through repeated samples. This trades a coherent multi-qubit decoder for statistical inference; it does not make long controlled evolution or state preparation free.
Exercises
Section titled “Exercises”1. Exact phase and bit reversal
Section titled “1. Exact phase and bit reversal”For and three control qubits, find the state before and after . Why is this a better bit-order test than ?
Solution
The control state is . The inverse produces with certainty. Reversing the readout gives , which would be decoded as six without a reversal correction. The string for is a palindrome and would conceal this mistake.
2. Derive the phase-gradient state
Section titled “2. Derive the phase-gradient state”Starting from , derive the phase-gradient state by considering one computational branch.
Solution
On , the target operation is
It contributes and leaves the eigenstate unchanged. Summing all branches with their original amplitude gives the stated phase gradient. The tensor order and integer weights must agree; reversing only the powers changes this state.
3. Nearest-bin probability and rounding
Section titled “3. Nearest-bin probability and rounding”Prove the nearest-bin bound. If a raw estimate is within of the phase on the circle, bound its error after rounding to the nearest -bit phase.
Solution
For the nearest bin, . The inequalities for and give
Hence , and squaring proves the claim. The value at zero follows by continuity. Rounding adds at most ; the triangle inequality for circular distance gives final error at most . This is a proximity statement, not a guarantee of the same truncated binary digits as the exact phase.
4. Resolved and unresolved eigenspaces
Section titled “4. Resolved and unresolved eigenspaces”Suppose the input is . Find the outcome probabilities and target states when the phases occupy distinct exact grid points. Then verify the , phases example in the text and explain the difference. For that equal-weight input, find the target density matrix and purity when the readout is ignored. Does ignoring it restore the initial state?
Solution
For exact distinct bins, the final state is . Outcomes have probabilities and and leave the corresponding eigenstates. Orthogonality of the readouts removes from these probabilities.
For the finite-resolution example,
With equal input weights, . Normalizing gives . The same readout now receives both eigenphase amplitudes, so the conditional target retains their coherence.
For the ignored readout, the coherence is multiplied by . In the ordered basis ,
The initial pure state’s off-diagonal entries were . Its populations are unchanged, but its coherence and purity have decreased. The averaged state is neither the original state nor the fully dephased . Coherently reversing QPE before reading or discarding its register would instead restore the original state.
5. Energy interval and the phase seam
Section titled “5. Energy interval and the phase seam”For , derive the no-aliasing condition on a promised interval of width . Explain the possible decoding error near , and show how the interior-interval choice in the text avoids it on its success event.
Solution
The exact phase is . If , it lies in one interval of width less than one and determines
But a true phase close to zero and an estimate have circular error , while naive subtraction uses an error near one. With and , the exact interval becomes . A circular error strictly below cannot cross the seam, so ordinary energy decoding has error exactly times the phase error.
6. Count the powers
Section titled “6. Count the powers”If powers are implemented by repeated controlled-, count the base calls. Compare three distinct resource counts for and base evolution duration .
Solution
The count is , of order at fixed confidence. For there are three controlled-power blocks, seven base calls and maximum individual duration . Their sequential durations sum to , before decoding and other gates. Those counts describe different resources.
7. One-control quadratures
Section titled “7. One-control quadratures”Apply and then a Hadamard to . Find for and .
Solution
The amplitude of zero is . Its squared modulus is . The two choices give
Estimating both quadratures removes the cosine-only reflection ambiguity. Multiple powers and repeated samples are still needed to resolve the phase to a chosen accuracy with a stated confidence.
References
Section titled “References”- D. S. Abrams and S. Lloyd, “Quantum algorithm providing exponential speed increase for finding eigenvalues and eigenvectors,” Physical Review Letters 83, 5162–5165, 1999, doi:10.1103/PhysRevLett.83.5162.
- A. Aspuru-Guzik, A. D. Dutoi, P. J. Love, and M. Head-Gordon, “Simulated quantum computation of molecular energies,” Science 309, 1704–1707, 2005, doi:10.1126/science.1113479.
- R. Cleve, A. Ekert, C. Macchiavello, and M. Mosca, “Quantum algorithms revisited,” Proceedings of the Royal Society A 454, 339–354, 1998, doi:10.1098/rspa.1998.0164.
- M. Dobšíček, G. Johansson, V. Shumeiko, and G. Wendin, “Arbitrary accuracy iterative quantum phase estimation algorithm using a single ancillary qubit: A two-qubit benchmark,” Physical Review A 76, 030306(R), 2007, doi:10.1103/PhysRevA.76.030306.
- R. B. Griffiths and C.-S. Niu, “Semiclassical Fourier transform for quantum computation,” Physical Review Letters 76, 3228–3231, 1996, doi:10.1103/PhysRevLett.76.3228.
- A. Yu. Kitaev, “Quantum measurements and the Abelian stabilizer problem,” 1995, arXiv:quant-ph/9511026.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010, doi:10.1017/CBO9780511976667.
- M. Reiher, N. Wiebe, K. M. Svore, D. Wecker, and M. Troyer, “Elucidating reaction mechanisms on quantum computers,” Proceedings of the National Academy of Sciences 114, 7555–7560, 2017, doi:10.1073/pnas.1619152114.
- P. W. Shor, “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer,” SIAM Journal on Computing 26, 1484–1509, 1997, doi:10.1137/S0097539795293172.