⚛️ Quantum Programming in C++ and Python
Home Chapters Examples Diagrams Bibliography GitHub ↗
Home / Foundations
Part 1 3 chapters

Foundations

Qubits, state vectors, measurement and gates, built from the ground up.

Chapter 1

A tour of the two containers

What lives in the C++ and Python images, why each tool is there, and how the multi-stage build tests the code before it ever becomes an image.

15 minutesRead →
Chapter 2

Qubits, state vectors, and measurement

Build a qubit from scratch as a vector of complex amplitudes, apply a gate as a matrix, and measure it by sampling, in C++ and NumPy, before any framework hides the mechanism.

20 minutesRead →
Chapter 3

Gates and circuits

Single-qubit gates as unitary matrices, multi-qubit gates that entangle, and circuits as sequences of gates, shown with Quantum++ and Qiskit.

20 minutesRead →
← Previous part Prerequisites & Setup Next part → First Programs

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