View on GitHub
Open this notebook in GitHub to run it yourself
Grover Mixers for QAOA
Grover Mixers for QAOA (GM-QAOA) is one of the algorithms applied to constrained optimization problems, where the mixer operator in QAOA is replaced by a parameterized Grover diffuser operator that utilizes an equal superposition of all feasible solutions [1]. In the potential challenges of standard QAOA, the cost operator (which applies phases based on the objective function) and the mixer operator (which explores the state space) are alternately applied. This method sometimes fails to reach the desired solution in constrained problems. GM-QAOA is a variant of the Quantum Approximate Optimization Algorithm (QAOA) and is particularly designed for constrained optimization problems. In the standard QAOA, the variational circuit alternates between the following two types of unitaries:- 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:
