First Edition · 2026
Book cover: quantum circuits and neural networks converging into quantum machine learning, with the title Building Quantum AI

Building Quantum AI From Qubits to Quantum Machine Learning

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.

Alexander (Sasha) Apartsin, Ph.D. & Yehudit Aperstein, Ph.D.

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.

11 parts 69 chapters 6 appendices Capstone projects

The Eleven-Part Arc

From the mathematical rules of the quantum game to production-grade quantum AI software, in one continuous build.

How This Book Teaches

Five habits, kept in every chapter from the first qubit to the last capstone.

Seven Forms per Concept

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.

Runnable, Tested Code

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.

Honest Baselines

Every model meets a tuned classical baseline. Every advantage claim is held to dequantization, classical-surrogate, and benchmarking standards from the published literature.

AI-Copilot Discipline

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.

Research Frontiers

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.

The Hands-On AI Science Series

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.

Building Language AI

From Tokens to Agents.

Read online · Kindle

Building Vision AI

From Pixels to Generative Models.

Read online · Kindle

Building Temporal AI

From Forecasting to Sequential Decision Making.

Read online · Kindle

Building Scalable AI

From Big Data Algorithms to Distributed Intelligence.

Read online · Kindle

Building Embodied AI

From Perception to Autonomous Action.

Read online

Building Agentic AI

From Goals to Autonomous Systems.

Read online

Building Discovery AI

From Vibe Coding to Autonomous Science.

Read online

Building Neuromorphic AI

From Spiking Neurons to Edge Intelligence.

Read online

Building Quantum AI

From Qubits to Quantum Machine Learning.

You are here

Read the full About the Hands-On AI Science Series note.