In
quantum computing
A quantum computer is a computer that exploits quantum mechanical phenomena. On small scales, physical matter exhibits properties of wave-particle duality, both particles and waves, and quantum computing takes advantage of this behavior using s ...
, the quantum Fourier transform (QFT) is a
linear transformation
In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pr ...
on
quantum bits
In physics, a quantum (: quanta) is the minimum amount of any physical entity (physical property) involved in an interaction. The fundamental notion that a property can be "quantized" is referred to as "the hypothesis of quantization". This me ...
, and is the quantum analogue of the
discrete Fourier transform
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced Sampling (signal processing), samples of a function (mathematics), function into a same-length sequence of equally-spaced samples of the discre ...
. The quantum Fourier transform is a part of many
quantum algorithms
In quantum computing, a quantum algorithm is an algorithm that runs on a realistic model of quantum computation, the most commonly used model being the quantum circuit model of computation. A classical (or non-quantum) algorithm is a finite sequ ...
, notably
Shor's algorithm Shor's algorithm is a quantum algorithm for finding the prime factors of an integer. It was developed in 1994 by the American mathematician Peter Shor. It is one of the few known quantum algorithms with compelling potential applications and strong ...
for factoring and computing the
discrete logarithm
In mathematics, for given real numbers a and b, the logarithm \log_b(a) is a number x such that b^x=a. Analogously, in any group G, powers b^k can be defined for all integers k, and the discrete logarithm \log_b(a) is an integer k such that b^k=a ...
, the
quantum phase estimation algorithm
In quantum computing, the quantum phase estimation algorithm is a quantum algorithm to estimate the phase corresponding to an eigenvalue of a given unitary operator. Because the eigenvalues of a unitary operator always have unit modulus, they a ...
for estimating the
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s of a
unitary operator
In functional analysis, a unitary operator is a surjective bounded operator on a Hilbert space that preserves the inner product.
Non-trivial examples include rotations, reflections, and the Fourier operator.
Unitary operators generalize unitar ...
, and algorithms for the
hidden subgroup problem
The hidden subgroup problem (HSP) is a topic of research in mathematics and theoretical computer science. The framework captures problems such as factoring, discrete logarithm, graph isomorphism, and the shortest vector problem. This makes it es ...
. The quantum Fourier transform was discovered by
Don Coppersmith
Don Coppersmith (born 1950) is a cryptographer and mathematician. He was involved in the design of the Data Encryption Standard block cipher at IBM, particularly the design of the S-boxes, strengthening them against differential cryptanalysis.
...
.
With small modifications to the QFT, it can also be used for performing fast
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
arithmetic operations such as addition and multiplication.
The quantum Fourier transform can be performed efficiently on a quantum computer with a decomposition into the product of simpler
unitary matrices
In linear algebra, an invertible complex square matrix is unitary if its matrix inverse equals its conjugate transpose , that is, if
U^* U = UU^* = I,
where is the identity matrix.
In physics, especially in quantum mechanics, the conjugate ...
. The discrete Fourier transform on
amplitudes can be implemented as a
quantum circuit
In quantum information theory, a quantum circuit is a model for quantum computation, similar to classical circuits, in which a computation is a sequence of quantum gates, measurements, initializations of qubits to known values, and possibly o ...
consisting of only
Hadamard gate
The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
s and
controlled phase shift gate
In quantum computing and specifically the quantum circuit model of computation, a quantum logic gate (or simply quantum gate) is a basic quantum circuit operating on a small number of qubits. Quantum logic gates are the building blocks of quantu ...
s, where
is the number of qubits.
This can be compared with the classical discrete Fourier transform, which takes
gates (where
is the number of bits), which is exponentially more than
.
The quantum Fourier transform acts on a
quantum state
In quantum physics, a quantum state is a mathematical entity that embodies the knowledge of a quantum system. Quantum mechanics specifies the construction, evolution, and measurement of a quantum state. The result is a prediction for the system ...
vector (a
quantum register
In quantum computing, a quantum register is a system comprising multiple qubits. It is the quantum analogue of the classical processor register. Quantum computers perform calculations by manipulating qubits within a quantum register.
Definitio ...
), and the classical
discrete Fourier transform
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced Sampling (signal processing), samples of a function (mathematics), function into a same-length sequence of equally-spaced samples of the discre ...
acts on a vector. Both types of vectors can be written as lists of complex numbers. In the classical case, the vector can be represented with e.g. an array of
floating-point number
In computing, floating-point arithmetic (FP) is arithmetic on subsets of real numbers formed by a ''significand'' (a signed sequence of a fixed number of digits in some base) multiplied by an integer power of that base.
Numbers of this form ...
s, and in the quantum case it is a sequence of
probability amplitude
In quantum mechanics, a probability amplitude is a complex number used for describing the behaviour of systems. The square of the modulus of this quantity at a point in space represents a probability density at that point.
Probability amplitu ...
s for all the possible outcomes upon
measurement
Measurement is the quantification of attributes of an object or event, which can be used to compare with other objects or events.
In other words, measurement is a process of determining how large or small a physical quantity is as compared to ...
(the outcomes are the ''basis states'', or ''
eigenstate
In quantum physics, a quantum state is a mathematical entity that embodies the knowledge of a quantum system. Quantum mechanics specifies the construction, evolution, and measurement of a quantum state. The result is a prediction for the system re ...
s''). Because measurement
collapses the quantum state to a single basis state, not every task that uses the classical Fourier transform can take advantage of the quantum Fourier transform's exponential speedup.
The best quantum Fourier transform algorithms known (as of late 2000) require only
gates to achieve an efficient approximation, provided that a
controlled phase gate is implemented as a native operation.
Definition
The quantum Fourier transform is the classical discrete Fourier transform applied to the vector of amplitudes of a quantum state, which has length
if it is applied to a register of
qubits.
The classical Fourier transform acts on a
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
and maps it to the vector
according to the formula
:
where
is an ''N''-th
root of unity
In mathematics, a root of unity is any complex number that yields 1 when exponentiation, raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory ...
.
Similarly, the quantum Fourier transform acts on a quantum state
and maps it to a quantum state
according to the formula
:
(Conventions for the sign of the phase factor exponent vary; here the quantum Fourier transform has the same effect as the inverse discrete Fourier transform, and conversely.)
Since
is a rotation, the inverse quantum Fourier transform acts similarly but with
:
In case that
is a basis state, the quantum Fourier transform can also be expressed as the map
:
Equivalently, the quantum Fourier transform can be viewed as a
unitary matrix
In linear algebra, an invertible complex square matrix is unitary if its matrix inverse equals its conjugate transpose , that is, if
U^* U = UU^* = I,
where is the identity matrix.
In physics, especially in quantum mechanics, the conjugate ...
(or
quantum gate
In quantum computing and specifically the quantum circuit model of computation, a quantum logic gate (or simply quantum gate) is a basic quantum circuit operating on a small number of qubits. Quantum logic gates are the building blocks of quantu ...
) acting on quantum state vectors, where the unitary matrix
is the
DFT matrix
In applied mathematics, a DFT matrix is a ''square matrix'' as an expression of a discrete Fourier transform (DFT) as a transformation matrix, which can be applied to a signal through matrix multiplication.
Definition
An ''N''-point DFT is expres ...
:
where
. For example, in the case of
and phase
the transformation matrix is
:
Properties
Unitarity
Most of the properties of the quantum Fourier transform follow from the fact that it is a
unitary transformation
In mathematics, a unitary transformation is a linear isomorphism that preserves the inner product: the inner product of two vectors before the transformation is equal to their inner product after the transformation.
Formal definition
More precise ...
. This can be checked by performing
matrix multiplication
In mathematics, specifically in linear algebra, matrix multiplication is a binary operation that produces a matrix (mathematics), matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the n ...
and ensuring that the relation
holds, where
is the
Hermitian adjoint
In mathematics, specifically in operator theory, each linear operator A on an inner product space defines a Hermitian adjoint (or adjoint) operator A^* on that space according to the rule
:\langle Ax,y \rangle = \langle x,A^*y \rangle,
where \l ...
of
. Alternately, one can check that orthogonal vectors of
norm
Norm, the Norm or NORM may refer to:
In academic disciplines
* Normativity, phenomenon of designating things as good or bad
* Norm (geology), an estimate of the idealised mineral content of a rock
* Norm (philosophy), a standard in normative e ...
1 get mapped to orthogonal vectors of norm 1.
From the unitary property it follows that the inverse of the quantum Fourier transform is the Hermitian adjoint of the Fourier matrix, thus
. Since there is an efficient quantum circuit implementing the quantum Fourier transform, the circuit can be run in reverse to perform the inverse quantum Fourier transform. Thus both transforms can be efficiently performed on a quantum computer.
Circuit implementation
The
quantum gate
In quantum computing and specifically the quantum circuit model of computation, a quantum logic gate (or simply quantum gate) is a basic quantum circuit operating on a small number of qubits. Quantum logic gates are the building blocks of quantu ...
s used in the circuit of
qubits are the
Hadamard gate
The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
and the
dyadic rational
In mathematics, a dyadic rational or binary rational is a number that can be expressed as a fraction whose denominator is a power of two. For example, 1/2, 3/2, and 3/8 are dyadic rationals, but 1/3 is not. These numbers are important in computer ...
phase gate :
The circuit is composed of
gates and the
controlled version of
:

