Lesson 1: Qubits and measurement
Kets, amplitudes, the Born rule, and what a measurement leaves behind
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
Quantum computing starts from a big claim: computers built on quantum mechanics could solve some problems, such as factoring large numbers or simulating molecules, far faster than any known classical method. All of it rests on one object, the qubit, and on what happens when you measure it.
By the end of this lesson you can:
- write a qubit state as a ket and as a column vector;
- compute measurement probabilities from the amplitudes;
- normalize a state;
- predict the state after a measurement, and what repeating it gives;
- explain why one measurement yields only one bit.
Check yourself
A warm-up: make a guess before reading on. The lesson comes back to it.
Silver atoms from the oven pass through the three analyzers above. The first points along , and only its + exit feeds the second. The second points along , and only its + exit feeds the third, which points along again. Of the atoms that reach the third analyzer, what fraction leave by its − exit?
- AAbout a quarter, because each analyzer lets only half of the atoms through.
- BAbout half.
- CNone of them. The first analyzer already picked out atoms that are + along , and they stay that way.
- DAll of them. The analyzer turns the atoms over, from + along to − along .
Show the answer
Answer: B. About half.
About half. Each analyzer acts as a measurement along its own axis and leaves the atom in the matching state. An atom leaving the analyzer’s + exit gives + or − along with equal probability, whatever happened before.
Why not the others
- A. About a quarter of the oven’s atoms reach the third analyzer, since roughly half are lost at each of the first two. The question asks about the atoms that do arrive there, and those split about evenly between its two exits.
- C. A natural idea is that the atoms remember which exit of the first analyzer they took. But the analyzer is itself a measurement, and it resets the atom: one leaving its + exit carries no record of the earlier result. In the cascade the last analyzer splits the atoms about evenly. The memory picture is tempting because with no middle analyzer, a second analyzer really does send every atom out of +.
- D. Nothing in the cascade turns atoms over. An atom leaving the analyzer’s + exit has no preference between + and − along , so the last analyzer’s two exits fill about equally. Lesson 5 shows why, using the qubit model you build in this lesson.
Check yourself
A warm-up: make a guess before reading on. The lesson comes back to it.
A qubit is prepared in the state . You measure it in the basis, which gives 0 or 1. Straight away you measure the same qubit again, in the same basis. What is the chance that the two results agree?
- AIt can’t be predicted: measurement results are random
- B: the second measurement is a fresh 50/50 toss
- C: each result has chance , and
- D: they always agree
Show the answer
Answer: D. : they always agree
The first measurement leaves the qubit in or , matching its result. Measuring that basis state again in the same basis gives the same result with probability 1.
Why not the others
- A. Each first result is random, but whether the second agrees with it is not. After the first measurement the qubit is in or , and measuring a basis state in its own basis has a certain outcome. Randomness enters only when the state is not one of the basis states.
- B. A common picture is that every measurement of is a new coin toss. That holds for fresh copies of , but here one qubit is measured twice. The first measurement leaves it in or , whichever you saw, and measuring that state again gives the same result every time. The coin picture is tempting because the first result really is 50/50.
- C. Multiplying treats the two results as independent, and even then they could agree on 0 or on 1, giving . In fact they are not independent at all: the first measurement leaves the qubit in the state it reported, so the second agrees with certainty.
2 / 11 · Learn
Kets and column vectors
A classical bit is either 0 or 1. A qubit has two basis states, written and (“ket zero” and “ket one”), and its state is a combination
where and are complex numbers called amplitudes (with one condition on their sizes, coming shortly). When both amplitudes are nonzero the state is called a superposition of and . The state from the prequestion is the case .
A ket is a vector in a two-dimensional complex space. and are the two standard unit vectors, so the amplitudes are simply the entries of a column vector, with the amplitude on top:
so a general state is
Check yourself
Which column vector is ? (The terms are written in an unusual order.)
- A
- B
- C
- DThe single number
Show the answer
Answer: A.
Each amplitude goes in its own slot, whatever order the terms are written in: the amplitude on top, the amplitude below.
Why not the others
- B. The is part of the amplitude, not a label: the amplitude is the complex number . Dropping the gives a different state, and Lesson 2 shows an experiment that tells the two apart.
- C. That copies the terms in the order they are written. The slots are fixed by the kets, not by the order: the top entry always belongs to and the bottom one to , because and .
- D. Adding the amplitudes merges two separate components. and are different directions, like and in the plane, so the state needs two entries, one per basis state.
Check yourself
Now enter the column vector of , entry by entry. You can type things like -1/sqrt(2) or i/sqrt(2).
Hints
- Which amplitude goes on top, whatever order the terms are written in?
- Multiply the factor into each term, then read off the number in front of and the number in front of .
Show the answer
Answer:
Distributing the factor gives , so the vector is .
3 / 11 · Learn
Amplitudes and probabilities
Measuring a qubit in the basis gives the result 0 or the result 1. This basis is usually called the computational basis; these lessons call it the 0/1 basis, and the measurement lab labels it . Which result you get is random. The amplitudes set the odds:
This is the Born rule. is the squared magnitude (or modulus) of : for it is , where is the complex conjugate. It is never negative. Squaring itself is a different operation: for , but .
Check yourself
A qubit is in the state . You measure it in the 0/1 basis. What is the probability of the result 1?
- A
- B
- C
- D
Show the answer
Answer: B.
. Together with the probabilities add up to 1, as they must.
Why not the others
- A. That is the size of the amplitude, , not its square. Check: the two sizes and add up to about 1.37, more than 1, so they can’t both be probabilities. Their squares, and , do add up to 1.
- C. That is , the square of the amplitude itself, not of its magnitude. A probability can never be negative, which is the quick check. The Born rule uses .
- D. A superposition does not mean even odds. The odds come from the sizes of the amplitudes: for 0 and for 1. Only states whose amplitudes have equal size, like , give 50/50, and they are the first examples everyone meets, which makes the idea tempting.
Refresher: Complex numbers Rusty on magnitudes and conjugates? A short refresher.
The two probabilities must add up to 1, so every state obeys
the normalization condition. Geometrically, the column vector has length 1. People often write a vector such as and mean the normalized state that points the same way. To normalize , divide both amplitudes by its length . For the length is , so the state is .
Check yourself
Normalize . Enter the amplitudes of the normalized state.
Hints
- What must come to after you rescale?
- Divide both amplitudes by the length .
- The length is .
Show the answer
Answer:
The length is , so the state is . Check: . Its probabilities are and .
Refresher: Vectors and normalization More on column vectors, lengths and normalization.
Check yourself
Is a valid qubit state?
- AYes: it is .
- BYes: any pair of complex numbers describes a qubit state.
- CNo: , not 1.
- DYes: its amplitudes add up to 1.
Show the answer
Answer: C. No: , not 1.
. Multiplied by it becomes .
Why not the others
- A. has amplitudes , not . This vector points the same way as but is too short: its length is , and dividing by that turns it into .
- B. Only pairs whose squared sizes add up to 1 do, because those numbers are the probabilities of the two results and one of them must happen. A pair that fails the test can be rescaled into a valid state, but as written it is not one.
- D. The condition is on the squared sizes, not on the amplitudes themselves. Here the squares add up to , so the Born rule would leave half the probability unaccounted for. The idea is tempting if you picture amplitudes as probabilities; the valid state has amplitudes that add up to .
4 / 11 · Learn
What a measurement leaves behind
Measuring in the 0/1 basis does more than report a result. Afterwards the qubit is in the basis state that matches it: if you got 0, if you got 1. The amplitudes and are gone, replaced by the basis state you saw. This is often called the collapse of the state.
So a measurement is repeatable. Measure the same qubit again in the same basis, and the Born rule now applies to the new state: gives 0 with probability .
Check yourself
You measure in the 0/1 basis and get 1. What is the state now, and what is if you measure again straight away, in the same basis?
- A, and
- B, and
- C, and
- D again, and
Show the answer
Answer: B. , and
The result 1 leaves the qubit in , and gives 1 with probability .
Why not the others
- A. You have the right state, so apply the Born rule to it: has amplitudes and , so . The belonged to the state before the first measurement.
- C. The qubit is left in the basis state itself, with amplitude 1. Keeping the old amplitude would give a vector of length , which is not a valid state: its probabilities would add up to only .
- D. It is tempting to picture a measurement as a look that leaves the state alone, or as a jolt the qubit recovers from. Neither fits: the result 1 leaves the qubit in , and it stays there. Try it in the lab below, where every repeat on the same qubit agrees with the first result.
Check yourself
A qubit in is measured in the 0/1 basis, and the result is 0. Straight away it is measured again, in the same basis. What is for this second measurement?
- A
- B, because the state jumps to and then relaxes back to the original
- C, because measuring only reads off a value; it doesn’t change the state
- D, because the second measurement is a fresh coin flip
Show the answer
Answer: A.
The result 0 leaves the qubit in , so the immediate repeat gives .
Why not the others
- B. Nothing pulls the state back: after the result 0 the qubit stays in until something else acts on it. So the immediate repeat gives 0 with probability 1, as the repeats in the lab show. The picture is tempting because the original state feels like the qubit’s real identity, but the measurement has replaced it.
- C. If the measurement left untouched, the repeat would disagree a quarter of the time, yet in the lab above repeats never disagree. The result 0 replaces the state with , which gives 0 with certainty. is the right answer for a fresh copy, which is what makes it tempting.
- D. Two slips meet here. Even a fresh copy would give 0 with probability , not , since the amplitudes have different sizes. And this is not a fresh copy: the first result left the qubit in , so the repeat gives 0 with certainty.
5 / 11 · Learn
One shot, one bit
The amplitudes are continuous: could be or . Does one qubit then hold an unlimited amount of information? Not in any form you can get out. A measurement in the 0/1 basis returns a single 0 or 1, which is one bit, and leaves the qubit in that basis state, so measuring it again in the same basis only repeats the answer. To estimate you need many identically prepared copies, measured one by one, and the estimate sharpens only slowly as the number of copies grows.
Check yourself
Someone hands you one qubit in a state that they don’t tell you. You measure it in the 0/1 basis and get 0. What can you conclude about the state it was in?
- AThe values of and , which the measurement has now read out.
- BThat the qubit was all along.
- CThat : the more likely result came up.
- DOnly that : a result whose amplitude is 0 never happens.
Show the answer
Answer: D. Only that : a result whose amplitude is 0 never happens.
The result 0 has probability , so seeing it rules out only . Any state with could have produced it.
Why not the others
- A. The measurement has only two possible results, so it carries one bit, far too little to pin down two complex numbers. It also replaced the state with , so measuring again in the same basis just gives 0 and tells you nothing more.
- B. Many states can give 0: does half the time, and does 36% of the time. The result tells you the qubit is in now, after the measurement, not what it was before. Reading a measurement as the reveal of a stored value is the trap from the previous segment.
- C. One result doesn’t tell you which outcome was more likely. A state with gives 0 one time in ten, and that time looks exactly like this one. Telling 0.1 from 0.9 takes many copies.
Would a cleverer measurement get more out?
No. Measuring in a different basis, as in Lessons 2 and 5, still has just two outcomes. A general theorem, Holevo’s bound, shows that a single qubit on its own can deliver at most one bit of classical information, however it is prepared and measured.
6 / 11 · Explore
Many copies
One measurement gives one random bit. Many fresh copies give statistics. Predict first, then run the lab.
Predict, then see
You prepare 100 fresh copies of , the state you normalized earlier, and measure each one in the 0/1 basis. Then you do a second run of 100. What do you expect?
- AExactly 36 results of 0 in every run
- BAbout 36 results of 0 in each run, with a slightly different count each time
- CAbout 50 results of 0 in each run: a superposition gives each result half the time
- DAbout 60 results of 0 in each run: the amplitude is the chance of 0
Show what happens
What happens: B. About 36 results of 0 in each run, with a slightly different count each time
Each run gives roughly 36 zeros, and the exact count changes from run to run. The Born rule gives a probability, , which predicts the long-run fraction of 0s, not the count in any one run. With 100 copies the count typically lands within about 5 of 36, and the fraction settles closer to 0.36 as the number of copies grows. A count of 50 or more turns up in fewer than 3 runs in 1000, and 60 practically never, so the data rule out both of those predictions.
Why not the others
- A. A probability predicts a long-run fraction, not an exact count. Each copy is an independent random event, so a run of 100 gives a count near 36 that changes from run to run, much as 100 coin tosses rarely give exactly 50 heads.
- C. Even odds need amplitudes of equal size. Here and , so 0 comes up about 36 times in 100.
- D. The amplitude is not the probability; its squared size is. , so about 36 zeros, and 60 lies far outside the range real runs land in.
Why within about 5?
The number of 0s in copies has a standard deviation of . For and that is , and about two runs in three land within one standard deviation of . So the fraction of 0s wobbles by about with 100 copies, and by about with 10 000.
Check yourself
Type the amplitudes and into the lab (they are not normalized). Before you press Show theory: what probability of the result 0 will the theory bar show? Give it as a number between 0 and 1.
Hints
- What is the length of the vector with entries and ?
- Divide both amplitudes by , then square the size of the first.
Show the answer
Answer:
The length is , so and : the theory bar shows 10%.
Common slips
- : Dividing by makes the sizes add up to 1, but normalization is about their squares. The length is .
- : That is before normalizing. The squared sizes add up to , so divide by the length first.
- : That is the normalized amplitude, . The probability is its squared size.
- : Give the probability as a number between 0 and 1: 10% is 0.1.
- : The two amplitudes have different sizes, 1 and 3, so the odds are not even. Normalize first, then square the size of the amplitude.
7 / 11 · Worked example
Worked example
Watch the method once, finish the example yourself, then try one on your own.
Worked example
Probabilities and the state afterwards
Measure in the 0/1 basis. Find the probability of each result, and what the qubit is left in.
Read off the amplitudes
and . As a column vector, .
Probability of 0
is real, so its squared magnitude is just its square: .
A complex amplitude
is complex, so use . The conjugate flips the sign of : .
Your turn
Compute .
Hints
- Which two numbers does multiply together?
- They are and its conjugate . Multiply the numbers and the ’s separately.
- The ’s give , and the numbers give .
Show the answer
Answer:
. Check: .
Common slips
- : That is , the square without the conjugate, and a probability can never be negative. Use .
- : That is , the size of the amplitude. The probability is its square, .
- : That is . This step asks for the result 1, whose amplitude is .
Your turn
Suppose the result is 1. You measure the same qubit again straight away, in the same basis. What is now?
Hint
- What state is the qubit in after giving the result 1?
Show the answer
Answer:
The result 1 leaves the qubit in , so . Likewise, after the result 0 (3 times in 4) it is in , and a repeat gives 0. Either way the amplitudes and are gone.
Common slips
- : That is the chance for a fresh copy of . This qubit has already given 1, so it is in now, and gives 1 every time.
- : A measurement does not flip the qubit. The result 1 leaves it in , so the repeat gives 1 again.
- : That is for a fresh copy. After the result 1 the qubit is in , and the original amplitudes no longer apply.
Here is one more worked example with different numbers.
Another worked example
Second example
Measure in the 0/1 basis.
Read off the amplitudes
and .
Probability of 0
is complex, with conjugate . So . Squaring without the conjugate would give , which cannot be a probability.
Probability of 1
is real, so . Check: .
After the measurement
The result 0 leaves the qubit in ; the result 1 leaves it in . An immediate repeat in the same basis gives the same result with probability 1.
Check yourself
On your own, with new numbers: is measured in the 0/1 basis. What is ?
Hints
- Which amplitude belongs to the result 1?
- The probability is the squared magnitude of that amplitude, , not its square.
- Multiply by its conjugate .
Show the answer
Answer:
.
The result 1 goes with the amplitude . It is complex, so multiply it by its conjugate: . As a check, the other probability is , and the two add up to 1.
Common slips
- : That is , the size of the amplitude. The probability is its square: .
- : That is , the amplitude squared without the conjugate. A probability is never negative or complex; the Born rule uses .
- : That is the probability of the other result, 0. The result 1 goes with the amplitude of , which is .
8 / 11 · Practice
Practice
Three problems on the lesson’s procedures. Each has hints if you need them.
Check yourself
Normalize . Enter the amplitudes of the normalized state.
Hints
- What must equal once you are done?
- Divide both amplitudes by the length of the vector, .
- Here and , so the length is .
Show the answer
Answer:
The length is , so the state is .
The squared sizes are and , so the length is . Dividing both amplitudes by it gives . Check: .
Check yourself
A qubit is in with . You are not told . What is , the probability of the result 1 in the 0/1 basis?
Hints
- What must and add up to?
- Find first. For a complex number, , with and real.
- Here .
Show the answer
Answer:
, so .
Normalization says , so you only need . For , add the squares of the real and imaginary parts of the numerator and divide by the square of the denominator: . So , whatever the phase of is.
Common slips
- : You may have computed as . The magnitude squared uses the real numbers and : .
- : That is . The condition is on squared sizes: .
- : That is , the probability of the result 0. The question asks for , what is left over: .
Check yourself
A qubit in is measured in the 0/1 basis, and the result is 1. It is measured again straight away, in the same basis. What is the probability that the second result is 1?
Hints
- What state is the qubit in right after the first measurement?
- A measurement leaves the qubit in the basis state it reported, and the Born rule then uses that new state.
- After the result 1 the state is . What is its amplitude for ?
Show the answer
Answer:
The first result left the qubit in , so .
The first result 1 leaves the qubit in . In that state the amplitude of is 1, so the second result is 1 with probability . The original amplitudes would matter only for a fresh copy.
Common slips
- : That is the chance of 1 for a fresh copy of the original state. After the first result the qubit is in , so the original amplitudes no longer matter.
- : The repeat can’t disagree with the first result: the qubit is now in , which gives 1 every time.
9 / 11 · Explain
Explain it
Put the lesson’s central idea into your own words. Writing it out is what makes it stick.
Explain it
The amplitudes and are continuous numbers. Why can’t you read more than one classical bit out of a single qubit?
Show a model answer
A measurement in the 0/1 basis has only two possible results, 0 or 1, with probabilities and , so one shot yields one bit. The measurement also leaves the qubit in the basis state that was observed: and are gone, and measuring again in the same basis only repeats the result. Estimating would take many identically prepared copies, and even then you get an estimate, not the exact numbers.
A good answer covers
- One measurement gives one of only two results (0 or 1), so it carries one bit.
- The measurement changes the state to the observed basis state, so and cannot be read again from the same qubit.
- Estimating the amplitudes would need many identically prepared copies.
10 / 11 · Mastery check
Mastery check
Check yourself
A qubit is prepared in the state . You measure it in the basis, which gives 0 or 1. Straight away you measure the same qubit again, in the same basis. What is the chance that the two results agree?
- A: the second measurement is a fresh 50/50 toss
- BIt can’t be predicted: measurement results are random
- C: they always agree
- D: each result has chance , and
Show the answer
Answer: C. : they always agree
The first measurement leaves the qubit in or , matching its result. Measuring that basis state again in the same basis gives the same result with probability 1.
Why not the others
- A. A common picture is that every measurement of is a new coin toss. That holds for fresh copies of , but here one qubit is measured twice. The first measurement leaves it in or , whichever you saw, and measuring that state again gives the same result every time. The coin picture is tempting because the first result really is 50/50.
- B. Each first result is random, but whether the second agrees with it is not. After the first measurement the qubit is in or , and measuring a basis state in its own basis has a certain outcome. Randomness enters only when the state is not one of the basis states.
- D. Multiplying treats the two results as independent, and even then they could agree on 0 or on 1, giving . In fact they are not independent at all: the first measurement leaves the qubit in the state it reported, so the second agrees with certainty.
Check yourself
Which column vector describes a state that gives the result 1 with probability when measured in the 0/1 basis?
- A
- B
- C
- D
Show the answer
Answer: B.
The bottom entry is the amplitude of , and .
Why not the others
- A. This vector has itself as its amplitude, so . The probability is the squared size of the amplitude, so the bottom entry needs size .
- C. Entries of equal size give . To get 1 with probability , the bottom entry needs squared size .
- D. Here the bottom entry, the amplitude of , has squared size , so . The entry with squared size sits on top, in the slot.
Check yourself
The vector is not normalized. Once you normalize it, what is the probability of the result 1 in the 0/1 basis?
Show the answer
Answer:
.
The squared sizes are and , so the length is . Normalizing divides both amplitudes by it, and the probability of the result 1 is the new squared size of the amplitude: .
Common slips
- : That is before normalizing. The squared sizes add up to , not 1, so divide by that total first.
- : That is the size of the normalized amplitude, . The probability is its square.
- : That is , from the amplitude of . The result 1 goes with the amplitude of .
Check yourself
A friend picks a number, say 0.137, and prepares a single qubit with equal to it. They send you that one qubit. How much of the number can you recover?
- AAll of it: measure the qubit many times and count the 0s.
- BAll of it, if the measurement is precise enough.
- CAt most one bit’s worth: measured in the 0/1 basis, it gives 0 or 1 and is left in or .
Show the answer
Answer: C. At most one bit’s worth: measured in the 0/1 basis, it gives 0 or 1 and is left in or .
One shot yields one bit and replaces the state with or , so nothing more can be read from that qubit. Even with many copies you would only estimate the number statistically.
Why not the others
- A. Only the first measurement of this qubit is informative. It leaves the qubit in or , so every later measurement in that basis repeats that result and counting tells you nothing new. Counting 0s works only with many separately prepared copies.
- B. Precision isn’t the limit. A measurement in the 0/1 basis has only two possible results, 0 and 1, so no setting of the apparatus can return 0.137.
Check yourself
A qubit in is measured in the 0/1 basis and gives 1. Then two more measurements are made in the same basis: one on the same qubit, and one on a fresh copy of . What is the probability that both of these give 1?
Show the answer
Answer:
: the repeat is certain, the fresh copy is not.
The repeat on the same qubit gives 1 with certainty, because the first result left it in . The fresh copy is in , so it gives 1 with probability . Both happen with probability .
Common slips
- : That multiplies by itself, as if the repeat on the measured qubit were a fresh copy too. The first result left that qubit in , so its repeat gives 1 with certainty; only the fresh copy contributes .
- : The repeat on the measured qubit is certain to give 1, but the fresh copy is a new qubit in the original state. It gives 1 only with probability .
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.
You measure in the 0/1 basis. How do you get the probability of each measurement result, 0 or 1, from the amplitudes and ?
Show the key points
- The result 0 has probability and the result 1 has probability (the Born rule)
- For a complex amplitude, , not , so a probability is never negative
- Only the size of an amplitude counts: a minus sign or a factor does not change the probability
What makes a pair of amplitudes , a valid qubit state, and how do you fix a vector that is not one?
Show the key points
- Normalization: , because the two probabilities must add up to 1
- The condition is on the squared sizes, not on the amplitudes themselves: is not a valid state
- To fix one, divide both entries by the vector’s length,
What does a measurement do to the qubit, and what happens if you repeat it?
Show the key points
- The qubit is left in the basis state that was observed
- An immediate repeat in the same basis gives the same result with probability 1
- Only fresh copies show the statistics
Key ideas
A qubit state is , or the column vector , with complex amplitudes and .
Measured in the 0/1 basis, it gives 0 with probability and 1 with probability . Use the magnitude: .
Normalization: . To normalize a vector, divide it by its length.
A measurement leaves the qubit in or , matching the result, so an immediate repeat agrees with certainty. Only fresh copies show the statistics.
One measurement gives one bit. The amplitudes can only be estimated, from many identically prepared copies.
Go further
Free resources for when you want more than this lesson covers.
- Quantum computing for the very curiousQuantum Country · Article
A long essay from qubits to universal gate sets with review questions built in; a free account schedules them for later.
- Quantum Computing Since Democritus, lecture 9: QuantumScott Aaronson · Lecture notes
Argues that quantum mechanics is probability theory with minus signs allowed, and asks why the rule squares amplitudes.
- Some light quantum mechanics (with minutephysics)3Blue1Brown · Video
Polarized light as a real two-state system: how a wave’s components become amplitudes whose squares give a photon’s odds.
- Seeing Theory: a visual introduction to probability and statisticsBrown University · Interactive
Animated chapters on chance, expectation and estimating a probability from data, the statistics behind measuring many copies.
Math refreshers
The toolkit topics this lesson leans on.
- Complex numbersMagnitude, phase, and why a phase factor has size 1
- Vectors and normalizationKets are column vectors; probabilities must add to 1