Write . For , the unmarked computational basis vectors in give the normalized vector
Its norm is one and , so these two vectors form an orthonormal basis for . Splitting the uniform superposition state into its marked and unmarked terms gives
The nonnegative coefficients select the specified angle in .
There is one degenerate boundary case: if , then and is one-dimensional. No vector in can complete to a two-element orthonormal basis. Thus the printed two-dimensional description needs . For the search itself is already solved, with and no query.
For , use the orthonormal basis from the preceding part. Both reflection operators preserve , because their reflected vectors belong to it. With and , their restricted matrices are
Multiplying in the specified order, including the overall minus sign, gives
Equivalently,
In particular, sends to . This proves the Grover rotation angle description with the signs appropriate to these reflection operators.
For , induction using the Grover rotation angle gives
The quantum measurement in the computational basis therefore returns with probability . Since , the first angle interval attaining the required success is
The first successful Grover iterate is consequently
Indeed, this is the first integer at or above the lower endpoint requirement . The inequality also implies , so this iterate cannot overshoot the first success interval. Every smaller nonnegative integer lies before that interval and fails the threshold. Finally, for , so
For the singleton case , measuring the initial state already returns with certainty, and . For , the requested threshold is only , so zero iterations already suffice. These boundary cases agree with the search guarantee.
List the known distinct strings in as , where , and use an -qubit index quantum ancilla. Apply Hadamard gates to that register to prepare
First, for each with , apply the available unitary operator that transposes and . The pairs are disjoint because they have distinct index labels. Skip a transposition when the two vectors coincide. This produces
Second, for each , transpose and . These pairs are disjoint because the data strings are distinct. No pair contains the term with , and no later transposition moves an earlier output. The final state is exactly
This clean subset superposition preparation uses at most of the given transpositions and Hadamard gates. Since , is polynomial in ; multiplying this count by the assumed polynomial size of each transposition gives a polynomial-size quantum circuit. The index quantum ancilla returns to zero, so the data register is a pure uniform superposition state, rather than a mixture obtained by discarding its index. The construction uses an available enumeration of the known subset; a membership oracle alone would not justify that enumeration.

Articles by others on the same topic (0)

There are currently no matching articles.