Skip to the content
Kets & Gates homeOpen the app

Lesson 0: Orientation and diagnostic

How the lessons work, five key words, how states are written, and a quick check of the math the lessons assume

about 10 min5 parts

Start the interactive lesson

The interactive version checks every answer, gives hints and saves your progress in this browser. This page is the same lesson on one page, with the answers folded away.

1 / 5 · Learn

How a lesson runs

About ten minutes: what to expect, five words you will meet constantly, how quantum states are written, and a quick check of the math that the lessons use without teaching it.

This app makes you work. Most of your time goes on answering questions, and old questions come back days later, mixed in with new ones. That feels slower and less satisfying than reading a clear explanation, and the feeling is a poor guide. In a controlled comparison in a university physics course, students taught actively scored higher on a test but believed they had learned less than students given polished lectures (Deslauriers et al., PNAS 2019). Recalling an idea, getting it wrong and being corrected takes effort, and that effort is a large part of what makes it last.

Check yourself

Halfway through a lesson you feel slower and less sure of yourself than when you simply read a clear explanation. What is the best reading of that feeling?

  1. AYou are learning less than you would by reading. Skip the questions and read the cards.
  2. BThe lesson is too hard for you, so you should go back and start again.
  3. CIt is a normal side effect of active practice, and a poor guide to how much you are learning. Results on the mastery check, and on reviews days later, are better evidence.
Show the answer

Answer: C. It is a normal side effect of active practice, and a poor guide to how much you are learning. Results on the mastery check, and on reviews days later, are better evidence.

Feeling of learning and actual learning come apart under active practice. Judge your progress by what you can do without help, especially in the reviews that come back days later.

Why not the others

  • A. A very common idea is that smooth reading means learning. In the study above, the students who felt they learned less actually scored higher. Ease while reading measures how familiar the words feel, not whether you can use the idea later. Check that with what you can do unaided days later, which is what the reviews measure.
  • B. Effort alone is not a sign that a lesson is too hard. Mistakes during practice are expected: each one gets targeted feedback and a second try. If the mastery check at the end shows a real gap, it links you to the exact segment to revisit.

Inside a lesson the steps always come in the same order:

  1. Guess first. One or two questions on the core idea before any teaching, marked Guess, not scored. When the answer comes up, usually later in the same lesson, your guess is shown again.
  2. Short cards, each followed by a question. Feedback aimed at your particular mistake, hints after a first try, and the full solution after a second.
  3. Predict, observe, explain. A simulation stays locked until you commit to a prediction.
  4. Worked examples that hand you the last steps, then a problem on your own.
  5. Explain it in your own words, then compare with a model answer.

Check yourself

A lesson opens with a question about something it has not taught yet. What is that question for?

  1. AIt is a placement test: a wrong guess means you should go back a lesson.
  2. BGuessing first, even wrongly, makes the explanation that answers it stick better. The guess is not scored.
  3. CIt shows you how much you still have to learn.
Show the answer

Answer: B. Guessing first, even wrongly, makes the explanation that answers it stick better. The guess is not scored.

A prequestion helps you learn the material it asks about, provided you see the answer later (St. Hilaire et al., 2024). The lesson flags that moment with Remember your guess?

Why not the others

  • A. It is natural to read any question as a test. These ones are not scored and decide nothing; most people get some wrong. Their job is to make you think about the question before the lesson answers it.
  • C. A wrong guess can feel like a verdict, but that is not what the question is for, and most people get some wrong. Its job is to make you think about the question first: an answer you have already wondered about is easier to keep when it comes.

After a lesson. A mastery check gives one try per item, with no hints, and a retake uses new numbers. Already know a lesson’s material? Show me what you know, at the top of its first page, takes you straight to the check. Then spaced review: the lesson’s key questions come back days later, mixed with other lessons and with fresh numbers.

Three buttons. You submit each answer with Guessing, Fairly sure or Certain. They don’t change your score; they change what happens next. A wrong answer you were Certain about offers the full solution straight away, because confident errors are the ones people correct best once they see why (Butterfield & Metcalfe, 2001). A right answer marked Guessing comes back in review sooner.

Check yourself

You press Certain and your answer turns out to be wrong. What happens, and why?

  1. ANothing different from any other wrong answer.
  2. BYou can open the full solution straight away, without a second try first, because a confident error is the best moment to fix an idea.
  3. CYou lose more points than you would for a wrong guess.
