Table of Contents

Quantum Fourier Transform (QFT)

Quantum Fourier Transform is an $n$-qubit unitary gate that maps the computational basis state $|j\rangle$ to a uniform superposition with phases determined by $j$. It is the quantum analogue of the classical discrete Fourier transform and is a subroutine in Shor's factoring algorithm, phase estimation, and other quantum algorithms.

Definition

For $n$ qubits, the Quantum Fourier Transform is:

$$\text{QFT}|j\rangle = \frac{1}{\sqrt{2^n}} \sum_{k=0}^{2^n-1} e^{2\pi i jk/2^n} |k\rangle$$

The matrix element is $\text{QFT}[k][j] = \frac{1}{\sqrt{2^n}} e^{2\pi i jk/2^n}$ (unitary and normalized).

Phase Encoding

The QFT encodes the input $j$ as phases in the output superposition. Each output basis state $|k\rangle$ receives a phase $e^{2\pi i jk/2^n}$, proportional to the product $jk$.

Circuit Implementation

The QFT can be decomposed into single-qubit rotations and two-qubit controlled-phase gates:

  1. Apply Hadamard to qubit 0
  2. For $j = 1, 2, \ldots, n-1$:
    • Apply controlled-$R_k$ (phase rotation by $2\pi/2^k$) from qubits $0$ to $j$
    • Apply Hadamard to qubit $j$
  3. Apply bit-reversal permutation to reorder qubits

Circuit depth: $O(n^2)$ for nearest-neighbor architecture (two-qubit gates dominate)

Gate count: $O(n^2)$ two-qubit gates + $O(n)$ single-qubit gates

Properties

Applications

Shor's factoring algorithm:

Phase estimation:

Variational algorithms:

Quantum simulation:

Scalability

QFT implementation complexity:

Approximations

Approximate QFT (aDFT): omit least significant rotations to reduce gate count

Relation to Other Gates