Skip to main content
KetQat

Appearance

Equation · intermediate

Product representation of the quantum Fourier transform

For N = 2^n the Fourier transform of a basis state is a product state; output qubit l carries the relative phase given by the last l bits of the input read as a binary fraction. This is what makes an O(n^2)-gate circuit possible.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

F2n∣j1j2⋯jn⟩=⨂ℓ=1n∣0⟩+e2πi 0.jn−ℓ+1⋯jn∣1⟩2F_{2^n}\ket{j_1 j_2 \cdots j_n} = \bigotimes_{\ell=1}^{n} \frac{\ket{0} + e^{2\pi i\, 0.j_{n-\ell+1} \cdots j_n}\ket{1}}{\sqrt{2}}

For every n≥1n \ge 1 and every j∈{0,…,2n−1}j \in \{0, \dots, 2^n - 1\},

F2n∣j⟩  =  ⨂ℓ=1n∣0⟩+e2πi j/2ℓ∣1⟩2  =  ⨂ℓ=1n∣0⟩+e2πi 0.jn−ℓ+1⋯jn∣1⟩2.F_{2^n}\ket{j} \;=\; \bigotimes_{\ell=1}^{n} \frac{\ket{0} + e^{2\pi i\, j/2^{\ell}}\ket{1}}{\sqrt{2}} \;=\; \bigotimes_{\ell=1}^{n} \frac{\ket{0} + e^{2\pi i\, 0.j_{n-\ell+1} \cdots j_n}\ket{1}}{\sqrt{2}} .

The most significant output qubit (ℓ=1\ell = 1) depends only on the last input bit (e2πi 0.jn=(−1)jne^{2\pi i\, 0.j_n} = (-1)^{j_n}), and the least significant one (ℓ=n\ell = n) on all of them. Read from right to left, the formula is a recipe: the factor for output qubit ℓ\ell is a Hadamard on bit jn−ℓ+1j_{n-\ell+1} followed by phase rotations conditioned on the less significant bits jn−ℓ+2,…,jnj_{n-\ell+2}, \dots, j_n. It is used to build the QFT circuit and to see why phase estimation works. The form is standard; it appears in Cleve, Ekert, Macchiavello and Mosca and in Section 5.1 of Nielsen and Chuang.

Holds when

  • N=2nN = 2^n; j=∑m=1njm2n−mj = \sum_{m=1}^{n} j_m 2^{n-m} with j1j_1 the most significant bit, held by qubit 0 in the big-endian convention.
  • The tensor factor with index ℓ\ell sits on the ℓ\ell-th output qubit counted from the most significant one.
  • Binary fraction notation 0.jaja+1⋯jn=∑m=anjm 2−(m−a+1)0.j_a j_{a+1} \cdots j_n = \sum_{m=a}^{n} j_m\, 2^{-(m-a+1)}.

Proof

Proof of the product representation of the QFTMachine-checked

Write the output index as k=∑ℓ=1nkℓ 2n−ℓk = \sum_{\ell=1}^{n} k_\ell\, 2^{n-\ell} with kℓ∈{0,1}k_\ell \in \{0,1\}, so that ∣k⟩=∣k1⟩⊗⋯⊗∣kn⟩\ket{k} = \ket{k_1}\otimes\cdots\otimes\ket{k_n}. Then jk/2n=∑ℓjkℓ/2ℓjk/2^n = \sum_{\ell} j k_\ell / 2^{\ell} and the phase factorises:

F2n∣j⟩=12n/2∑k1,…,kn∈{0,1}  ∏ℓ=1ne2πi jkℓ/2ℓ ∣k1⟩⊗⋯⊗∣kn⟩=⨂ℓ=1n12∑kℓ∈{0,1}e2πi jkℓ/2ℓ∣kℓ⟩.F_{2^n}\ket{j} = \frac{1}{2^{n/2}} \sum_{k_1, \dots, k_n \in \{0,1\}} \;\prod_{\ell=1}^{n} e^{2\pi i\, j k_\ell / 2^{\ell}} \, \ket{k_1}\otimes\cdots\otimes\ket{k_n} = \bigotimes_{\ell=1}^{n} \frac{1}{\sqrt 2}\sum_{k_\ell \in\{0,1\}} e^{2\pi i\, j k_\ell/2^{\ell}} \ket{k_\ell} .

The last step is the distributive law: a sum over all bit strings of a product of terms each depending on one bit is the product of the single-bit sums. Each factor is (∣0⟩+e2πi j/2ℓ∣1⟩)/2(\ket{0} + e^{2\pi i\, j/2^{\ell}}\ket{1})/\sqrt{2}, which is the first form.

For the second form, only j/2ℓj/2^{\ell} modulo 1 matters. With j=∑m=1njm2n−mj = \sum_{m=1}^{n} j_m 2^{n-m},

j2ℓ=∑m=1njm 2 n−m−ℓ=∑m≤n−ℓjm 2 n−m−ℓ⏟∈ Z  +  ∑m=n−ℓ+1njm 2−(m−n+ℓ).\frac{j}{2^{\ell}} = \sum_{m=1}^{n} j_m\, 2^{\,n-m-\ell} = \underbrace{\sum_{m \le n-\ell} j_m\, 2^{\,n-m-\ell}}_{\in\ \Z} \;+\; \sum_{m = n-\ell+1}^{n} j_m\, 2^{-(m-n+\ell)} .

The first sum is an integer and contributes e2πi⋅integer=1e^{2\pi i \cdot \text{integer}} = 1; the second is 0.jn−ℓ+1jn−ℓ+2⋯jn0.j_{n-\ell+1} j_{n-\ell+2}\cdots j_n by the definition of the binary fraction (its first digit jn−ℓ+1j_{n-\ell+1} has weight 2−12^{-1}). This proves the formula. The argument follows section 5.1 of Nielsen and Chuang.

Builds on

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Richard Cleve, Artur Ekert, Chiara Macchiavello, Michele Mosca (1998). Quantum algorithms revisited. Proceedings of the Royal Society A 454, 339-354. doi:10.1098/rspa.1998.0164arXiv:quant-ph/9708016
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Both forms of the product formula re-derived (k = sum k_l 2^(n-l), so the phase factorises with factor j/2^l on output qubit l, equal mod 1 to 0.j_(n-l+1)...j_n) and checked numerically against the defining matrix of F_(2^n) for every basis state, n = 1..5. Compared with Cleve-Ekert-Macchiavello-Mosca, arXiv:quant-ph/9708016, Section 4, eq. (4.2). Nielsen-Chuang Section 5.1 (The quantum Fourier transform) confirmed in the publisher's table of contents.

    The record cited the formula as 'Eq. (5.4)' of Nielsen-Chuang; the book itself could not be opened to confirm the equation number, so the pointer was changed to Section 5.1, which the publisher's table of contents confirms.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 2fbe6f577c70f303. Source file knowledge/records/equation/qft-product-representation.md in the content repository (readable there once it is public).