Interactive webbook
Quantum Information and Machine Learning via Rust
4 parts17 chapters9 sources distilledComplete
From a single qubit to trained quantum models — algorithms, error correction, and machine learning with amplitudes, every claim computed and self-refereed.
F
Formalism
Full mathematical derivations — no steps skipped.
C
Concepts
Live simulations you can push on and explore.
P
Practice
Rust labs that compute the numbers these pages chart.
Contents
Information → algorithms → error correction → learning with amplitudes.
From a classical bit to a qubit, gates, entanglement, noise — and a simulator you build yourself.
- 01Bits to QubitsClassical information, the qubit, the Bloch sphere, and superposition as a countable resource.
- 02Gates and CircuitsUnitary gates, universal sets, the circuit model, and measurement — a full state-vector simulator.
- 03Entanglement as a ResourceBell states, the Schmidt decomposition, teleportation, superdense coding, and monogamy.
- 04Quantum Channels and NoiseDensity matrices, Kraus operators, depolarizing and dephasing — the honest math of real machines.
- 05The Stabilizer FormalismThe Pauli group, stabilizer states, the Gottesman–Knill theorem — simulating 1000 qubits classically.
Interference as computation: the query model, the Fourier family, search, and simulating physics itself.
- 06Interference as ComputationDeutsch–Jozsa, Bernstein–Vazirani, the oracle model, and what a quantum speedup honestly is.
- 07The Fourier FamilyThe quantum Fourier transform, phase estimation, and Shor's algorithm — why periods are quantum-easy.
- 08Search and Amplitude AmplificationGrover's algorithm, amplitude amplification, quantum walks, and the provable √N limit.
- 09Simulating Quantum SystemsHamiltonian simulation, Trotter–Suzuki splitting, and error referees — Feynman's original killer app.
Errors, codes, thresholds, and the near-term reality of noisy machines — how quantum computing survives itself.
- 10The Problem of ErrorsDecoherence digitized, the bit-flip and phase-flip codes, and why continuous errors become discrete.
- 11Quantum Error CorrectionThe Shor code, stabilizer and CSS codes, and the surface code — decoded, in Rust.
- 12Thresholds and Fault ToleranceThe threshold theorem, fault-tolerant gates, magic-state distillation — the phase transition that saves the field.
- 13NISQ and Variational CircuitsVariational quantum eigensolvers, QAOA, and what noisy near-term machines can honestly do.
Machine learning from the ground up, then rebuilt in Hilbert space — with an honest scorecard of where advantage lives.
- 14Learning from DataClassical machine learning bottom-up: linear models, kernels, gradient descent, and the learning problem.
- 15Feature Maps and Quantum KernelsEncoding data into Hilbert space, quantum feature maps, and kernels no classical computer can cheaply forge.
- 16Training Quantum ModelsVariational classifiers, the parameter-shift rule, and the barren-plateau problem that flattens the landscape.
- 17The Honest ScorecardDequantization, quantum data, tensor networks as the classical shadow of entanglement — where advantage might truly live.
Book 2 of 2 · the via Rust series
Continue with Book 1: Quantum Physics via Rust
Build the quantum-mechanical foundations—amplitudes, spin, operators, atoms, and entanglement—before continuing here.