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