Unit 6 · Quantum Technology & FrontiersChapter 23 of 25

Qubits & Quantum Computing

Computing with amplitudes instead of bits

  • 24 min read
  • 34 min listen
  • 28 videos
01Video briefing

Start with the preview

Start here — today's preview. Watch “Quantum Computers, Explained With Quantum Physics” from Quanta Magazine before (or after) this session. The lab will wait. Mostly.

Today's preview

Quantum Computers, Explained With Quantum Physics

Quanta Magazine10 min

Quanta's ten-minute primer opens by insisting that quantum computers are not the next generation of supercomputers but something else entirely, then lays out the physics they run on. Watch it with one question in mind: where does the speed-up actually come from? Part 5 of the lesson gives the full answer, and it is interference, not parallel guessing.

Watch on YouTube

More from the video vault

Deep dive

But what is quantum computing? (Grover's Algorithm)

3Blue1Brown37 min

Grant Sanderson treats a quantum state as a vector, gates as rotations, and Grover's search as a sequence of reflections, and confronts the 'tries every answer at once' myth directly. Best watched after Part 6; the rotation picture there is exactly the geometry behind the square-root speed-up.

Watch on YouTube
Bonus

How Quantum Computers Break Encryption | Shor's Algorithm Explained

minutephysics18 min

A hand-drawn walk through Shor's algorithm: how factoring turns into finding a period, and how a quantum Fourier transform makes the wrong periods interfere away. A natural companion to Part 6 and a bridge to next session's cryptography.

Watch on YouTube
  • Quantum Computers, Explained With Quantum Physics — Quanta Magazine — https://www.youtube.com/watch?v=jHoEjvuPoB8
  • But what is quantum computing? (Grover's Algorithm) — 3Blue1Brown — https://www.youtube.com/watch?v=RQWpF2Gb-gU
  • How Quantum Computers Break Encryption | Shor's Algorithm Explained — minutephysics — https://www.youtube.com/watch?v=lvTqbM5Dq4Q
02Cold open

Today's mission

Dr. Q · cold open

Great Planck's ghost, you made it out of the cat box! Last session you watched decoherence, the environment's relentless eavesdropping, shred superpositions faster than a blink. Today I propose something gloriously perverse: a machine whose entire job is to protect superpositions, entangle them on command and steer their amplitudes until the wrong answers cancel themselves out. Some people will tell you such a machine tries every answer at once. It does not, and by the end of this session you will be able to say exactly why, and what it does instead. We will spin qubits around a globe, forge an entangled pair with two gates, search a haystack in roughly the square root of the usual number of tries and look Shor's code-breaker in the eye. Goggles on. The refrigerator is humming.

By the end of this session you will be able to:

  1. Describe a qubit as a normalized pair of complex amplitudes and locate any single-qubit state on the Bloch sphere.
  2. Predict the action of the X, Z, Hadamard and CNOT gates and build the Bell state (1/√2)(|00⟩ + |11⟩) from |00⟩.
  3. Explain why n qubits need 2ⁿ amplitudes and why quantum algorithms work by choreographing interference rather than by trying every answer.
  4. Outline the idea behind the Deutsch–Jozsa algorithm, then Grover's search and Shor's factoring algorithm, and calculate how many rounds Grover's search requires.
  5. Compare superconducting, trapped-ion, neutral-atom, photonic and spin qubits and the role decoherence plays in each.
  6. Explain how error correction builds logical qubits and summarise, with dates, what quantum computers could and could not do as of 2026.
03The lesson

Read it — or listen along

8 parts. Press play on any part and the paragraph being read lights up as Dr. Q speaks.

Part 1

From Bits to Qubits

A classical bit is any physical system with two distinguishable states labelled 0 and 1, such as a transistor switched on or off. Your laptop runs on billions of them, each definitely 0 or definitely 1 at every instant. A quantum bit, or qubit, also has two distinguishable states, written |0⟩ and |1⟩ in the Dirac notation of Chapter 14, but it obeys quantum mechanics. You have met several: an electron's spin, a photon's polarisation, an atom's two lowest energy levels.

A qubit can therefore occupy a superposition α|0⟩ + β|1⟩, where α and β are complex numbers called probability amplitudes. Measure it and you get exactly one bit: 0 with probability |α|², or 1 with probability |β|²; hence |α|² + |β|² = 1, the normalization condition. As Chapter 15 insisted, this is not ignorance of a hidden value. Amplitudes, unlike probabilities, can be negative or complex, so contributions can cancel. That cancellation, interference, together with the entanglement of Part 4, powers every quantum algorithm.

In 1980 Paul Benioff described a quantum-mechanical model of a computer. In a 1981 lecture at MIT, published in 1982, Richard Feynman argued that ordinary computers seem to need exponentially growing resources to simulate quantum systems, so nature is best simulated by quantum hardware. In 1985 David Deutsch at Oxford defined a universal quantum computer, the quantum heir of Alan Turing's universal machine.

Watch this part

Part 2

The Bloch Sphere: A Globe for One Qubit

Two complex amplitudes contain four real numbers, but only two matter. Normalization removes one; another vanishes because multiplying both amplitudes by the same complex factor of size one, a global phase, changes no measurement probability. What survives is the balance between the amplitudes, set by an angle θ, and the relative phase φ between them: the amplitude on |0⟩ is the cosine of θ/2, while the amplitude on |1⟩ has a size equal to the sine of θ/2 and carries the phase φ.

Read θ as the angle down from the north pole and φ as the longitude, and every qubit state becomes a point on a sphere of radius one, the Bloch sphere, named for Felix Bloch. |0⟩ sits at the north pole, |1⟩ at the south pole, and the equator holds the equal superpositions, with |+⟩ = (1/√2)(|0⟩ + |1⟩) on the positive x axis and |−⟩ = (1/√2)(|0⟩ − |1⟩) opposite it. The chance of reading 0 is the cosine squared of θ/2, the spin rule of Chapter 17: a spin-one-half particle is a qubit, and the Bloch arrow is its spin direction.

Two cautions. Opposite points on the sphere are orthogonal, perfectly distinguishable states, although they sit 180° apart rather than 90°; the half-angles take care of that. And the sphere pictures one qubit alone. An entangled qubit has no point on the surface: its individual description shrinks inside the ball, and the shared information lives in correlations that no single globe can draw.

Watch this part

Part 3

Gates: Steering the Arrow

Quantum mechanics restricts what a gate can be. Between measurements an isolated system evolves by the Schrödinger equation of Chapter 10, which is linear and preserves total probability. Such operations are called unitary, and every unitary can be undone. For one qubit the result is beautifully visual: every gate rotates the Bloch sphere.

The X gate is the quantum NOT, a half-turn about the x axis that swaps the poles: X|0⟩ = |1⟩ and X|1⟩ = |0⟩. The Z gate, a half-turn about the z axis, has no classical counterpart: it leaves |0⟩ alone and multiplies |1⟩ by −1, a phase flip. Z changes no 0-or-1 probability, yet it turns |+⟩ into |−⟩, a hidden sign that steers any later interference. The Hadamard gate H is a half-turn about the axis midway between x and z, carrying |0⟩ to |+⟩ and |1⟩ to |−⟩, and back again.

Apply H twice and the qubit returns home; seeing why is this chapter's most important calculation. The first H makes (1/√2)(|0⟩ + |1⟩). The second acts on each piece: the |0⟩ piece adds 1/2 to |0⟩ and 1/2 to |1⟩, while the |1⟩ piece adds 1/2 to |0⟩ and −1/2 to |1⟩. The routes to |0⟩ add up to 1; the routes to |1⟩ cancel to zero, the same destructive interference that darkens double-slit fringes.

Circuit diagrams draw each qubit as a wire, time running left to right, gates as boxes. A circuit is a product of unitary matrices, so order matters: H, then Z, then H equals X, while Z followed by two Hadamards is just Z. The trio H, CNOT and T, an eighth-turn about the z axis, is universal: strung together, these gates approximate any unitary as closely as desired.

Watch this part

Part 4

Two Qubits, One Story: CNOT and the Bell State

Rotating qubits one at a time never entangles them; they must interact. The workhorse is the controlled-NOT, or CNOT: if its control qubit is 0 nothing happens, and if the control is 1 the target is flipped. On basis states it acts like a reversible classical gate, sending |10⟩ to |11⟩ and |11⟩ to |10⟩ and leaving |00⟩ and |01⟩ alone. The surprise comes when the control is in superposition.

Start in |00⟩ and apply H to the first qubit, giving (1/√2)(|00⟩ + |10⟩): the first qubit undecided, the second definitely 0. Now apply CNOT with the first qubit as control. The |00⟩ branch is untouched, and in the |10⟩ branch the target flips to |11⟩. The result is (1/√2)(|00⟩ + |11⟩), the Bell state |Φ+⟩ of Chapter 20: measure both qubits and you get 00 or 11, each half the time, never 01 or 10. Two gates have built the correlations Einstein derided as spooky action at a distance, which, as Chapter 20 showed, can never carry a message.

Entanglement also makes quantum states costly to write down. Two qubits need four amplitudes, for 00, 01, 10 and 11, and the Bell state shows they cannot in general be split qubit by qubit; n qubits need 2ⁿ. Fifty qubits require about 1.1×10¹⁵ complex amplitudes, roughly 18 petabytes of memory at 16 bytes apiece, and 266 qubits need more amplitudes than the observable universe has atoms, about 10⁸⁰. No wonder Feynman expected classical computers to choke on quantum physics.

Watch this part

Part 5

Not Every Answer at Once: Choreographing Interference

Now the most repeated myth in popular science: a quantum computer puts its input into a superposition of every value, evaluates the function once, and so tries every answer in parallel. The first half is true. Compute f on an equal superposition of all 2ⁿ inputs and you do hold every input paired with its output. But measurement returns one pair at random, exactly what an ordinary computer gets by trying a random input. Superposition alone buys nothing.

Quantum algorithms instead choreograph interference. Every computational path carries an amplitude with a sign or phase, and a good circuit makes the paths to wrong answers arrive out of step and cancel while the paths to the right answer reinforce. Large speed-ups need exploitable structure, such as a hidden period or a global property of a function; without it, the most interference can buy is the square-root gain of Grover's search in Part 6.

The cleanest demonstration is the Deutsch–Jozsa algorithm, published by David Deutsch and Richard Jozsa in 1992. An oracle, a black box, computes a function f from n-bit inputs to 0 or 1, promised to be either constant or balanced, giving 0 for exactly half the inputs. A classical computer that must be certain may need to query one more than half of the 2ⁿ inputs; the quantum algorithm needs one query. Hadamards spread the input across all 2ⁿ values; the oracle, by a trick called phase kickback, multiplies each amplitude by −1 wherever f equals 1; Hadamards fold the paths back together. The final all-zeros amplitude is the average of those signs: ±1 if f is constant, exactly zero if it is balanced.

Since sampling a few random inputs answers classically with high confidence, the Deutsch–Jozsa algorithm is a proof of principle, not a practical tool. Its lesson is the mechanism, phases written by an oracle and read by interference, on which useful algorithms build.

Watch this part

Part 6

Grover and Shor: Searching and Factoring

In 1996 Lov Grover of Bell Labs found a quantum algorithm for unstructured search: finding one marked item among N using only a yes-or-no check. Classically you need about N/2 checks on average; Grover needs only about π/4 × √N. Each round flips the sign of the marked item's amplitude, then reflects every amplitude about the average, so the marked one grows while the rest shrink. In effect the state rotates by a fixed small angle toward the answer, so timing matters: overdo it and you rotate past.

The speed-up is quadratic, not exponential: a million items need about 785 rounds instead of about 500,000 checks. In 1997 Charles Bennett, Ethan Bernstein, Gilles Brassard and Umesh Vazirani proved that no quantum algorithm can search an unstructured list with fewer than about √N queries, so Grover is essentially optimal. It roughly halves the effective key length of symmetric ciphers, one reason 256-bit AES keys are recommended for long-term secrets.

Shor's algorithm is the exponential headline. In 1994 Peter Shor, also of Bell Labs, showed that a quantum computer could factor integers and compute discrete logarithms in polynomial time. Factoring N reduces to finding the period r of the remainders left when successive powers of a number a are divided by N; a greatest-common-divisor calculation then yields the factors. A quantum Fourier transform makes the amplitudes interfere so that a measurement is likely to reveal r. The best classical method known, the general number field sieve, slows faster than any polynomial in the number of digits.

On a large enough error-corrected machine, Shor's algorithm would break both RSA, invented by Ron Rivest, Adi Shamir and Leonard Adleman in 1977, and elliptic-curve cryptography, which together protect much of the internet. Estimates of the machine required keep falling: about 20 million noisy qubits for eight hours (Gidney and Ekerå, 2019), fewer than a million for under a week (Gidney, 2025), and a March 2026 preprint argues that 10,000 reconfigurable atoms could suffice, given far longer run times. Actual runs of Shor's algorithm, on simplified circuits, have factored only 15 (2001) and 21 (2012). But data harvested now could be decrypted later, so NIST finalized post-quantum cryptography standards in August 2024.

Watch this part

Part 7

Building Qubits: Five Hardware Families

A good qubit must be isolated enough to keep its superposition yet controllable enough to steer and measure. Decoherence, the environmental eavesdropping of Chapter 22, is the enemy, summarised by two times: T₁, how long |1⟩ survives before relaxing to |0⟩, and T₂, how long the relative phase survives. What counts is how many gates fit inside them.

Superconducting circuits, pursued by Google, IBM and others, are tiny circuits of aluminium or niobium interrupted by Josephson junctions, the tunnelling barriers of Chapter 12, and chilled to about 10 millikelvin. The junction makes each circuit an anharmonic oscillator, unlike the even ladder of Chapter 13, so microwave pulses can address just its lowest two levels. John Clarke, Michel Devoret and John Martinis showed in 1984 and 1985 that such a circuit acts as one quantum object, earning the 2025 Nobel Prize in Physics. Gates take tens of nanoseconds; coherence lasts tens to hundreds of microseconds.

Trapped ions, used by Quantinuum, IonQ and others, are charged atoms held in vacuum by electric fields and driven by lasers or microwaves. Identical by nature, they stay coherent for seconds or longer and post some of the best fidelities, but two-qubit gates take microseconds to hundreds of microseconds. Neutral atoms, pursued by QuEra, Pasqal and others, sit in grids of laser beams called optical tweezers and are entangled through Rydberg states, highly excited states whose enormous electron clouds make neighbouring atoms interact strongly; a Caltech group has trapped more than 6,100 atoms in one array.

Photonic qubits barely decohere and travel at room temperature, though the best detectors need cooling; photons hardly interact, so two-qubit operations rely on measurement tricks, and lost photons are the main danger. Spin qubits, proposed by Daniel Loss and David DiVincenzo in 1998, use the spin of a single electron, or of a hole (a missing electron), trapped in silicon or germanium, and could be made in chip foundries. As of 2026 the best two-qubit gates fail roughly once in a thousand to ten thousand operations, yet Shor's algorithm at cryptographic scale needs billions of operations. Raw qubits will not do.

Watch this part

Part 8

Error Correction, Logical Qubits and the State of Play

The simplest classical error correction copies each bit several times and takes a majority vote. Quantum mechanics seems to forbid this twice over: an unknown state cannot be copied, the no-cloning theorem of next session, and checking a qubit destroys its superposition. Peter Shor found a way through in 1995 with a nine-qubit code, followed by Andrew Steane's seven-qubit code in 1996. Spread one qubit across several entangled qubits and measure only collective parity checks, such as whether two qubits agree. The answers, called the error syndrome, reveal the error without revealing the encoded amplitudes.

The protected qubit is a logical qubit. The threshold theorem, proved by several groups in 1996 and 1997, guarantees that if physical operations fail less often than some threshold, enlarging the code suppresses logical errors exponentially. The leading design, the surface code, grew from Alexei Kitaev's 1997 toric code: a checkerboard of data and measurement qubits with a threshold near 1 percent. A patch of code distance d uses d² data qubits and d² − 1 measurement qubits and corrects up to (d − 1)/2 errors.

The decisive test came in December 2024. On its 105-qubit Willow chip, Google Quantum AI ran surface codes of distance 3, 5 and 7, and each step cut the logical error rate by a factor of about 2.14; the 101-qubit distance-7 logical qubit failed in 0.143 percent of correction cycles and outlived the chip's best physical qubit 2.4 times over. Other teams run dozens of logical qubits: in 2023 a neutral-atom processor at Harvard, MIT and QuEra ran 48 logical qubits with error detection, not full correction, and in 2025 Quantinuum reported 48 error-corrected ones on its 98-ion Helios.

The state of play as of 2026: processors hold from dozens to over a thousand physical qubits, no quantum computer has factored a number of cryptographic size or run a long, fully fault-tolerant algorithm, and claimed quantum advantages concern specially designed sampling and simulation tasks, several since narrowed by better classical algorithms. Roadmaps target hundreds of logical qubits around 2029 to 2030; treat them as goals, not results. Nor will quantum computers replace laptops: they are expected to be specialised co-processors reached over the cloud, most promising for simulating molecules and materials.

Watch this part

04Video shelf

Go deeper on video

25 more videos for this chapter, 21 of them from universities, research institutes and Nobel lectures. The clips under “Watch this part” in the lesson start at the moment that matters.

25 videos · 11 h

  • Lecture · MIT Schwarzman College of Computing

    Quantum Computing Day: Introduction to Quantum Computing

    MIT Schwarzman College of Computing · William D. Oliver

    An hour-long introduction to the whole field from Will Oliver, professor of electrical engineering and computer science and of physics at MIT, given at the college's Quantum Computing Day. Watch it first for the big picture, then let the lesson's eight parts fill in the details.

  • Lecture · Oxford

    IQIS Lecture 2.5 — The Bloch sphere

    Artur Ekert

    Nine minutes on the Bloch sphere from Artur Ekert's lecture course Introduction to Quantum Information Science, the video that goes with the Bloch-sphere section of the course's online book (qubit.guide). Watch how the polar angle θ (entering as θ/2) and the relative phase φ turn two complex amplitudes into one point on a globe. Then check this section's puzzle: orthogonal states sit 180° apart, not 90°.

  • Explainer · YouTube

    Logic Gates Rotate Qubits

    Josh's Channel

    An eight-minute explainer that starts from classical bits, introduces the Hadamard gate (1:20), asks what happens when you measure between two H gates (4:25), then recasts every gate as a rotation of the Bloch sphere (5:43). Watch the 4:25 segment beside this section's H-then-H calculation: it is where interference between the two Hadamards meets measurement.

  • Explainer · YouTube

    The controlled-NOT gate

    Michael Nielsen

    Ten minutes on the controlled-NOT gate from Michael Nielsen, co-author with Isaac Chuang of the field's standard textbook, taken from his series 'Quantum computing for the determined'. Afterwards, build this section's Bell state yourself: H on the control, then CNOT.

  • Explainer · YouTube

    Five Quantum Computing Misconceptions

    Domain of Science

    Dominic Walliman's quick tour of five common errors opens at 0:30 with the 'parallel computing' myth this section takes apart. It then previews the rest of the lesson: logical versus physical qubits (1:28), encryption (3:10), noise (4:05) and quantum supremacy (5:03). It dates from 2018, so its supremacy segment comes before Google's 2019 claim and the Willow results of Part 8.

  • Lecture · IBM Quantum

    Quantum vs Classical: Deutsch & Deutsch-Jozsa Algorithms Explained

    Qiskit · Katie McCormick

    An episode of Qiskit in the Classroom in which Katie McCormick works through Deutsch's algorithm and then the Deutsch–Jozsa algorithm of this section, setting quantum against classical. As you watch, map each step onto this section's three moves: Hadamards spread the input, the oracle writes f into the signs of the amplitudes, and Hadamards fold the paths back together.

  • Interview · IBM Quantum

    Quantum Expert Insight: Peter Shor

    Qiskit · Peter Shor

    Peter Shor tells the story of his algorithm himself. The video's chapter markers run from Feynman through Bernstein–Vazirani (7:23), Simon's problem (8:48) and discrete logarithms (9:40) to factoring (14:26). From 18:54 he turns to how quantum error correction was found, which makes this the bridge to Part 8.

  • Demo · Caltech

    Inside the Endres Lab with a 6,100-Qubit Array

    caltech

    Two minutes inside Manuel Endres's lab at Caltech, where the team trapped 6,100 neutral-atom qubits in a grid made by lasers. This is the record array mentioned in this section. Hold this picture of optical tweezers in mind while you read about the other four hardware families.

  • Explainer · YouTube

    The Map of Quantum Computing - Quantum Computing Explained

    Domain of Science

    Starts at the 24:59 chapter, 'Obstacles to Building a Quantum Computer', the problem this section opens with. Then comes 'What Real Quantum Computers Are Made From' (27:24), Dominic Walliman's beginner-level tour of the competing hardware, to set beside this section's five families. It dates from 2022, so trust the section's newer figures; the first 24 minutes are a map of the whole field if you want more.

  • Lecture · Centre for Quantum Technologies

    Quantum error correction below the surface code threshold

    Centre for Quantum Technologies · Volodymyr Sivak (Google Quantum AI)

    A CQT colloquium by Volodymyr Sivak of Google Quantum AI that shares its title with Google's Nature paper reporting the experiment on the Willow chip. Expect the research-level version of this section's story, aimed at physicists: what it takes for a surface code to run 'below threshold', so that a bigger code means fewer logical errors.

  • Lecture · IBM Quantum

    Quantum Circuits | Understanding Quantum Information & Computation | Lesson 03

    Qiskit · John Watrous · 2022–25

    The lecture from IBM Quantum Understanding Quantum Information & Computation (John Watrous, 2022–25) that goes with Chapter 23. The whole course is in the Lecture Hall.

  • Lecture · Caltech

    Ph CS 219A Lecture 11 Quantum Circuits

    John Preskill · 2021

    The lecture from Caltech Ph/CS 219A Quantum Computation (John Preskill, 2021) that goes with Chapter 23. The whole course is in the Lecture Hall.

  • Explainer · Perimeter

    Quantum Computing Explained | Perimeter Institute for Theoretical Physics

    Perimeter Institute for Theoretical Physics · Katie Mack · 2023

    A short episode from Perimeter Institute's Quantum 101 series with Katie Mack. Watch it alongside Chapter 23.

  • Explainer · Fermilab

    Building a quantum computer at the SQMS Center at Fermilab

    Fermilab

    A short episode from Fermilab's Quantum Physics series with Don Lincoln and colleagues. Watch it alongside Chapter 23.

  • Lecture · Perimeter

    The Quantum Revolution: Shohini Ghose Public Lecture

    Perimeter Institute for Theoretical Physics · Shohini Ghose · 2020

    Physicist Shohini Ghose of Wilfrid Laurier University surveys the quantum technologies that grow out of superposition and entanglement, from quantum computers to secure communication. A clear public lecture given at Perimeter Institute in March 2020.

  • Lecture · Nobel Prize

    Nobel Prize lecture: John Clarke, Nobel Prize in Physics 2025

    Nobel Prize · John Clarke · 2025

    "From SLUGs to macroscopic quantum phenomena": John Clarke on the 1984–85 Berkeley experiments in which an entire superconducting circuit, big enough to hold in your hand, tunnelled out of a trapped state as a single quantum object.

  • Lecture · Nobel Prize

    Nobel Prize lecture: Michel Devoret, Nobel Prize in Physics 2025

    Nobel Prize · Michel H. Devoret · 2025

    "From macroscopic quantum phenomena to artificial atoms": Michel Devoret on how a circuit's quantized energy levels — measured in the same experiments — became the foundation of today's superconducting qubits.

  • Lecture · Nobel Prize

    Nobel Prize lecture: John Martinis, Nobel Prize in Physics 2025

    Nobel Prize · John M. Martinis · 2025

    "Prehistoric Superconducting Qubits": John Martinis, who later led Google's quantum-hardware team, traces the line from the 1980s tunnelling experiments to the superconducting qubit.

  • Lecture · Nobel Prize

    2012 Nobel Lectures in Physics

    Nobel Prize · Serge Haroche & David J. Wineland · 2012

    Serge Haroche on trapping photons in a box to watch the quantum-to-classical boundary — decoherence — in action, then David Wineland on superposition and entanglement with trapped ions. The experiments that turned thought experiments into laboratory routine.

  • Lecture · Caltech

    Closing Keynote: Quantum Computing: Reality vs. Hype - John Preskill - 6/27/2019

    caltech · John Preskill · 2019

    A sober account of what quantum computers can and cannot do: a closing keynote from June 2019, posted by Caltech, by the physicist who named the NISQ era. The best antidote to quantum hype you will find.

  • Series · Perimeter

    Quantum 101

    Perimeter Institute for Theoretical Physics · Katie Mack · 2023

    Ten five-minute episodes hosted by the cosmologist Katie Mack: duality, quantization, uncertainty, superposition, entanglement, probability, tunnelling and quantum computing. The friendliest possible on-ramp, and a quick refresher before any chapter.

  • Series · Fermilab

    Quantum Physics

    Fermilab · Don Lincoln and colleagues

    Short, precise episodes from Fermilab, many with Don Lincoln: what quantum mechanics is really about, entanglement, quantum electrodynamics and chromodynamics, quantum field theory and quantum foam, plus a look inside the lab's quantum-computing and networking work.

  • Course · IBM Quantum

    Understanding Quantum Information & Computation

    Qiskit · John Watrous · 2022–25

    The clearest modern course on quantum information, from IBM Quantum's John Watrous: single and multiple systems, circuits, teleportation and superdense coding, Shor's and Grover's algorithms, density matrices and error correction. Mathematically honest without being heavy.

  • Course · Caltech

    Quantum Computation

    John Preskill · 2021

    The graduate course from the physicist who coined the terms "quantum supremacy" and "NISQ": density operators, measurement, channels, Bell inequalities, teleportation, circuits, Shor's factoring, Grover's search and quantum simulation. Advanced, and worth every minute.

  • Course · CERN

    A Practical Introduction to Quantum Computing

    CERN Lectures · Elías F. Combarro · 2020

    A hands-on CERN lecture series: the circuit model, BB84 key distribution and the CHSH game, teleportation and superdense coding, Grover's and Shor's algorithms, annealing, variational methods and error correction, with exercises run on real cloud quantum computers.

Every video for Chapter 23 in the Video Library

05To the blackboard

Key equations

Equation 1

A qubit and the Born rule

∣ψ⟩=α ∣0⟩+β ∣1⟩,∣α∣2+∣β∣2=1|\psi\rangle = \alpha\,|0\rangle + \beta\,|1\rangle, \qquad |\alpha|^2 + |\beta|^2 = 1

A qubit's state is a weighted combination of the two basis states. The squared magnitudes of the complex amplitudes are the probabilities of reading 0 or 1, so they must add up to one.

What each symbol means
SymbolMeaningUnit
|ψ⟩state of the qubitdimensionless (a unit vector)
α, βcomplex probability amplitudes for |0⟩ and |1⟩dimensionless
|α|², |β|²probabilities of measuring 0 and 1dimensionless, between 0 and 1

Say it: “psi equals alpha times ket zero plus beta times ket one, where the squared size of alpha plus the squared size of beta equals one”

Equation 2

Bloch-sphere coordinates

∣ψ⟩=cos⁡θ2 ∣0⟩+eiφsin⁡θ2 ∣1⟩,P(0)=cos⁡2θ2|\psi\rangle = \cos\frac{\theta}{2}\,|0\rangle + e^{i\varphi}\sin\frac{\theta}{2}\,|1\rangle, \qquad P(0) = \cos^2\frac{\theta}{2}

After normalization and the invisible global phase are removed, two angles remain. Theta, measured down from the north pole, sets the odds of 0 versus 1; phi, the longitude, is the relative phase that only shows up through interference.

What each symbol means
SymbolMeaningUnit
θpolar angle from the north pole (|0⟩) toward the south pole (|1⟩)degrees or radians, 0 to 180°
φazimuthal angle (longitude): the relative phase between the two amplitudesdegrees or radians, 0 to 360°
P(0)probability of measuring 0dimensionless

Say it: “psi equals cosine of theta over two times ket zero, plus e to the i phi times sine of theta over two times ket one; the probability of reading zero is cosine squared of theta over two”

Equation 3

The basic single-qubit gates

X=(0110),Z=(100−1),H=12(111−1)X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \quad Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \quad H = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

Each column shows where a basis state goes: X swaps |0⟩ and |1⟩, Z puts a minus sign on |1⟩, and H sends |0⟩ to |+⟩ and |1⟩ to |−⟩. All three are unitary, and each is its own inverse: applying it twice changes nothing.

What each symbol means
SymbolMeaningUnit
Xbit flip, the quantum NOT: a half-turn about the x axisdimensionless 2×2 matrix
Zphase flip: a half-turn about the z axisdimensionless 2×2 matrix
HHadamard gate: a half-turn about the axis midway between x and zdimensionless 2×2 matrix

Say it: “X is the matrix with rows zero one and one zero; Z has rows one zero and zero minus one; H is one over root two times the matrix with rows one one and one minus one”

Equation 4

Making a Bell pair

CNOT (H⊗I) ∣00⟩=CNOT ∣00⟩+∣10⟩2=∣00⟩+∣11⟩2\mathrm{CNOT}\,(H \otimes I)\,|00\rangle = \mathrm{CNOT}\,\frac{|00\rangle + |10\rangle}{\sqrt{2}} = \frac{|00\rangle + |11\rangle}{\sqrt{2}}

The Hadamard makes the control qubit undecided; the CNOT copies that indecision into a correlation, flipping the target only in the branch where the control is 1. The result is the maximally entangled Bell state.

What each symbol means
SymbolMeaningUnit
H ⊗ IHadamard on the first qubit, nothing (the identity) on the seconddimensionless 4×4 matrix
CNOTcontrolled-NOT: flips the second qubit when the first is 1dimensionless 4×4 matrix
|00⟩, |10⟩, |11⟩two-qubit basis states, first digit for the controldimensionless

Say it: “A Hadamard on the first qubit turns ket zero zero into the sum of ket zero zero and ket one zero, divided by root two; a CNOT then turns that into the sum of ket zero zero and ket one one, divided by root two”

Equation 5

An n-qubit register

∣Ψ⟩=∑x=02n−1cx ∣x⟩,∑x=02n−1∣cx∣2=1|\Psi\rangle = \sum_{x=0}^{2^n-1} c_x\,|x\rangle, \qquad \sum_{x=0}^{2^n-1} |c_x|^2 = 1

Describing n qubits takes one complex amplitude for every n-bit string, so the description doubles with each added qubit. Measurement nevertheless returns a single string x, with probability equal to the squared size of its amplitude.

What each symbol means
SymbolMeaningUnit
nnumber of qubitscount
xan n-bit string, read as a whole number from 0 to 2ⁿ − 1dimensionless
cₓcomplex amplitude of the basis state |x⟩dimensionless

Say it: “The register's state is a sum over all two to the n basis states x, each with its own complex amplitude c x, and the squared sizes of all the amplitudes add up to one”

Equation 6

Grover's search

Pk=sin⁡2 ⁣[(2k+1) θ],sin⁡θ=1N,kbest≈π4NP_k = \sin^2\!\big[(2k+1)\,\theta\big], \qquad \sin\theta = \frac{1}{\sqrt{N}}, \qquad k_{\text{best}} \approx \frac{\pi}{4}\sqrt{N}

Each Grover round rotates the state by an angle two theta toward the marked item. Success peaks after about pi over four times the square root of N rounds and falls again if you keep going.

What each symbol means
SymbolMeaningUnit
Nnumber of items searchedcount
knumber of Grover rounds (oracle queries)count
θhalf the rotation angle per roundradians
P_kprobability that measurement reveals the marked item after k roundsdimensionless

Say it: “After k rounds the chance of finding the marked item is sine squared of two k plus one, times theta, where sine theta equals one over root N; the best number of rounds is about pi over four times root N”

06Worked examples

Real numbers, step by step

Cover the steps, try the problem yourself, then reveal the solution one step at a time.

Example 1

Two Hadamards: interference by hand

Problem

A qubit starts in |0⟩ and passes through H twice. Track every amplitude and find the probability of reading 0 at the end. Then repeat with a measurement inserted between the two gates.

  1. Step 1: The rule: H sends |0⟩ to (1/√2)|0⟩ + (1/√2)|1⟩ and sends |1⟩ to (1/√2)|0⟩ − (1/√2)|1⟩.

  2. Step 2: After the first H the state is (1/√2)|0⟩ + (1/√2)|1⟩, with each amplitude about 0.707.

  3. Step 3: Second H, amplitude of |0⟩: the |0⟩ piece gives (1/√2)(1/√2) = 1/2 and the |1⟩ piece gives (1/√2)(1/√2) = 1/2, total 1.

  4. Step 4: Second H, amplitude of |1⟩: the |0⟩ piece gives 1/2 and the |1⟩ piece gives −1/2, total 0. The final state is |0⟩, so P(0) = 1² = 1.

  5. Step 5: With a measurement in between: the qubit is found as |0⟩ or |1⟩, each with probability 1/2. The second H turns these into |+⟩ or |−⟩, and each of those gives 0 with probability 1/2. Overall P(0) = 1/2 × 1/2 + 1/2 × 1/2 = 1/2.

Answer

Without the middle measurement P(0) = 1, because the two routes to |1⟩ cancel; with it, P(0) = 0.5

Why it matters: The mid-circuit measurement destroys the relative phase the interference needed, just as which-path information erases double-slit fringes. Quantum algorithms are built from exactly this kind of cancellation, which is why they avoid peeking until the end.

Try it yourself first — then check each step.
Example 2

The Bell-pair factory, amplitude by amplitude

Problem

Two qubits start in |00⟩. Apply H to the first qubit, then CNOT with the first as control. Find the four final amplitudes and the measurement probabilities, show that the result cannot be a product of single-qubit states, and then find the output when the qubits start in |11⟩ instead.

  1. Step 1: After H on the first qubit: (1/√2)|00⟩ + (1/√2)|10⟩, so the amplitudes for 00, 01, 10 and 11 are 0.707, 0, 0.707 and 0.

  2. Step 2: CNOT leaves |00⟩ alone and sends |10⟩ to |11⟩, giving (1/√2)(|00⟩ + |11⟩): amplitudes 0.707, 0, 0, 0.707.

  3. Step 3: Probabilities are squared amplitudes: P(00) = P(11) = 0.5 and P(01) = P(10) = 0.

  4. Step 4: A product (a|0⟩ + b|1⟩)(c|0⟩ + d|1⟩) has amplitudes a·c, a·d, b·c and b·d. Matching needs a·d = 0, so a or d must be zero, but then a·c or b·d is zero too, whereas both should equal 0.707. No choice works: the state is entangled.

  5. Step 5: Starting from |11⟩: H on the first qubit gives (1/√2)(|01⟩ − |11⟩), and CNOT sends |11⟩ to |10⟩, giving (1/√2)(|01⟩ − |10⟩).

Answer

(1/√2)(|00⟩ + |11⟩), with 00 and 11 each found half the time; starting from |11⟩ the same circuit makes the singlet (1/√2)(|01⟩ − |10⟩)

Why it matters: The CNOT does not copy the control's state, which no-cloning forbids; it copies the control's basis value into a correlation. The singlet's minus sign never appears in a 0-or-1 histogram, but it is real and changes how the pair behaves in other measurement bases.

Try it yourself first — then check each step.
Example 3

Why 266 qubits outrun the universe

Problem

A classical simulator stores each amplitude as a double-precision complex number of 16 bytes. How much memory does it need for 30 and for 50 qubits? How many qubits require more amplitudes than the roughly 10⁸⁰ atoms in the observable universe?

  1. Step 1: 30 qubits: 2³⁰ = 1,073,741,824 ≈ 1.07×10⁹ amplitudes; times 16 bytes gives 1.72×10¹⁰ bytes, about 17 gigabytes, which fits in a well-equipped workstation.

  2. Step 2: 50 qubits: 2⁵⁰ ≈ 1.13×10¹⁵ amplitudes; times 16 bytes gives 1.80×10¹⁶ bytes, about 18 petabytes, comparable to the entire memory of the world's largest supercomputers.

  3. Step 3: Each added qubit doubles the count, so 20 extra qubits multiply the memory by 2²⁰, about a million.

  4. Step 4: We need 2ⁿ to exceed 10⁸⁰. The base-10 logarithm of 2 is 0.30103, so n × 0.30103 must exceed 80, and n must exceed 80 ÷ 0.30103 ≈ 265.8, which means 266 qubits. For comparison, 2³⁰⁰ ≈ 2.0×10⁹⁰.

Answer

About 17 gigabytes for 30 qubits, about 18 petabytes for 50 qubits, and from 266 qubits on, more amplitudes than atoms in the observable universe

Why it matters: Brute-force simulation explodes exponentially, which is Feynman's point. Clever classical methods exploit states with limited entanglement, which is why several 'quantum supremacy' claims have later been matched classically. And remember the catch: measuring all those qubits still yields only n bits.

Try it yourself first — then check each step.
Example 4

Grover by the numbers

Problem

Use the Grover formula: after k rounds the success probability is the sine squared of (2k + 1)θ, where the sine of θ is 1/√N. (a) For N = 4, find the success probability after zero, one and two rounds. (b) For N = 2²⁰ = 1,048,576, estimate the best number of rounds and compare with a classical search.

  1. Step 1: (a) The sine of θ is 1/√4 = 1/2, so θ = 30°.

  2. Step 2: Zero rounds: the sine squared of 30° is 0.25, a blind guess. One round: the sine squared of 90° is 1, certainty.

  3. Step 3: Two rounds: the sine squared of 150° is 0.25 again. The state has rotated past the answer.

  4. Step 4: (b) √N = 1,024, so the best number of rounds is about π/4 × 1,024 ≈ 804. With k = 804 the success probability is about 0.9999998.

  5. Step 5: Classically you check about N/2 = 524,288 items on average, so Grover saves a factor of about 524,288 ÷ 804 ≈ 650.

Answer

For N = 4, one round succeeds with certainty and two rounds fall back to 25 percent; for about a million items, about 804 rounds versus about 524,288 classical checks

Why it matters: The saving grows only as √N: quadratic, not exponential. Grover is a rotation, not a sieve, so the number of rounds must be chosen in advance; more rounds can make things worse.

Try it yourself first — then check each step.
07Myth busters

What everyone gets wrong

Read the myth, decide whether you believed it, then bust it.

  • Myth #1

    Quantum computers try all the answers in parallel and simply pick the right one.

    Truth

    A register can hold a superposition of all inputs, but measuring it returns one outcome at random, which is no better than guessing. Speed-ups come from interference: the algorithm arranges amplitudes so that paths to wrong answers cancel and paths to the right answer reinforce. Large speed-ups need problems with special structure, such as the hidden period Shor's algorithm exploits. For unstructured search the best possible gain is Grover's quadratic one, and most everyday problems see no useful quantum advantage at all.

  • Myth #2

    Quantum computers will soon replace laptops and phones.

    Truth

    They are specialised co-processors, most of them housed in refrigerators near absolute zero or in ultra-high vacuum and reached over the cloud. They offer no speed-up for browsing, video or spreadsheets, and every quantum computation needs classical computers to control it, decode its error syndromes and read out the results. The likely winners are simulations of molecules and materials, factoring and some other structured problems.

  • Myth #3

    The more qubits a machine has, the more powerful it is.

    Truth

    Quality matters as much as quantity. A thousand qubits that fail on one gate in a hundred cannot run deep circuits, while a smaller machine with lower error rates and better connectivity may outperform it. The meaningful measures are logical qubits and the number of reliable operations, not the raw physical count.

  • Myth #4

    Shor's algorithm means today's encryption is already broken.

    Truth

    As of 2026 no quantum computer has factored anything close to a 2,048-bit RSA number; demonstrations of Shor's algorithm have factored only tiny numbers such as 15 and 21. The best 2025 estimate for RSA-2048 calls for fewer than a million noisy physical qubits running for less than a week, and a 2026 preprint trades fewer qubits for much longer run times. The real present-day risk is data harvested now and decrypted later, which is why post-quantum standards were published in 2024.

08Interactive lab

Your turn at the controls

Welcome to the Qubit Workbench. A Bloch sphere floats on the screen with its arrow pointing at the north pole, |0⟩. Press X, Y, Z, H, S or T, or dial in a rotation of your own, and watch the arrow swing and the odds of reading 0 or 1 change. Beside it, a two-qubit circuit builder lets you place gates and CNOTs on two wires, run the circuit many times and read the measurement histogram. The puzzle levels climb from a single flip to a fully entangled pair.

Your tasks

0/4

How it connects to the theory

Every button is a unitary from the lesson. X, Y and Z are half-turns about the three axes, H is a half-turn about the diagonal between x and z, and S and T are quarter- and eighth-turns about z. The histogram samples the Born rule shot by shot, so its bars settle toward the squared amplitudes. The Bell puzzle is the two-gate recipe from Part 4, and the singlet's minus sign, invisible in a 0-or-1 histogram, is the same kind of relative phase that the Z gate hides from a single qubit.

Qubit Workbench: Gates on the Bloch Sphere loads as you scroll down.

Win the challenge to tick “lab won” on your chapter checklist.
Open full-screen lab
09Memory aids

Make it stick

Memory trick

Chant the gate rhyme: 'X swaps the poles, Z flips the sign, H tips you down to the equator line; CNOT asks if the boss is one, then flips the worker, and Bell is done.' Then add the algorithm drumbeat 'One, Root, Rout': the Deutsch–Jozsa algorithm settles its question in ONE query, Grover searches in about the square ROOT of N rounds, and Shor ROUTS RSA by finding a period. Use it in the lab: say each line aloud as you press the matching button and watch the Bloch arrow do exactly what the rhyme promises.

Analogy — and where it breaks

A quantum algorithm is like noise-cancelling headphones. The headphones do not play every sound in the room; they add carefully timed anti-waves so that unwanted sound cancels and only the music survives. A quantum circuit likewise arranges its amplitudes so that wrong answers cancel and the right one remains to be measured. Where it breaks: headphone waves are real pressure waves in ordinary space, while amplitudes are complex numbers in a space with 2ⁿ dimensions; headphones can listen to the noise before cancelling it, whereas a quantum computer cannot peek at its amplitudes without destroying them; and the 'music' you finally hear is a single random measurement outcome, so the cancellation must be designed in advance from the problem's structure.

The whole chapter in one line

A qubit is a steerable arrow of amplitudes; gates rotate it, entanglement links qubits, and algorithms win by making wrong answers interfere away.

Leitner flashcards

Flashcards

0/12 mastered
Card 1 of 12, Leitner box 1 of 5. Press Space to flip, the arrow keys to move, K if you knew it, L if you are still learning.
1 / 120 rated this round
12Box 1
0Box 2
0Box 3
0Box 4
0Box 5

Saved on this device. Knew it moves a card up a box; still learning sends it back to box 1. Boxes 4–5 count as mastered.

10Games

Play it into long-term memory

Match the vocabulary, then take the Quiz Show. Score 70% or better to tick it off your checklist.

Vocab match · timed

Vocab Match

Match each term to its definition, against the clock.

  • 12 pairs in 2 rounds
  • 100 points a match, more on a streak
  • −25 per mistake · speed bonus each round
  • Finish with 3 mistakes or fewer to win
Live from the lab

Dr. Q's Quantum Quiz Show

Dr. Q, your host

Welcome, contestants! 8 questions, 30 seconds each, and one mad scientist judging you, lovingly. Answer fast for a speed bonus; answer right in a row and your points multiply.

  • 100 per answer
  • +100 speed bonus
  • ×2 streak bonus
11Worksheet

Prove it on paper

Answer every question, check your work, and read the explanations — the stretch challenge is for the truly mad.

13 questions12 terms1 challenge

Work through these questions with the lesson closed first, then check yourself against it. For calculations, show every step. Useful facts: H sends |0⟩ to (1/√2)(|0⟩ + |1⟩) and |1⟩ to (1/√2)(|0⟩ − |1⟩); on the Bloch sphere P(0) = cos²(θ/2); a classical simulator stores 16 bytes per amplitude; Grover needs about (π/4)√N rounds.

0/13 answered · saved on this device

Part A

Vocabulary

Qubit
A two-level quantum system used to store information, whose state is a normalized superposition α|0⟩ + β|1⟩ of two basis states.
Probability amplitude
A complex number attached to each possible outcome; its squared magnitude is the outcome's probability, and amplitudes can cancel through interference.
Bloch sphere
A unit sphere on which every pure single-qubit state is a point: |0⟩ at the north pole, |1⟩ at the south pole, equal superpositions on the equator.
Unitary gate
A reversible operation that preserves total probability; on a single qubit it is a rotation of the Bloch sphere.
Hadamard gate
The gate that maps |0⟩ to |+⟩ and |1⟩ to |−⟩ and back again, creating and undoing equal superpositions.
Phase flip
The action of the Z gate: it leaves |0⟩ unchanged and multiplies |1⟩ by −1, changing interference without changing 0-or-1 probabilities.
CNOT gate
A two-qubit gate that flips the target qubit if and only if the control qubit is 1; with a superposed control it creates entanglement.
Bell state
One of four maximally entangled two-qubit states, such as (1/√2)(|00⟩ + |11⟩), made from |00⟩ by a Hadamard followed by a CNOT.
Oracle
A black-box subroutine that evaluates a function inside a quantum algorithm, often by marking chosen inputs with a minus sign.
Quantum Fourier transform
The quantum version of the discrete Fourier transform, used in Shor's algorithm to make amplitudes interfere so that measurement reveals a period.
Coherence time
How long a qubit keeps a well-defined relative phase before its environment scrambles it, often written T₂.
Logical qubit
A qubit encoded across many physical qubits by an error-correcting code, so that errors can be detected and fixed without reading the encoded information.

Part B

Questions

Auto-checked except short answers, which you mark yourself.

  1. Question 1.Multiple choice

    A qubit is in the state α|0⟩ + β|1⟩. Which statement about measuring it in the 0-or-1 basis is correct?

  2. Question 2.True or false

    Applying the Z gate to a qubit in the state |+⟩ changes the probabilities of measuring 0 and 1.

  3. Question 3.Fill in the blank

    Quantum gates must be operations: they preserve total probability and can always be undone.

  4. Question 4.Multiple choice

    Two qubits start in |00⟩. Which circuit produces the Bell state (1/√2)(|00⟩ + |11⟩)?

  5. Question 5.Calculation

    A qubit is in the state (√3/2)|0⟩ + (1/2)|1⟩. Find the probabilities of measuring 0 and 1, and the polar angle θ of its Bloch vector.

    This one asks for more than one value — give each, with its units.

  6. Question 6.Calculation

    A classical simulator stores each amplitude in 16 bytes. How much memory does it need to hold the full state of 40 qubits?

    Give a number and units. 6.63×10⁻³⁴, 6.63e-34 and 6.63 x 10^-34 all work.

  7. Question 7.Calculation

    Grover's algorithm searches N = 10⁸ unsorted items for one marked item. About how many rounds does it need, how many checks does a classical search need on average, and what is the ratio?

    Give a number and units. 6.63×10⁻³⁴, 6.63e-34 and 6.63 x 10^-34 all work.

  8. Question 8.Calculation

    Shor's algorithm reduces factoring to finding a period. For N = 15 and a = 7, list the remainders of 7, 7², 7³ and 7⁴ when divided by 15, find the period r, and then find the factors from the greatest common divisors of 15 with the numbers one below and one above 7 raised to the power r/2.

    This one asks for more than one value — give each, with its units.

  9. Question 9.Short answer

    In two or three sentences, explain why 'a quantum computer tries every answer at once' is misleading.

  10. Question 10.Multiple choice

    Which hardware platform holds atoms in grids of focused laser beams and entangles them by exciting them to Rydberg states?

  11. Question 11.True or false

    Because quantum states cannot be copied, quantum error correction is impossible.

  12. Question 12.Fill in the blank

    Grover's algorithm gives a speed-up over classical unstructured search.

  13. Question 13.Short answer

    What is a logical qubit, and what does it mean for hardware to operate 'below threshold'?

Part C · optional, dangerous, extremely rewarding

Mad scientist challenge

Scale Willow. In December 2024 Google's distance-7 surface code failed in 0.143 percent of cycles, and each increase of the distance by 2 divided the logical error rate by Λ ≈ 2.14. Assume Λ stays at 2.14 as the code grows. (a) What error rates does this imply for distances 5 and 3? (b) What is the smallest odd distance whose logical error rate is at most 10⁻⁶ per cycle? (c) A distance-d surface-code patch uses 2d² − 1 physical qubits. How many is that per logical qubit at your answer to (b), and how many for 1,000 logical qubits? (d) Give two reasons real requirements might differ.

12Wrap-up

Recap & sign-off

Key takeaways

  • A qubit is a two-level quantum system in a state α|0⟩ + β|1⟩ with |α|² + |β|² = 1; measuring it yields one bit.
  • The Bloch sphere maps every single-qubit state to a point, with |0⟩ and |1⟩ at the poles and equal superpositions on the equator; single-qubit gates are rotations of that sphere.
  • X flips the bit, Z flips the relative sign, H exchanges |0⟩ and |1⟩ with |+⟩ and |−⟩, and CNOT flips a target when its control is 1; H followed by CNOT turns |00⟩ into the Bell state.
  • n qubits need 2ⁿ amplitudes, yet measurement returns only n bits, so algorithms win by choreographing interference, not by trying every answer.
  • The Deutsch–Jozsa algorithm decides constant versus balanced in one query, Grover searches N items in about π/4 × √N rounds, and Shor factors in polynomial time, threatening RSA and elliptic-curve cryptography.
  • Superconducting circuits, trapped ions, neutral atoms, photons and spin qubits trade speed, coherence and scale; as of 2026 the best two-qubit gates fail about once in a thousand to ten thousand operations.
  • Error correction spreads one logical qubit across many physical ones; below threshold, bigger codes suppress errors exponentially, as Google's Willow chip showed in 2024.
  • As of 2026 no quantum computer has broken real encryption, and quantum computers are specialised co-processors, not replacements for laptops.
Dr. Q signs off

Mwahaha — measurably! You can now flip, phase, entangle and search, and you know why a quantum computer is an interference engine rather than a machine that tries every answer. But I left one thread dangling: we cannot copy a qubit. Next session that limitation becomes a superpower. Chapter 24: Quantum Cryptography, Teleportation and Sensing, where eavesdroppers betray themselves, quantum states hop across a lab while the matter stays put, and clocks keep time so steadily they would drift less than a second over the age of the universe.

Your chapter checklist

Tick these off in any order. It's a guide, not a law of physics — you can mark the chapter complete whenever you're ready.

  • Listen to the whole lesson (not yet)Or read it all — but the voice is more fun.
  • Win the lab challenge (not yet)Qubit Workbench: Gates on the Bloch SphereGo to the lab
  • Score 70% or more on the Quiz Show (not yet)Six to eight questions, no penalties for guessing.Take the quiz
  • Check your worksheet (not yet)Answer, check, and read the explanations.Open the worksheet