liveBook · Manning

Inverse quantum Fourier transform

As explained in Building Quantum Software with Python

The inverse quantum Fourier transform is the inverse unitary transformation of the quantum Fourier transform, mapping frequency-encoded amplitudes back to the corresponding computational-basis representation.

The inverse quantum Fourier transform (IQFT) is the inverse Fourier-basis transform on an n-qubit state. Its amplitudes are computed as inner products with Fourier basis states, using rotations with negative exponents; operationally, it can turn phase progression in a geometric sequence state into a distribution of amplitude magnitudes. section 7.3.2 section 8.0

A gate implementation applies Hadamard gates and controlled phase rotations with negative angles, then optionally swaps qubits. It mirrors the QFT circuit except for rotation signs. The gate count grows quadratically with the number of qubits, while equivalent classical state-vector processing traverses exponentially many amplitudes. section 7.4 section 7.4

Figure 7.22 Circuit diagram of the IQFT on a four-qubit system
figure

Inspect the four-qubit IQFT circuit to see the Hadamard, negative controlled-phase, and swap pattern. section 7.4

Recovering an encoded frequency

For the Fourier basis state F13 on four qubits, the IQFT recovers computational basis 1101. Processing starts at the rightmost qubit: a Hadamard and controlled phase rotations remove already-encoded phase contributions, revealing one binary digit per step; a final swap restores qubit order. section 7.4.1

Frequency encoding uses the IQFT in two important cases:

  • An integer frequency such as v = 4 in a three-qubit geometric sequence becomes outcome 4 with amplitude magnitude 1 and all other magnitudes zero. section 8.2.1
  • A non-integer frequency such as v = 4.7 produces magnitudes concentrated near neighboring integer outcomes, with the closest outcome largest. section 8.2.1
  • Quantum phase estimation applies the IQFT to its estimation register, then uses measurement outcomes to estimate an encoded phase frequency. section 9.3
  • Function encodings apply controlled phase rotations and then the IQFT to a value register, associating input selections with integer values or weights. section 10.0 section 10.1.2

How Building Quantum Software with Python covers it

How deep it goes
Explains Fourier-basis inner products, classical simulation, gate construction, and digit-by-digit recovery without a rigorous circuit-equivalence proof.
Examples
Uses F13 on four qubits, three-qubit frequencies 4 and 4.7, phase-estimation circuits, and knapsack value and weight registers.
What it assumes
Builds from complex-number rotations, quantum state vectors, and binary digits while introducing Fourier bases and circuit-level IQFT construction.
What you can do after
Apply it via QuantumCircuit methods to decode phase-encoded frequencies and append inverse Fourier transforms to selected registers.
How it connects
Connects the quantum Fourier transform, Fourier basis states, geometric sequence states, controlled phase rotations, quantum phase estimation, and Grover's algorithm.

Also explained in

Compare how 2 books explain inverse quantum Fourier transform →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Quantum Software with Python. The section links point to the parts of the book it draws on.