Show the answer

Answer: B. You can open the full solution straight away, without a second try first, because a confident error is the best moment to fix an idea.

Confident errors are corrected well once you see the reasoning (the hypercorrection effect). So press Certain only when you are, and Guessing when you are guessing. The home page shows how often you are right at each level.

Why not the others

  • A. A confident error is treated differently: the full solution is offered at once instead of after a second try, because that is when you are most likely to correct the idea for good.
  • C. There are no points to lose: confidence never changes a score. It decides what you see next, and how soon an idea comes back.

2 / 5 · Learn

Five words to know

Five words carry most of what follows. Here is one plain sentence for each; the lessons fill them in.

  • Amplitude. A qubit’s state gives a complex number for each basis state, and the probability of getting that outcome is its squared magnitude: ∣α∣2\abs{\alpha}^2 for an amplitude α\alpha.
  • Basis. A pair of reference states, such as the two states a measurement reports as 0 and 1, in terms of which any qubit state can be written; every measurement is made in some basis.
  • Normalization. A state’s squared magnitudes add up to 1, because some outcome must occur.
  • Measurement. It returns one outcome at random, with those probabilities, and leaves the qubit in the basis state that was observed.
  • Gate. A reversible operation that changes the amplitudes in a fixed way, without reading anything out.

Check yourself

Match each description to its word.

Match each of these…

  1. Turns a state into a single random outcome, and leaves the qubit in the state for that outcome.
  2. Changes the amplitudes, can always be undone, and reveals nothing about the state.
  3. Its squared magnitude is the chance of one particular outcome.
  4. The requirement that all the probabilities add up to 1.
  5. The set of reference states that a measurement sorts the qubit into.

…with one of these

  • Measurement
  • Basis
  • Amplitude
  • Gate
  • Normalization
Hint
  1. Two of these are things you do to a qubit. Which one gives you a result you can write down?
Show the answer
Turns a state into a single random outcome, and leaves the qubit in the state for that outcome.Measurement
Changes the amplitudes, can always be undone, and reveals nothing about the state.Gate
Its squared magnitude is the chance of one particular outcome.Amplitude
The requirement that all the probabilities add up to 1.Normalization
The set of reference states that a measurement sorts the qubit into.Basis

Measurement gives an outcome and changes the state; a gate changes the state and gives no outcome. An amplitude’s squared magnitude is a probability, normalization makes those probabilities add up to 1, and a basis lists the possible outcomes.

3 / 5 · Learn

Reading the notation

Quantum states are written as kets: a label between a bar and an angle bracket, such as ∣0⟩\ket0, read “ket zero”. The label is only a name. A qubit’s two basis states are ∣0⟩\ket0 and ∣1⟩\ket1, and each stands for a column vector:

∣0⟩=[10],∣1⟩=[01]\ket0 = \begin{bmatrix}1\\0\end{bmatrix},\qquad \ket1 = \begin{bmatrix}0\\1\end{bmatrix}

Any state is a combination of the two, with amplitudes usually called α\alpha (alpha) and β\beta (beta). The amplitude of ∣0⟩\ket0 goes on top:

α∣0⟩+β∣1⟩=[αβ]\alpha\ket0 + \beta\ket1 = \begin{bmatrix}\alpha\\ \beta\end{bmatrix}

Two combinations get names of their own, ∣+⟩\ket+ (“ket plus”) and ∣−⟩\ket- (“ket minus”). The factor 12\tfrac{1}{\sqrt2} makes their squared amplitudes add up to 1:

∣+⟩=12(∣0⟩+∣1⟩)∣−⟩=12(∣0⟩−∣1⟩)\begin{aligned}\ket+ &= \tfrac{1}{\sqrt2}(\ket0 + \ket1) \\ \ket- &= \tfrac{1}{\sqrt2}(\ket0 - \ket1)\end{aligned}

A Greek letter in a ket, as in ∣ψ⟩\ket\psi (“ket psi”), names a state in general.

Check yourself

Which column vector is ∣0⟩\ket0?

  1. A[00]\begin{bmatrix}0\\ 0\end{bmatrix}
  2. B[01]\begin{bmatrix}0\\ 1\end{bmatrix}
  3. C[10]\begin{bmatrix}1\\ 0\end{bmatrix}
Show the answer

Answer: C. [10]\begin{bmatrix}1\\ 0\end{bmatrix}

