Skip to the content
Kets & Gates homeOpen the app

Lesson 5: Measuring in any basis, and the Stern–Gerlach experiment

Rewrite the state, then apply the Born rule; an analyzer is a measurement along its axis

about 30 min12 partsbest after lesson 4

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 / 12 · Learn

Before you start

Lesson 2 measured in the ± basis without saying how, and Lesson 1 left a Stern–Gerlach puzzle unanswered. With HH from Lesson 4 you can now settle both.

By the end of this lesson you can:

  • rewrite a state in any orthonormal basis and apply the Born rule there;
  • measure in the ± basis by applying HH, then measuring in the 0/1 basis;
  • say which basis a Stern–Gerlach analyzer measures, from the way it points;
  • predict the fraction of atoms leaving each exit of a cascade;
  • explain why a later zz analyzer shows no trace of an earlier zz result.

Check yourself

A warm-up: make a guess before reading on. The lesson comes back to it.

A beam of atoms that all left the ++ exit of a zz analyzer enters a second analyzer, turned to point along xx. What happens at the second analyzer?

  1. ANo atom is deflected either way: the spin points along zz, at right angles to the xx analyzer, so it has nothing to act on.
  2. BEvery atom leaves by the ++ exit: their spin was already selected.
  3. CThe atoms spread out evenly over a range of positions between the two exits.
  4. DAbout half the atoms leave by each exit.
Show the answer

Answer: D. About half the atoms leave by each exit.

An xx analyzer measures in the ± basis, and ∣+Z⟩=∣0⟩=(∣+⟩+∣−⟩)/2\ket{+Z} = \ket0 = (\ket+ + \ket-)/\sqrt2, so each exit gets 12\tfrac12.

Why not the others

  • A. The zz and xx directions are at right angles in the room, but the states ∣+Z⟩\ket{+Z} and ∣+X⟩\ket{+X} are not orthogonal: their inner product is 1/21/\sqrt2, so each exit gets half.
  • B. Selecting at the first analyzer fixes the zz result only. In the xx basis the state is ∣+Z⟩=(∣+X⟩+∣−X⟩)/2\ket{+Z} = (\ket{+X} + \ket{-X})/\sqrt2, so each exit gets half.
  • C. Every atom leaves by one exit or the other; the experiment shows two separate beams, never a smear.

2 / 12 · Learn

Any orthonormal basis is a measurement

So far "measure" has mostly meant the 0/1 basis, and in Lesson 2 you also met the ± basis. Any pair of orthonormal states {∣a⟩,∣b⟩}\{\ket a, \ket b\} defines a measurement, and the recipe is always the same:

  1. Write the state in that basis: ∣ψ⟩=α′∣a⟩+β′∣b⟩\ket\psi = \alpha'\ket a + \beta'\ket b.
  2. The outcomes are aa and bb, with P(a)=∣α′∣2P(a) = \abs{\alpha'}^2 and P(b)=∣β′∣2P(b) = \abs{\beta'}^2.
  3. Afterwards the qubit is in ∣a⟩\ket a or ∣b⟩\ket b, whichever was observed.

For the ± basis, substituting ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2 and ∣1⟩=(∣+⟩−∣−⟩)/2\ket1 = (\ket+ - \ket-)/\sqrt2 gives the rewrite you know:

α∣0⟩+β∣1⟩=α+β2∣+⟩+α−β2∣−⟩\alpha\ket0 + \beta\ket1 = \frac{\alpha+\beta}{\sqrt2}\ket+ + \frac{\alpha-\beta}{\sqrt2}\ket-

Check yourself

Write ∣0⟩\ket0 in the ± basis: give its coefficients on ∣+⟩\ket+ and on ∣−⟩\ket-.

Hints
  1. What are α\alpha and β\beta for the state ∣0⟩\ket0?
  2. The coefficients are (α+β)/2(\alpha+\beta)/\sqrt2 on ∣+⟩\ket+ and (α−β)/2(\alpha-\beta)/\sqrt2 on ∣−⟩\ket-.
  3. With α=1\alpha = 1 and β=0\beta = 0, both are 1/21/\sqrt2.
Show the answer

Answer: ∣+⟩=12,∣−⟩=12\ket{+} = \frac{1}{\sqrt{2}},\quad \ket{-} = \frac{1}{\sqrt{2}}

∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2. Measured in the ± basis it gives each outcome with probability ∣1/2∣2=12\abs{1/\sqrt2}^2 = \tfrac12.

Refresher: Inner products and bases Bras, complex conjugates and inner products, if the shortcut below is new to you.

A shortcut saves the rewriting: the coefficient of ∣a⟩\ket a is the inner product α′=⟨a|ψ⟩\alpha' = \braket{a}{\psi}. Take the entries of ∣a⟩\ket a, complex-conjugate them, multiply each by the matching entry of ∣ψ⟩\ket\psi, and add. Here is an orthonormal basis that is neither 0/1 nor ±; you will meet it again on a tilted magnet:

∣a⟩=32∣0⟩+12∣1⟩,∣b⟩=12∣0⟩−32∣1⟩\begin{aligned}\ket a &= \frac{\sqrt3}{2}\ket0 + \frac12\ket1,\\ \ket b &= \frac12\ket0 - \frac{\sqrt3}{2}\ket1\end{aligned}

Check yourself

A qubit in ∣0⟩\ket0 is measured in the basis {∣a⟩,∣b⟩}\{\ket a, \ket b\} above. What is P(a)P(a)?

P(a)=  ?P(a) = \;?

Hints
  1. Which entry of ∣0⟩\ket0 is nonzero, and which entry of ∣a⟩\ket a does it pick out?
  2. The coefficient of ∣a⟩\ket a is ⟨a|0⟩\braket{a}{0}; the Born rule squares its size.
  3. ⟨a|0⟩=32⋅1+12⋅0\braket{a}{0} = \tfrac{\sqrt3}{2}\cdot 1 + \tfrac12\cdot 0. Square it.
Show the answer

Answer: P(a)=34P(a) = \frac{3}{4}

⟨a|0⟩=32\braket{a}{0} = \tfrac{\sqrt3}{2}, so P(a)=34P(a) = \tfrac34, and P(b)=∣⟨b|0⟩∣2=14P(b) = \abs{\braket{b}{0}}^2 = \tfrac14. They add to 1, as they must.

Common slips

  • 32\frac{\sqrt{3}}{2}: That is ⟨a|0⟩\braket{a}{0}, the amplitude. The Born rule squares its size: (3/2)2(\sqrt3/2)^2.
  • 11: ∣0⟩\ket0 is certain only in the 0/1 basis. In the basis {∣a⟩,∣b⟩}\{\ket a, \ket b\} it is a superposition, ∣0⟩=32∣a⟩+12∣b⟩\ket0 = \tfrac{\sqrt3}{2}\ket a + \tfrac12\ket b, so either outcome can occur.
  • 14\frac{1}{4}: That is P(b)=∣⟨b|0⟩∣2=(1/2)2P(b) = \abs{\braket{b}{0}}^2 = (1/2)^2. For P(a)P(a) use the entries of ∣a⟩\ket a.
  • 12\frac{1}{2}: Not every basis splits ∣0⟩\ket0 evenly; only the ± basis does. Compute ⟨a|0⟩\braket{a}{0} and square its size.

3 / 12 · Learn

Certain in one basis, random in another

