Algorithms

quantum Fourier transform (QFT)

Think of the quantum Fourier transform as a way of asking, 'What rhythms are hiding in this pattern?' A classical Fourier transform takes a signal and tells you which frequencies it's built from. The QFT does the same job, but on the amplitudes that describe a quantum state instead of on a list of numbers in memory. If a quantum state holds some hidden repeating structure, like a period that repeats every r steps, the QFT reshapes the amplitudes so that the periodic information lines up where a measurement is likely to reveal it.

Here is the honest, important part. The QFT is fast in a specific, narrow sense: it can be built from far fewer quantum gates than the classical Fast Fourier Transform needs arithmetic operations, roughly the square of the number of qubits versus n times log n operations over a list of 2^n numbers. But that does NOT mean you get to read out the whole transform. Measuring the state still gives you just one outcome, drawn by the Born rule from the transformed amplitudes. The QFT is powerful only because, inside the right algorithm, it makes the amplitudes interfere so that useful structure, like a hidden period, becomes the likely thing you see. On its own, with no clever surrounding algorithm, it does not hand you a faster spreadsheet of frequencies.

This is why the QFT matters mostly as a subroutine, not a standalone tool. It is the engine inside quantum phase estimation, and it is the step in Shor's algorithm that extracts the period needed to factor large integers, which is what makes Shor a threat to RSA and ECC. Outside of problems with this kind of hidden periodic or algebraic structure, the QFT gives you no general speedup over classical computing.

QFT: |x> -> (1/sqrt(N)) * sum_{k=0}^{N-1} exp(2*pi*i*x*k/N) |k>

The QFT maps a basis state |x> to a superposition whose amplitudes carry a frequency-dependent phase; interference among these phases is what later concentrates probability on the answer you care about.

The QFT's gate count is small, but you can never read out the full transform; it is useful only when an algorithm arranges the amplitudes to interfere so a single measurement reveals the structure you want.

Also called
QFT