Variatinal Quantum Algorithms Lesson 4
Variatinal Quantum Algorithms Lesson 4
QUANTUM ALGORITHMS
Lesson 4
Ernesto Campos
Moscow Russia
December, 2021
[email protected]
Lesson content
2021 Campos 1
Quantum assisted quantum
compilation
Quantum assisted quantum compilation
2021 Campos 2
Quantum assisted quantum compilation
where V(i) (θi ) are the ansatz layers. This circuit will be used to
approximate a target unitary T.
2. Calculate the cost function to train the parametrized gate sequence,
viz.
{ }
d U(θ), T ∈ [0, ∞).
2021 Campos 4
Circuit
|0⟩ H • • H
|0⟩ H • • H
U(θ)
..
.
|0⟩ H • • H
|0⟩ X X
|0⟩ X X
T∗
.. ..
. .
|0⟩ X X
2021 Campos 5
Advantages
2021 Campos 6
Abrupt transitions
2021 Campos 7
Layerwise training
where m corresponds to each stack being added, and the total depth of the
circuit is p = q · j.
2021 Campos 8
Distance to the identty
2021 Campos 9
Numerical results
_ _ _ _
RZ RY RZ • RY
RZ RY RZ RY •
RZ RY RZ RY •
.. .. .. ..
. . . .
RZ RY RZ RY •
_ _ _ _
Figure 1: Left: 2 layers of the checkerboard ansatz. The dashed region encloses
one ansatz layer. Right: a single layer of the hardware efficient ansatz (HEA).
2021 Campos 10
Numerical results
0.25 -Toffoli
4-Toffoli
0.20 3-Toffoli
2-Toffoli
cost function
0.15
0.10
0.05
0.00
2 4 6 8 10
layers per stack
Figure 2: k-Toffoli gate trainability for multiple numbers of layers per stack of the
HEA.
2021 Campos 11
Numerical results
2-controlled X, 1 layer
1.0
0.8
0.6
d(U,T)
0.4
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0
d(U,I)
2021 Campos 12
Analytical results
∂j d(V(θ), k-Toffoli)|θ=θ1 = 0,
(7)
∂j2 d(V(θ), k-Toffoli)|θ=θ1 ≥ 0.
2021 Campos 13
Thanks For your attention!