Lesson 2 showed that whether a result is certain depends on the basis, not on the state alone. ∣0⟩\ket0 gives 0 every time in the 0/1 basis, yet ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2, so in the ± basis it gives ++ or −- at random, half each. The general rule: every state is certain in exactly one basis, the one that contains it.

The Bloch sphere of Lesson 3 shows why. A measurement basis is an axis, its two outcomes are the two ends, and the end at angle γ\gamma from the state has probability cos⁡2(γ/2)\cos^2(\gamma/2): the rule P(0)=cos⁡2(θ/2)P(0) = \cos^2(\theta/2), turned to face another axis. So only a state on the axis gives a certain result.

Check yourself

A qubit gives 0 every time it is measured in the 0/1 basis. You measure it in the ± basis instead. What do you get?

  1. ANothing meaningful: only the 0/1 basis is a real measurement; ± is just another way of writing the state.
  2. B++ or −- at random, half the time each.
  3. C++ every time: the qubit has a definite value, so every measurement is predictable.
  4. DIt depends on the unknown global phase of the state.
Hints
  1. Which state gives 0 every time in the 0/1 basis?
  2. Write that state in the ± basis, ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2, and square the size of each coefficient.
Show the answer

Answer: B. ++ or −- at random, half the time each.

The qubit is ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2 (up to an unmeasurable global phase), so each ± outcome has probability 12\tfrac12. On the sphere ∣0⟩\ket0 is 90°90° from both ends of the xx axis, and cos⁡245°=12\cos^2 45° = \tfrac12.

Why not the others

  • A. Any orthonormal basis gives a real measurement with real outcomes. On hardware you do it with HH followed by a 0/1 meter (next segment), and a Stern–Gerlach analyzer turned along xx does it directly. Writing a state in a basis is bookkeeping; measuring in it is an experiment.
  • C. A common idea is that certain in one basis means certain in all. The rewrite says otherwise: the qubit is ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2, so P(+)=P(−)=12P(+) = P(-) = \tfrac12. Certainty belongs to a state and a basis. "Definite" sounds like a property of the qubit alone, which is what makes this tempting.
  • D. A global phase eiγe^{i\gamma} multiplies both ± coefficients by the same factor, and ∣eiγ∣=1\abs{e^{i\gamma}} = 1, so no probability in any basis changes. Whatever its global phase, this qubit gives P(±)=12P(\pm) = \tfrac12.

Check yourself

Take ∣ψ⟩=cos⁡π8∣0⟩+sin⁡π8∣1⟩\ket\psi = \cos\tfrac{\pi}{8}\ket0 + \sin\tfrac{\pi}{8}\ket1. In how many different measurement bases does one of the outcomes happen with certainty? (Write ∣ψ⊥⟩\ket{\psi^\perp} for the state orthogonal to ∣ψ⟩\ket\psi.)

  1. ANone: it is a superposition, so every measurement is random.
  2. BTwo: {∣ψ⟩,∣ψ⊥⟩}\{\ket\psi, \ket{\psi^\perp}\} and {∣ψ⊥⟩,∣ψ⟩}\{\ket{\psi^\perp}, \ket\psi\}.
  3. CInfinitely many, because there are infinitely many states.
  4. DExactly one: the basis {∣ψ⟩,∣ψ⊥⟩}\{\ket\psi, \ket{\psi^\perp}\}.
Hints
  1. On the Bloch sphere a measurement basis is an axis. When is a result along an axis certain?
  2. Only a state sitting at one end of the axis gives a certain result. How many axes pass through the point of ∣ψ⟩\ket\psi?
Show the answer

Answer: D. Exactly one: the basis {∣ψ⟩,∣ψ⊥⟩}\{\ket\psi, \ket{\psi^\perp}\}.

On the Bloch sphere ∣ψ⟩\ket\psi sits at θ=π/4\theta = \pi/4. Only the axis through that point, with ∣ψ⊥⟩\ket{\psi^\perp} at the opposite end, gives a certain result. Every other axis leaves both outcomes possible.

Why not the others

  • A. "Superposition" is always relative to a basis. ∣ψ⟩\ket\psi is a superposition of ∣0⟩\ket0 and ∣1⟩\ket1, but it is itself one member of the basis {∣ψ⟩,∣ψ⊥⟩}\{\ket\psi, \ket{\psi^\perp}\}, where ∣ψ⊥⟩\ket{\psi^\perp} is the state orthogonal to it. Measured in that basis it gives the outcome ψ\psi every time.
  • B. A basis is a set of states. Listing the same two states in the other order is the same measurement, with the same two outcomes; on the sphere both describe one axis.
  • C. There are infinitely many bases, but only one axis passes through the point of ∣ψ⟩\ket\psi. Any other axis makes an angle γ\gamma with 0°<γ<180°0° < \gamma < 180° to the state, and cos⁡2(γ/2)\cos^2(\gamma/2) is then strictly between 0 and 1.

4 / 12 · Learn

The ± measurement: H, then a 0/1 meter

Many quantum computers measure only in the 0/1 basis. To measure in the ± basis, apply HH first, then measure in the 0/1 basis, and read 0 as ++ and 1 as −-. This works because H∣+⟩=∣0⟩H\ket+ = \ket0 and H∣−⟩=∣1⟩H\ket- = \ket1 (Lesson 4). For a general state, HH moves the ± coefficients onto ∣0⟩\ket0 and ∣1⟩\ket1:

H(α∣0⟩+β∣1⟩)=α+β2∣0⟩+α−β2∣1⟩H(\alpha\ket0 + \beta\ket1) = \frac{\alpha+\beta}{\sqrt2}\ket0 + \frac{\alpha-\beta}{\sqrt2}\ket1

So the meter reads 0 with probability P(+)P(+) and 1 with probability P(−)P(-).

Check yourself

Your device can only measure in the 0/1 basis. Which procedure measures a qubit in the ± basis?

  1. AApply HH, then measure in the 0/1 basis; read 0 as ++ and 1 as −-.
  2. BApply XX, then measure in the 0/1 basis.
  3. CMeasure in the 0/1 basis many times: ∣+⟩\ket+ and ∣−⟩\ket- give different histograms.
  4. DMeasure in the 0/1 basis, then apply HH.
Hints
  1. Which gate turns ∣+⟩\ket+ and ∣−⟩\ket- into ∣0⟩\ket0 and ∣1⟩\ket1?
  2. That gate has to act before the meter fires: once it has fired, its result answers the 0/1 question and nothing else.
Show the answer

Answer: A. Apply HH, then measure in the 0/1 basis; read 0 as ++ and 1 as −-.

HH sends ∣+⟩→∣0⟩\ket+ \to \ket0 and ∣−⟩→∣1⟩\ket- \to \ket1, so after it the 0/1 meter’s 0 and 1 mean ++ and −-. The probabilities are P(+)P(+) and P(−)P(-) of the state you started with.

Why not the others

  • B. XX swaps ∣0⟩\ket0 and ∣1⟩\ket1, so the meter reports the 0/1 result upside down. X∣+⟩=∣+⟩X\ket+ = \ket+ and X∣−⟩=−∣−⟩X\ket- = -\ket-, so both still read 0 or 1 at random and can’t be told apart.
  • C. In the 0/1 basis ∣+⟩\ket+ and ∣−⟩\ket- both give 50/50, since ∣±1/2∣2=12\abs{\pm1/\sqrt2}^2 = \tfrac12. Their difference is a relative sign, which 0/1 probabilities can’t see. A gate before the meter has to turn that sign into a difference in probabilities, and HH does.
  • D. Order matters. Once the 0/1 meter has fired, the result is recorded and the qubit is ∣0⟩\ket0 or ∣1⟩\ket1; an HH afterwards changes the qubit but not the result, which still answers the 0/1 question. The HH must come first, to move the ± coefficients onto ∣0⟩\ket0 and ∣1⟩\ket1.

