QAOA Optimization Demo
Simplified educational demo of the Quantum Approximate Optimization Algorithm on 4 qubits.
Circuit Preview (4 qubits, 18 gates)
q0: ─ H ──────────────────■──────── Z ────────■──────── H ─────────────────Measure──────────────── q1: ────── H ────────────CX ─────────────────CX ──────────── H ─────────────────Measure─────────── q2: ─────────── H ─────────────■──────── Z ────────■───────────── H ─────────────────Measure────── q3: ──────────────── H ───────CX ─────────────────CX ───────────────── H ─────────────────Measure─
| # | Gate | Targets | Controls | Description |
|---|---|---|---|---|
| 1 | H | q0 | — | H |
| 2 | H | q1 | — | H |
| 3 | H | q2 | — | H |
| 4 | H | q3 | — | H |
| 5 | CX | q1 | q0 | CX |
| 6 | CX | q3 | q2 | CX |
| 7 | Z | q0 | — | Z |
| 8 | Z | q2 | — | Z |
| 9 | CX | q1 | q0 | CX |
| 10 | CX | q3 | q2 | CX |
| 11 | H | q0 | — | H |
| 12 | H | q1 | — | H |
| 13 | H | q2 | — | H |
| 14 | H | q3 | — | H |
| 15 | Measure | q0 | — | Measure |
| 16 | Measure | q1 | — | Measure |
| 17 | Measure | q2 | — | Measure |
| 18 | Measure | q3 | — | Measure |
Run Settings
Local Simulator (free)
Local simulator runs are free and unlimited in dev mode. Server-side limits apply for production use.
$0.00 (free)
Local simulator has no cost. Real backends will show estimated cost once pricing is configured.
Creditsnot configured
Credits are local (browser-only). Real credit system requires billing integration.