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

Algorithms

The classic quantum algorithms, from Deutsch-Jozsa to a small Shor demo.

Chapter 7

Query algorithms: Deutsch-Jozsa and Bernstein-Vazirani

Two algorithms that answer in a single query what a classical computer needs many queries for: Deutsch-Jozsa decides constant-versus-balanced, and Bernstein-Vazirani recovers a hidden string.

25 minutesRead →
Chapter 8

Grover's search

Find a marked item in an unstructured space of 2^n in about sqrt(2^n) steps, with a phase oracle and a diffusion operator that rotate amplitude onto the answer, in Quantum++ and Qiskit.

25 minutesRead →
Chapter 9

The QFT and phase estimation

The quantum Fourier transform and the phase-estimation routine built on it, recovering the phase of a gate's eigenvalue into a counting register, in Quantum++ and Qiskit.

25 minutesRead →
Chapter 10

Shor's algorithm

Factor a number by finding the order of an element modulo N with phase estimation, then a classical gcd, demonstrated on N = 15 in Quantum++ and Qiskit.

30 minutesRead →
← Previous part First Programs Next part → Hybrid & Variational

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