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.
| Keep rotations up to | Controlled phases kept | Share of the full 28 | Average fidelity |
|---|---|---|---|
| R2 | 7 | 25% | 20.25% |
| R3 | 13 | 46% | 71.09% |
| R4 | 18 | 64% | 93.87% |
| R5 | 22 | 79% | 98.95% |
| R6 | 25 | 89% | 99.86% |
| R8 | 28 | 100% | 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.
| Qubits n | Hadamards | Controlled phases | Swaps | Total gates | Classical FFT, about n·2^n |
|---|---|---|---|---|---|
| 4 | 4 | 6 | 2 | 12 | 64 |
| 8 | 8 | 28 | 4 | 40 | 2,048 |
| 16 | 16 | 120 | 8 | 144 | 1,048,576 |
| 32 | 32 | 496 | 16 | 544 | 137,438,953,472 |
| 64 | 64 | 2016 | 32 | 2112 | 64 × 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
- P. Shor, “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer” (1994, journal version 1997)
- A. Kitaev, “Quantum measurements and the Abelian stabilizer problem” (1995)
- R. Cleve, A. Ekert, C. Macchiavello and M. Mosca, “Quantum algorithms revisited” (1998)
- D. Coppersmith, “An approximate Fourier transform useful in quantum factoring” (1994, IBM research report)
- J. Cooley and J. Tukey, “An algorithm for the machine calculation of complex Fourier series” (1965)
- M. Nielsen and I. Chuang, Quantum Computation and Quantum Information, chapter 5
Check the original sources for exact citations.