Skip to the content
Kets & Gates homeOpen the app

Lesson 2: Phase and the ± basis

A global phase changes nothing; a relative phase shows up in another basis

about 25 min11 partsbest after lesson 1

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

Before you start

Lesson 1 measured only in the 0/1 basis, where ∣+⟩\ket+ gives 0 or 1 just as a fair coin would. This lesson looks at the part of an amplitude that the 0/1 basis can’t see, its phase, and at a second basis that can.

By the end of this lesson you can:

  • explain why multiplying a whole state by eiγe^{i\gamma} changes no prediction;
  • show that a phase on one term changes what a ± measurement gives;
  • rewrite a state in the ± basis and use P(±)=∣α±β∣2/2P(\pm) = \abs{\alpha\pm\beta}^2/2;
  • tell a superposition from a 50/50 coin by experiment.

Check yourself

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

Register A holds 1000 qubits, each prepared in ∣+⟩=12(∣0⟩+∣1⟩){\ket{+} = \tfrac{1}{\sqrt2}(\ket0 + \ket1)}. Register B holds 1000 qubits, each prepared as ∣0⟩\ket0 or ∣1⟩\ket1 by a fair coin toss; nobody tells you which. Can any experiment tell the two registers apart?

  1. ANo. Both give 0 or 1 with probability 1/2, so they are physically the same.
  2. BYes. In the 0/1 basis A splits exactly 500/500, while B fluctuates.
  3. CYes. Measure every qubit in a different basis, the ± basis: A gives the same outcome every time, B does not.
  4. DThey differ in principle, but no experiment could ever show it.
Show the answer

Answer: C. Yes. Measure every qubit in a different basis, the ± basis: A gives the same outcome every time, B does not.

Measured in the ± basis, every qubit of A gives ++, while B gives ++ about half the time. This lesson shows why.

Why not the others

  • A. A very common idea is that ∣+⟩\ket{+} is a coin you haven't looked at yet. If it were, nothing could tell A from B. But measure both in the ± basis: every qubit of A gives ++, while B gives ++ only about half the time. ∣+⟩\ket{+} is one definite state; its 50/50 belongs to the 0/1 basis, not to your ignorance.
  • B. Probabilities predict frequencies, not exact counts. A scatters around 500 just as B does, so in the 0/1 basis the two registers give the same statistics. It is tempting because "superposition" sounds more orderly than a coin, but you need a second basis to see the difference.
  • D. The difference is not just a matter of words. Measure every qubit in the ± basis: A gives ++ every time, B only about half the time. It is tempting to think so because the 0/1 basis, the only measurement met so far, really cannot see it.

Refresher: Complex numbers Phase is the angle of a complex number. Open this if reiφre^{i\varphi} or ∣eiφ∣=1\abs{e^{i\varphi}} = 1 is rusty.

2 / 11 · Learn

Phase on a dial

Every amplitude is a complex number, and any complex number can be written reiφre^{i\varphi}: a size r≥0r \ge 0 (its magnitude, r=∣z∣r = \abs{z}) and a phase φ\varphi, which is an angle. The circle notation below draws both. Each basis state gets a circle. The filled disc's radius is the size rr; the needle points along the phase, with 0° to the right and angles growing counter-clockwise. The exact amplitude, its phase in degrees and the probability are printed underneath, so you never have to judge an angle by eye.

Here is 12∣0⟩+12eiπ/3∣1⟩\tfrac{1}{\sqrt2}\ket0 + \tfrac{1}{\sqrt2}e^{i\pi/3}\ket1:

Check yourself

You measure this state in the 0/1 basis. What is P(1)P(1)?

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

Hints
  1. What is the size of eiπ/3e^{i\pi/3}?
  2. A probability is ∣amplitude∣2\abs{\text{amplitude}}^2, and ∣eiφ∣=1\abs{e^{i\varphi}} = 1 for any angle.
Show the answer

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

The needle's direction does not affect the size: ∣eiπ/3∣=1\abs{e^{i\pi/3}} = 1, so P(1)=(1/2)2=1/2P(1) = (1/\sqrt2)^2 = 1/2, the same as the disc radius squared.

Common slips

  • −14+34i-\frac{1}{4}+\frac{\sqrt{3}}{4}i: That squares the amplitude itself, phase and all. The Born rule squares the size: ∣eiπ/3/2∣2=∣eiπ/3∣2⋅12=12\abs{e^{i\pi/3}/\sqrt2}^2 = \abs{e^{i\pi/3}}^2 \cdot \tfrac12 = \tfrac12, because a phase factor has size 1. A probability is always a real number between 0 and 1.
  • 18\frac{1}{8}: That keeps only the real part, cos⁡(π/3)/2\cos(\pi/3)/\sqrt2, before squaring. Use the whole amplitude: its size is 1/21/\sqrt2 whatever its phase, so P(1)=1/2P(1) = 1/2.

Now multiply the whole state by one phase factor eiγe^{i\gamma}. Every size stays the same and every needle turns by the same angle γ\gamma. This is a global phase. Since no size changes, no 0/1 probability changes. In fact no measurement in any basis can detect it (you will check this for the ± basis shortly), so ∣ψ⟩\ket\psi and eiγ∣ψ⟩e^{i\gamma}\ket\psi describe the same physical state.

Check yourself

Which of these is the same physical state as ∣+⟩=12(∣0⟩+∣1⟩){\ket{+} = \tfrac{1}{\sqrt2}(\ket0 + \ket1)}?

  1. A12(∣0⟩−∣1⟩)\tfrac{1}{\sqrt2}(\ket0 - \ket1)
  2. B12(∣0⟩+i∣1⟩)\tfrac{1}{\sqrt2}(\ket0 + i\ket1)
  3. C−12(∣0⟩+∣1⟩)-\tfrac{1}{\sqrt2}(\ket0 + \ket1)
  4. DNone of these: any change of sign or phase gives a different state.
