Quantum RingsQuantum Rings
Simulation
Large-scale simulation on your own hardware
Open Quantum
Real QPUs from leading providers, one API
Quantum 101
A free 14-lesson course, from qubits to QAOA
For Researchers
For Developers
For Educators
For Students
For Startups
For Enterprise
Documentation
Sample Notebooks
Quantum 101
Community
Research
GitHub
NewsPricing
Log inGet started free
NewsPricing
Log inGet started free
Quantum 101 overview

Quantum Foundations

  • 1.Welcome, Math Prerequisites & SDK Setup
  • 2.Single-Qubit Gates, Bloch Sphere & Measurement
  • 3.Entanglement & Multi-Qubit Gates

Starting to Code

  • 4.Circuit Composition & Control Flow
  • 5.Quantum Oracles & Amplitude Amplification
  • 6.“Toy” Algorithms: Deutsch–Jozsa, BV, Simon
  • 7.Grover’s Search Algorithm
  • 8.QFT & Phase Estimation

Continue to Grow

  • 9.Shor’s Factoring Algorithm
  • 10.Noise & Error Mitigation
  • 11.Variational Algorithms I—VQE
  • 12.Variational Algorithms II—QAOA
  • 13.Quantum Error Correction
  • 14.Capstone: 100-Qubit QAOA & Road Ahead

Continue to Grow · Lesson 12

Variational Algorithms II—QAOA

Continue your journey with variational algorithms! This episode explores QAOA (Quantum Approximate Optimization Algorithm), a powerful method for tackling optimization challenges with quantum computers.

Welcome back, quantum coders! In Episode 12, we're building on our exploration of variational algorithms with Variational Algorithms II: QAOA (Quantum Approximate Optimization Algorithm). Get ready to tackle optimization problems using a clever mix of quantum and classical power!

QAOA: Mapping Problems to Quantum Circuits

QAOA is designed to find approximate solutions to combinatorial optimization problems. We'll start by showing how to perform problem mapping, specifically focusing on the Max-Cut problem. You'll learn how to translate this classical optimization challenge into an Ising cost Hamiltonian, which serves as the objective function for our quantum algorithm. This mapping is crucial for leveraging quantum mechanics to explore potential solutions.

The Alternating Operator Structure: Cost & Mixer Unitaries

The core of QAOA lies in its unique alternating operator structure. The algorithm repeatedly applies two types of quantum operations: the cost unitary (derived from the problem's cost Hamiltonian) and the mixer unitary (which drives exploration of the solution space). We'll break down how these operators are constructed and how their interleaved application, over multiple parameter levels (p-levels), allows the algorithm to iteratively approach optimal solutions. We'll also discuss the performance trade-offs associated with choosing different numbers of p-levels.

Practical Example: Max-Cut on a 4-Node Graph

To make QAOA concrete, we'll walk through a practical example: solving the Max-Cut problem on a 4-node graph. We'll demonstrate the algorithm for both p=1 and p=2 levels, allowing you to see how increasing the number of alternating layers can improve the solution quality. A key part of this will be visualizing the probabilities of different bitstring outcomes, which directly correspond to different cuts in the graph. This visual insight will help you understand how QAOA biases the measurement outcomes towards better solutions.

Connections to Other Quantum Algorithms & Future Demonstrations

QAOA holds fascinating connections to other areas of quantum computing. We'll discuss its relationship to Grover's algorithm, showing how Grover's can be viewed as a special case of QAOA. We'll also explore its conceptual links to adiabatic algorithms, which slowly evolve a quantum system to its ground state. This episode sets the stage for Episode 14, where we'll explore large-qubit demonstrations of variational algorithms, giving you a glimpse into the potential of these techniques on more powerful quantum hardware.

Today's lesson provides a deep dive into QAOA, equipping you with a powerful tool for tackling optimization problems in the NISQ era. Make sure to complete all your notebook exercises to solidify these concepts! We're excited to see what you build next.

Code & notes

Open the notebookCourse repositoryAsk in Discord
Lesson 11Complete & continue

Stay Updated

SDK updates, webinars, and quantum industry news — straight to your inbox.

Quantum Rings

Large-scale quantum simulation on your own hardware — and access to real QPUs when you need them.

info@quantumrings.com

5555 Central Ave, Suite 110, Boulder, CO 80301

Products

  • Simulation
  • Quantum 101
  • Open Quantum
  • Pricing

Developers

  • Documentation
  • Research
  • GitHub

Solutions

  • For Researchers
  • For Developers
  • For Educators
  • For Students
  • For Startups
  • For Enterprise

Company

  • About
  • Community
  • Investors
  • Careers
  • Ambassadors
  • Press Kit
  • News
  • Contact

Legal

  • Terms of Use
  • Privacy Policy
© 2026 Quantum Rings, Inc. All rights reserved.