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.
Articles by others on the same topic
There are currently no matching articles.