Show the answer

Answer: C. −12(∣0⟩+∣1⟩)-\tfrac{1}{\sqrt2}(\ket0 + \ket1)

−1=eiπ-1 = e^{i\pi} multiplies both amplitudes, so both needles turn by 180° together: a global phase. The other states change one needle only.

Why not the others

  • A. Same sizes, so the same 0/1 statistics, but here only the ∣1⟩\ket1 needle turned (by 180°). The needles no longer point the same way, so this is not a global phase. It is the state ∣−⟩\ket{-}, and the next segment shows a measurement that tells it apart from ∣+⟩\ket{+}.
  • B. Equal sizes again, but only the ∣1⟩\ket1 needle turned (by 90°), so the angle between the needles changed. Matching 0/1 probabilities are not enough to call two states the same.
  • D. A common idea is that any sign change makes a new state. Multiplying every amplitude by −1-1 turns both needles by 180° together and changes no size, so no probability in any basis changes. Only phase differences between the terms are physical.

3 / 11 · Learn

A second basis: plus and minus

Compare ∣+⟩\ket{+} with ∣−⟩=12(∣0⟩−∣1⟩)\ket{-} = \tfrac{1}{\sqrt2}(\ket0 - \ket1). Their sizes match, so in the 0/1 basis both give 50/50. Yet they are not related by a global phase. To see the difference you need a measurement that asks a different question. Any two orthogonal unit vectors can serve as a measurement basis, as the inner-product refresher explains, and {∣+⟩,∣−⟩}\{\ket{+}, \ket{-}\} is such a pair: the ± basis. Its outcomes are ++ and −-. Measured in it, ∣+⟩\ket{+} gives ++ every time and ∣−⟩\ket{-} gives −- every time. How such a measurement is built comes in Lesson 5.

Check yourself

In which basis do ∣+⟩\ket{+} and ∣−⟩\ket{-} give identical statistics?

  1. AOnly the 0/1 basis.
  2. BNeither: they are different states, so every measurement can tell them apart.
  3. CBoth bases: they differ only by a sign.
  4. DOnly the ± basis.
Hints
  1. In the 0/1 basis, what decides the probabilities: the sizes or the signs?
  2. In the lab, measure the preset ∣+⟩\ket{+} and then ∣−⟩\ket{-} 1000 times in Z, then in X, and compare the histograms.
Show the answer

Answer: A. Only the 0/1 basis.

Equal sizes give equal 0/1 statistics (50/50). The ± basis is where they differ completely: ++ every time versus −- every time.

Why not the others

  • B. Different states need not differ in every basis. In the 0/1 basis both give 0 or 1 with probability 1/2 each, so that measurement cannot separate them; the ± basis can.
  • C. The sign sits on one term only, so it is a relative phase, not a global one. Try it in the lab: in the X (±) basis the two histograms are opposite. It is tempting because their 0/1 histograms really are identical.
  • D. In the ± basis they are as different as possible: ∣+⟩\ket{+} gives ++ every time and ∣−⟩\ket{-} gives −- every time. It is in the 0/1 basis that both give 50/50.

To get the ± odds of any state, rewrite it in terms of ∣+⟩\ket{+} and ∣−⟩\ket{-}, then apply the Born rule to the new coefficients:

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

Expand the right-hand side with the definitions of ∣±⟩\ket{\pm} and you get back the left. So P(+)=∣α+β∣2/2{P(+) = \abs{\alpha+\beta}^2/2} and P(−)=∣α−β∣2/2{P(-) = \abs{\alpha-\beta}^2/2}. Check with ∣−⟩\ket{-}: α=12\alpha = \tfrac{1}{\sqrt2} and β=−12\beta = -\tfrac{1}{\sqrt2} give P(+)=0{P(+) = 0}.

Check yourself

You measure 12(∣0⟩+i∣1⟩)\tfrac{1}{\sqrt2}(\ket0 + i\ket1) in the ± basis. What is P(+)P(+)?

P(+)=  ?P(+) = \;?

Hints
  1. Which coefficient goes with ∣+⟩\ket{+} when you rewrite the state, and what are α\alpha and β\beta here?
  2. P(+)=∣α+β∣2/2P(+) = \abs{\alpha+\beta}^2/2, with α+β=(1+i)/2\alpha + \beta = (1 + i)/\sqrt2.
  3. ∣α+β∣2=∣1+i∣2/2=(12+12)/2=1\abs{\alpha+\beta}^2 = \abs{1+i}^2/2 = (1^2 + 1^2)/2 = 1. Now divide by 2.
Show the answer

Answer: P(+)=12P(+) = \frac{1}{2}

P(+)=∣1+i∣2/4=2/4=1/2P(+) = \abs{1+i}^2/4 = 2/4 = 1/2. This state, called ∣+i⟩\ket{+i}, gives 50/50 in both bases you know so far; Lesson 3 shows where it sits on the Bloch sphere.

Common slips

  • 11: That treats ii as if it were 1, as for ∣+⟩\ket{+}. The phase counts: α+β=(1+i)/2\alpha + \beta = (1 + i)/\sqrt2 and ∣1+i∣2=2\abs{1+i}^2 = 2, so P(+)=2/4=1/2P(+) = 2/4 = 1/2.
  • 00: That treats ii as −1-1, which would give ∣−⟩\ket{-}. Here ∣1+i∣2=12+12=2\abs{1 + i}^2 = 1^2 + 1^2 = 2, so P(+)=2/4=1/2P(+) = 2/4 = 1/2.

4 / 11 · Learn

Global phase, relative phase

