Put and write , with normalized. The Hadamard gates prepare the control register in . Controlled powers of the unitary operator then give quantum phase kickback:Thus the register quantum state is , while the target remains . Define the quantum Fourier transform by . Its inverse givesWhen , the inner finite geometric series equals if and zero otherwise. Therefore exact quantum phase estimation givesThe quantum phase, rather than an unrestricted integer , is recovered modulo .
The printed circuit has no bit-reversal swaps. Its top control uses , and its measured top wire gives the least significant output bit. Write . Before the top wire's final Hadamard gate, its relative quantum phase is , so that gate produces . The controlled inverse quantum phase gates then subtract its contribution from lower wires. More generally, before the final Hadamard gate on wire , the relative quantum phase isso that wire gives deterministically. For the three-wire drawing, the correct interpretation isEquivalently, its Fourier-inversion circuit is , where reverses the register bits. Relabeling the measured bits or appending swaps gives the usual integer output. This bit convention matters, for example, when quantum phase produces top-to-bottom bits , representing the label four rather than one.
Write , with . Decode the measured bits as above. The probability amplitude of label isUsing the finite geometric series,Interpret removable singularities by continuity. In particular, near-grid quantum phase estimation returns the nearby exact label with probabilityThis is near one under the stated small-offset assumption, but not exactly one when .
There is also a rigorous error bound. Taking the squared modulus of the sum giveswhere and the elementary sums of and evaluate the last expression. HenceOn that event the circular quantum phase error is at most . For other labels, the exact probabilities areTheir total is , describing the leakage from the perfect solution. The physical output bit string remains reversed in the printed circuit; this changes its decoding, not these probabilities.
A central application is quantum order finding, which supplies the quantum step in the Shor algorithm for factoring an integer . Choose an integer coprime to , and let be its multiplicative order modulo . On valid residue quantum states define the reversible modular-multiplication unitary operator , extending it reversibly to any unused computational basis quantum states.
The orbit has the orthonormal eigenstatesfor . One need not know to prepare an eigenstate: the easy input makes quantum phase estimation sample one of these eigenphases. Its control register estimates . With chosen at least of order , the nearest quantum phase label has rational approximation error small enough for continued-fraction recovery in quantum order finding. For instance, gives on the nearest-label event. If and are coprime, the recovered denominator is ; otherwise one obtains a divisor and can repeat, combine candidates and verify them by modular exponentiation.
When the verified order is even and , the greatest common divisorsgive nontrivial factors: their product is divisible by , while neither factor inside the gcd is zero modulo . Unsuccessful choices of or quantum phase samples are handled by repetition and classical verification. Controlled powers of are implemented by efficient reversible modular arithmetic, rather than by naively applying exponentially many times.
Quantum phase estimation turns modular-multiplication eigenphases into an efficiently usable period, enabling quantum factoring in time polynomial in the bit length of the integer. Factoring is important to public-key cryptography, and this is a major example of a quantum algorithm improving on known classical methods. Another use is extracting energy eigenvalues by applying quantum phase estimation to a controlled time-evolution operator, with care to avoid energy aliasing and to prepare an input having overlap with the desired eigenstate.
Articles by others on the same topic
There are currently no matching articles.