∣0⟩\ket0 is the first basis vector: a 1 in the top slot, the slot that belongs to ∣0⟩\ket0. Its label is a name, not the number 0.

Why not the others

  • A. It is natural to read the 0 as a value, so that ∣0⟩\ket0 means “nothing”. But the label inside a ket is only a name: ∣0⟩\ket0 is the first basis state, with a 1 in the top slot. The all-zero vector is not a state at all, since its squared entries add up to 0, not 1.
  • B. That is ∣1⟩\ket1, the second basis state, with its 1 in the bottom slot. ∣0⟩\ket0 has its 1 on top, because the top slot belongs to ∣0⟩\ket0.

Check yourself

Which column vector is ∣−⟩\ket-?

  1. A[1/21/2]\begin{bmatrix}1/\sqrt2\\ 1/\sqrt2\end{bmatrix}
  2. B[1/2−1/2]\begin{bmatrix}1/\sqrt2\\ -1/\sqrt2\end{bmatrix}
  3. C[1−1]\begin{bmatrix}1\\ -1\end{bmatrix}
  4. DThe single number −1-1
Show the answer

Answer: B. [1/2−1/2]\begin{bmatrix}1/\sqrt2\\ -1/\sqrt2\end{bmatrix}

∣−⟩=12∣0⟩−12∣1⟩\ket- = \tfrac{1}{\sqrt2}\ket0 - \tfrac{1}{\sqrt2}\ket1: the ∣0⟩\ket0 amplitude 12\tfrac{1}{\sqrt2} goes on top and the ∣1⟩\ket1 amplitude −12-\tfrac{1}{\sqrt2} below.

Why not the others

  • A. That is ∣+⟩\ket+. The two differ only in the sign of the ∣1⟩\ket1 term: ∣−⟩=12(∣0⟩−∣1⟩)\ket- = \tfrac{1}{\sqrt2}(\ket0 - \ket1), so its bottom entry is −12-\tfrac{1}{\sqrt2}.
  • C. The factor 12\tfrac{1}{\sqrt2} multiplies both terms, so each entry carries it. Without it the squared entries add up to 2, and a state’s squared amplitudes must add up to 1.
  • D. It is tempting to read the minus sign as a value. But the label of a ket is a name, and a qubit’s ket always stands for a column vector with two entries: ∣−⟩\ket- names 12(∣0⟩−∣1⟩)\tfrac{1}{\sqrt2}(\ket0 - \ket1).

4 / 5 · Diagnostic

Math check

Eight short items on the math the lessons use without teaching it. Pencil and paper help. Type answers such as 7, 1/sqrt(3) or 5-2i. Anything you miss points to a three-minute refresher, and none of it is needed until the lesson that uses it.

Check yourself

What is ∣1−3i∣2\abs{1 - 3i}^2, the squared magnitude of 1−3i1 - 3i?

Show the answer

Answer: 1010

For z=a+biz = a + bi, ∣z∣2=a2+b2=1+9=10\abs{z}^2 = a^2 + b^2 = 1 + 9 = 10.

Write z=1−3iz = 1 - 3i, so the real part is 11 and the imaginary part is −3-3. Then ∣z∣2=12+(−3)2=10\abs{z}^2 = 1^2 + (-3)^2 = 10. The same number comes out of z z∗=(1−3i)(1+3i)z\,z^* = (1 - 3i)(1 + 3i), because the cross terms cancel. Probabilities in quantum mechanics are squared magnitudes like this one. Refresher: Complex numbers.

Common slips

  • 3.1623.162: That is ∣1−3i∣=10\abs{1 - 3i} = \sqrt{10}, the magnitude itself. The question asks for its square: ∣z∣2=a2+b2=10\abs{z}^2 = a^2 + b^2 = 10.
  • −8−6i-8-6i: That is (1−3i)2(1 - 3i)^2, the number multiplied by itself. The squared magnitude is ∣z∣2=z z∗\abs{z}^2 = z\,z^*, which is always real and never negative: here 1+9=101 + 9 = 10.
  • −8-8: That brings i2=−1i^2 = -1 into the magnitude and gives a2−b2a^2 - b^2. The magnitude squared adds the squares of the real and imaginary parts as plain numbers: 12+32=101^2 + 3^2 = 10.
  • 1616: That squares the sum of the two parts. Square each part separately, then add: 12+32=101^2 + 3^2 = 10.

Check yourself