Now separate the two kinds of phase. Write a state with equal sizes as eiγ⋅12(∣0⟩+eiφ∣1⟩)e^{i\gamma}\cdot\tfrac{1}{\sqrt2}(\ket0 + e^{i\varphi}\ket1). The global phase γ\gamma turns both needles together. The relative phase φ\varphi is the angle between the needles: ∣+⟩\ket{+} has φ=0\varphi = 0 and ∣−⟩\ket{-} has φ=180°\varphi = 180°. In the lab, move one slider at a time and watch both rows of probabilities.

Check yourself

Which slider changes a probability in some basis?

  1. AOnly γ\gamma: turning both needles is the bigger change.
  2. BBoth of them.
  3. CNeither: a phase never changes a probability.
  4. DOnly φ\varphi, the relative phase. It changes the ± probabilities, while the 0/1 ones stay at 50%.
Show the answer

Answer: D. Only φ\varphi, the relative phase. It changes the ± probabilities, while the 0/1 ones stay at 50%.

γ\gamma multiplies every amplitude, in every basis, by the same eiγe^{i\gamma}, so no probability changes. φ\varphi changes the angle between the needles: the 0/1 row stays at 50/50, but P(+)P(+) runs from 100% at φ=0\varphi = 0 to 0 at φ=180°\varphi = 180°.

Why not the others

  • A. Turning both needles by the same angle keeps every size and the angle between them, so every probability stays put. Drag γ\gamma all the way round and watch: neither row moves. It feels like a bigger change because two needles move instead of one.
  • B. Only φ\varphi does. Move γ\gamma alone: both needles turn, but the probabilities in both rows stay exactly the same, because ∣eiγz∣=∣z∣\abs{e^{i\gamma}z} = \abs{z} for every amplitude in every basis.
  • C. That is true in the 0/1 basis only. Set φ\varphi to 180° and the ± row goes from 100% ++ to 100% −-. A probability is a squared size, but in the ± basis the sizes are ∣α±β∣/2\abs{\alpha\pm\beta}/\sqrt2, and those depend on the angle between the needles.

Why can γ\gamma never matter? In the ± basis the coefficients are (α±β)/2{(\alpha\pm\beta)/\sqrt2}. Multiply both α\alpha and β\beta by eiγe^{i\gamma} and each becomes eiγ(α±β)/2{e^{i\gamma}(\alpha\pm\beta)/\sqrt2}: the same size, so the same probability. Any other basis works the same way, because each new coefficient is a fixed combination of α\alpha and β\beta, so a common factor comes straight out. Multiply β\beta alone by eiφe^{i\varphi} and the sum α+eiφβ\alpha + e^{i\varphi}\beta is no longer a common factor times α+β\alpha + \beta, so its size can change. One caution: a state with one term, such as eiπ/3∣1⟩e^{i\pi/3}\ket1, has no second needle to compare with, so a factor on that term is a global phase.

Check yourself

A state with equal sizes has its needles at 30° (on ∣0⟩\ket0) and 120° (on ∣1⟩\ket1). A second state has equal sizes and needles at 0° and 90°. What is the relationship?

  1. AOrthogonal states, because the needles turned by 30°.
  2. BDifferent states: each needle's direction is measurable.
  3. CSame physical state: both needles differ by 30°, and the angle between them is 90° in both.
Hints
  1. Turn both needles of the first state back by 30°. Where do they point now?
  2. Turning every needle by the same angle is a global phase. Compare the angle between the needles in each state.
Show the answer

Answer: C. Same physical state: both needles differ by 30°, and the angle between them is 90° in both.

Both states have relative phase 90°; the 30° offset is a global phase. Both are ∣+i⟩=12(∣0⟩+i∣1⟩)\ket{+i} = \tfrac{1}{\sqrt2}(\ket0 + i\ket1) up to a global phase.

Why not the others

  • A. Turning both needles by the same angle gives the same state, not an orthogonal one. Orthogonal states, like ∣+⟩\ket{+} and ∣−⟩\ket{-}, differ in the angle between the needles (0° versus 180°).
  • B. Turning both needles back by 30° is multiplying by e−iπ/6e^{-i\pi/6}, a global phase. What a measurement can see is the angle between the needles, 90° in both cases. In the lab, set φ=90°\varphi = 90° and move γ\gamma: nothing changes.
Why does the ± basis give 50% at both 90° and 270°?

Try it in the lab: φ=90°\varphi = 90° and φ=270°\varphi = 270° both give P(+)=50%P(+) = 50\%. In general P(+)=∣1+eiφ∣2/4=cos⁡2(φ/2){P(+) = \abs{1 + e^{i\varphi}}^2/4 = \cos^2(\varphi/2)}, which is the same for φ\varphi and −φ-\varphi. The two states are still different: a third basis, {∣+i⟩,∣−i⟩}\{\ket{+i}, \ket{-i}\} with ∣±i⟩=12(∣0⟩±i∣1⟩)\ket{\pm i} = \tfrac{1}{\sqrt2}(\ket0 \pm i\ket1), tells them apart. Lesson 3 shows all three bases on the Bloch sphere.

5 / 11 · Learn

Superposition or coin?

Back to the opening question. Register A holds 1000 copies of one definite state, ∣+⟩\ket{+}. Register B is a mixture: each qubit really is ∣0⟩\ket0 or ∣1⟩\ket1, set by a coin, and you just don't know which. Before you press anything, recall your opening guess and use the formula P(±)=∣α±β∣2/2P(\pm) = \abs{\alpha\pm\beta}^2/2 to predict what each register gives in each basis. Then run both measurements on both registers.

Check yourself

Source 1 emits ∣−⟩\ket{-} every time. Source 2 tosses a fair coin and emits ∣+⟩\ket{+} or ∣−⟩\ket{-}. Which measurement, repeated on many qubits from each source, tells the sources apart?

  1. AThe 0/1 basis.
  2. BNo measurement: both sources give 50/50.
  3. CThe ± basis.
  4. DEither basis works.
