On an -dimensional register, the quantum Fourier transform with positive-exponent convention is
It is the unitary version of the discrete Fourier transform on amplitudes. The inner product of columns is , equal to one when and zero otherwise by a finite geometric series, so the transformation is unitary.
For the qubit implementation take , write in most-significant-bit-first order, and put . Expanding separates the Fourier phase as a product. The resulting dyadic quantum Fourier transform circuit identity is
Indeed the phase on output bit is , depending on the last input bits; multiplying the factors recovers and the normalization .
Implement the product in reverse wire order as follows. Process input wire , starting at . A Hadamard gate maps to . For each still-unprocessed wire , apply a controlled phase gate with control , target , and target phase
On a computational-basis input this multiplies the target's one-component by , so the processed wire becomes exactly . Continue through all wires and reverse their order using SWAP gates. This equals the boxed transform on every basis vector and therefore on arbitrary superpositions by linearity; it does not require learning the input bits by measurement.
There are . A swap is three controlled-NOT gates, since the alternating control directions send successively to , then , and finally . Thus the exact transform uses one- and two-qubit gates from this phase-gate family, polynomial in the register size . This is a circuit-complexity statement, not a claim that all transformed amplitudes can be read out efficiently. If a fixed finite gate alphabet is required, the phase rotations must instead be synthesized to the desired accuracy; the exact count treats them as the available simple rotation gates.
Write both the input and output integer labels in most-significant-bit-first order, and . Factoring the Fourier phase over the bits of gives the product decomposition of a Fourier phase state:
Here denotes the binary fraction ; the integer part of does not affect the phase.
Build a dyadic quantum Fourier transform circuit as follows. Process wires in that order. First apply a Hadamard gate to wire . Then, for each , apply the controlled phase gate with control wire and target wire . On a computational-basis state, every unprocessed control is still the bit , so wire becomes
Once a wire has been processed it is not touched by later stages. Reversing the order of the output wires gives exactly the Fourier product above. Agreement on every computational-basis state proves agreement as linear operators on all superpositions, even though the intermediate operation on a general input can create entanglement.
There are Hadamard gates and controlled phase gates. Output reversal may be treated as wire relabelling. If it must instead be implemented physically while using only the requested gate family, use swap operators. Each swap is three controlled-NOT gates, and
Thus the swaps use only Hadamard gates and Controlled-Z gates, which are controlled gates. An exact physical network has
elementary gates from the stated family. This implements the positive-exponent Fourier transform with the correct output order in quadratic size. Omitting the output reversal without relabelling the wires would produce the reversed-order transform instead.
For the perturbation bound, the operator norm in the source is equivalently . It satisfies the triangle inequality, is unchanged by left or right multiplication by a unitary operator, and a unitary operator has norm one. The exact telescoping identity is
It follows by replacing one factor at a time; alternatively all intermediate products cancel in the sum. Taking the operator norm and using unitary invariance gives the quantum circuit gate-error telescoping bound
The original PDF assumes strict , so its strict conclusion is justified. If the hypothesis were weakened to a non-strict inequality, the conclusion would likewise be . The TeX aid misreads this hypothesis; the PDF resolves it.
Apply the non-strict version to each approximate unitary gate in the Fourier network. Extending a gate by the identity on other wires leaves its operator norm error unchanged. Including the physical swap decompositions, all gates are of the required type and can obey the stated accuracy. Hence
With exact output relabelling rather than physical swaps the numerator is just . The proof retains gate phases and makes no assumption of cancellation between coherent errors.
For every normalized input the output-state norm error is at most this same bound. If is any positive operator satisfying , the change in its measurement in quantum mechanics outcome probability is at most , where : expand the difference of the two expectations into two terms, each bounded by using the Cauchy-Schwarz inequality. Thus inverse-polynomial gate accuracy gives an inverse-polynomial total error, rather than requiring exponential precision in the number of qubits. For the phase gates this corresponds to specifying angles with bits of precision, since . This is a robustness statement for unitary gate approximations; it does not by itself correct quantum decoherence, correlated stochastic faults, or limitations of hardware connectivity.