KnowledgeCookies logo Understanding the language of quantum science
QPicDepict / Quantum computing

Quantum Fourier transform

The quantum Fourier transform changes from basis labels to evenly weighted phase patterns.

Quantum Fourier transform infographic. A reading guide and explanation follow.
N=4N = 4, input x=1x = 1. y=0y = 0: +1, y=1y = 1: +i, y=2y = 2: −1, y=3y = 3: −i. Open full-size image Download PNG

How it works

  1. Encode

    For a basis input x, every output y has equal magnitude and relative phase 2πxy/N.

  2. Build

    Hadamards and controlled phase rotations implement the transform. Swaps fix wire order when needed.

  3. Decode

    An inverse QFT converts a phase pattern to a basis label. Non-grid phases distribute weight over several labels.

Equation and quantities

QFT⁡∣x⟩=1N∑y=0N−1exp⁡ ⁣(2πixyN)∣y⟩\operatorname{QFT}\lvert x\rangle=\frac{1}{\sqrt{N}}\sum_{y=0}^{N-1}\exp\!\left(\frac{2\pi ixy}{N}\right)\lvert y\rangle

Worked example

Input ∣1⟩\lvert 1\rangle for N=4N = 4 gives amplitudes (1, i, −1, −i)/2. A direct basis measurement is uniform even though the phases retain the input information.

Why it matters

QFT and inverse QFT are tools for phase estimation and period finding.

Limits and assumptions

A single measurement cannot read every transformed amplitude. The speed of implementing the transform does not imply fast classical access to all coefficients.

What does applying the inverse QFT to the diagram’s state return?

The basis state ∣1⟩\lvert 1\rangle.

Related reading