Show the answer

Answer: C. The ± basis.

In the ± basis Source 1 gives −- every time; Source 2 gives ++ or −- according to its coin, about half each. In the 0/1 basis both look like 50/50.

Why not the others

  • A. ∣+⟩\ket{+} and ∣−⟩\ket{-} both give 50/50 in the 0/1 basis, so both sources give 50/50 there. In the ± basis Source 1 gives −- every time and Source 2 splits about evenly.
  • B. They give 50/50 in the 0/1 basis only. Source 1 is a definite state, ∣−⟩\ket{-}, so in the ± basis it gives −- every time; Source 2's coin shows up as a 50/50 split there.
  • D. In the 0/1 basis both sources give 50/50, so that basis cannot separate them. Only the ± basis does.

6 / 11 · Explore

Is a definite state definite in every basis?

Predict, then see

A qubit in ∣0⟩\ket0 gives 0 every time it is measured in the 0/1 basis. You prepare 1000 fresh copies of ∣0⟩\ket0 and measure each one in the ± basis instead. What do you expect?

  1. A−- every time.
  2. BAbout half ++ and half −-.
  3. C++ every time: the qubit already has a definite value.
  4. DIt can't be done: only the 0/1 basis is a real measurement.
Show what happens

What happens: B. About half ++ and half −-.

Compare the two histograms with your prediction. Then pick, below, the explanation that fits what you saw.

Why not the others

  • A. Nothing in ∣0⟩\ket0 favours −-: with α=1\alpha = 1 and β=0\beta = 0 the formula gives P(−)=∣1−0∣2/2=1/2P(-) = \abs{1 - 0}^2/2 = 1/2.
  • C. A natural idea is that a qubit that is certain in one basis has a definite answer to every question. The data say otherwise: about half ++ and half −-. Certainty belongs to a state and a basis together.
  • D. Any orthonormal basis can be measured. In practice you apply a gate and then measure in the 0/1 basis (Lesson 5), and a Stern–Gerlach magnet turned along xx does the same job for an atom.

Check yourself

Which explanation fits the data: ∣0⟩\ket0 gives 0 every time in the 0/1 basis, yet about half ++ and half −- in the ± basis?

  1. AIn the ± basis only the ∣0⟩\ket0 amplitude counts: P(+)=∣α∣2/2=1/2{P(+) = \abs{\alpha}^2/2 = 1/2}.
  2. BThe ± measurement is less precise, so it scrambles the answer.
  3. C∣0⟩\ket0 is secretly a coin that is ∣+⟩\ket{+} or ∣−⟩\ket{-}, each half the time.
  4. DRewritten in the ± basis, ∣0⟩\ket0 has two coefficients of equal size, 1/21/\sqrt2 each, so each outcome has probability 1/21/2.
Show the answer

Answer: D. Rewritten in the ± basis, ∣0⟩\ket0 has two coefficients of equal size, 1/21/\sqrt2 each, so each outcome has probability 1/21/2.

Rewritten in the ± basis, ∣0⟩=12(∣+⟩+∣−⟩)\ket0 = \tfrac{1}{\sqrt2}(\ket{+} + \ket{-}), so P(+)=P(−)=1/2P(+) = P(-) = 1/2. A state can be certain in one basis and as uncertain as possible in another: ∣0⟩\ket0 is to the ± basis what ∣+⟩\ket{+} is to the 0/1 basis. Being definite is a property of a state together with a basis, not of the state alone.

Why not the others

  • A. Right number, wrong rule. Both amplitudes enter: P(±)=∣α±β∣2/2P(\pm) = \abs{\alpha\pm\beta}^2/2. Your rule would give ∣1⟩\ket1 a P(+)P(+) of 0, yet ∣1⟩\ket1 also gives 50/50 in the ± basis, and it would give ∣+⟩\ket{+} only 1/4 instead of 1.
  • B. The ± basis is just as sharp as the 0/1 basis: measured in it, ∣+⟩\ket{+} gives ++ every time. The 50/50 comes from the state, ∣0⟩=12(∣+⟩+∣−⟩)\ket0 = \tfrac{1}{\sqrt2}(\ket{+} + \ket{-}), not from a sloppy apparatus.
  • C. Such a coin would also give 0 and 1 equally often in the 0/1 basis, because ∣+⟩\ket{+} and ∣−⟩\ket{-} each do. ∣0⟩\ket0 gives 0 every time, so it is one definite state, a superposition of ∣+⟩\ket{+} and ∣−⟩\ket{-}, not a coin.

Check yourself

Now write ∣1⟩\ket1 in the ± basis: enter the coefficients of ∣+⟩\ket{+} and ∣−⟩\ket{-}.

Hints
  1. For ∣1⟩\ket1, what are α\alpha and β\beta?
  2. Use (α+β)/2(\alpha+\beta)/\sqrt2 and (α−β)/2(\alpha-\beta)/\sqrt2.
Show the answer

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

(α+β)/2=1/2(\alpha+\beta)/\sqrt2 = 1/\sqrt2 and (α−β)/2=−1/2(\alpha-\beta)/\sqrt2 = -1/\sqrt2, so ∣1⟩=12(∣+⟩−∣−⟩)\ket1 = \tfrac{1}{\sqrt2}(\ket{+} - \ket{-}). Like ∣0⟩\ket0, it gives 50/50 in the ± basis.

7 / 11 · Worked example

Rewriting a state in the ± basis

Worked example

A state with unequal sizes

