← Atlas

Algorithms · Quantum Fourier transform

QFT resource screen

A resource-focused QFT construction with a readable compile comparison.

Strong empiricalUpdated

Open on the mapView frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

QFT then its inverse, on |0101⟩

4 qubits, starting at |0101⟩, applying the QFT then immediately undoing it.

q0q1q2q3Step 1 of 4 · XXStep 2 of 4 · XXStep 3 of 4 · QFT(4)QFT(4)Step 4 of 4 · QFT inverse(4)QFT inverse(4)

Step 1 of 4 · X

Probability of each outcome after this step

  • 0100100%
  1. Prepares qubit 2 as |1⟩.

    The whole state moves from 0000 to 0100 — one certain outcome before, one certain outcome after, no superposition either side.

  2. Prepares qubit 0 as |1⟩, so the register reads |0101⟩.

    The whole state moves from 0100 to 0101 — one certain outcome before, one certain outcome after, no superposition either side.

  3. Applies the Quantum Fourier Transform, spreading the single input state into an equal-magnitude superposition over all 16 outputs, each carrying a different phase.

    Probability spreads from 1 outcome to 16. All 16 are equally likely.

  4. Applies the exact inverse QFT, which collapses the superposition straight back to the original input.

    Probability gathers from 16 outcomes onto 1. 0101 goes from 6.3% to 100.0%.

Readout The register reads 0101 again, exactly: the QFT and its inverse cancel, the way any unitary and its adjoint do.

Open in Studio
  • Steps5
  • Wires4
  • Qubits4
  • Depth18 gates
  • Rotation layers4
  • Papers2

Where this sits

This record is named by the layer graph at:

  • Compile a circuit to a specific device Slot

    Takes An abstract circuit (arbitrary-angle rotations, arbitrary two-qubit gates, all-to-all qubit indices); a device model giving the native gate set, coupling graph and calibration data; an approximation budget ε\varepsilon. Returns A native-gate instruction sequence obeying the connectivity constraint, plus the overhead it added (SWAP count, T-count, depth) and the accumulated synthesis error.

Related entries

References

Strong empirical
  • Invariant & structural checks
  • Peer-reviewed paper
Method
Circuit parser and gate-count comparison across the reference export path.
Result
Pass · phase rotation structure and qubit count are preserved.
An approximate Fourier transform useful in quantum factoring ↗
Kind
curated reference
Reviewed by
LeonaQ curation pass
License
CC BY 4.0-compatible reference metadata
resource estimatecirqqftphase

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.