What is ∣eiπ/3∣\abs{e^{i\pi/3}}, the magnitude of eiπ/3e^{i\pi/3}?

Show the answer

Answer: 11

eiφ=cos⁡φ+isin⁡φe^{i\varphi} = \cos\varphi + i\sin\varphi lies on the unit circle, so ∣eiφ∣=1\abs{e^{i\varphi}} = 1 for every real φ\varphi.

By Euler's formula eiπ/3=cos⁡(π/3)+isin⁡(π/3)e^{i\pi/3} = \cos(\pi/3) + i\sin(\pi/3), so ∣eiπ/3∣2=cos⁡2(π/3)+sin⁡2(π/3)=1\abs{e^{i\pi/3}}^2 = \cos^2(\pi/3) + \sin^2(\pi/3) = 1 and the magnitude is 1. A factor eiφe^{i\varphi} changes a phase and never a magnitude, which is why it never changes a probability on its own. Refresher: Complex numbers.

Common slips

  • 12+32i\frac{1}{2}+\frac{\sqrt{3}}{2}i: That is the complex number eiπ/3=cos⁡(π/3)+isin⁡(π/3)e^{i\pi/3} = \cos(\pi/3) + i\sin(\pi/3) itself. Its magnitude is a single non-negative number, its distance from 0: cos⁡2(π/3)+sin⁡2(π/3)=1\sqrt{\cos^2(\pi/3) + \sin^2(\pi/3)} = 1.
  • 12\frac{1}{2}: That is cos⁡(π/3)\cos(\pi/3), the real part only. The magnitude uses both parts: cos⁡2(π/3)+sin⁡2(π/3)=1\sqrt{\cos^2(\pi/3) + \sin^2(\pi/3)} = 1.
  • 32\frac{\sqrt{3}}{2}: That is sin⁡(π/3)\sin(\pi/3), the imaginary part only. The magnitude uses both parts: cos⁡2(π/3)+sin⁡2(π/3)=1\sqrt{\cos^2(\pi/3) + \sin^2(\pi/3)} = 1.
  • 1.0471.047: That is the angle π/3\pi/3 itself, the phase of the number. The magnitude is the distance from 0, and eiφe^{i\varphi} always sits on the unit circle.
  • 2.852.85: That is eπ/3e^{\pi/3}, with the ii dropped. With the ii, eiφ=cos⁡φ+isin⁡φe^{i\varphi} = \cos\varphi + i\sin\varphi lies on the unit circle, so its magnitude is 1.
  • −1-1: A magnitude is a distance from 0, so it is never negative. eiφe^{i\varphi} lies on the unit circle, at distance 1 from 0.

Check yourself

What is the complex conjugate of 5+3i5 + 3i? (Type it like 5-2i.)

Show the answer

Answer: 5−3i5-3i

(a+bi)∗=a−bi(a + bi)^* = a - bi: reflect across the real axis. So (5+3i)∗=5−3i(5 + 3i)^* = 5 - 3i.

The conjugate z∗z^* keeps the real part and flips the sign of the imaginary part, so (5+3i)∗=5−3i(5 + 3i)^* = 5 - 3i. Comparing two quantum states (an inner product) conjugates the amplitudes of one of them, so this step comes up constantly. Refresher: Complex numbers.

Common slips

  • 5+3i5+3i: That is 5+3i5 + 3i unchanged. Conjugating flips the sign of the imaginary part only: (a+bi)∗=a−bi(a+bi)^* = a - bi.
  • −5−3i-5-3i: That flips both signs, which gives −z-z, not z∗z^*. The conjugate keeps the real part as it is and flips only the imaginary part.
  • −5+3i-5+3i: That flips the sign of the real part instead of the imaginary part. The conjugate keeps the real part (55) and flips only the sign of the imaginary part.
  • 3434: That is z z∗=∣z∣2z\,z^* = \abs{z}^2, a real number. The question asks for z∗z^* itself, which is still complex.

Refresher: Complex numbers If any of these three felt shaky: magnitudes, phases and conjugates in about three minutes.

Check yourself

Normalize the vector (1,3)(1, 3): rescale it so that the squares of its entries add up to 1. Enter the two entries.

Show the answer

Answer: v1=0.316,v2=0.949v_1 = 0.316,\quad v_2 = 0.949

The length is 12+32=10\sqrt{1^2 + 3^2} = \sqrt{10}, so the normalized vector is (110,310)(\tfrac{1}{\sqrt{10}}, \tfrac{3}{\sqrt{10}}).

