⚛️ Quantum Programming in C++ and Python
Home Chapters Examples Diagrams Bibliography GitHub ↗
Home / Hybrid & Variational
Part 4 2 chapters

Hybrid & Variational

Variational methods that pair a quantum circuit with a classical optimizer: VQE and QAOA.

Chapter 11

The variational quantum eigensolver

Find a Hamiltonian's lowest energy by tuning a parameterized circuit with a classical optimizer: the variational principle, the energy expectation, and the loop, in Quantum++ and Qiskit.

25 minutesRead →
Chapter 12

QAOA for optimization

Solve a combinatorial problem, MaxCut, by alternating a cost layer and a mixer and tuning their angles with a classical optimizer, then reading the answer from the measured counts, in Quantum++ and Qiskit.

25 minutesRead →
← Previous part Algorithms Next part → Going Further

Quantum Programming in C++ and Python

Learn quantum programming with a primary C++ track and Python for contrast and testing. CPU-only and container-first, on Fedora.

Tutorial

  • Chapters
  • Examples
  • Diagrams
  • Bibliography

Reference

  • Quantum++ ↗
  • Qiskit ↗
  • View on GitHub ↗
  • Issues ↗
Open source · MIT Last built 2026-11-21