Skip to main content
. 2019 Aug 15;21(8):800. doi: 10.3390/e21080800
Algorithm 3: Grover [59]
  Perform a Walsh-Hadamard transform on the initial state 0n1, and then repeat the following steps 2n times.
  1. Apply the oracle

  2. Perform a Walsh-Hadamard transform of the query register

  3. Apply (I-200) to the query register. This is an n-controlled-Z with all controls inverted (including the target Z).

  4. 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.