Divide every entry by the vector's length 12+32=10\sqrt{1^2 + 3^2} = \sqrt{10}. That gives (110,310)(\tfrac{1}{\sqrt{10}}, \tfrac{3}{\sqrt{10}}), and the squares of the entries now add up to 1. A qubit state must be normalized like this, because its squared amplitudes are probabilities. Refresher: Vectors and normalization.

Refresher: Vectors and normalization Normalizing, and why a state’s squared entries must add up to 1.

Check yourself

Multiply: [100−1][ab]=  ?\begin{bmatrix}1 & 0\\ 0 & -1\end{bmatrix}\begin{bmatrix}a\\ b\end{bmatrix} = \;?

  1. A[−ba]\begin{bmatrix}-b\\ a\end{bmatrix}
  2. B[ab]\begin{bmatrix}a\\ b\end{bmatrix}
  3. C[a−b]\begin{bmatrix}a\\ -b\end{bmatrix}
Show the answer

Answer: C. [a−b]\begin{bmatrix}a\\ -b\end{bmatrix}

Each output entry is a row dotted with the column: row 1, (1,0)(1, 0), gives aa, and row 2, (0,−1)(0, -1), gives −b-b.

Take the rows one at a time. Row 1, (1,0)(1, 0), dotted with (a,b)(a, b) gives aa; row 2, (0,−1)(0, -1), gives −b-b. So the product is [a−b]\begin{bmatrix}a\\ -b\end{bmatrix}. Every gate in these lessons acts on a state exactly like this. Refresher: Matrices acting on states.

Why not the others

  • A. Right entries, wrong order. Entry 1 comes from row 1: row 1, (1,0)(1, 0), dotted with (a,b)(a, b) gives 1⋅a+0⋅b=a1\cdot a + 0\cdot b = a.
  • B. That leaves the vector unchanged, which only the identity matrix does. Each entry is a row of the matrix dotted with the vector: row 2, (0,−1)(0, -1), dotted with (a,b)(a, b) gives 0⋅a+(−1)⋅b=−b0\cdot a + (-1)\cdot b = -b.

Refresher: Matrices acting on states Matrix times vector, and reading a gate’s columns.

Check yourself

Compute the tensor product v=(0,1)⊗(35,45)v = (0, 1) \tp (\tfrac{3}{5}, \tfrac{4}{5}), a vector with four entries.

Show the answer

Answer: v1=0,v2=0,v3=35,v4=45v_1 = 0,\quad v_2 = 0,\quad v_3 = \frac{3}{5},\quad v_4 = \frac{4}{5}

(u1,u2)⊗(w1,w2)=(u1w1, u1w2, u2w1, u2w2)=(0,0,35,45)(u_1, u_2) \tp (w_1, w_2) = (u_1 w_1,\ u_1 w_2,\ u_2 w_1,\ u_2 w_2) = (0, 0, \tfrac{3}{5}, \tfrac{4}{5}).

Take the first entry of the first vector times the whole second vector, then its second entry times the whole second vector: (u1w1,u1w2,u2w1,u2w2)=(0,0,35,45)(u_1 w_1, u_1 w_2, u_2 w_1, u_2 w_2) = (0, 0, \tfrac{3}{5}, \tfrac{4}{5}). In ket language, two qubits have four basis states, ∣00⟩,∣01⟩,∣10⟩,∣11⟩\ket{00}, \ket{01}, \ket{10}, \ket{11}, where ∣01⟩\ket{01} means the first qubit is in ∣0⟩\ket0 and the second in ∣1⟩\ket1. As vectors, ∣0⟩⊗∣1⟩=(1,0)⊗(0,1)=(0,1,0,0)\ket0 \tp \ket1 = (1, 0) \tp (0, 1) = (0, 1, 0, 0), the second of the four. Refresher: Tensor products.

Refresher: Tensor products How two vectors combine into four entries, in the standard order.

Check yourself

What is 0⊕1⊕10 \oplus 1 \oplus 1? (⊕\oplus is XOR, addition mod 2.)

Show the answer

Answer: 00

XOR is addition mod 2: 0+1+1=20 + 1 + 1 = 2, and 2 mod 2 is 0.

Add the bits as ordinary numbers, 0+1+1=20 + 1 + 1 = 2, then keep the remainder mod 2: 00. Equivalently, the result is 1 exactly when an odd number of the bits are 1. XOR turns up throughout the later lessons, from the CNOT gate of Lesson 6 to the algorithms of Lesson 9. Refresher: Bits, XOR and bit strings.

