The best classical strategy avoids previously failed inputs: inspect a uniformly random permutation. Assume and let be the first marked position. For , the first guesses must all fail and the next must succeed. Thus
The empty product covers . The binomial form follows by choosing the marked positions uniformly: put one at and the remaining after it. This is the first marked item in a random permutation distribution.
The requested range is part of its support, but omits the last possible value . All bad inputs can be encountered first, after which success is certain. The same formula includes that nonzero terminal probability; summing through this last value gives one. If , the search never succeeds. If sampling were instead with replacement, its inferior repeated-guess strategy would have the geometric law with no such finite endpoint.
With one marked input, after distinct failed guesses it is uniformly distributed among the untested inputs. Therefore the conditional chance of success on the next guess is . One further failure raises it by
or by a multiplicative factor . There is a different unconditional statement: the marked position is uniform, so and . Thus each additional distinct guess increases cumulative success by , even though the conditional next-guess probability increases after each failure. These distinguish the two possible meanings of a probability boost.
At this stage is an arbitrary unitary operator; do not yet assume it prepares the displayed uniform state from zero. Put , and . The phase on the zero basis state can be written using a rank-one orthogonal projection as , hence
The marked-state phase sends to and leaves unchanged. Therefore
and
This is the complete general action. Unless lies in their span, that two-dimensional space need not be invariant. The PDF uses in ; the TeX conversion's replacement by is a transcription error and would describe a different operation.
Now . Suppose , and normalize the orthogonal good and bad components:
Their disjoint computational supports make an orthonormal basis. For , the two-dimensional matrix for phase amplitude amplification is
To obtain its first column, the marked phase first multiplies by , then adds its projection onto ; the second column is obtained similarly without . This also proves unitarity: the rank-one phase has eigenvalues on this plane, and the marked phase has eigenvalues , all of unit modulus. Their negative product is unitary for any real phases.
Using the unnormalized pair instead would produce a differently scaled matrix, which is not in general unitary in the ordinary Euclidean metric. At or one component vanishes and the relevant search space is one-dimensional.
For , the preceding matrix becomes
Multiplying it by gives . The sine and cosine addition identities then prove by induction that
For , the first angle reaching the interval gives success at least one half. Its smallest integer iteration count is
The ceiling advances the angle by less than , so the chosen angle remains in that success interval. This is the first half-success time in Grover search. If near-certain rather than half success is desired, choose the nearest integer to ; its success is at least and the count is asymptotic to . Both exhibit the quadratic query improvement of amplitude amplification. Success oscillates, so further iterations past the first maximum are not automatically beneficial. The count presumes positive known (or known ); if no marked item exists, no number of iterations can produce one.

Articles by others on the same topic (0)

There are currently no matching articles.