Apply Hadamard gates to to prepareReversibly compute the efficiently decidable predicate into an ancillary qubit and measure it. The success probability is , and conditioned on success the first register is exactlyRestart after a failed measurement. After attempts, the probability that all attempts fail is below , so the state is prepared with probability at least using a number of gates polynomial in and .
Write . Applying the phase gateto qubit contributes . The product of these gates is thereforeSimilarly, for and , apply a controlled phase gatebetween every pair . The accumulated phase isThe controlled phase gates implement
Prepare in the second register by part (ii), while preserving the first register . Applying the diagonal unitary from part (iii) givesThe preparation can be made coherent using amplitude amplification in place of postselection when this map is needed as a subroutine.
The shift acts on a Fourier state asThus is an eigenvector of with eigenphase . Apply the unitary part of exact quantum phase estimation for to a zeroed control register and this Fourier state. It writes the eigenphase label coherently:
Start with and a zeroed second register. Apply the coherent construction from part (a)(iv) to obtainNow run the inverse of the phase-estimation map from part (b) on the two registers. It erases the first label in both branches:Discarding the zeroed register leaves the required quantum Fourier transform of the superposition. The coherent use of a computed label followed by its inverse is an uncomputation.
Articles by others on the same topic
There are currently no matching articles.