Outline

What this book covers and how it is organized: a primary C++ track with Python for contrast and testing, CPU-only and container-first.

OverviewPrerequisites & Setup

This book teaches quantum programming with a primary C++ track and a secondary Python track used for contrast and testing. Every algorithm leads in C++ (Quantum++, with CUDA-Q’s CPU target as a second option) and is cross-checked against Python (Qiskit and Aer, Cirq, PennyLane). Everything runs on a normal Fedora workstation in Docker containers, CPU only: no GPU, no cloud account, and no special hardware.

Results are always reported as a measured distribution (counts over a stated number of shots) and checked against the analytic expectation, never asserted. The qubit ceiling is about 25 to 30 on a workstation, which is enough for every algorithm in the outline.

The arc is below. Chapters link as they ship.

Part 0: Prerequisites & Setup

  • Ch0 · Setup: the Fedora host, Docker and Compose, the C++ and Python containers, uv-managed Python 3.14, check-prereqs.sh, and teardown (also the free sample)

Part 1: Foundations

Part 2: First Programs

Part 3: Algorithms

Part 4: Hybrid & Variational

Part 5: Going Further

Appendices

A note on “post-quantum”

Post-quantum cryptography (the ML-KEM and ML-DSA algorithms now shipping in RHEL 10 and UBI) secures today’s systems against a future quantum attacker. That is a different subject from programming a quantum computer, which is what this book is about. Appendix B clears up the confusion.