Quantum Computing

Active Learning | Intuition + Rigor

About

There is something deeply beautiful about a good explanation. Anyone who has read the Feynman Lectures on Physics knows the feeling: a concept you once found opaque suddenly seems magical.

This site is my attempt to create that experience for quantum computing. It is inspired by the way 3Blue1Brown helps you visualize concepts before you formalize them, the elegance that Aleph 0 finds in abstract mathematics, and Scott Aaronson's conviction in Quantum Computing Since Democritus that:

Quantum mechanics is a beautiful generalization of the laws of probability: a generalization based on the 2-norm rather than the 1-norm, and on complex numbers rather than nonneg­ative real numbers. It can be studied completely separately from its applications to physics (and indeed, doing so provides a good starting point for learning the physical applications later). This generalized probability theory leads naturally to a new model of computation – the quantum computing model – that challenges ideas about computation once considered a priori, and that theoretical computer scientists might have been driven to invent for their own purposes, even if there were no relation to physics. In short, while quantum mechanics was invented a century ago to solve technical problems in physics, today it can be fruitfully explained from an extremely different perspective: as part of the history of ideas, in math, logic, computation, and philosophy, about the limits of the knowable.

As the Aaronson quote above suggests — and as I have experienced myself — the way quantum theory is taught at university is unfortunate, in a few ways.

First, it makes the implicit leap that quantum theory = quantum mechanics (physics). As I see it, quantum theory spans not only physics but also computational complexity theory, information theory, the theory of computation, and philosophy, among other fields. But even the physics part alone is problematic: you are told that a quantum state is a vector in a Hilbert space, i.e. $\psi \in \mathcal{H}$. This is flat-out wrong. A quantum state is in fact a map from a Hilbert space to itself, $\rho: \mathcal{H} \to \mathcal{H}$, satisfying certain properties (it is positive, linear, and trace-class). The standard presentation $\psi \in \mathcal{H}$ is plainly false. And this says nothing of the "shut up and calculate" pedagogy of most physics courses, where you solve Schrödinger's equation for various potentials without ever understanding why, or what is really going on.

Second, quantum algorithms like Shor's or Grover's are typically taught by handing you a circuit of quantum gates and asking you to verify that it works. One is left with the nagging feeling: I can see how this circuit works now that I know what it is — but how would anyone have come up with it in the first place? It is in fact deeply illuminating to derive these algorithms from first principles yourself. I did exactly this for the quantum Fourier transform, phase estimation, and others — and in doing so, I was able to grasp not just the mechanics but the nuance: why each detail is the way it is, and why it could not have been otherwise. This is more mentally taxing than reading through lecture notes and accepting what is shown, but the knowledge really sticks with you.

Inspired by my own experience of learning this unconventional way, I built this site to help you do the same. It includes guided derivations of the key algorithms for you to think through yourself, and simulations of quantum circuits where you can play around and see what happens.

Quantum computing is a beautiful subject. Learning it from first principles makes that elegance shine out.

Topics
Quantum Fourier Transform
Coming soon
Phase Estimation
Coming soon
Order Finding
Available →
Factoring
Coming soon