Quantum Computing

Quantum Computing

Quantum
Computing

A quantum computer holds a state far larger than anything it can print, and a measurement returns only a handful of bits. This course is the study of what those bits can be made to say, and of the one mechanism — interference — that is the only way of making them say anything at all.

What the course is about

A phase you cannot see, and the counts that reveal it

The screen beside this runs the smallest complete experiment in the course. One qubit is put into an even superposition, a phase is written between its two terms, and a second Hadamard brings the two amplitudes back into the same outcome so that they can add or cancel.

p(0) = cos2(φ ⁄ 2)

Measuring in the middle would learn nothing: both outcomes are one half there for every φ. Everything the readout knows arrives in the last gate. Watch the marker cross the fringe and the two bars swap heights in the same breath, because they are one quantity and not two.

The bars are one run of four hundred shots drawn from the probability under the marker, and the bit string in the corner is the first twelve of those shots rather than a second random stream. The white tick on each bar is the exact probability; the gap to it is what a finite run costs, and it closes as one over the square root of the shot count.

One qubit through a Hadamard, a phase and a Hadamard, measured four hundred times. The readout is computed from the same model that draws the fringe.

The seven chapters

One belief, replaced seven times over

A student arrives believing that a quantum computer tries every answer at once, and every later idea is harder to read while that sentence is still believed. Each chapter is either a way of writing a state down, a way of acting on it, or a way of arranging the one measurement that ends the computation — and every one of them answers to the same three replacements.

  1. 0

    The frame of the course

    What the machine is for, how large the state really is, and the one interference experiment the rest of the course generalises.

  2. 1

    The mathematics of quantum states

    Columns, inner products and what they conjugate; amplitude against phase; projectors, the tensor product, and where the exponential comes from.

  3. 2

    States, measurement and dynamics

    The Born rule, what a reading leaves behind, the Pauli algebra, evolution as an exponential, and what a finite run of shots is worth.

  4. 3

    Mixed states and entanglement

    The density operator and the two situations no state vector describes; channels, relaxation and dephasing; the partial trace; Bell states and CHSH.

  5. 4

    The Bloch sphere and quantum gates

    One qubit drawn, and every operation on it as a motion of that drawing. The half angle, the gate set, and the two-qubit ordering that fails silently.

  6. 5

    Circuits and protocols

    Depth against gate count, shots and error bars, what a compiler does — then teleportation and Grover search, worked end to end.

  7. 6

    Quantum algorithms

    One mechanism, phase kickback, and the four algorithms built from it: through the Fourier transform and phase estimation to order finding and factoring.

Take it away

The course as four things you can hold

Interactive

The course artifact

177 scenes, eleven laboratories and every practice question with its worked solution. One file, no network, works offline.

Open →
PDF

Lecture notes

The six chapters written out as a book, every derivation one step to a line, and Appendix A collecting every formula.

Download →
PDF

Student workbook

Every question in the course with no answer and no solution, and room to work.

Download →
PDF

Formula reference

The conventions, every formula the course establishes in the order it establishes them, and every symbol it defines.

Download →

Two conventions decide every number here, and mixing them is silent rather than loud: a register is written |qn−1 … q1q0, so entry x of the column is the amplitude of the basis state x read as a binary number; and a phase on the whole state may always be dropped while a phase between two terms may never be, because that is what interference is made of.