Professional Documents
Culture Documents
1 / 19
The Fourier transform
2 / 19
Significance of the quantum Fourier transform
3 / 19
The three-qubit quantum Fourier transform
The three-qubit quantum Fourier transform is as follows (we now use
|ji = |j1 j2 j3 i rather than |xi for the general quantum state).
H S T
H S
H
𝑗1 H R2 Rn-1 Rn
𝑗2 H Rn-2 Rn-1
𝑗𝑛−1 H R2
𝑗𝑛 H
1 0
Where Rk = k is a single qubit unitary rotation gate.
0 e2πi/2
5 / 19
The quantum Fourier transform
We can see that the general quantum Fourier transform is thus (where
N = 2n ):
1 n−2
√ |0i + eπijn |1i ⊗ · · · ⊗ |0i + eπi(j2 +(j3 /2)+···+(jn /(2 )))
|1i
N
n−1
⊗ |0i + eπi(j1 +(j2 /2)+···+(jn /(2 )))
|1i
6 / 19
The quantum Fourier transform (continued)
1 1 O
n
1 X X −l
=√ ··· e2πijkl 2 |kl i
N k1 =0 kn =0 l=1
1 1
1 X X Pn −l
=√ ··· e2πij( l=1 kl 2 ) |k1 · · · kn i
N k1 =0 kn =0
N −1
1 X 2πijk/N
=√ e |ki
N k=0
7 / 19
Comparing the QFT to the DFT
From the analysis on the previous slides we have that the QFT performs
the transformation:
N −1
1 X 2πijk/N
|ji → √ e |ki
N k=0
If we now consider an arbitrary state, by linearity:
N −1 N −1 N −1
X X 1 X 2πijk/N
xj |ji → xj √ e |ki
j=0 j=0
N k=0
N −1 N −1
X 1 X
= √ xj e2πijk/N |ki
k=0
N j=0
N
X −1
= yk |ki
k=0
i.e., using the previously stated definition of the DFT:
N −1
1 X
yk = √ xj e2πijk/N
N j=0
8 / 19
The inverse quantum Fourier transform
To invert the QFT, we must run the circuit in reverse, with the inverse of
each gate in place to achieve the transform:
N −1
1 X 2πijk/N
√ e |ki → |ji
N k=0
We have already seen that the Hadamard gate is self-inverse, and the
same is clearly true for the SWAP gate; the inverse of the rotations gate
Rk is given by:
1 0
Rk† = k
0 e−2πi/2
9 / 19
The inverse quantum Fourier transform circuit
𝑅2† H
10 / 19
Quantum phase estimation
11 / 19
The action of the oracle on |+i
𝑢 U
1 1
√ (|0i + |1i) |ui → √ |0i |ui + |1i e2πiφ |ui
2 2
1
= √ |0i + e2πiφ |1i |ui
2
12 / 19
The action of the oracle on |+i (continued)
+ +
=
𝑢 Um 𝑢 U U U
m gates
1 1
√ (|0i + |1i) |ui → √ |0i + e2mπiφ |1i |ui
2 2
13 / 19
Using the oracle to prepare the state
1 𝑡−1 𝜙)
0 H ( 0 +𝑒 2𝜋𝑖(2 1)
First 2
register 1 1 𝜙)
t qubits 0 H ( 0 +𝑒 2𝜋𝑖(2 1)
2
0 1 0 𝜙)
H ( 0 +𝑒 2𝜋𝑖(2 1)
2
Second 𝑢 0 1 𝑡−1
𝑈2 𝑈2 𝑈2 𝑢
register
14 / 19
Using the inverse QFT to estimate the eigenvalue phase
We now perform an inverse QFT on the first register: by definition, the
effect of the inverse QFT on the first register is the transformation:
t
2 −1
1 X 2πiφj
√ e |ji |ui → |φ̃i |ui
2t j=0
Thus measuring the first register, whose state is now |φ̃i, gives a t-bit
approximation, φ̃, of the eigenvalue phase, φ.
In summary, the entire QPE circuit can be expressed:
0 H⊗𝑡 QFT†
𝑗
𝑢 Uj 𝑢
15 / 19
Quantum phase estimation example
Typically QPE is applied to large unitaries, but for the example we’ll
consider the single-qubit unitary
0 −i
U=
i 0
1
Which we know has eigenvector |ui = associated with eigenvalue
−i
1
−1, i.e., φ = 2 (from exercise sheet 1 question 3).
16 / 19
Quantum phase estimation example: circuit
0 H S S S H
0 H H
𝑢 U U U
𝜓0 𝜓1 𝜓2 𝜓3 𝜓4
1
|ψ0 i = (|0i + |1i)(|0i + |1i) |ui
2
1
|ψ1 i = (|0i + e2πi |1i)(|0i + eπi |1i) |ui
2
1
|ψ2 i = √ (|0i − |1i) |0i |ui
2
1
|ψ3 i = √ (|0i − |1i) |0i |ui
2
|ψ4 i = |1i |0i |ui
18 / 19
Summary
19 / 19