Classically you may need to check every item. Grover’s algorithm finds a marked item in roughly √N steps — a huge speed-up!
Oracle: flips the phase of the secret solution (marks it).
Diffuser: amplifies the marked amplitude so it becomes more likely.
After enough iterations the target is almost certain when you measure.
This is one of the most famous quantum algorithms and shows why quantum computers will be powerful for searching and optimisation.
Learn Grover’s famous search algorithm by flying through a quantum database!
Final Score: 0
You just ran a real quantum algorithm. Grover’s search is used in cryptography research and future optimisation tools.