Algorithms

amplitude amplification

Imagine every possible answer to your problem as a slider on a giant mixing board, and the height of each slider is that answer's amplitude. When you finally measure, you don't read the slider directly; the chance of getting a given answer is the square of its slider's height. At the start, all the sliders sit at roughly the same low level, so every answer is about equally (un)likely. Amplitude amplification is a careful, repeated nudge that raises the sliders for the answers you want and lowers the rest, so that by the end a measurement almost always hands you a correct one.

Each round does two things: an oracle marks the good answers (flipping the sign of their amplitude), and then a second step reflects all the amplitudes about their average. Geometrically, the combined move rotates the whole state a little closer to the marked answers each time, like inching a compass needle toward true north. You have to stop at the right moment, though: keep rotating past the target and the amplitude swings back down, so the answer gets less likely again. This is the engine inside Grover's search, where you find a marked item among N candidates in about sqrt(N) steps. That is a real and useful speedup, but a quadratic one, not the dramatic exponential gain that some structured problems (like Shor's factoring) enjoy.

p_success ~= sin^2((2k+1) * theta), where sin^2(theta) = M/N

After k iterations, the probability of measuring one of the M marked answers among N total follows this curve — it rises, peaks near k ~ (pi/4)*sqrt(N/M), then falls if you overshoot.

It is not 'trying all answers at once': the parallelism is real, but it only pays off because the interference between amplitudes is engineered to concentrate probability on the right answers before you measure.

Also called
amplitude amplification technique振幅放大振幅放大技术振幅放大技術