Find the ± coefficients and probabilities of ∣ψ⟩=32∣0⟩+12∣1⟩\ket\psi = \tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1. (In the 0/1 basis its probabilities are 3/4 and 1/4.)

  1. Step 1

    Read off α=32\alpha = \tfrac{\sqrt3}{2} and β=12\beta = \tfrac12. The coefficient of ∣+⟩\ket{+} is α+β2\tfrac{\alpha+\beta}{\sqrt2} and that of ∣−⟩\ket{-} is α−β2\tfrac{\alpha-\beta}{\sqrt2}.

  2. Step 2

    α+β2=3+122≈0.966\dfrac{\alpha+\beta}{\sqrt2} = \dfrac{\sqrt3 + 1}{2\sqrt2} \approx 0.966 and α−β2=3−122≈0.259\dfrac{\alpha-\beta}{\sqrt2} = \dfrac{\sqrt3 - 1}{2\sqrt2} \approx 0.259.

  3. Step 3

    So ∣ψ⟩=3+122∣+⟩+3−122∣−⟩\ket\psi = \dfrac{\sqrt3+1}{2\sqrt2}\ket{+} + \dfrac{\sqrt3-1}{2\sqrt2}\ket{-}. Both coefficients are real, so each probability is just the coefficient squared.

  4. Your turn

    What is P(+)P(+) when ∣ψ⟩\ket\psi is measured in the ± basis? (An exact form such as (2+sqrt(3))/4 or a decimal is fine.)

    P(+)=  ?P(+) = \;?

    Hint
    1. Square the coefficient of ∣+⟩\ket{+} from Step 3.
    Show the answer

    Answer: P(+)=0.933P(+) = 0.933

    (3+122)2=3+23+18=2+34≈0.933\left(\dfrac{\sqrt3+1}{2\sqrt2}\right)^2 = \dfrac{3 + 2\sqrt3 + 1}{8} = \dfrac{2+\sqrt3}{4} \approx 0.933.

    Common slips

    • 34\frac{3}{4}: 0.75 is P(0)P(0), the probability in the 0/1 basis. This question is about the ± basis: square the coefficient of ∣+⟩\ket{+} from Step 3.
  5. Your turn

    And P(−)P(-)?

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

    Hint
    1. Square 3−122\tfrac{\sqrt3-1}{2\sqrt2}, or use P(+)+P(−)=1P(+) + P(-) = 1.
    Show the answer

    Answer: P(−)=0.067P(-) = 0.067

    (3−122)2=4−238=2−34≈0.067\left(\dfrac{\sqrt3-1}{2\sqrt2}\right)^2 = \dfrac{4 - 2\sqrt3}{8} = \dfrac{2-\sqrt3}{4} \approx 0.067, and 0.933+0.067=10.933 + 0.067 = 1. In the ± basis this state is more lopsided (93/7) than in the 0/1 basis (75/25).

    Common slips

    • 14\frac{1}{4}: 0.25 is P(1)P(1), the 0/1-basis probability. Square the coefficient of ∣−⟩\ket{-} instead.

Here is one more worked example with different numbers.

Another worked example

A second state

  1. ∣ψ⟩=35∣0⟩+45∣1⟩\ket\psi = \tfrac35\ket0 + \tfrac45\ket1, so α=35\alpha = \tfrac35 and β=45\beta = \tfrac45.

  2. Coefficient of ∣+⟩\ket{+}: 3/5+4/52=752\dfrac{3/5 + 4/5}{\sqrt2} = \dfrac{7}{5\sqrt2}. Coefficient of ∣−⟩\ket{-}: 3/5−4/52=−152\dfrac{3/5 - 4/5}{\sqrt2} = -\dfrac{1}{5\sqrt2}.

  3. Square them: P(+)=4950=0.98P(+) = \dfrac{49}{50} = 0.98 and P(−)=150=0.02P(-) = \dfrac{1}{50} = 0.02, which add to 1. The minus sign on the ∣−⟩\ket{-} coefficient disappears when you square, but it is still part of the state.

Check yourself

Now on your own. You measure 12(∣0⟩+eiπ/4∣1⟩)\tfrac{1}{\sqrt2}\left(\ket0 + e^{i\pi/4}\ket1\right) in the ± basis. What is P(−)P(-)?

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

Hints
  1. Which formula gives P(−)P(-) from α\alpha and β\beta?
  2. P(−)=∣α−β∣2/2P(-) = \abs{\alpha-\beta}^2/2, and α−β=(1−eiφ)/2\alpha-\beta = (1 - e^{i\varphi})/\sqrt2.
  3. ∣1−eiφ∣2=2−2cos⁡φ\abs{1 - e^{i\varphi}}^2 = 2 - 2\cos\varphi.
Show the answer

Answer: P(−)=0.146P(-) = 0.146

α−β=(1−eiπ/4)/2\alpha - \beta = (1 - e^{i\pi/4})/\sqrt2, and ∣1−eiπ/4∣2=2−2cos⁡45°=2−2\abs{1 - e^{i\pi/4}}^2 = 2 - 2\cos 45° = 2-\sqrt2. So P(−)=∣α−β∣2/2=∣1−eiπ/4∣2/4=2−24P(-) = \abs{\alpha-\beta}^2/2 = \abs{1 - e^{i\pi/4}}^2/4 = \tfrac{2-\sqrt2}{4}.

Common slips

  • 00: That treats eiπ/4e^{i\pi/4} as if it were 1. A phase on one term changes ∣α−β∣\abs{\alpha-\beta}: here ∣1−eiπ/4∣2=2−2\abs{1 - e^{i\pi/4}}^2 = 2-\sqrt2.
  • 12\frac{1}{2}: 1/2 is the 0/1-basis probability. In the ± basis use ∣α−β∣2/2\abs{\alpha-\beta}^2/2.
  • 0.2930.293: You found ∣α−β∣2\abs{\alpha-\beta}^2; divide by 2.

