The approximate QFT: how many rotations can you drop?

The smallest controlled rotations in the QFT turn the phase by tiny angles. Dropping them cuts the gate count a lot and costs little accuracy. This guide shows the counts and a measured fidelity table.

8 min read · reviewed December 2026

Where the gates are

The exact QFT on n qubits uses n(n − 1)/2 controlled phase rotations. Most of them are the long-range ones: qubit 1 is rotated by controls from every other qubit, so it receives the rotations R₂ up to R_n. The rotation R_k turns the phase by 2π/2^k, so the last rotation on a large register turns it by a very small angle.

That is a problem in practice for two reasons. The long-range gates link qubits that may be far apart on a chip, which is costly. And on a fault-tolerant machine, a rotation by a very small angle must be built from a limited gate set, which takes many gates for each rotation. Dropping the tiniest rotations is therefore attractive.

The approximation

The approximate QFT keeps the Hadamards and the swaps but only the controlled rotations R_k with k at most some cutoff m. This idea is credited to Coppersmith in a 1994 report on quantum factoring. The number of controlled phases kept, for 2 ≤ m ≤ n, is m(m − 1)/2 + (n − m)(m − 1). For n = 8 and m = 3 that is 3 + 10 = 13, against 28 for the full circuit.

The cutoff trades gates against accuracy. The accuracy is measured by fidelity: the squared overlap between the state the approximate circuit produces and the state the exact circuit produces, which is 100 percent when they are identical.

Approximate QFT on 8 qubits. Fidelity is the average over 6 random input states in this page’s own simulation, a sample and not a bound.
Keep rotations up toControlled phases keptShare of the full 28Average fidelity
R2725%20.25%
R31346%71.09%
R41864%93.87%
R52279%98.95%
R62589%99.86%
R828100%100.00%

Reading the fidelity table

The table is a measurement from this page’s own simulation. For each cutoff it averages the fidelity over six random input states on eight qubits. Random states are a hard, generic test: they have no structure for the transform to concentrate, so every rotation matters somewhere.

Three things stand out. First, a cutoff of R₂ alone, which keeps only the nearest-neighbour rotations, gives a low fidelity: the approximate circuit is far from the true transform on generic states. Second, the fidelity rises quickly as m grows, and by the middle values it is already close to 100 percent. Third, the full cutoff R₈ gives exactly 100 percent, as it must, because nothing has been dropped. The test suite behind the lab checks that average fidelity never falls as the cutoff rises, across the cutoffs it tries.

This is a sample, not a bound. A different set of input states gives different numbers, and structured inputs such as periodic states may behave better or worse. The literature reports that a cutoff growing slowly with n is enough for the accuracy that factoring needs, but I have not rederived that here, so treat the claim as one to check against the source.

The full count against the cost of the classical FFT

Even the exact circuit is small. For 64 qubits it has 2,016 controlled phases. The approximation matters for hardware, where each long-range two-qubit gate is expensive and error-prone, rather than for asymptotics. The table below repeats the exact counts for comparison.

Exact gate counts of the QFT circuit against the order-of-growth size of a classical FFT on N = 2^n numbers.
Qubits nHadamardsControlled phasesSwapsTotal gatesClassical FFT, about n·2^n
44621264
88284402,048
161612081441,048,576
323249616544137,438,953,472
6464201632211264 × 2^64

Using the slider

In the Gate counts tab, choose a number of qubits and a cutoff. The page shows the gates kept and the average fidelity, with the smallest rotation angle in degrees. For n = 10 you will see the fidelity climb more slowly than for n = 6 at the same cutoff, as longer registers have more rotations that matter. A cutoff that grows with n tracks the accuracy better than a fixed one.

Dropping rotations is a trade you can measure. Here the numbers come from a simulation of random states, so use them as an illustration and not as a guarantee for your circuit.

Try it

Questions

Who proposed the approximate QFT?

It is credited to Don Coppersmith in a 1994 IBM report. Check the original for details.

Does dropping rotations change the algorithm’s answer?

It changes the output state slightly. Whether the final answer is still found with high probability depends on the application.

Is the fidelity in the table a guarantee?

No. It is an average over six random states from this page’s simulation.

Read next

Sources and further reading

Check the original sources for exact citations.