Check yourself

A qubit in 32∣0⟩+12∣1⟩\tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1 goes through HH and then a 0/1 meter. What is the probability that the meter reads 0? (Exact, or 3 decimals.)

P(0)=  ?P(0) = \;?

Hints
  1. After the HH, what is the amplitude on ∣0⟩\ket0? Look at the formula above.
  2. It is (α+β)/2(\alpha+\beta)/\sqrt2, and the Born rule squares its size.
  3. α+β=(3+1)/2\alpha + \beta = (\sqrt3 + 1)/2. Square it, then divide by 2.
Show the answer

Answer: P(0)=0.933P(0) = 0.933

The amplitude on ∣0⟩\ket0 after HH is (3+1)/(22)(\sqrt3+1)/(2\sqrt2); its square is (4+23)/8=(2+3)/4≈0.933(4+2\sqrt3)/8 = (2+\sqrt3)/4 \approx 0.933. That is P(+)P(+) for the original state, which is the point: reading 0 means ++. (Lesson 4 used the same formula for HH on a general state.)

Common slips

  • 34\frac{3}{4}: 34\tfrac34 is P(0)P(0) for the state before the HH. After HH the amplitude on ∣0⟩\ket0 is (α+β)/2(\alpha+\beta)/\sqrt2.
  • 0.0670.067: That is the probability of reading 1, which uses α−β\alpha - \beta. Reading 0 uses α+β\alpha + \beta.
  • 12\frac{1}{2}: A common idea is that HH just randomizes a qubit. It doesn’t: the two contributions to each output amplitude add or partly cancel. Here they add on ∣0⟩\ket0, giving (α+β)/2(\alpha+\beta)/\sqrt2.
  • 0.9660.966: That is the amplitude (α+β)/2(\alpha+\beta)/\sqrt2. The probability is its square.

5 / 12 · Learn

Superposition or coin? Ask in another basis

In Lesson 2 you told these two registers apart by measuring in the ± basis. Now you can build that measurement from a gate and a 0/1 meter. Register A holds 1000 qubits, each in ∣+⟩\ket+. Register B holds 1000 qubits, each prepared as ∣0⟩\ket0 or ∣1⟩\ket1 by a coin toss you didn’t see. Measured in the 0/1 basis, the two look the same: about half 0s and half 1s.

Now apply HH to every qubit and measure in the 0/1 basis, which is a ± measurement. Every qubit of A becomes ∣0⟩\ket0 and reads 0. Each qubit of B becomes ∣+⟩\ket+ or ∣−⟩\ket-, and those still read 0 or 1 at random. Run both tests.

Check yourself

Register C holds 1000 copies of ∣−⟩\ket-. Register D holds 1000 qubits, each ∣0⟩\ket0 or ∣1⟩\ket1 by a coin toss. Which statement is true?

  1. AThey are physically the same: both give 0 or 1 with probability 12\tfrac12.
  2. BApply HH to every qubit, then measure in the 0/1 basis: C gives all 1s, D gives about half 0s and half 1s.
  3. CThey differ in principle, but no experiment can show it.
  4. DMeasure in the 0/1 basis: C gives exactly 500 of each result, D only about 500.
Hints
  1. What does HH do to ∣−⟩\ket-? What does it do to ∣0⟩\ket0 and to ∣1⟩\ket1?
  2. A state that becomes a basis state under HH gives one result every time; one that becomes ∣+⟩\ket+ or ∣−⟩\ket- still reads 0 or 1 at random.
Show the answer

Answer: B. Apply HH to every qubit, then measure in the 0/1 basis: C gives all 1s, D gives about half 0s and half 1s.

H∣−⟩=∣1⟩H\ket- = \ket1, so C reads 1 every time. D’s qubits become ∣+⟩\ket+ or ∣−⟩\ket-, each 50/50 in the 0/1 basis. Only a measurement in another basis, such as ±, separates them.

Why not the others

  • A. A very common idea is that a superposition is a coin you haven’t looked at. Then no test could separate C from D. But H∣−⟩=∣1⟩H\ket- = \ket1, so every qubit of C reads 1 after HH, while D stays 50/50. The 50/50 in the 0/1 basis is a fact about that basis, not about missing knowledge.
  • C. One gate is enough. HH followed by a 0/1 meter gives 1 every time for C and about half 1s for D, exactly as the lab showed for A and B.
  • D. Probabilities predict frequencies, not exact counts. In the 0/1 basis C scatters around 500 just as D does, as Register A did in the lab. You need a measurement in another basis.

6 / 12 · Learn

A Stern–Gerlach analyzer is a measurement

In the Stern–Gerlach experiment, atoms fly through a magnet that deflects each one along the magnet’s axis. Every atom lands in one of two separate beams, never in between. Treat the magnet as a black box, an analyzer with a ++ exit and a −- exit. The qubit model of an analyzer has three rules:

  • a zz analyzer measures in the basis {∣+Z⟩,∣−Z⟩}={∣0⟩,∣1⟩}\{\ket{+Z}, \ket{-Z}\} = \{\ket0, \ket1\};
  • an xx analyzer measures in {∣+X⟩,∣−X⟩}={∣+⟩,∣−⟩}\{\ket{+X}, \ket{-X}\} = \{\ket+, \ket-\};
  • each atom leaves in the state of the exit it took.

So an analyzer is a measurement whose basis you choose by turning it.

Check yourself

Which pair of states is orthogonal (inner product 0)?

  1. A∣−Z⟩\ket{-Z} and ∣−X⟩\ket{-X}
  2. B∣+Z⟩\ket{+Z} and ∣+X⟩\ket{+X}
  3. C∣+X⟩\ket{+X} and ∣−X⟩\ket{-X}
Hints
  1. Write each state as a column vector, then take the inner product of each pair.
  2. ∣±Z⟩=∣0⟩,∣1⟩\ket{\pm Z} = \ket0, \ket1 and ∣±X⟩=(∣0⟩±∣1⟩)/2\ket{\pm X} = (\ket0 \pm \ket1)/\sqrt2. Multiply matching entries and add; orthogonal means the sum is 0.
Show the answer

Answer: C. ∣+X⟩\ket{+X} and ∣−X⟩\ket{-X}

⟨−X|+X⟩=12(1⋅1+(−1)⋅1)=0\braket{-X}{{+X}} = \tfrac12(1\cdot 1 + (-1)\cdot 1) = 0. The two exits of one analyzer always give orthogonal states, at opposite ends of the Bloch sphere. States along axes 90°90° apart have an inner product of size 1/21/\sqrt2.

Why not the others

  • A. ⟨−X|−Z⟩=12(1⋅0+(−1)⋅1)=−12\braket{-X}{{-Z}} = \tfrac{1}{\sqrt2}(1\cdot 0 + (-1)\cdot 1) = -\tfrac{1}{\sqrt2}, not 0. States 90°90° apart on the Bloch sphere have an inner product of size 1/21/\sqrt2, a 50/50 split; orthogonal states sit 180°180° apart.
  • B. The zz and xx directions are at right angles in the room, but the states are not orthogonal: ⟨+X|+Z⟩=1/2\braket{+X}{{+Z}} = 1/\sqrt2. That is why a +Z+Z atom splits 50/50 at an xx analyzer. Orthogonal spin states belong to opposite directions.