8 / 11 · Practice

Practice

Check yourself

Can any measurement tell ∣ψ⟩=35∣0⟩+45∣1⟩\ket\psi = \tfrac35\ket0 + \tfrac45\ket1 from ∣χ⟩=−35∣0⟩+45∣1⟩\ket\chi = -\tfrac35\ket0 + \tfrac45\ket1?

  1. AYes. They differ by a relative phase: the 0/1 statistics agree, but a ± measurement tells them apart.
  2. BYes. Any change of phase, even one on every term, makes a different state.
  3. CNo. They differ only by a global phase, so every probability in every basis is the same.
  4. DNo. Their 0/1 probabilities are equal, and that is all a measurement can show.
Hints
  1. Divide each amplitude of ∣χ⟩\ket\chi by the matching amplitude of ∣ψ⟩\ket\psi. Are the two ratios equal?
  2. Equal ratios mean one common factor eiγe^{i\gamma}: a global phase. Different ratios mean a relative phase.
  3. Compare P(+)P(+) for the two states using ∣α+β∣2/2\abs{\alpha+\beta}^2/2.
Show the answer

Answer: A. Yes. They differ by a relative phase: the 0/1 statistics agree, but a ± measurement tells them apart.

Here only the ∣0⟩\ket0 amplitude changes sign: a relative phase. In the ± basis P(+)P(+) is 98% for ∣ψ⟩\ket\psi but 2% for ∣χ⟩\ket\chi.

The two ratios differ: only the ∣0⟩\ket0 amplitude changes sign. The 0/1 probabilities match, but the relative phase does not. In the ± basis P(+)P(+) is 98% for ∣ψ⟩\ket\psi but 2% for ∣χ⟩\ket\chi.

Why not the others

  • B. Right verdict, wrong reason. A phase on every term would change nothing; what matters here is that only the ∣0⟩\ket0 amplitude changes sign, a relative phase. In the ± basis P(+)P(+) is 98% for ∣ψ⟩\ket\psi but 2% for ∣χ⟩\ket\chi.
  • C. Look again: only the ∣0⟩\ket0 amplitude changes sign, so the needles do not turn together. That is a relative phase. In the ± basis P(+)P(+) is 98% for ∣ψ⟩\ket\psi but 2% for ∣χ⟩\ket\chi.
  • D. Equal 0/1 probabilities do not make equal states. Here only the ∣0⟩\ket0 amplitude changes sign. In the ± basis P(+)P(+) is 98% for ∣ψ⟩\ket\psi but 2% for ∣χ⟩\ket\chi.

Check yourself

You measure 25∣0⟩−15∣1⟩\tfrac{2}{\sqrt5}\ket0 - \tfrac{1}{\sqrt5}\ket1 in the ± basis. What is P(−)P(-)?

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

Hints
  1. Which coefficient goes with ∣−⟩\ket{-} when you rewrite the state?
  2. The ∣−⟩\ket{-} coefficient is (α−β)/2(\alpha-\beta)/\sqrt2, and P(−)P(-) is its size squared.
  3. Here α=25\alpha = \tfrac{2}{\sqrt5} and β=−15\beta = -\tfrac{1}{\sqrt5}.
Show the answer

Answer: P(−)=910P(-) = \frac{9}{10}

α=25\alpha = \tfrac{2}{\sqrt5}, β=−15\beta = -\tfrac{1}{\sqrt5}, so P(−)=12∣α−β∣2=12(25+15)2=910P(-) = \tfrac12\abs{\alpha-\beta}^2 = \tfrac12\left(\tfrac{2}{\sqrt5} + \tfrac{1}{\sqrt5}\right)^2 = \tfrac{9}{10}.

Common slips

  • 15\frac{1}{5}: That is P(1)P(1) in the 0/1 basis. The ± basis needs the coefficient of ∣−⟩\ket{-}: (α−β)/2(\alpha - \beta)/\sqrt2.
  • 95\frac{9}{5}: That is ∣α−β∣2\abs{\alpha-\beta}^2. You still need to divide by 2.
  • 110\frac{1}{10}: That is P(+)P(+). For P(−)P(-) use α−β\alpha - \beta.

Check yourself

Write 35∣0⟩+45∣1⟩\tfrac35\ket0 + \tfrac45\ket1 in the ± basis: enter the coefficients of ∣+⟩\ket{+} and ∣−⟩\ket{-}.

Hints
  1. What are α\alpha and β\beta here?
  2. The coefficients are (α+β)/2(\alpha+\beta)/\sqrt2 on ∣+⟩\ket{+} and (α−β)/2(\alpha-\beta)/\sqrt2 on ∣−⟩\ket{-}.
  3. The ∣+⟩\ket{+} coefficient is 752\tfrac{7}{5\sqrt2}.
Show the answer

Answer: ∣+⟩=752,∣−⟩=−152\ket{+} = \frac{7}{5\sqrt{2}},\quad \ket{-} = -\frac{1}{5\sqrt{2}}

With α\alpha and β\beta read from 35∣0⟩+45∣1⟩\tfrac35\ket0 + \tfrac45\ket1: α+β2=752\tfrac{\alpha+\beta}{\sqrt2} = \tfrac{7}{5\sqrt2} and α−β2=−152\tfrac{\alpha-\beta}{\sqrt2} = -\tfrac{1}{5\sqrt2}. Their sizes squared add to 1.

9 / 11 · Explain

Two students disagree

Explain it

Ana says eiπ/3∣1⟩e^{i\pi/3}\ket1 and ∣1⟩\ket1 are physically the same state. Ben says that, by the same logic, 12(∣0⟩+eiπ/3∣1⟩)\tfrac{1}{\sqrt2}(\ket0 + e^{i\pi/3}\ket1) and 12(∣0⟩+∣1⟩)\tfrac{1}{\sqrt2}(\ket0 + \ket1) are also the same. Who is right, and why?

