Grover's Search on a Noisy Quantum Computer: How Many Iterations Actually Help?
Every Grover tutorial gives you the same formula: for a search space of N items, run about (π/4)·√ N iterations and you will find the marked item with high probability. That formula is correct — on a perfect machine. I wanted to know what happens to it on real hardware, where every iteration adds gates and every gate adds error. Short answer: the best number of iterations is smaller than the textbook says, and you can measure exactly how much smaller. Grover in three sentences Start with every item in equal superposition. Repeat two steps: an oracle flips the sign of the marked item's amplitude, and a diffuser reflects all amplitudes about their average, which grows the marked one a little each round. Too few rounds and the marked item is not amplified enough; too many and you rotate past it and the probability falls again. The circuit The oracle uses X gates to map the marked string onto |11…1⟩, then a multi-controlled Z (written as H · multi-controlled X · H). The diff...