The engine inside Shor's algorithm. See how QFT maps computational states to frequency states using phase wheels. Understand period finding โ and why quantum computers can break RSA encryption.
Decomposes a signal into frequency components. Classical FFT: O(N log N). QFT: O(logยฒN). Exponential speedup.
QFT maps each computational basis state to evenly spaced phases on the unit circle. Phase = frequency. The unit circle IS the frequency domain.
For f(x) = aหฃ mod N, QFT finds the period r in one quantum measurement. Classical: exponential time. Quantum: polynomial time.
RSA encryption relies on factoring being hard. Shor uses QFT to factor in polynomial time. Threatens all RSA-encrypted communication.
You understood the algorithm that threatens internet encryption โ and why the world is preparing for quantum computers!
QFT on n qubits: n(n+1)/2 gates. Classical FFT on N=2โฟ points: Nยทlog N โ nยท2โฟ operations. For n=50: 1275 gates vs 50 quadrillion operations.
Measuring QFT output collapses it to one sample. The speedup only works as a subroutine โ Shor reads a single period-related value and classical post-processing does the rest.
RSA-2048 takes 300 trillion years classically but ~8 hours with a large quantum computer. This is why post-quantum cryptography standards were published in 2024.
You now understand Deutsch (oracle queries), Grover (โN search), and QFT/Shor (exponential factoring). Sessions 5-8 cover hardware, cryptography, chemistry, and applications.