QFT as glasses for periods
Abstract
The quantum Fourier transform is the same classical Fourier transform, applied to amplitudes. On a periodic amplitude comb it piles constructive interference at multiples of N/r and cancels everywhere else — which is why period finding, and therefore Shor, can read a hidden period from a single measurement.
The classical Fourier transform is two centuries old and has nothing to do with quantum mechanics. What it does fits in one sentence: it turns a period that is invisible on the time axis into a peak on the frequency axis.
A chord mixed from several tones is hard to parse by ear. A spectrum analyser lights those tones as separate peaks. The discrete Fourier transform is that analyser for a length- signal:
For every frequency at once, it asks how much of period sits inside . Noise can make the time series look messy while the peaks still stand — periodic structure is usually tougher than noise.
Same transform, different carrier
The quantum Fourier transform is the same map, with one change of carrier: the input is no longer an array of numbers but the amplitudes of a quantum state.
Same kernel. has become an amplitude; the output is read as a measurement probability. That is the whole difference that matters for period finding.[1][2]
Why a periodic amplitude comb becomes peaks
Suppose the state before QFT is an amplitude comb with spacing — nonzero only every basis states. Measuring that state returns one random on the comb. One does not reveal .
Apply the QFT. For each candidate frequency , the phases contributed by the comb either line up or spread evenly:
- When is near a multiple of , the phases reinforce (constructive interference). Those bins get most of the probability.
- Everywhere else the phases cancel (destructive interference). Those bins nearly vanish.
So QFT is not inventing information. It relocates it: the phase structure that was invisible to a computational-basis measurement becomes a concentration of probability at the right frequencies. After one shot you typically hold a sample related to , and classical continued fractions recover .
QFT moves phase that probability cannot see into probability that measurement can see.
Where this sits in Shor
Shor does not search for factors of by trial division. It replaces factoring with period finding.[3]
- Pick a random base with .
- Build the modular-exponential sequence , which is periodic with some unknown period .
- Prepare a superposition, compute into an ancillary register, and obtain a periodic amplitude comb.
- QFT + measure — the only quantum stretch that does the real work.
- Continued fractions and a classical gcd finish the factors when is even and well-behaved; otherwise retry.
Everything before and after step 4 is classical. The quantum machine is there to put on Fourier glasses and read a period that would otherwise cost exponential modular exponentiations.
What QFT is not
QFT is not a universal accelerator. It pays off when the problem has a periodic structure that Fourier sampling can expose — discrete log and factoring live in that class. Unstructured search does not; that is Grover’s square-root story, not QFT’s.
If you only remember one picture: classical Fourier finds tones in a waveform; QFT finds the hidden period of an amplitude comb and hands that period to the classical post-processing that actually cracks RSA-style hardness.
References
- [1]M. A. Nielsen and I. L. Chuang. Quantum Computation and Quantum Information. Cambridge University Press, 10th anniversary ed., 2010.
- [2]D. Coppersmith. An approximate Fourier transform useful in quantum factoring. IBM Research Report RC 19642, 1994.
- [3]P. W. Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. Comput. 26, 1484, 1997.


