Quantum Fourier Transform Circuit
Quantum Fourier Transform Circuit
A quantum circuit (sometimes called a quantum network or a quantum gate array) consists of wires and logic gates. It can be represented by a × unitary matrix, where is the number of qubits. We want to factor this matrix, representing it as scalar and tensor (Kronecker) products of simpler one-qubit and two-qubit matrices.
n
2
n
2
n
The input register of the quantum Fourier transform (QFT) circuit contains -qubit basis states that can be written as the Kronecker product of the binary states. The Hadamard gate operates on the single qubit. The controlled gate is represented by the unitary matrix
. The output qubits are expressed in the general form , where is a binary fraction. The final result of QFT is obtained after swapping the output qubits (not shown here) and taking the Kronecker product. For the three-qubit case the final answer is (0>+1>)⊗0>+1>⊗0>+1>=
.
n
|>⊗|>⋯⊗|>
x
1
x
2
x
n
H=
1
2
1 | 1 |
1 | -1 |
R
k
1 | 0 | 0 | 0 |
0 | 1 | 0 | 0 |
0 | 0 | 1 | 0 |
0 | 0 | 0 | 2πi k 2 e |
0>+1>
2πib
e
b
1
2
iπ
x
1
e
1
2
2iπ+
x
1
2
x
2
4
e
1
2
2iπ++
x
1
2
x
2
4
x
3
8
e
1
2
2
1 |
2iπ x 1 2 x 2 4 x 3 8 e |
2iπ x 2 2 x 3 4 e |
2iπ x 1 2 x 2 4 x 3 8 x 2 2 x 3 4 e |
iπ x 3 e 2 2 |
2iπ x 1 2 x 2 4 x 3 8 x 3 e |
2iπ x 2 2 x 3 4 x 3 e |
iπ x 1 2 x 2 4 x 3 8 x 2 2 x 3 4 x 3 e |