Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Discrete Fourier transform and phase conventions

The discrete Fourier transform maps a finite sequence into amplitudes indexed by discrete frequencies, with a stated normalization and phase-sign convention.

Also called DFT

Edition released Coverage: Overview · Technical · Research
On this page

Definition and convention

For dimension N, define F_N|x>=(1/sqrt(N))sum_y exp(2pi i xy/N)|y>. This positive-sign convention makes F_N unitary; its inverse uses the negative sign. Signal-processing libraries and quantum algorithm sources may choose opposite signs or different normalization, so equations and code must be reconciled explicitly.

The transform reorganizes phase structure. It does not itself reveal all input amplitudes from one quantum measurement. Quantum Fourier transform algorithms implement this unitary under particular encodings, but complexity claims belong with their circuit and input-output assumptions.

Fully solved four-point example

For N=4, F_4|1>=(|0>+i|1>-|2>-i|3>)/2. Each computational outcome has probability one quarter, but the relative phases encode the frequency label. Applying F_4-dagger returns |1> with certainty.

For the normalized vector |psi>=(|0>+|2>)/sqrt(2), the output amplitude at y is [1+exp(pi i y)]/sqrt(8). It is 1/sqrt(2) for even y and zero for odd y. Therefore F_4|psi>=(|0>+|2>)/sqrt(2). The cancellation is a fully specified interference effect, not a general promise that a Fourier transform solves any periodicity problem efficiently.

Orthogonality and limits

The finite geometric sum sum_x exp[2pi i x(y-z)/N] equals N when y=z modulo N and zero otherwise. This proves orthonormality of the Fourier basis. Index origin, sign convention, bit reversal in circuit decompositions, and normalization must all be tracked separately.

A Fourier transform of measured classical frequencies is different from a coherent Fourier transform on amplitudes. Treating probabilities as if they were amplitudes loses phase information.

The Fourier basis diagonalizes a cyclic shift

Use the positive-phase convention F_N|x⟩ = N^(-1/2)Σ_y ωˣʸ|y⟩, with ω = exp(2πi/N) and all labels interpreted modulo N. Define the cyclic shift X_N|x⟩ = |x+1⟩ and the phase operator Z_N|x⟩ = ωˣ|x⟩. Substituting the shifted label into the Fourier sum gives F_N X_N = Z_N F_N.

Consequently F_N X_N F_N† = Z_N. Similarly, multiplying the input amplitude by ωˣ shifts the Fourier output in the opposite direction, giving F_N Z_N F_N† = X_N⁻¹. The inverse sign is tied to the chosen positive exponential; changing the Fourier convention reverses the corresponding identities.

The vector F_N†|k⟩ is an eigenvector of X_N with eigenvalue ωᵏ. Thus cyclic translation, which is a permutation in the original basis, becomes multiplication by a phase in the Fourier basis. A superposition of different shift eigenvectors accumulates different phases under repeated shifts, while each individual eigenvector changes only by its eigenvalue.

Circular convolution becomes multiplication with a normalization factor

For two numerical arrays x and y, define their circular convolution by (x*y)_n = Σ_m x_m y_{n−m}. With the unitary Fourier normalization above, F_N(x*y) = √N (F_Nx)∘(F_Ny), where the circle denotes componentwise multiplication. The factor √N is required; it disappears or changes under other normalization conventions.

To derive it, insert the convolution into the Fourier sum and replace n−m by a new index l. The phase splits as ωᵏ⁽ᵐ⁺ˡ⁾ = ωᵏᵐωᵏˡ, so the two sums factor. Each sum is √N times the corresponding unitary Fourier component, while the original transform contributes 1/√N. The remaining factor is therefore √N.

For N = 4, let x = (1,1,0,0) and y = (1,−1,0,0). Direct circular convolution gives (1,0,−1,0). Its unitary Fourier transform is (0,1,0,1). The individual transforms are (1,(1+i)/2,0,(1−i)/2) and (0,(1−i)/2,1,(1+i)/2). Multiplying them componentwise and then multiplying by two reproduces the result.

These arrays have not been normalized as quantum states, and convolution is bilinear in two inputs. The algebraic identity does not describe a deterministic unitary that multiplies arbitrary unknown quantum amplitude lists. An algorithmic use must separately specify its input encoding, allowed operations, normalization, and desired output.

A subgroup and its annihilator exchange their sizes

Write N = mr and form the normalized state |H⟩ = m^(-1/2)Σⱼ₌₀ᵐ⁻¹ |jr⟩. Its Fourier amplitude at y is (mN)^(-1/2)Σ_j exp(2πijy/m). This geometric sum equals m when y is a multiple of m and vanishes otherwise.

The result is therefore r^(-1/2)Σₖ₌₀ʳ⁻¹ |km⟩. A subgroup containing m equally weighted positions transforms into a uniform superposition on r compatible frequency labels. The product of the two support sizes is N. This follows from phase cancellation within the group, rather than from treating amplitudes as independent classical probabilities.

For N = 6, the state (|0⟩+|2⟩+|4⟩)/√3 becomes (|0⟩+|3⟩)/√2. Shifting the original support by one gives (|1⟩+|3⟩+|5⟩)/√3, whose transform is (|0⟩−|3⟩)/√2. The two outputs have identical computational probabilities but different relative phase. The shift information is not visible in that one measurement basis.

In general, translating the subgroup by a adds the phase ωᵃʸ to each retained Fourier amplitude. This is the finite-group counterpart of the shift identity above. A probability plot alone can therefore conceal a difference that remains available to later coherent processing.

