Throughout this question let , , and . These subset sums are unnormalized: and . The promise implies that is divisible by four. No power-of-two assumption is needed for the abstract -dimensional calculation.
Substitute the promised cardinalities:
The marked and unmarked subsets also exhaust the computational basis, so ; this will ensure that the uniform initial state has unit norm.
By orthonormality of the computational basis,
There is one nonzero term, the term with . In particular, the uniform coefficient is unchanged when passing from the ket to its bra because it is real.
Summing part (i) over the unmarked indices gives . The Grover diffusion operator therefore acts as
This is an identity for an unnormalized subset sum; it does not require replacing its norm by one.
For the marked subset, by the same summation of the individual inner products. Consequently
The cardinality is here. Its sign will reverse when this expression is used for the oracle's negative marked component.
The phase oracle multiplies an unmarked basis vector by and a marked one by . Thus the state after the oracle is
Its squared norm is . All computational outcomes would still have probability if measured at this point: the oracle has changed the relative phase, not the magnitudes of the amplitudes. The following reflection converts that phase information into a changed probability distribution through quantum interference.
Apply parts (b)(ii) and (b)(iii), keeping the oracle's minus sign:
The middle equality uses part (a), and the last uses . The final squared norm is , providing a normalization check.
The sign convention matters: here fixes and negates its orthogonal complement. Its action on amplitudes is inversion about the mean. The negative of this reflection would change the final vector by an overall global phase, but mixing those conventions midway would give incorrect intermediate signs.[ref]
The algorithm returns a uniformly random marked input with certainty. The Born rule applied to the final state gives, for each individual basis label ,
Summing over the marked inputs gives . The outcome is a marked input label, not merely the bit indicating whether some marked input exists. There is one use of the supplied phase oracle, together with the specified preparation, reflection and measurement.
The exact success relies on the marked fraction . More generally, the mean amplitude immediately after the oracle is . Inversion about the mean sends an unmarked amplitude to and a marked amplitude to . Thus a single iteration has marked success probability . At the unmarked amplitudes vanish and the marked amplitudes become , giving the one-step exact Grover search with a quarter of the inputs marked. No claim of one-query certainty for an arbitrary marked fraction is needed.
Figure 1.
Original amplitude and Born-probability illustration for eight inputs with two marked. The oracle's relative minus signs become exact concentration on the marked inputs after one reflection.
Details.

Articles by others on the same topic (0)

There are currently no matching articles.