HOME

TheInfoList



OR:

In
quantum computing Quantum computing is a type of computation whose operations can harness the phenomena of quantum mechanics, such as superposition, interference, and entanglement. Devices that perform quantum computations are known as quantum computers. Thou ...
, 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, 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, notably
Shor's algorithm Shor's algorithm is a quantum computer algorithm for finding the prime factors of an integer. It was developed in 1994 by the American mathematician Peter Shor. On a quantum computer, to factor an integer N , Shor's algorithm runs in polynomial ...
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 . Analogously, in any group ''G'', powers ''b'k'' can be defined for all integers ''k'', and the discrete logarithm log' ...
, the quantum phase estimation algorithm for estimating the
eigenvalue In linear algebra, an eigenvector () or characteristic vector of a linear transformation is a nonzero vector that changes at most by a scalar factor when that linear transformation is applied to it. The corresponding eigenvalue, often denot ...
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. Unitary operators are usually taken as operating ''on'' a Hilbert space, but the same notion serves to define the c ...
, 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 esp ...
. 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. ...
. 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, a complex square matrix is unitary if its conjugate transpose is also its inverse, that is, if U^* U = UU^* = UU^ = I, where is the identity matrix. In physics, especially in quantum mechanics, the conjugate transpose is ...
. 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 ...
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 gates, 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 provides a probability distribution for the outcomes of each possible measurement on a system. Knowledge of the quantum state together with the rules for the system's evolution in ...
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. Definition ...
), and the classical Fourier transform acts on a vector. Both types of vectors can be written as lists of complex numbers. 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 modulus squared of this quantity represents a probability density. Probability amplitudes provide a relationship between the qu ...
s for all the possible outcomes upon measurement (called ''basis states'', or ''
eigenstate In quantum physics, a quantum state is a mathematical entity that provides a probability distribution for the outcomes of each possible measurement on a system. Knowledge of the quantum state together with the rules for the system's evolution in ...
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.


Definition

The quantum Fourier transform is the classical discrete Fourier transform applied to the vector of amplitudes of a quantum state, where we usually consider vectors of length N = 2^n. The classical Fourier transform acts on a
vector Vector most often refers to: *Euclidean vector, a quantity with a magnitude and a direction *Vector (epidemiology), an agent that carries and transmits an infectious pathogen into another living organism Vector may also refer to: Mathematic ...
(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_n \omega_N^, \quad k=0,1,2, \ldots ,N-1, where \omega_N= e^ and \omega_N^n is an ''N''-th
root of unity In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important i ...
. Similarly, the quantum Fourier transform acts on a quantum state , x\rangle = \sum_^ x_i , i\rangle and maps it to a quantum state \sum_^ y_i , i\rangle according to the formula: :y_k = \frac \sum_^ x_n \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 vice versa.) Since \omega_N^n is a rotation, the inverse quantum Fourier transform acts similarly but with: :x_n = \frac \sum_^ y_k \omega_N^, \quad n=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 :\text: , x\rangle \mapsto \frac \sum_^ \omega_N^ , k\rangle. Equivalently, the quantum Fourier transform can be viewed as a
unitary matrix In linear algebra, a Complex number, complex Matrix (mathematics), square matrix is unitary if its conjugate transpose is also its Invertible matrix, inverse, that is, if U^* U = UU^* = UU^ = I, where is the identity matrix. In physics, esp ...
(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. They are the building blocks of quantum circuits, li ...
) acting on quantum state vectors, where the unitary matrix F_N is given by : 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&&\vdots\\ 1&\omega^&\omega^&\omega^&\cdots&\omega^ \end where \omega = \omega_N. We get, for example, in the case of N=4=2^2 and phase \omega = i the transformation matrix : 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 transformation 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 precisely, ...
. This can be checked by performing
matrix multiplication In mathematics, particularly in linear algebra, matrix multiplication is a binary operation that produces a matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the ...
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 a Euclidean vector 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, wher ...
of F. Alternately, one can check that orthogonal vectors of norm 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. They are the building blocks of quantum circuits, li ...
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 phase gate R_n, here in terms of N = 2^n :H = \frac \begin 1 & 1 \\ 1 & -1 \end \qquad \text \qquad R_n = \begin 1 & 0 \\ 0 & e^ \end with \omega_N = e^ the N-th root of unity. The circuit is composed of H gates and the controlled version of R_n 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 and (over the same Field (mathematics), field) is a vector space to which is associated a bilinear map V\times W \to V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an e ...
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 base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" ( zero) and "1" (one). The base-2 numeral system is a positional notati ...
encoded by the x_j, with x_1 the most significant bit. 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 ...
(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.


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, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important i ...
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). In the following sketch, we have 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. Definition ...
. 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 (\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.Lecture 5: Basic quantum algorithms, Rajat Mittal, pp. 4-5
/ref>
Shor's algorithm Shor's algorithm is a quantum computer algorithm for finding the prime factors of an integer. It was developed in 1994 by the American mathematician Peter Shor. On a quantum computer, to factor an integer N , Shor's algorithm runs in polynomial ...
uses both types of Fourier transforms, an initial Hadamard transform as well as a QFT.


References

* K. R. Parthasarathy, ''Lectures on Quantum Computation and Quantum Error Correcting Codes'' (Indian Statistical Institute, Delhi Center, June 2001) *
John Preskill John Phillip Preskill (born January 19, 1953) is an American theoretical physicist and the Richard P. Feynman Professor of Theoretical Physics at the California Institute of Technology, where he is also the Director of the Institute for Quantum In ...
, ''Lecture Notes for Physics 229: Quantum Information and Computation'' (CIT, September 1998)


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