HOME

TheInfoList



OR:

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 2^n 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 O(n^2)
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 n is the number of qubits. This can be compared with the classical discrete Fourier transform, which takes O(n2^n) gates (where n is the number of bits), which is exponentially more than O(n^2). 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 O(n \log n) 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 N = 2^n if it is applied to a register of n 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 ...
(x_0, x_1, \ldots , x_) \in \mathbb^N and maps it to the vector (y_0, y_1, \ldots , y_) \in \mathbb^N according to the formula : y_k = \frac \sum_^ x_j \omega_N^, \quad k = 0, 1, 2, \ldots, N - 1, where \omega_N = e^ 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 , x\rangle = \sum_^ x_j , j\rangle and maps it to a quantum state \sum_^ y_j , j\rangle according to the formula : y_k = \frac \sum_^ x_j \omega_N^, \quad k = 0, 1, 2, \ldots, N - 1. (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 \omega_N^l is a rotation, the inverse quantum Fourier transform acts similarly but with : x_j = \frac \sum_^ y_k \omega_N^, \quad j = 0, 1, 2, \ldots, N - 1, In case that , x\rangle is a basis state, the quantum Fourier transform can also be expressed as the map : \operatorname: , x\rangle \mapsto \frac \sum_^ \omega_N^ , k\rangle. 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 F_N 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 ...
: F_N = \frac \begin 1 & 1 & 1 & 1 & \cdots & 1 \\ 1 & \omega & \omega^2 & \omega^3 & \cdots & \omega^ \\ 1 & \omega^2 & \omega^4 & \omega^6 & \cdots & \omega^ \\ 1 & \omega^3 & \omega^6 & \omega^9 & \cdots & \omega^ \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & \omega^ & \omega^ & \omega^ & \cdots & \omega^ \end, where \omega = \omega_N. For example, in the case of N = 4 = 2^2 and phase \omega = i the transformation matrix is : F_4 = \frac \begin 1 & 1 & 1 & 1 \\ 1 & i & -1 & -i \\ 1 & -1 & 1 & -1 \\ 1 & -i & -1 & i \end


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 FF^=F^F=I holds, where F^\dagger 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 F. 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 F^=F^. 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 n 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 R_k: H = \frac \begin 1 & 1 \\ 1 & -1 \end \qquad \text \qquad R_k = \begin 1 & 0 \\ 0 & e^ \end The circuit is composed of H gates and the controlled version of R_k: An orthonormal basis consists of the basis states : , 0\rangle, \ldots , , 2^n - 1\rangle. These basis states span all possible states of the qubits: : , x \rangle = , x_1 x_2 \ldots x_n \rangle = , x_1 \rangle \otimes , x_2 \rangle \otimes \cdots \otimes , x_n \rangle 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 \otimes, , x_j\rangle indicates that qubit j is in state x_j, with x_j either 0 or 1. By convention, the basis state index x 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 x_j, with x_1 the most significant bit. The action of the Hadamard gate is H, x_j\rangle=\left(\frac\right)\left(, 0\rangle+e^, 1\rangle \right) , where the sign depends on x_i. The quantum Fourier transform can be written as the tensor product of a series of terms: : \text(, x\rangle) = \frac \bigotimes_^ \left( , 0\rangle + \omega_N^ , 1\rangle \right). Using the fractional binary notation : . x_1 \ldots x_m= \sum_^m x_k 2^, the action of the quantum Fourier transform can be expressed in a compact manner: :\text(, x_1 x_2 \ldots x_n \rangle) = \frac \ \left(, 0\rangle + e^, 1\rangle\right) \otimes \left(, 0\rangle + e^, 1\rangle\right) \otimes \cdots \otimes \left(, 0\rangle + e^, 1\rangle\right). To obtain this state from the circuit depicted above, a swap operation of the qubits must be performed to reverse their order. At most n/2 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 (n-1) controlled phase gates, the next term requires one Hadamard gate and (n-2) 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 n + (n-1) + \cdots + 1 = n(n+1)/2 = O(n^2) 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, F_8 with n=3, N=8=2^3, is represented by the following transformation: :\text: , x\rangle \mapsto \frac \sum_^ \omega^ , k\rangle, where \omega = \omega_ 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 \omega^8=\left(e^\right)^8=1. The matrix representation of the Fourier transform on three qubits is: : F_8 = \frac \begin 1&1&1&1&1&1&1&1 \\ 1&\omega&\omega^2&\omega^3&\omega^4&\omega^5&\omega^6&\omega^7 \\ 1&\omega^2&\omega^4&\omega^6&1&\omega^2&\omega^4&\omega^6 \\ 1&\omega^3&\omega^6&\omega&\omega^4&\omega^7&\omega^2&\omega^5 \\ 1&\omega^4&1&\omega^4&1&\omega^4&1&\omega^4 \\ 1&\omega^5&\omega^2&\omega^7&\omega^4&\omega&\omega^6&\omega^3 \\ 1&\omega^6&\omega^4&\omega^2&1&\omega^6&\omega^4&\omega^2 \\ 1&\omega^7&\omega^6&\omega^5&\omega^4&\omega^3&\omega^2&\omega \\ \end. The 3-qubit quantum Fourier transform can be rewritten as: :\text(, x_1, x_2, x_3 \rangle ) = \frac \ \left(, 0\rangle + e^, 1\rangle\right) \otimes \left(, 0\rangle + e^, 1\rangle\right) \otimes \left(, 0\rangle + e^, 1\rangle\right). The following sketch shows the respective circuit for n=3 (with reversed order of output qubits with respect to the proper QFT): As calculated above, the number of gates used is n(n+1)/2 which is equal to 6, for n=3.


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 \Z / 2^n \Z. 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 ...
(\Z / 2 \Z)^n, 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 S_n. The Fourier transform can be expressed in matrix form : \mathfrak_n = \sum_ \sum_ \sum_ \sqrt lambda(g) , \lambda, p, q\rangle \langle g, , where lambda(g) is the (q, p) element of the matrix representation of \lambda(g), \mathcal(\lambda) is the set of paths from the root node to \lambda 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 S_n, \Lambda_n is the set of representations of S_n 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 g is a permutation.


Over a finite field

The discrete Fourier transform can also be formulated over a finite field F_q, and a quantum version can be defined. Consider N = q = p^n. Let \phi: GF(q) \to GF(p) be an arbitrary linear map (trace, for example). Then for each x \in GF(q) define : F_: , x\rangle \mapsto \frac \sum_ \omega^, y \rangle for \omega = e^ and extend F_ linearly.


References


Further reading

* *


External links


Wolfram Demonstration Project: Quantum Circuit Implementing Grover's Search AlgorithmWolfram Demonstration Project: Quantum Circuit Implementing Quantum Fourier Transform

Quirk online life quantum fourier transform
{{DEFAULTSORT:Quantum Fourier Transform Transforms Quantum algorithms Fourier analysis