QAOA
Quantum Approximate Optimization Algorithm (QAOA)
Problem Setting
Let
Hamiltonian Representation
We can represent the cost function as a Hamiltonian operator acting
on a quantum state. The Hamiltonian
We now seek to find the maximum eigenvalue
What we can learn from Score Based Model (SBM)
In EBM, we define a probability distribution via the energy function (Hamiltonian):
consider a parameterized model
In QAOA’s scenario, the energy function is fixed and we want to find
the state
Let’s define a quantum state
We can measure:
In the first glance, we try to estimiate the log gradient:
On the other hand, if we sampling through
Parameter Shift Rule
Remember that in Denoising Score Matching, we can avoid calculating the score function directly by introducing noise and learning to denoise, then the score function can be computed directly. And under Gaussian noise, the score function has a closed form.
This inspires us to introduce a particular parameterization of
For
Thus,
Now, note that
Parameterized Quantum Circuit in QAOA
In QAOA, the parameterized quantum circuit is constructed using two
types of unitary operators: the cost unitary
The cost unitary is defined as:
The initial state is typically chosen as the uniform superposition
state:
Reason (Can be omitted, I don’t know very well about this quantum physics part):
The Adiabatic Theorem suggests that if we vary the parameters
and slowly enough, the system will remain in its ground state, allowing us to approximate the optimal solution to the original combinatorial optimization problem. The time evolution operator can be approximated using the Trotter-Suzuki decomposition:
Algorithm Summary
- Initialize the quantum state
as the uniform superposition state. - Choose the number of layers
and initialize the parameters . - Construct the parameterized quantum circuit
. - Measure the expectation value
. - Use the parameter shift rule to compute the gradients
and . - Update the parameters
using a classical optimization algorithm (e.g., gradient descent). - Repeat steps 3-6 until convergence or a stopping criterion is met.
- Measure the final state to obtain a bit string
that approximates the optimal solution to the original problem.