We want to find , given an Unitary Operator , where . Grover’s algorithm solves this when has a single element by:
- Getting our system into the superposition .
- Apply the loop
- Apply our oracle .
- Invert amplitudes around the mean through the diffusion operator , where .
- 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.
- 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.
- Does the above work for non-unitary