Show a model answer

Ana is right. In her pair the factor eiπ/3e^{i\pi/3} multiplies the whole state, a global phase, so every ∣amplitude∣2\abs{\text{amplitude}}^2 in every basis is unchanged. Ben is wrong. In his pair the phase sits on one term only, so it changes the relative phase between ∣0⟩\ket0 and ∣1⟩\ket1. The 0/1 statistics still match (50/50), but in the ± basis P(+)P(+) is 3/43/4 for his first state and 11 for ∣+⟩\ket{+}.

A good answer covers

  • Ana is right: a global phase multiplies every amplitude by the same factor, so no probability in any basis changes.
  • Ben is wrong: in his pair the phase is on one term only, which changes the relative phase.
  • Names a measurement that shows the difference: the ± basis, where P(+)P(+) is 3/43/4 instead of 11.

10 / 11 · Mastery check

Mastery check

Check yourself

This was your opening guess. Register A holds 1000 qubits, each prepared in ∣+⟩=12(∣0⟩+∣1⟩){\ket{+} = \tfrac{1}{\sqrt2}(\ket0 + \ket1)}. Register B holds 1000 qubits, each prepared as ∣0⟩\ket0 or ∣1⟩\ket1 by a fair coin toss; nobody tells you which. Can any experiment tell the two registers apart?

  1. ANo. Both give 0 or 1 with probability 1/2, so they are physically the same.
  2. BYes. In the 0/1 basis A splits exactly 500/500, while B fluctuates.
  3. CThey differ in principle, but no experiment could ever show it.
  4. DYes. Measure every qubit in a different basis, the ± basis: A gives the same outcome every time, B does not.
Show the answer

Answer: D. Yes. Measure every qubit in a different basis, the ± basis: A gives the same outcome every time, B does not.

In the ± basis every qubit of A gives ++; B gives ++ about half the time. In the 0/1 basis they look alike.

A superposition is a definite state. ∣+⟩\ket{+} gives ++ with certainty in the ± basis, while each of B's qubits (∣0⟩\ket0 or ∣1⟩\ket1) gives ++ with probability 1/2. Measuring every qubit in the ± basis therefore separates the registers; the 0/1 basis cannot.

Why not the others

  • A. A very common idea is that ∣+⟩\ket{+} is a coin you haven't looked at yet. If it were, nothing could tell A from B. But measure both in the ± basis: every qubit of A gives ++, while B gives ++ only about half the time. ∣+⟩\ket{+} is one definite state; its 50/50 belongs to the 0/1 basis, not to your ignorance.
  • B. Probabilities predict frequencies, not exact counts. A scatters around 500 just as B does, so in the 0/1 basis the two registers give the same statistics. It is tempting because "superposition" sounds more orderly than a coin, but you need a second basis to see the difference.
  • C. The difference is not just a matter of words. Measure every qubit in the ± basis: A gives ++ every time, B only about half the time. It is tempting to think so because the 0/1 basis, the only measurement met so far, really cannot see it.

Check yourself

Consider ∣a⟩=32∣0⟩+12∣1⟩\ket a = \tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1, ∣b⟩=−i32∣0⟩−i12∣1⟩\ket b = -i\tfrac{\sqrt3}{2}\ket0 - i\tfrac12\ket1 and ∣c⟩=32∣0⟩−12∣1⟩\ket c = \tfrac{\sqrt3}{2}\ket0 - \tfrac12\ket1. Which of the three pairs can some measurement tell apart?

  1. Aaa–cc and bb–cc, but not aa–bb
  2. BOnly aa–cc
  3. COnly aa–bb: changing every term is a bigger change than changing one.
  4. DAll three pairs: they all differ in sign or phase.
  5. ENo pair: all three have the same 0/1 statistics.
Show the answer

Answer: A. aa–cc and bb–cc, but not aa–bb

∣b⟩\ket b is ∣a⟩\ket a times one common factor (a global phase). ∣c⟩\ket c flips the sign of one term (a relative phase): in the ± basis P(+)P(+) is 93.3% for ∣a⟩\ket a and 6.7% for ∣c⟩\ket c, and ∣b⟩\ket b behaves exactly like ∣a⟩\ket a.

∣b⟩\ket b is ∣a⟩\ket a multiplied by −i-i, so no measurement separates them. ∣c⟩\ket c changes the sign of the ∣1⟩\ket1 term only: the 0/1 statistics match, but in the ± basis P(+)P(+) is 93.3% for ∣a⟩\ket a and 6.7% for ∣c⟩\ket c. So aa–cc and bb–cc can be told apart.

Why not the others

  • B. ∣b⟩\ket b is physically the same state as ∣a⟩\ket a, so any measurement that separates aa from cc also separates bb from cc.
  • C. It is the other way round. Multiplying every amplitude by the same factor is a global phase and invisible; changing one term is a relative phase.
  • D. ∣b⟩\ket b is ∣a⟩\ket a times one common factor, −i-i: a global phase, which changes no probability in any basis.
  • E. Equal 0/1 statistics do not make states equal: in the ± basis P(+)P(+) is 93.3% for ∣a⟩\ket a and 6.7% for ∣c⟩\ket c.

Check yourself

The state [1232]\begin{bmatrix} \tfrac12 \\ \tfrac{\sqrt3}{2} \end{bmatrix} is measured in the ± basis. What is P(+)P(+)?

P(+)=  ?P(+) = \;?

Show the answer

Answer: P(+)=0.933P(+) = 0.933