Turn an analyzer by an angle θ\theta from zz toward xx and it measures along that direction of the Bloch sphere. Its exits leave atoms in

∣+θ⟩=cos⁡θ2∣0⟩+sin⁡θ2∣1⟩,∣−θ⟩=sin⁡θ2∣0⟩−cos⁡θ2∣1⟩\begin{aligned}\ket{{+}_\theta} &= \cos\tfrac\theta2\ket0 + \sin\tfrac\theta2\ket1,\\ \ket{{-}_\theta} &= \sin\tfrac\theta2\ket0 - \cos\tfrac\theta2\ket1\end{aligned}

At θ=90°\theta = 90° these are ∣+⟩\ket+ and ∣−⟩\ket-; at θ=60°\theta = 60° they are the basis ∣a⟩\ket a, ∣b⟩\ket b from earlier in this lesson. Notice the halving: a 90°90° turn in the room is a 45°45° angle between the kets, which is why ∣+Z⟩\ket{+Z} and ∣+X⟩\ket{+X} have inner product cos⁡45°=1/2\cos 45° = 1/\sqrt2.

Check yourself

A beam of ∣−Z⟩\ket{-Z} atoms enters an analyzer tilted 60°60° from zz toward xx, whose exits are ∣a⟩\ket a (++) and ∣b⟩\ket b (−-). What fraction of the atoms leaves by the ++ exit?

Hints
  1. Which basis state is ∣−Z⟩\ket{-Z}, and which entry of ∣a⟩\ket a does it pick out?
  2. The share through the ++ exit is ∣⟨a|1⟩∣2\abs{\braket{a}{1}}^2: the Born rule in the analyzer’s basis.
  3. ⟨a|1⟩=12\braket{a}{1} = \tfrac12. Square it.
Show the answer

Answer: 14\frac{1}{4}

∣−Z⟩=∣1⟩\ket{-Z} = \ket1 and ⟨a|1⟩=12\braket{a}{1} = \tfrac12, so the ++ exit gets 14\tfrac14 and the −- exit 34\tfrac34. On the Bloch sphere the state is 120°120° from the analyzer’s ++ end, and cos⁡260°=14\cos^2 60° = \tfrac14.

Common slips

  • 34\frac{3}{4}: 34\tfrac34 is the share of the −- exit here (or of the ++ exit for ∣+Z⟩\ket{+Z} atoms). For ∣−Z⟩=∣1⟩\ket{-Z} = \ket1 the coefficient of ∣a⟩\ket a is ⟨a|1⟩=12\braket{a}{1} = \tfrac12.
  • 12\frac{1}{2}: 12\tfrac12 is the amplitude ⟨a|1⟩\braket{a}{1}, not its square. (It would also be the answer for a 90°90° tilt, not 60°60°.)
  • 00: The atoms point along −z-z and the analyzer’s ++ end is 120°120° away, not 180°180°. Only the exact opposite direction gives probability 0.

7 / 12 · Explore

Predict: the z, x, z cascade

This is the cascade from Lesson 1. You now have the model; predict before you run it.

Predict, then see

Atoms from the oven pass a zz analyzer (its ++ exit feeds the next one), then an xx analyzer (its ++ exit feeds the next one), then a second zz analyzer. Of the atoms that reach the last analyzer, what fraction leaves by its −- exit?

  1. ANone: the first analyzer selected them as +Z+Z, and they still are.
  2. BAbout 18\tfrac18.
  3. CAll of them: keeping the +X+X exit flips the spin to −Z-Z.
  4. DAbout half.

In a sentence or two: every atom left the first analyzer by ++. Why does the last analyzer still split them?

Show what happens

What happens: D. About half.

Each analyzer is a measurement along its own axis, and every atom leaves in the state of the exit it took. Atoms leaving the xx analyzer’s ++ exit are in ∣+X⟩=(∣+Z⟩+∣−Z⟩)/2\ket{+X} = (\ket{+Z} + \ket{-Z})/\sqrt2 whatever happened before, so the last zz analyzer sends half each way. The first +Z+Z result is not stored in that state. Turn the middle analyzer to zz and the split at the end disappears.

Why not the others

  • A. A very common prediction: the atoms "remember" being +Z+Z. The run says otherwise: the last analyzer splits evenly. The xx analyzer is a measurement too, and it leaves every atom it passes in ∣+X⟩\ket{+X}, which keeps no trace of the +Z+Z result.
  • B. 18\tfrac18 is the share of all the oven’s atoms that leave by that exit. Of the atoms that reach the last analyzer, half leave by each exit.
  • C. The xx analyzer doesn’t flip anything along zz. It leaves each atom in ∣+X⟩=(∣+Z⟩+∣−Z⟩)/2\ket{+X} = (\ket{+Z} + \ket{-Z})/\sqrt2, which gives +Z+Z and −Z-Z equally often.
Why does the first analyzer split the oven’s atoms 50/50?

The oven’s atoms have random spin directions. An analyzer along n^\hat n sends an atom whose spin points along r^\hat r out of its ++ exit with probability (1+n^⋅r^)/2(1 + \hat n\cdot\hat r)/2, which is the Bloch-sphere rule cos⁡2(γ/2)\cos^2(\gamma/2) written with a dot product. Averaged over all directions, n^⋅r^\hat n\cdot\hat r is 0, so the average is 12\tfrac12 along any axis. A beam like this is a mixture, not a superposition. Describing mixtures takes a tool called the density operator, which is beyond this course.

Check yourself

Now make the middle analyzer a zz analyzer (still passing its ++ exit), so the atoms meet zz, zz, zz. What fraction of the atoms that reach the last analyzer leaves by its −- exit? You can test it in the widget above.

P(−Z)=  ?P(-Z) = \;?

Hints
  1. In which state do the atoms leave the second analyzer?
  2. An analyzer gives a certain result when the arriving state is one of its own two states.
  3. They arrive in ∣+Z⟩\ket{+Z}. What is ∣⟨−Z|+Z⟩∣2\abs{\braket{-Z}{{+Z}}}^2?
Show the answer

Answer: P(−Z)=0P(-Z) = 0

The atoms leave the second analyzer in ∣+Z⟩\ket{+Z}, a state of the zz basis, so the last zz analyzer passes all of them through ++ and none through −-. Repeating a measurement in the same basis repeats its result, as in Lesson 1.

Common slips

  • 12\frac{1}{2}: A repeat of the same measurement gives the same result. The atoms leave the second zz analyzer in ∣+Z⟩\ket{+Z}, one of the zz basis states, so the last zz analyzer sends every one through ++.
  • 14\frac{1}{4}: That treats each later zz analyzer as halving the beam again, 12⋅12\tfrac12 \cdot \tfrac12. An analyzer splits the beam only when the arriving state is not one of its own two states. Atoms arriving in ∣+Z⟩\ket{+Z} all leave a zz analyzer by ++, so none leaves by −-.

8 / 12 · Worked example

Cascade fractions, step by step

Worked example

z, then x, then z, from the oven

