Skip to main content

Plain-Language Intuition

Mode: Simple / School
Many valuable problems are about choosing the best arrangement out of astronomically many: delivery routes, investment portfolios, chip layouts. A classic example is MaxCut: split the points of a network into two teams so that as many connections as possible run between the teams. QAOA attacks such problems with a quantum-classical partnership: 1. Start with every possible split at once (superposition). 2. A "cost" layer marks good splits by turning their phase by an angle γ. 3. A "mixer" layer stirs the possibilities by an angle β, so that the phase marks turn into higher probabilities for good splits. 4. A classical computer measures the result, then tunes the two dials γ and β and tries again. Our network is the smallest possible one: two points joined by a single edge. The best split puts them on opposite teams (01 or 10). In the Circuit stage, switch between the untrained dials (every answer equally likely) and the trained dials (only the two correct answers ever appear).

Combinatorial Optimization

Quantum Approximate Optimization Algorithm (QAOA): quick reference

Solves MaxCut with alternating cost and mixer layers whose angles are tuned by a classical optimizer — the leading near-term optimization algorithm.

Topic
Combinatorial Optimization
Level
Advanced
Circuit size
2 Qubits
Key result
Hybrid NISQ optimization heuristic

Concepts covered: QAOA, MaxCut, Cost Hamiltonian, Mixer Hamiltonian, Variational Quantum Algorithms

Frequently asked questions

What is Quantum Approximate Optimization Algorithm (QAOA)?

Solves MaxCut with alternating cost and mixer layers whose angles are tuned by a classical optimizer — the leading near-term optimization algorithm. It is a advanced-level topic in combinatorial optimization.

How many qubits does the QAOA (Optimization) circuit use?

The QuanBit tutorial uses a 2 qubits circuit. Key result: Hybrid NISQ optimization heuristic.

Can I simulate QAOA (Optimization) online for free?

Yes. The interactive QAOA (Optimization) tutorial at https://www.quanbit.tech/learn/qaoa runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.