α=12\alpha = \tfrac12, β=32\beta = \tfrac{\sqrt3}{2}, so P(+)=12∣α+β∣2=12(12+32)2=2+34P(+) = \tfrac12\abs{\alpha+\beta}^2 = \tfrac12\left(\tfrac12 + \tfrac{\sqrt3}{2}\right)^2 = \tfrac{2+\sqrt3}{4}.

Common slips

  • 14\frac{1}{4}: That is P(0)P(0) in the 0/1 basis. In the ± basis use ∣α+β∣2/2\abs{\alpha+\beta}^2/2.
  • 1.8661.866: That is ∣α+β∣2\abs{\alpha+\beta}^2; divide by 2.

Check yourself

A lab says its source emits ∣−⟩\ket{-} every time. A rival says the source really tosses a fair coin and emits ∣0⟩\ket{0} or ∣1⟩\ket{1}. You may measure many qubits from the source, all in one basis. Which plan settles the dispute?

  1. AMeasure in the 0/1 basis. The lab is right if every outcome is the same.
  2. BMeasure in the 0/1 basis. The lab is right if the split is exactly 50/50.
  3. CNo plan can settle it: both sources give 50/50.
  4. DMeasure in the ± basis. The lab is right if every outcome is −-.
Show the answer

Answer: D. Measure in the ± basis. The lab is right if every outcome is −-.

In the ± basis ∣−⟩\ket{-} gives −- every time, while ∣0⟩\ket{0} and ∣1⟩\ket{1} each give −- with probability 1/2.

Pick the basis in which the claimed state is certain: the ± basis. There the lab predicts −- on every qubit, and the coin predicts −- about half the time. In the 0/1 basis both predict about 50/50.

Why not the others

  • A. A definite state is certain in one basis only. ∣−⟩\ket{-} is certain in the ± basis; in the 0/1 basis it gives both outcomes equally often, just like the coin.
  • B. Both claims predict about 50/50 in the 0/1 basis, and neither predicts an exact split: counts scatter around 50%. That basis cannot settle it.
  • C. They give 50/50 in the 0/1 basis only. ∣−⟩\ket{-} is a definite state: in the ± basis it gives −- every time, while each coin-toss qubit gives −- only half the time.

Check yourself

You measure −(32∣0⟩+12∣1⟩)-\left(\tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1\right) in the ± basis. What is P(−)P(-)?

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

Show the answer

Answer: P(−)=0.067P(-) = 0.067

The factor in front multiplies every amplitude, so it is a global phase and changes nothing. Use 32∣0⟩+12∣1⟩\tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1: α=32\alpha = \tfrac{\sqrt3}{2}, β=12\beta = \tfrac12, so P(−)=12∣α−β∣2=12(32−12)2=2−34P(-) = \tfrac12\abs{\alpha-\beta}^2 = \tfrac12\left(\tfrac{\sqrt3}{2} - \tfrac12\right)^2 = \tfrac{2-\sqrt3}{4}.

Common slips

  • 0.9330.933: That applies −1-1 to the first term only. The factor multiplies the whole state, a global phase, so P(−)P(-) is the same as for 32∣0⟩+12∣1⟩\tfrac{\sqrt3}{2}\ket0 + \tfrac12\ket1.

11 / 11 · Recap

Recap

From memory

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

  1. What is the difference between a global phase and a relative phase, and which one can a measurement detect?

    Show the key points
    • A global phase multiplies every amplitude by the same eiγe^{i\gamma}: every needle turns together.
    • It changes no probability in any basis, so ∣ψ⟩\ket\psi and eiγ∣ψ⟩e^{i\gamma}\ket\psi are the same physical state.
    • A relative phase changes the angle between the terms: the 0/1 statistics stay the same, but the ± statistics can change.
  2. How do you find the ± basis probabilities of α∣0⟩+β∣1⟩\alpha\ket0 + \beta\ket1?

    Show the key points
    • Rewrite the state: coefficient (α+β)/2(\alpha+\beta)/\sqrt2 on ∣+⟩\ket{+} and (α−β)/2(\alpha-\beta)/\sqrt2 on ∣−⟩\ket{-}.
    • P(±)=∣α±β∣2/2P(\pm) = \abs{\alpha\pm\beta}^2/2.
    • Example: ∣0⟩\ket0 gives 50/50 in the ± basis, though it is certain in the 0/1 basis.
  3. How can you tell 1000 copies of ∣+⟩\ket{+} from 1000 coin-toss qubits, each ∣0⟩\ket0 or ∣1⟩\ket1?

    Show the key points
    • In the 0/1 basis both give about 50/50.
    • In the ± basis ∣+⟩\ket{+} gives ++ every time, while the coin-toss qubits give ++ about half the time.
    • A superposition is a definite state, not ignorance about a hidden 0 or 1.

Key ideas

  1. An amplitude has a size and a phase. In circle notation the disc radius is the size and the needle is the phase.

  2. A global phase eiγ∣ψ⟩e^{i\gamma}\ket\psi turns every needle together and changes no prediction in any basis.

  3. A relative phase, the angle between the needles, is physical. It is invisible in the 0/1 basis and can show up in the ± basis: ∣+⟩\ket{+} and ∣−⟩\ket{-} differ only in this way.

  4. In the ± basis, α∣0⟩+β∣1⟩=α+β2∣+⟩+α−β2∣−⟩\alpha\ket0 + \beta\ket1 = \tfrac{\alpha+\beta}{\sqrt2}\ket{+} + \tfrac{\alpha-\beta}{\sqrt2}\ket{-}, so P(±)=∣α±β∣2/2P(\pm) = \abs{\alpha\pm\beta}^2/2.

  5. Certainty belongs to a state and a basis together: ∣0⟩\ket0 is certain in the 0/1 basis and 50/50 in the ± basis. A ± measurement also tells a superposition from a 50/50 coin.

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