An orthonormal basis consists of the basis states
:
These basis states span all possible states of the qubits:
:
where, with
tensor product
In mathematics, the tensor product V \otimes W of two vector spaces V and W (over the same field) is a vector space to which is associated a bilinear map V\times W \rightarrow V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of ...
notation
,
indicates that qubit
is in state
, with
either 0 or 1. By convention, the basis state index
is the
binary number
A binary number is a number expressed in the Radix, base-2 numeral system or binary numeral system, a method for representing numbers that uses only two symbols for the natural numbers: typically "0" (zero) and "1" (one). A ''binary number'' may ...
encoded by the
, with
the most significant bit.
The action of the Hadamard gate is
, where the sign depends on
.
The quantum Fourier transform can be written as the tensor product of a series of terms:
:
Using the fractional binary notation
:
the action of the quantum Fourier transform can be expressed in a compact manner:
:
To obtain this state from the circuit depicted above, a
swap operation of the qubits must be performed to reverse their order. At most
swaps are required.
Because the discrete Fourier transform, an operation on ''n'' qubits, can be factored into the tensor product of ''n'' single-qubit operations, it is easily represented as a
quantum circuit
In quantum information theory, a quantum circuit is a model for quantum computation, similar to classical circuits, in which a computation is a sequence of quantum gates, measurements, initializations of qubits to known values, and possibly o ...
(up to an order reversal of the output). Each of those single-qubit operations can be implemented efficiently using one
Hadamard gate
The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
and a linear number of
controlled phase gates. The first term requires one Hadamard gate and
controlled phase gates, the next term requires one Hadamard gate and
controlled phase gate, and each following term requires one fewer controlled phase gate. Summing up the number of gates, excluding the ones needed for the output reversal, gives
gates, which is quadratic polynomial in the number of qubits. This value is much smaller than for the classical Fourier transformation.
The circuit-level implementation of the quantum Fourier transform on a linear nearest neighbor architecture has been studied before. The
circuit depth is linear in the number of qubits.
Example
The quantum Fourier transform on three qubits,
with
, is represented by the following transformation:
:
where
is an eighth
root of unity
In mathematics, a root of unity is any complex number that yields 1 when exponentiation, raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory ...
satisfying
.
The matrix representation of the Fourier transform on three qubits is:
:
The 3-qubit quantum Fourier transform can be rewritten as:
:
The following sketch shows the respective circuit for
(with reversed order of output qubits with respect to the proper QFT):