Common slips

  • 22: That is the ordinary sum, 0+1+1=20 + 1 + 1 = 2. ⊕\oplus is addition mod 2: keep only the remainder after dividing by 2, so the answer is 00.
  • 11: That is what OR gives. XOR is 1 exactly when an odd number of the bits are 1; here 2 of them are, so the answer is 00.

Check yourself

For bit strings, x⋅z=x1z1+x2z2+⋯+xnzn(mod2)x \cdot z = x_1 z_1 + x_2 z_2 + \dots + x_n z_n \pmod 2. What is 1100⋅0110{1100 \cdot 0110}?

Show the answer

Answer: 11

1⋅0+1⋅1+0⋅1+0⋅0=11\cdot 0 + 1\cdot 1 + 0\cdot 1 + 0\cdot 0 = 1, and 1 mod 2 is 1.

Multiply the strings position by position and add: 1⋅0+1⋅1+0⋅1+0⋅0=11\cdot 0 + 1\cdot 1 + 0\cdot 1 + 0\cdot 0 = 1 (the positions where both have a 1). Then reduce mod 2: 1 mod 2 is 11. This bitwise dot product appears in the Deutsch–Jozsa algorithm as the sign (−1)x⋅z(-1)^{x\cdot z}. Refresher: Bits, XOR and bit strings.

Common slips

  • 100100: 0100 is the bitwise AND, the positions where both strings have a 1. The dot product goes one step further: count those 1s (1) and reduce mod 2, giving 1.

Refresher: Bits, XOR and bit strings XOR and bit strings, as used from the CNOT gate on.

5 / 5 · Recap

Recap

From memory

Before reading the summary, write down what you remember. Pulling it back from memory is what makes it last.

  1. Name the five words from Five words to know and say what each one means.

    Show the key points
    • Amplitude: a complex number for each basis state; its squared magnitude is a probability
    • Basis: the reference states a measurement sorts into
    • Normalization: the squared magnitudes add up to 1
    • Measurement: gives one random outcome and leaves the qubit in the matching basis state
    • Gate: changes the amplitudes reversibly and reads nothing out
  2. What do ∣0⟩\ket0, ∣1⟩\ket1, ∣+⟩\ket+ and ∣−⟩\ket- stand for, and how is α∣0⟩+β∣1⟩\alpha\ket0 + \beta\ket1 written as a column vector?

    Show the key points
    • ∣0⟩\ket0 and ∣1⟩\ket1 are the basis vectors (1,0)(1, 0) and (0,1)(0, 1), written as columns; the label in a ket is a name, not a value
    • α∣0⟩+β∣1⟩\alpha\ket0 + \beta\ket1 is the column with α\alpha on top and β\beta below
    • ∣±⟩=12(∣0⟩±∣1⟩)\ket\pm = \tfrac{1}{\sqrt2}(\ket0 \pm \ket1), so ∣−⟩\ket- has entries 12\tfrac{1}{\sqrt2} and −12-\tfrac{1}{\sqrt2}
  3. What should a lesson here feel like, and what do the three confidence buttons change?

    Show the key points
    • Slower and more effortful than reading, which does not mean you are learning less
    • Guess first; short cards, each followed by a question; a mastery check with one try per item; reviews days later
    • A wrong Certain offers the full solution at once; a right Guessing comes back sooner; the buttons never change a score

Key ideas

  1. Judge your progress by what you can do unaided, especially in reviews days later, not by how smooth a lesson felt.

  2. Answer honestly with Guessing, Fairly sure or Certain: it decides what you see next and when an idea comes back.

  3. A ket names a column vector: ∣0⟩\ket0 and ∣1⟩\ket1 are the two basis vectors, α∣0⟩+β∣1⟩\alpha\ket0 + \beta\ket1 has α\alpha on top, and ∣±⟩=12(∣0⟩±∣1⟩)\ket\pm = \tfrac{1}{\sqrt2}(\ket0 \pm \ket1).

  4. If the math check flagged something, the refreshers take a few minutes each: complex numbers, vectors, matrices, tensor products, bits and XOR. The lessons also link each one where it is first needed.

Go further

Free resources for when you want more than this lesson covers.

Math refreshers

The toolkit topics this lesson leans on.

Start the interactive lesson