View on GitHub
Open this notebook in GitHub to run it yourself
- Phase-separation operator (based on the cost Hamiltonian ),
- Mixer (a unitary to explore the solution space).
Exercise
Let’s assume that we will solve the following problem using QAOA and GM-QAOA. We impose the following constraint: The objective function is given by: Find that minimize .Algorithm description
In GM-QAOA, a Grover-type mixer is introduced: where is the equal superposition of all feasible solutions: If we define as the unitary that generates from the initial state , then the GM-QAOA circuit of depth can be expressed as: whereApproach 1: QAOA
First, lets try to implement general QAOA.Output:
Output:
Output:
Output:

Output:
Approach 2: GM-QAOA
Next, we use GM-QAOA.Output:
Output:
Output:
Output:

Output:
Output:
