Variational Quantum Algorithms
How do they work?
Michał Stęchły
13th July 2020�Warsaw QC group
Presentation plan
About me
What is VQA?
Examples of VQA
Variational Quantum Eigensolver
Variational principle
Important concepts
By definition:
Why do we care about ground state energy?
What do we need?
Pauli Matrices
Simple example - hydrogen
H =
-0.1673 * I + 0.1625 * Z0 + 0.1625 * Z1 + -0.1974 * Z2 + -0.1974 * Z3
+ 0.1658 * Z0 Z1 + 0.1172 * Z0 Z2 + 0.1633 * Z0 Z3 + 0.1633 * Z1 Z2 + 0.1172 * Z1 Z3 + 0.1716 * Z2 Z3
+ -0.0461 * X0 X1 Y2 Y3 + 0.0461 * X0 Y1 Y2 X3 + 0.0461 * Y0 X1 X2 Y3 + -0.0461 * Y0 Y1 X2 X3
Good source: http://www.warrenalphonso.com/qc/hubbard
Ansatz!
Source: https://arxiv.org/abs/1905.10876
What a good ansatz has?
How to obtain energy?
Simple example - hydrogen
H =
-0.1673 * I + 0.1625 * Z0 + 0.1625 * Z1 + -0.1974 * Z2 + -0.1974 * Z3
+ 0.1658 * Z0 Z1 + 0.1172 * Z0 Z2 + 0.1633 * Z0 Z3 + 0.1633 * Z1 Z2 + 0.1172 * Z1 Z3 + 0.1716 * Z2 Z3
+ -0.0461 * X0 X1 Y2 Y3 + 0.0461 * X0 Y1 Y2 X3 + 0.0461 * Y0 X1 X2 Y3 + -0.0461 * Y0 Y1 X2 X3
Good source: http://www.warrenalphonso.com/qc/hubbard
How to measure?
RY(pi/2)
Classical optimization
What a QPU does:
What a classical computer does:
Example
H = 2Z + X + I
H = H1 + H2 + H3
E = E1 + E2 + E3
|𝚿> = RY(𝚹)
Example
H = 2Z + X + I
E (𝚹 = 0) = 2 + 0 + 1
E (𝚹 = π) = -2 + 0 + 1
Quantum Approximate Optimization Algorithm
Why do we care about combinatorial optimization?
It’s everywhere!
MaxCut
MaxCut
QAOA-related concepts
Adiabatic Quantum Computing
Adiabatic Quantum Computing - issues
Ising Models
Source: Thermalisation and Relaxation of Quantum Systems, Sascha Wald
Ising Models
Source: Thermalisation and Relaxation of Quantum Systems, Sascha Wald
Ising Model – MaxCut
Source: https://lucaman99.github.io/new_blog/2020/mar16.html
Time evolution
Function approximation
Trotterization
Source: https://ocw.mit.edu/courses/nuclear-engineering/22-51-quantum-theory-of-radiation-interactions-fall-2012/lecture-notes/MIT22_51F12_Ch5.pdf
What’s QAOA?
Source: https://arxiv.org/abs/1411.4028
QAOA – relation to AQC
Source: https://arxiv.org/abs/1712.05304
QAOA – cost Hamiltonian
Source: https://arxiv.org/abs/1411.4028
QAOA - mixer Hamiltonian
Source: https://arxiv.org/abs/1411.4028
QAOA - mixer Hamiltonian
What makes a good mixer Hamiltonian?
Example
Example
Relationship between VQE and QAOA
QAOA can be viewed as a special case of VQE.
However:
NISQ
NISQ challenges
How does it affects us?
Source: https://arxiv.org/abs/2004.04197
Why VQA are good for NISQ?
Structure of VQA
Circuit
QVM/QPU
Measurements
What about...
Executable circuit
QVM/QPU
Measurements
Abstract circuit
Compiler
QPU specs
What about...
Executable circuit
QVM/QPU
Measurements
Abstract circuit
Compiler
QPU specs
Ansatz
Parameters
Noise models
Readout correction
Measurement strategy
Target operator
Grouping strategy
“Shots budget”
CIRCUIT PREPARATION REALM
EXECUTION/MEASUREMENTS REALM
Executable circuit
QVM/QPU
Measurements
Abstract circuit
Compiler
QPU specs
Ansatz
Parameters
Noise models
Readout correction
Measurement strategy
Target operator
Grouping strategy
“Shots budget”
What about...
VQA
PROBLEM DEFINITION
CIRCUIT PREPARATION
EXECUTION/�MEASUREMENTS
Cost Function
Parameters
Target operator
Ansatz
Constraints
Parameter bounds
Gradient calculation strategy
Parameter initialization strategy
Initial optimizer settings
Measurement strategy
Optimizer
Challenges of VQAs
Summary
What have we covered?
Thank you!
Twitter: @mstechly