We want to find , given an Unitary Operator , where . Grover’s algorithm solves this when has a single element by:

  1. Getting our system into the superposition .
  2. Apply the loop
    1. Apply our oracle
    2. Invert amplitudes around the mean through the diffusion operator , where .
  3. After iterations we moved our Quantum state in the direction of the solution by an angle of . We want to choose to make this as close as possible to , and then make a measurement to find the solution. I still need to write this out.
  4. Read the result, where the amplitude now is mostly centred in the set around
  • Do the above when the set has a known number of solutions, and an unknown number of solutions.