Lesson 1 asked about the atoms that reach the last analyzer: half of them leave by −-. Now count against everything the oven sends out. What fraction of the oven’s atoms leaves the last analyzer’s −- exit?

  1. Analyzer 1: z, keep +

    The oven’s spins are random, so a zz analyzer sends half of them out of each exit. The kept half leave in ∣+Z⟩=∣0⟩\ket{+Z} = \ket0.

    Share of the oven’s atoms still in the beam: 12\tfrac12.

  2. Analyzer 2: x, keep +

    An xx analyzer measures in the ± basis. Rewrite the arriving state there: ∣0⟩=(∣+⟩+∣−⟩)/2\ket0 = (\ket+ + \ket-)/\sqrt2, so P(+X)=∣1/2∣2=12P(+X) = \abs{1/\sqrt2}^2 = \tfrac12. The kept atoms leave in ∣+X⟩=∣+⟩\ket{+X} = \ket+.

    Share still in the beam: 12⋅12=14\tfrac12 \cdot \tfrac12 = \tfrac14.

  3. Analyzer 3: z

    Your turn

    Atoms arrive at the last analyzer in ∣+X⟩=∣+⟩\ket{+X} = \ket+. What is the probability that one of them leaves by the −- exit?

    P(−Z)=  ?P(-Z) = \;?

    Hints
    1. Write ∣+⟩\ket+ in the zz basis.
    2. The −Z-Z coefficient of ∣+⟩=(∣0⟩+∣1⟩)/2\ket+ = (\ket0 + \ket1)/\sqrt2 is 1/21/\sqrt2. Square it.
    Show the answer

    Answer: P(−Z)=12P(-Z) = \frac{1}{2}

    ∣+⟩=(∣0⟩+∣1⟩)/2\ket+ = (\ket0 + \ket1)/\sqrt2, so P(−Z)=∣1/2∣2=12P(-Z) = \abs{1/\sqrt2}^2 = \tfrac12.

    Common slips

    • 00: That assumes the atoms still carry their first +Z+Z result. The xx analyzer replaced their state with ∣+⟩=(∣0⟩+∣1⟩)/2\ket+ = (\ket0 + \ket1)/\sqrt2, so −Z-Z has probability ∣1/2∣2\abs{1/\sqrt2}^2.
  4. Put it together

    Your turn

    So what fraction of the oven’s atoms leaves the last analyzer’s −- exit?

    Hint
    1. Multiply the share that reaches the last analyzer by the probability of the −- exit there.
    Show the answer

    Answer: 18\frac{1}{8}

    12⋅12⋅12=18\tfrac12 \cdot \tfrac12 \cdot \tfrac12 = \tfrac18. Another 18\tfrac18 leaves by ++: the last analyzer receives 14\tfrac14 of the oven’s atoms and splits them evenly.

    Common slips

    • 12\frac{1}{2}: 12\tfrac12 is the share of the atoms that reach the last analyzer. Multiply by the 14\tfrac14 of the oven’s atoms that get that far.
    • 14\frac{1}{4}: 14\tfrac14 is the share that reaches the last analyzer. Half of those leave by −-.
    • 00: That treats the atoms as if they remembered the first +Z+Z result. After the xx analyzer their state is ∣+⟩\ket+, which splits evenly at a zz analyzer.
  5. The rule

    Follow the kept beam. At each analyzer, rewrite the arriving state in that analyzer’s basis, take ∣coefficient∣2\abs{\text{coefficient}}^2 for the exit you follow, and multiply. The state passed on is always the state of that exit, so nothing earlier enters the next step.

Here is one more cascade, with a repeated analyzer. What fraction of the oven’s atoms leaves by the plus exit of the last analyzer?

Another worked example

x, x, z, from the oven

  1. Analyzer 1: x, keep −

    The oven’s spins are random: half leave by each exit. The kept atoms are in ∣−X⟩=∣−⟩\ket{-X} = \ket-. Share: 12\tfrac12.

  2. Analyzer 2: x, keep −

    Atoms arrive in ∣−⟩\ket-, one of the xx analyzer’s own two states, so every one of them leaves by −-: probability 1. Share: 12⋅1=12\tfrac12 \cdot 1 = \tfrac12.

  3. Analyzer 3: z, the + exit

    ∣−⟩=(∣0⟩−∣1⟩)/2\ket- = (\ket0 - \ket1)/\sqrt2, so P(+Z)=∣1/2∣2=12P(+Z) = \abs{1/\sqrt2}^2 = \tfrac12. The minus sign has no effect on 0/1 probabilities.

  4. Total

    12⋅1⋅12=14\tfrac12 \cdot 1 \cdot \tfrac12 = \tfrac14 of the oven’s atoms leave by the last ++ exit. A repeated analyzer multiplies by 1, or by 0 if you follow its other exit.

Check yourself

Atoms from the oven pass through three analyzers in a row:

  1. a zz analyzer, whose −- exit feeds the next one;
  2. a zz analyzer, whose −- exit feeds the next one;
  3. an xx analyzer.

What fraction of the atoms that leave the oven leaves the last analyzer’s ++ exit?

Hints
  1. In which state does each kept exit leave the atoms, and in which basis does the next analyzer measure?
  2. Each analyzer is a measurement in its own basis. Multiply the probabilities of the exits you follow; each analyzer passes on the state of its exit.
  3. Analyzer 1 (zz, keep −-): the oven’s spins are random, so half leave by each exit: 12\tfrac12. The atoms passed on are in ∣−Z⟩\ket{-Z}.
Show the answer

Answer: 14\frac{1}{4}

Multiply the shares of the kept exits: 12⋅1⋅12=14\tfrac{1}{2} \cdot 1 \cdot \tfrac{1}{2} = \tfrac{1}{4}.

Follow the kept beam and multiply.

  • Analyzer 1 (zz, keep −-): the oven’s spins are random, so half leave by each exit: 12\tfrac12. The atoms passed on are in ∣−Z⟩\ket{-Z}.
  • Analyzer 2 (zz, keep −-): atoms arrive in ∣−Z⟩\ket{-Z}, one of this analyzer’s own states, so every one leaves by −-: 11. The atoms passed on are in ∣−Z⟩\ket{-Z}.
  • Analyzer 3 (xx, the ++ exit): atoms arrive in ∣−Z⟩=(∣+X⟩−∣−X⟩)/2\ket{-Z} = (\ket{+X} - \ket{-X})/\sqrt2, so half leave by each exit: 12\tfrac12.

Total: 12⋅1⋅12=14\tfrac{1}{2} \cdot 1 \cdot \tfrac{1}{2} = \tfrac{1}{4} of the atoms that leave the oven.

Common slips

  • 12\frac{1}{2}: 12\tfrac{1}{2} is the fraction of the atoms arriving at the last analyzer that leave by its ++ exit. The question asks about all the atoms that leave the oven, so multiply by the shares kept at the earlier analyzers.
  • 18\frac{1}{8}: This halves the beam at every analyzer. An analyzer only splits the beam when the arriving state is not one of its own states; a repeat of the same analyzer passes every atom through the same exit (or none through the other).

9 / 12 · Practice

Practice

Check yourself

A qubit in 12(∣0⟩+eiπ/3∣1⟩)\tfrac{1}{\sqrt2}\left(\ket0 + e^{i\pi/3}\ket1\right) is measured in the ± basis. What is P(−)P(-)?

P(−)=  ?P(-) = \;?

