Lesson 1 of 5

What is a bit?

Your phone keeps every photo, song and game as a very long row of tiny switches. Each switch is called a bit. Before we meet the qubit, let us see what a plain bit can do.

  • About 20 minutes
  • Ages 9 to 13

The big idea

A bit is the smallest piece of information a computer can store. It has only two settings. Computer people write them as 0 and 1. You can think of 0 as off and 1 as on, like a light switch.

Whenever you check a bit, it is in one setting or the other. A light switch is never a little bit on. That is what makes bits so dependable.

One bit can only say yes or no. Put bits in a row and things get interesting. Two bits make four patterns, 00, 01, 10 and 11. Three bits make eight. Every bit you add doubles the number of patterns.

Two light switches, one down and labelled 0, one up and labelled 1. Below them, eight boxes hold 0 1 0 0 0 0 0 1, the pattern for a capital A. 0 off 1 on 0 1 0 0 0 0 0 1 is a capital A
A switch is a bit. Eight bits in a row are called a byte, and this byte is the code most computers use for a capital A.

Eight bits make 256 patterns. That is plenty to give every English letter, number and full stop a pattern of its own. In the most common code, capital A is 01000001.

Inside a real computer, bits are held by transistors, which are tiny electric switches with no moving parts. A phone has many billions of them. A coin on a table works as a bit too. Heads can be 1 and tails can be 0, and the coin is always one or the other.

Try this at home

The coin code

You need Five coins, five small scraps of paper, a pencil and a friend.

  1. Write 16, 8, 4, 2 and 1 on the five scraps. Lay them in a row with 16 on the left.
  2. Put a coin under each scrap. Heads means that number counts. Tails means it does not.
  3. Add up the numbers with heads under them. Tails, tails, heads, tails, heads gives 4 + 1, which is 5.
  4. Now give each letter a number. A is 1, B is 2, and so on up to Z, which is 26.
  5. Spell a short word for your friend, one letter at a time, using only heads and tails. Can they read it?

Each number is double the one on its right. Counting like this is called binary, and it is how computers count. Five coins give 32 patterns, so you have 26 for letters and 6 spare. Use one for a space.

Try it on the site

The Nerdictionary entry for bit is written for grown-ups. Read it with one, and find the line that says reading a bit does not change it. Hold on to that. It is exactly where the qubit does something different.

Three quick questions

  1. How many patterns can four bits make?

    Show the answer

    Sixteen. Each bit doubles the patterns, so it is 2 × 2 × 2 × 2.

  2. In the coin code, what letter is tails, tails, tails, heads, heads?

    Show the answer

    C. The heads are under 2 and 1, which add up to 3, and C is the third letter.

  3. Can a bit ever be halfway between 0 and 1?

    Show the answer

    No. Whenever you check a bit, it is 0 or it is 1. Keep that in mind for the next lesson.