|
Algorithm 3: Grover [59] |
Perform a Walsh-Hadamard transform on the initial state , and then repeat the following steps times.
Apply the oracle
Perform a Walsh-Hadamard transform of the query register
Apply to the query register. This is an n-controlled-Z with all controls inverted (including the target Z).
Perform a Walsh-Hadamard transform of the query register
Then measure the query register, which will give you the satisfying assignment with highprobability (see further [30]). One repetition of the steps 1–4 is known as the Grover operator. |