Parseval normalization is distinct from probability normalization

Unitarity gives Σ_y |(F_Nx)_y|² = Σ_x |x_x|² for every numerical array, whether or not its norm is one. In the convolution example, the output array (1,0,−1,0) has squared norm two and its transform (0,1,0,1) has the same squared norm. Dividing either by √2 would produce a normalized quantum amplitude vector, but it would also change the relationship to the unnormalized convolution data. Thus norm preservation is an identity of the transform, while the interpretation of squared entries as probabilities additionally requires unit norm. A phase convention changes complex Fourier amplitudes; a normalization convention changes their common scale. Neither choice should be inferred from a familiar-looking transform symbol without its definition. All cyclic labels, including negative ones in F_N², refer to residues modulo the stated dimension rather than negative physical register values.

Repeating the transform is not usually the identity

Applying F_N twice produces a double sum with inner factor Σ_y ωʸ⁽ˣ⁺ᶻ⁾. Orthogonality of the roots of unity makes this equal N only when z = −x modulo N. Therefore F_N²|x⟩ = |−x⟩ and F_N⁴ = I.

For N greater than two, the label inversion is generally nontrivial. The inverse transform is F_N†, not automatically F_N itself. Every Fourier eigenvalue must be a fourth root of unity because of F_N⁴ = I, although all four possible values need not appear for every small dimension. Matrix symmetry F_Nᵀ = F_N does not imply Hermiticity.

With positive Fourier phase and unitary normalization, a cyclic shift multiplies transformed amplitudes by a phase. In the N = 6 example the shifted coset preserves the subgroup support and changes the relative sign. This amplitude identity alone gives no speedup or method for reading out a whole classical spectrum.

A perfect sampled fit can describe the wrong oscillation

An oscilloscope or software logger records samples, not an unbroken view of a waveform. Different continuous signals can agree at those sample times. If an analysis chooses between them only by how well it fits the recorded values, it can have no basis for preferring the physically correct one. The constructed experiment samples a zero-phase cosine at a fixed rate. Folding its frequency into the base interval gives an alias with the same ideal sample sequence. The numerical comparison makes the ambiguity concrete: two plotted continuous explanations can diverge between sample times while their recorded points coincide. More elaborate fitting does not recover information that the measurement procedure never distinguished. This lesson applies to control waveforms, spectroscopy traces and simulated dynamics. A justified bandwidth limit, anti-alias filtering or a changed sampling schedule can supply the missing constraint. The example also distinguishes Fourier-bin spacing from a universal resolution claim. A longer record changes the analysis grid, but identifiability still depends on the signal model, window and measurement process.

Model: Samples occur at t_k = k/f_s; Cosine alias = |((f+f_s/2) modulo f_s)-f_s/2|; DFT-bin spacing = f_s/N Assumptions: The signal is a zero-phase cosine with a known fixed amplitude. Sampling is exact and uniformly spaced. Floating-point discrepancies are numerical error, not physical noise.

The 91 Hz and 11 Hz zero-phase cosines give the same ideal sample sequence. A better-fitting sampled curve cannot identify which continuous signal was present. Filtering, an independently justified bandwidth limit or a changed sampling rate supplies information absent from the original samples.

Limitations: A bandwidth claim needs independent physical justification. Bin spacing alone does not establish line separation or frequency-estimation uncertainty.

Specified synthetic inputs
QuantityValue
Sampling rate, Hz80
Actual sinusoid frequency, Hz91
Sample count32
Signal amplitude1
Calculated baseline results · Approximate values use up to 6 significant digits.
Calculated quantitySynthetic result
Folded alias frequency, Hz11
Sampling Nyquist boundary, Hz40
Observation duration N/fs, seconds0.4
DFT-bin spacing fs/N, Hz2.5
Maximum numerical sample discrepancy2.29816e-14
First twelve of the uniformly spaced samples; full sequence follows the displayed cosine formula · Approximate values use up to 6 significant digits.
IndexTime, secondsActual-frequency sampleAlias-frequency sample
0011
10.01250.6494480.649448
20.025-0.156434-0.156434
30.0375-0.85264-0.85264
40.05-0.951057-0.951057
50.0625-0.382683-0.382683
60.0750.453990.45399
70.08750.972370.97237
80.10.8090170.809017
90.11250.07845910.0784591
100.125-0.707107-0.707107
110.1375-0.996917-0.996917

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

  • Ronald de Wolf · · Lecture or course notes · arXiv · DOI 10.48550/arXiv.1907.09415
    Verification scope

    Selected text checked ·

    Version metadata and selected full-text sections 4.1, 4.3, 4.4 and 6.2.1 inspected for unitary positive-phase DFT, distinction between quantum amplitudes and classical output data, finite abelian characters, dual group and subgroup H-perp.

    Source convolution includes its own normalization factor; the encyclopedia explicitly defines unnormalized circular convolution and derives the resulting square-root-N factor. Only foundational Fourier facts used here; no algorithmic speedup or implementation claim is imported.

  • Laurent Demanet · · Lecture or course notes · math.mit.edu
    Verification scope

    Selected text checked ·

    Title-page author/draft date and full-text chapter 2 cyclic convolution, circulant matrix structure and Fourier diagonalization identities inspected.

    Title-page date is used rather than assuming the filename date is publication. Fourier normalization differs from the unitary convention in the encyclopedia and is translated explicitly. No PDE performance claim or source exercise is reproduced.