Hints
  1. In the ± basis, which combination of α\alpha and β\beta multiplies ∣−⟩\ket-?
  2. Born rule in the new basis: P(−)=∣α−β∣2/2P(-) = \abs{\alpha - \beta}^2/2.
  3. Here α−β=1−eiπ/32\alpha - \beta = \tfrac{1-e^{i\pi/3}}{\sqrt2}. Square its size and halve it. Use ∣1±eiφ∣2=2±2cos⁡φ\abs{1 \pm e^{i\varphi}}^2 = 2 \pm 2\cos\varphi.
Show the answer

Answer: P(−)=14P(-) = \frac{1}{4}

The coefficient of ∣−⟩\ket- is (α−β)/2(\alpha - \beta)/\sqrt2 with α−β=1−eiπ/32\alpha - \beta = \tfrac{1-e^{i\pi/3}}{\sqrt2}, so P(−)=12/2=14P(-) = \tfrac12\big/2 = \tfrac{1}{4}.

Rewrite in the ± basis: α∣0⟩+β∣1⟩=α+β2∣+⟩+α−β2∣−⟩\alpha\ket0 + \beta\ket1 = \tfrac{\alpha+\beta}{\sqrt2}\ket+ + \tfrac{\alpha-\beta}{\sqrt2}\ket-.

Here α=1/2\alpha = 1/\sqrt2 and β=eiπ/3/2\beta = e^{i\pi/3}/\sqrt2, so α−β=1−eiπ/32\alpha - \beta = \tfrac{1-e^{i\pi/3}}{\sqrt2} and ∣α−β∣2=12\abs{\alpha - \beta}^2 = \tfrac12. Use ∣1±eiφ∣2=2±2cos⁡φ\abs{1 \pm e^{i\varphi}}^2 = 2 \pm 2\cos\varphi.

So P(−)=12/2=14P(-) = \tfrac12\big/2 = \tfrac{1}{4}. Check: P(+)+P(−)=34+14=1P(+) + P(-) = \tfrac{3}{4} + \tfrac{1}{4} = 1.

Common slips

  • 12\frac{1}{2}: 12\tfrac{1}{2} is P(1)P(1), the probability of reading 1 in the 0/1 basis. In the ± basis the question is different: the coefficient of ∣−⟩\ket- is (α−β)/2(\alpha - \beta)/\sqrt2, not β\beta.
  • 34\frac{3}{4}: That is P(+)P(+). You used α+β\alpha + \beta; the coefficient of ∣−⟩\ket- has α−β\alpha - \beta.

Check yourself

A beam of ∣+Z⟩\ket{+Z} atoms enters an analyzer tilted 135° from zz toward xx. What fraction of the atoms leaves by its ++ exit? (Give an exact value or 3 decimals.)

Hints
  1. On the Bloch sphere, where does ∣+Z⟩\ket{+Z} point, and where does the analyzer’s ++ end point? What is the angle between them?
  2. Born rule along any axis: the share is cos⁡2(γ/2)=(1+cos⁡γ)/2\cos^2(\gamma/2) = (1 + \cos\gamma)/2, where γ\gamma is the angle on the sphere between the state and that exit’s end.
  3. Here γ=135°\gamma = 135° and cos⁡135°=−22\cos 135° = -\tfrac{\sqrt2}{2}. Compute (1+cos⁡135°)/2(1 + \cos 135°)/2.
Show the answer

Answer: 0.1460.146

⟨+θ|0⟩=cos⁡67.5°\braket{{+}_\theta}{0} = \cos 67.5°, so the share is cos⁡267.5°=(1+cos⁡135°)/2=2−24≈0.146\cos^2 67.5° = (1 + \cos 135°)/2 = \tfrac{2-\sqrt{2}}{4} \approx 0.146.

The analyzer’s ++ exit state is ∣+θ⟩=cos⁡θ2∣0⟩+sin⁡θ2∣1⟩\ket{{+}_\theta} = \cos\tfrac\theta2\ket0 + \sin\tfrac\theta2\ket1 with θ=135°\theta = 135°. The atoms arrive in ∣+Z⟩=∣0⟩\ket{+Z} = \ket0, so the coefficient is ⟨+θ|0⟩=cos⁡67.5°\braket{{+}_\theta}{0} = \cos 67.5°.

Share through ++: cos⁡267.5°=1+cos⁡135°2=1−222=2−24≈0.146\cos^2 67.5° = \tfrac{1 + \cos 135°}{2} = \tfrac{1 - \tfrac{\sqrt2}{2}}{2} = \tfrac{2-\sqrt{2}}{4} \approx 0.146. The −- exit gets the rest, 2+24≈0.854\tfrac{2+\sqrt{2}}{4} \approx 0.854.

On the Bloch sphere the state is 135° from the analyzer’s ++ end, and cos⁡2(γ/2)\cos^2(\gamma/2) with γ=135°\gamma = 135° gives the same number.

Common slips

  • 12\frac{1}{2}: That uses the full angle: cos⁡2135°=12\cos^2 135° = \tfrac{1}{2}. The amplitude inside the ket uses half of it, cos⁡(67.5°)\cos(67.5°), so the share is cos⁡267.5°=(1+cos⁡135°)/2\cos^2 67.5° = (1 + \cos 135°)/2.
  • 0.3830.383: That is cos⁡67.5°\cos 67.5°, the amplitude ⟨+θ|0⟩\braket{{+}_\theta}{0}. The Born rule squares it.
  • 0.8540.854: That is the share of the −- exit, sin⁡267.5°\sin^2 67.5°. The ++ exit gets cos⁡267.5°\cos^2 67.5°.

Check yourself

A source makes many copies of one of five things: ∣0⟩\ket0, ∣1⟩\ket1, ∣+⟩\ket+, ∣−⟩\ket-, or a coin source that sends ∣0⟩\ket0 or ∣1⟩\ket1 at random. You measure 20 copies in the 0/1 basis and 20 more in the ± basis.

  • 0/1 basis: 0 came up 0 times, 1 came up 20 times.
  • ± basis: ++ came up 11 times, −- came up 9 times.

Which is the source?

  1. AThe coin source
  2. B∣−⟩\ket-
  3. C∣+⟩\ket+
  4. D∣0⟩\ket0
  5. E∣1⟩\ket1
Hints
  1. Which candidates give the same result every time in the 0/1 basis? Which do so in the ± basis?
  2. A state is certain only in the basis that contains it. A coin source is random in both bases.
  3. Your 0/1 data are all one result. Which candidates can do that?
Show the answer

Answer: E. ∣1⟩\ket1

All 20 copies read 1 in the 0/1 basis, which only ∣1⟩\ket1 does. Its ± results are mixed, as they should be: ∣1⟩=(∣+⟩−∣−⟩)/2\ket1 = (\ket+ - \ket-)/\sqrt2.

All 20 copies read 1 in the 0/1 basis, which only ∣1⟩\ket1 does. Its ± results are mixed, as they should be: ∣1⟩=(∣+⟩−∣−⟩)/2\ket1 = (\ket+ - \ket-)/\sqrt2. Every other candidate is ruled out by one of the two data sets.

Why not the others

  • A. A coin source sends ∣0⟩\ket0 or ∣1⟩\ket1, so it gives a mix in the 0/1 basis, and a mix in the ± basis too, since each of those states is 50/50 there. It would give the same result 20 times in a row only about once in a million tries, yet the 0/1 data came out 1 all 20 times.
  • B. ∣−⟩\ket- gives −- every time in the ± basis, but 11 of your copies gave ++.
  • C. ∣+⟩\ket+ gives ++ every time in the ± basis, but 9 of your copies gave −-.
  • D. ∣0⟩\ket0 reads 0 every time in the 0/1 basis, but 20 of your copies read 1.