As calculated above, the number of gates used is
which is equal to
, for
.
Relation to quantum Hadamard transform
Using the generalized
Fourier transform on finite (abelian) groups, there are actually two natural ways to define a quantum Fourier transform on an ''n''-qubit
quantum register
In quantum computing, a quantum register is a system comprising multiple qubits. It is the quantum analogue of the classical processor register. Quantum computers perform calculations by manipulating qubits within a quantum register.
Definitio ...
. The QFT as defined above is equivalent to the DFT, which considers these n qubits as indexed by the cyclic group
. However, it also makes sense to consider the qubits as indexed by the
Boolean group
In mathematics, specifically in group theory, an elementary abelian group is an abelian group in which all elements other than the identity have the same order. This common order must be a prime number, and the elementary abelian groups in whic ...
, and in this case the Fourier transform is the
Hadamard transform
The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
. This is achieved by applying a
Hadamard gate
The Hadamard transform (also known as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, or Walsh–Fourier transform) is an example of a generalized class of Fourier transforms. It performs an orthogonal ...
to each of the n qubits in parallel.
Shor's algorithm Shor's algorithm is a quantum algorithm for finding the prime factors of an integer. It was developed in 1994 by the American mathematician Peter Shor. It is one of the few known quantum algorithms with compelling potential applications and strong ...
uses both types of Fourier transforms, an initial Hadamard transform as well as a QFT.
For other groups
The Fourier transform can be formulated for
groups other than the cyclic group, and extended to the quantum setting. For example, consider the symmetric group
. The Fourier transform can be expressed in matrix form
:
where
is the
element of the matrix representation of
,
is the set of paths from the root node to
in the
Bratteli diagram
In mathematics, a Bratteli diagram is a combinatorial structure: a Graph (discrete mathematics), graph composed of vertices labelled by positive integers ("level") and unoriented edges between vertices having levels differing by one. The notion wa ...
of
,
is the set of representations of
indexed by
Young diagram
In mathematics, a Young tableau (; plural: tableaux) is a combinatorial object useful in representation theory and Schubert calculus. It provides a convenient way to describe the group representations of the symmetric and general linear groups a ...
s, and
is a permutation.
Over a finite field
The discrete Fourier transform can also be
formulated over a finite field , and a quantum version can be defined.
Consider
. Let
be an arbitrary linear map (trace, for example). Then for each
define
:
for
and extend
linearly.
References
Further reading
*
*
External links
Wolfram Demonstration Project: Quantum Circuit Implementing Grover's Search AlgorithmWolfram Demonstration Project: Quantum Circuit Implementing Quantum Fourier TransformQuirk online life quantum fourier transform
{{DEFAULTSORT:Quantum Fourier Transform
Transforms
Quantum algorithms
Fourier analysis