Chapter 1

Bit and qubit

How much do you have to say to describe a coin on a table? One word: heads or tails. That is one bit, the smallest piece of knowledge about the world there can be.

All familiar technology is built from such coins. Your phone holds hundreds of billions of them, and at any moment each one lies either this way or that. A qubit works differently. The usual explanation is "it's both zero and one at once", but that explains nothing: it doesn't tell you what you can and can't do with a qubit.

The difference is simpler and stranger. A bit has two positions. Let's see how many a qubit has and where they come from.

100%you get 00%you get 1

How it is written

The two main positions of the arrow have names. When the arrow points straight up, the state is written |0⟩ and read “ket zero”. Straight down is |1⟩, “ket one”. The bar and the angle form one bracket, and that bracket is called a ket; the name of the state goes inside. Read the whole sign as a single letter.

Two more names will be needed very soon. When the arrow lies on the equator, zero and one come up equally often. Two opposite points of the equator are called |+⟩ and |−⟩: “ket plus” and “ket minus”. For now plus and minus are just names, like east and west. Where they come from will become clear in the next chapters.

Angle and chances

If you hit three out of four, the arrow stood at 60° from the top. Here is the same sphere in cross-section. The arrow is tilted by 60°: zero comes up in 75% of measurements, one in 25%. Change the tilt with the slider in the figure.

you get 075%
you get 125%
The sphere in cross-section. The number in the text moves the arrow, the simulator computes the chances.

The tilt of the arrow from the top is written with the Greek letter θ, “theta”. At θ = 0° the arrow is at |0⟩, at θ = 180° it is at |1⟩, and at θ = 90° it lies on the equator.

This is the first thing that clashes with intuition: a qubit doesn't behave like a coin with an off-center weight. Behind the unevenness is the rule that turns a direction into chances, and the interference from the cover will later grow out of that same rule.

We will find the exact rule that turns tilt into chances in the next chapter. For now the picture is enough.

Two knobs

So far we have tilted the arrow in one direction only. But on a sphere it has two independent motions. You can change its tilt from the top, or, leaving the tilt alone, turn it around the vertical axis like a compass needle.

The tilt is now 60°, the turn is 0°. Move the turn slider and watch the chances.

side view
top view
you get 075%
you get 125%
The turn moves the arrow around a circle at one height. The height of the tip doesn't change, and neither do the chances.

The turn is written φ, “phi”. It is counted from the point |+⟩: at φ = 0° an arrow on the equator points to |+⟩, at φ = 180° to |−⟩.

The chances don't budge. The question "zero or one?" senses only the height of the arrow's tip and is completely blind to the turn.

The bookkeeping comes out strange. One word is enough to describe a bit. Describing a qubit takes two numbers, tilt and turn, and each can be set to any precision. Yet when measured the qubit hands back the same single bit, and one of the two numbers plays no part in the answer at all.

Where the rest goes, and what it is for then, is the question this whole book rests on.

The arrow's address

Two angles are the full address of the arrow, like latitude and longitude for a point on a globe. Here are the addresses of the four points that have names.

NameTilt θTurn φ
|0⟩0°any
|1⟩180°any
|+⟩90°0°
|−⟩90°180°

At the poles the turn is undefined, like longitude at the North Pole.

What to remember

  • A bit has two positions. A qubit has a whole sphere of them: it is an arrow with a tilt and a turn.
  • Measurement answers with one bit. The chance of getting zero depends only on the tilt.
  • The turn doesn't affect the chances. That doesn't mean it affects nothing.

Test yourself

The problems are optional: solve them now or come back to them later.

1

Nine out of ten

not solved

Set the arrow so that out of a thousand measurements zero comes up about 900 times. A hint from the text: the chances change unevenly, so 90% is not 18°.

The chances are hidden. Set the arrow and measure.

2

The hidden arrow

not solved

There is a qubit in the box, and you can't see its arrow. Measure as much as you like, then set your own arrow the way the hidden one stands. An error of up to 8° counts.

The arrow is hidden. The only way to learn anything about it is to measure.

3

East and west

not solved

The arrow lay on the equator, pointing east. It was turned around to point west. What happened to the chances on measurement?

What's left is to understand what happens to the arrow at the very moment of the question, and why in the hidden-arrow problem you couldn't just look inside the box. That is the next chapter, "Measurement".