10 / 12 · Explain

Explain it

Explain it

After a zz analyzer (keep ++) and an xx analyzer (keep ++), why does a final zz analyzer split the beam 50/50, instead of sending every atom out of ++?

Show a model answer

Each analyzer is a measurement in its own basis, and it leaves every atom in the state of the exit it took. The atoms kept at the xx analyzer are in ∣+X⟩=(∣0⟩+∣1⟩)/2\ket{+X} = (\ket0 + \ket1)/\sqrt2, whatever their earlier zz result was; that result is not stored in the new state. Measured in the zz basis, ∣+X⟩\ket{+X} gives +Z+Z and −Z-Z with probability 12\tfrac12 each. The xx and zz directions are 90°90° apart in space, but ∣+Z⟩\ket{+Z} and ∣+X⟩\ket{+X} are not orthogonal: their inner product is 1/21/\sqrt2.

A good answer covers

  • An analyzer is a measurement: it leaves each atom in the state of the exit it took, replacing the earlier state.
  • The atoms leaving the +X+X exit are in ∣+X⟩=(∣0⟩+∣1⟩)/2\ket{+X} = (\ket0 + \ket1)/\sqrt2, an equal superposition of +Z+Z and −Z-Z, so P(±Z)=12P(\pm Z) = \tfrac12.
  • Notes that xx and zz are 90°90° apart in space, while the states ∣+Z⟩\ket{+Z} and ∣+X⟩\ket{+X} have inner product 1/21/\sqrt2 (not 0).

11 / 12 · Mastery check

Mastery check

Check yourself

Atoms prepared in ∣+Z⟩\ket{+Z} pass through three analyzers in a row:

  1. an xx analyzer, whose ++ exit feeds the next one;
  2. a zz analyzer, whose −- exit feeds the next one;
  3. an xx analyzer.

What fraction of the atoms in the beam leaves the last analyzer’s ++ exit?

Show the answer

Answer: 18\frac{1}{8}

Multiply the shares of the kept exits: 12⋅12⋅12=18\tfrac{1}{2} \cdot \tfrac{1}{2} \cdot \tfrac{1}{2} = \tfrac{1}{8}.

Follow the kept beam and multiply.

  • Analyzer 1 (xx, keep ++): atoms arrive in ∣+Z⟩=(∣+X⟩+∣−X⟩)/2\ket{+Z} = (\ket{+X} + \ket{-X})/\sqrt2, so half leave by each exit: 12\tfrac12. The atoms passed on are in ∣+X⟩\ket{+X}.
  • Analyzer 2 (zz, keep −-): atoms arrive in ∣+X⟩=(∣+Z⟩+∣−Z⟩)/2\ket{+X} = (\ket{+Z} + \ket{-Z})/\sqrt2, so half leave by each exit: 12\tfrac12. The atoms passed on are in ∣−Z⟩\ket{-Z}.
  • Analyzer 3 (xx, the ++ exit): atoms arrive in ∣−Z⟩=(∣+X⟩−∣−X⟩)/2\ket{-Z} = (\ket{+X} - \ket{-X})/\sqrt2, so half leave by each exit: 12\tfrac12.

Total: 12⋅12⋅12=18\tfrac{1}{2} \cdot \tfrac{1}{2} \cdot \tfrac{1}{2} = \tfrac{1}{8} of the atoms in the beam.

Common slips

  • 00: This treats the atoms as if they remembered earlier results. Each analyzer leaves an atom in the state of its exit, so once an analyzer along the other axis has acted, the earlier result is gone: the next analyzer splits the beam again.
  • 12\frac{1}{2}: 12\tfrac{1}{2} is the fraction of the atoms arriving at the last analyzer that leave by its ++ exit. The question asks about all the atoms in the beam, so multiply by the shares kept at the earlier analyzers.
  • 14\frac{1}{4}: 14\tfrac{1}{4} is the share that reaches the last analyzer. You still need the last analyzer’s own factor for the ++ exit.

Check yourself

A beam of atoms that all left the ++ exit of an xx analyzer enters a second analyzer, turned to point along zz. What happens at the second analyzer?

  1. AAbout half the atoms leave by each exit.
  2. BEvery atom leaves by the ++ exit: their spin was already selected.
  3. CThe atoms spread out evenly over a range of positions between the two exits.
  4. DNo atom is deflected either way: the spin points along xx, at right angles to the zz analyzer, so it has nothing to act on.
Show the answer

Answer: A. About half the atoms leave by each exit.

A zz analyzer measures in the {∣+Z⟩,∣−Z⟩}\{\ket{+Z}, \ket{-Z}\} basis, and ∣+X⟩=(∣+Z⟩+∣−Z⟩)/2\ket{+X} = (\ket{+Z} + \ket{-Z})/\sqrt2. Each exit gets ∣1/2∣2=12\abs{1/\sqrt2}^2 = \tfrac12.

Why not the others

  • B. Selecting at the first analyzer fixes the xx result only. In the zz basis the state is ∣+X⟩=(∣+Z⟩+∣−Z⟩)/2\ket{+X} = (\ket{+Z} + \ket{-Z})/\sqrt2, so each exit gets half. Being certain in one basis does not make a state certain in every basis.
  • C. Every atom leaves by one exit or the other: the experiment shows two separate beams, never a continuous smear. That two-valued result is why the spin is modelled as a qubit.
  • D. The xx and zz directions are at right angles in the room, but the states are not orthogonal: their inner product is 1/21/\sqrt2. So half the atoms leave by each exit. Orthogonal spin states belong to opposite directions, such as +X+X and −X-X.

Check yourself

An analyzer tilted 120° from zz toward xx measures in the basis ∣a⟩=12∣0⟩+32∣1⟩\ket a = \tfrac12\ket0 + \tfrac{\sqrt3}{2}\ket1, ∣b⟩=32∣0⟩−12∣1⟩\ket b = \tfrac{\sqrt3}{2}\ket0 - \tfrac12\ket1. A qubit in ∣−⟩\ket- is measured in this basis. What is P(a)P(a)?

P(a)=  ?P(a) = \;?

Show the answer

Answer: P(a)=0.067P(a) = 0.067

⟨a|−⟩=12(12−32)\braket{a}{-} = \tfrac{1}{\sqrt2}\left(\tfrac12 - \tfrac{\sqrt3}{2}\right), so P(a)=2−34≈0.067P(a) = \tfrac{2-\sqrt{3}}{4} \approx 0.067.

The coefficient of ∣a⟩\ket a is the inner product ⟨a|ψ⟩\braket{a}{\psi}: multiply matching entries and add (all entries are real, so conjugating changes nothing). With ∣ψ⟩=∣−⟩\ket\psi = \ket- this is 12(12−32)\tfrac{1}{\sqrt2}\left(\tfrac12 - \tfrac{\sqrt3}{2}\right).

So P(a)=2−34≈0.067P(a) = \tfrac{2-\sqrt{3}}{4} \approx 0.067, and P(b)=1−P(a)P(b) = 1 - P(a).

Common slips

  • 0.2590.259: That is ∣⟨a|ψ⟩∣\abs{\braket{a}{\psi}}, the size of the amplitude. The Born rule squares it.
  • 0.9330.933: That is P(b)P(b), the other outcome. P(a)=∣⟨a|ψ⟩∣2P(a) = \abs{\braket{a}{\psi}}^2 uses the entries of ∣a⟩\ket a.
  • 12\frac{1}{2}: That is the probability of either 0/1 outcome. In this basis the amplitudes are different; compute ⟨a|ψ⟩\braket{a}{\psi}.

