
A rigorous guide to quantum computing and quantum machine learning, from qubit mathematics and quantum algorithms to variational models, real hardware, and the honest evaluation of quantum advantage.
Quantum computing gives machine learning a genuinely new way to compute: circuits built on superposition and entanglement, algorithms with provable speedups for specific problem classes, and model architectures with no classical equivalent. This book is one connected journey through the theory, algorithms, and engineering practice of quantum AI. It starts with qubits and quantum gates, builds through the landmark algorithms (Grover, QFT, VQE, QAOA) and variational methods, then moves into the full landscape of quantum ML models, before closing with real hardware, error mitigation, and the rigorous evaluation that separates genuine quantum advantage from hype.
From the mathematical rules of the quantum game to production-grade quantum AI software, in one continuous build.
The rules of the game: qubits, measurement, gates, circuits, superposition, interference, entanglement, and the algorithms (Grover, QFT, HHL, VQE) that put them to work.
Ch 0–18 · 19 chapters IV–VA compact ML onramp for quantum readers, then the data-loading problem: why encoding classical data into quantum circuits is not free, what it costs, and what QRAM does and does not solve.
Ch 19–25 · 7 chapters VI–VIIQuantum kernels, variational circuits, QNNs, barren plateaus, expressivity, equivariant models, tensor networks, generative models, reinforcement learning, QAOA, and QUBO.
Ch 26–42 · 17 chapters VIIIDensity matrices, simulators, noise channels, error mitigation versus correction, the 2026 hardware landscape across six modalities, fault-tolerance roadmaps, and a rigorous framework for evaluating advantage.
Ch 43–49 · 7 chapters IXQuantum learning separations, QNLP, quantum transformers, graph learning, scientific ML, neural quantum states, AI for quantum, and a survey of where quantum AI is actually applied today.
Ch 50–57 · 8 chapters X–XIThe engineering spine: reproducible environments, AI-assisted coding, real-hardware access, GPU/JIT acceleration, benchmarking, and six capstone projects including a reproduce-a-paper lab.
Ch 58–69 · 12 chaptersFive habits, kept in every chapter from the first qubit to the last capstone.
Plain English, intuition, analogy, diagram, equation, code, and the classical check: "could a classical computer do this?" No concept is left at the analogy stage.
Every listing is a runnable, version-pinned, tested notebook. Stage 1 builds from scratch in NumPy. Stage 2 uses PennyLane and Qiskit. Stage 3 adds honest classical baselines. Stage 4 is a full experiment.
Every model meets a tuned classical baseline. Every advantage claim is held to dequantization, classical-surrogate, and benchmarking standards from the published literature.
Build-With-AI boxes show how to scaffold circuits, translate between SDKs, and debug with a copilot, followed immediately by the verification that keeps the code correct.
Every advanced chapter closes with the open questions at the research frontier. The most recent results (2024–2026) are integrated throughout, so the book stays current as you read.
Building Quantum AI is one of nine connected books, each a deep, build-it-yourself guide to a major field of AI.
Hands-On AI Science is a series of in-depth guides to the major fields of artificial intelligence. Every book goes deep into the theory, models, and internals, covering the classical foundations and the most recent ideas, then shows you how to build each one in Python with the modern libraries and tools that get the job done. The writing stays plain and light (illustrations, analogies, mental models, worked examples, and a little fun) without trading away rigor or coverage. Each volume is self-contained and complete enough to anchor a full course on its subject.
From Qubits to Quantum Machine Learning.
You are hereRead the full About the Hands-On AI Science Series note.