Check yourself

A qubit is prepared in 35∣0⟩+45∣1⟩\tfrac35\ket0 + \tfrac45\ket1. You apply HH and then measure in the 0/1 basis. What is the probability of reading 1?

P(1)=  ?P(1) = \;?

Show the answer

Answer: P(1)=150P(1) = \frac{1}{50}

After HH the amplitude on ∣1⟩\ket1 is (α−β)/2(\alpha - \beta)/\sqrt2 with α−β=−15\alpha - \beta = -\tfrac15, so P(1)=125/2=150P(1) = \tfrac{1}{25}\big/2 = \tfrac{1}{50}.

Reading 1 after HH is the outcome −- of a ± measurement. Rewrite in the ± basis: α∣0⟩+β∣1⟩=α+β2∣+⟩+α−β2∣−⟩\alpha\ket0 + \beta\ket1 = \tfrac{\alpha+\beta}{\sqrt2}\ket+ + \tfrac{\alpha-\beta}{\sqrt2}\ket-.

Here α=3/5\alpha = 3/5 and β=4/5\beta = 4/5, so α−β=−15\alpha - \beta = -\tfrac15 and ∣α−β∣2=125\abs{\alpha - \beta}^2 = \tfrac{1}{25}.

So P(−)=125/2=150P(-) = \tfrac{1}{25}\big/2 = \tfrac{1}{50}. Check: P(+)+P(−)=4950+150=1P(+) + P(-) = \tfrac{49}{50} + \tfrac{1}{50} = 1.

Common slips

  • 1625\frac{16}{25}: 1625\tfrac{16}{25} is P(1)P(1), the probability of reading 1 without the HH. In the ± basis the question is different: the coefficient of ∣−⟩\ket- is (α−β)/2(\alpha - \beta)/\sqrt2, not β\beta.
  • 4950\frac{49}{50}: That is P(+)P(+). You used α+β\alpha + \beta; the coefficient of ∣−⟩\ket- has α−β\alpha - \beta.
  • 152\frac{1}{5\sqrt{2}}: That is ∣α−β∣/2\abs{\alpha - \beta}/\sqrt2, the size of the amplitude. The Born rule squares it: P=∣α−β∣2/2P = \abs{\alpha - \beta}^2/2.
  • 125\frac{1}{25}: That is ∣α−β∣2\abs{\alpha - \beta}^2. The coefficient carries a 1/21/\sqrt2, so divide by 2.

Check yourself

For a qubit in ∣−⟩\ket-, which measurement has an outcome that is certain?

  1. AA measurement in the 0/1 basis
  2. BAny measurement: the state is definite, so every result is predictable
  3. CA measurement in the ± basis
  4. DNone: quantum measurement results are always random
Show the answer

Answer: C. A measurement in the ± basis

∣−⟩\ket- belongs to the ± basis, so a measurement there gives −- every time. In the 0/1 basis, ∣−⟩=(∣0⟩−∣1⟩)/2\ket- = (\ket0 - \ket1)/\sqrt2 splits 50/50.

Why not the others

  • A. In the 0/1 basis, ∣−⟩=(∣0⟩−∣1⟩)/2\ket- = (\ket0 - \ket1)/\sqrt2, so the two outcomes each have probability 12\tfrac12. It is certain only in the ± basis, which contains it.
  • B. A common idea is that a definite state is definite in every basis. But ∣−⟩=(∣0⟩−∣1⟩)/2\ket- = (\ket0 - \ket1)/\sqrt2, so in the 0/1 basis each outcome has probability 12\tfrac12. A state is certain in exactly one basis, the one that contains it.
  • D. ∣−⟩\ket- is one of the two states of the ± basis, so measuring in that basis gives −- every time. Randomness comes from measuring in a basis that does not contain the state.

12 / 12 · Recap

Recap

From memory

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

  1. How do you find the outcome probabilities for a measurement in a basis {∣a⟩,∣b⟩}\{\ket a, \ket b\} other than 0/1?

    Show the key points
    • Write ∣ψ⟩=α′∣a⟩+β′∣b⟩\ket\psi = \alpha'\ket a + \beta'\ket b (the coefficient of ∣a⟩\ket a is ⟨a|ψ⟩\braket{a}{\psi}, with conjugated entries of ∣a⟩\ket a)
    • P(a)=∣α′∣2P(a) = \abs{\alpha'}^2 and P(b)=∣β′∣2P(b) = \abs{\beta'}^2
    • Afterwards the qubit is in ∣a⟩\ket a or ∣b⟩\ket b
    • A state is certain only in the basis that contains it
  2. How do you measure in the ± basis with a 0/1 meter, and why does it work?

    Show the key points
    • Apply HH, then measure in the 0/1 basis; 0 means ++, 1 means −-
    • H∣+⟩=∣0⟩H\ket+ = \ket0 and H∣−⟩=∣1⟩H\ket- = \ket1, so HH moves the ± coefficients onto ∣0⟩\ket0 and ∣1⟩\ket1
    • This test separates ∣+⟩\ket+ from a coin of ∣0⟩\ket0/∣1⟩\ket1, which no 0/1 measurement can
  3. Explain the result of the zz (keep ++), xx (keep ++), zz cascade with the qubit model.

    Show the key points
    • An analyzer is a measurement along its axis: z↔{∣0⟩,∣1⟩}z \leftrightarrow \{\ket0, \ket1\}, x↔{∣+⟩,∣−⟩}x \leftrightarrow \{\ket+, \ket-\}
    • It leaves each atom in its exit’s state, so the xx analyzer’s ++ beam is in ∣+⟩\ket+ whatever came before
    • ∣+⟩\ket+ splits 50/50 at zz; overall 12⋅12⋅12=18\tfrac12\cdot\tfrac12\cdot\tfrac12 = \tfrac18 at each final exit
    • Directions 90°90° apart in space are not orthogonal states (inner product 1/21/\sqrt2)

Key ideas

  1. To measure in a basis {∣a⟩,∣b⟩}\{\ket a, \ket b\}, write ∣ψ⟩=α′∣a⟩+β′∣b⟩\ket\psi = \alpha'\ket a + \beta'\ket b; then P(a)=∣α′∣2P(a) = \abs{\alpha'}^2, with α′=⟨a|ψ⟩\alpha' = \braket{a}{\psi}. Afterwards the qubit is in ∣a⟩\ket a or ∣b⟩\ket b.

  2. Certainty depends on the basis. A state is certain in exactly one basis, the one that contains it: ∣0⟩\ket0 is certain in 0/1 and 50/50 in ±.

  3. A ± measurement is HH followed by a 0/1 meter, read as 0 → ++ and 1 → −-. It tells ∣+⟩\ket+ apart from a coin that gives ∣0⟩\ket0 or ∣1⟩\ket1.

  4. A Stern–Gerlach analyzer measures along its own axis of the Bloch sphere. A state along one axis splits 50/50 at an analyzer turned 90°90° from it; only opposite directions give orthogonal states.

  5. In a cascade, multiply the probabilities of the exits you follow. Each analyzer leaves the atom in its exit’s state, so zz, xx, zz sends 18\tfrac18 of the oven’s atoms to each final exit.

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