Lesson 4 of 5

Waves that cancel

Some headphones make the world go quiet by playing extra sound. That sounds backwards. It is also a big clue to how a quantum computer works.

  • About 30 minutes
  • Ages 9 to 13

The big idea

Sound travels as a wave, and so do ripples on a pond. A wave has high parts, called crests, and low parts, called troughs.

Noise-cancelling headphones listen to the noise around you. Then they play a copy that is flipped upside down. Where the noise has a crest, the copy has a trough. The two add up to almost nothing, so steady sounds like the hum of a plane get much quieter.

When waves meet and add up like this, scientists call it interference. Crest plus crest makes a bigger crest. Crest plus a trough of the same size makes flat water, or quiet.

Top, two waves in step add up to one taller wave. Bottom, two waves where one is flipped add up to a flat line. In step, they add = Crest on trough, they cancel =
Add the heights of the two coloured waves to get the black line.

What this has to do with qubits

Remember the qubit's two numbers from lesson 2, and how they can be negative? A quantum program is a list of steps, called gates, that change those numbers. Sometimes the steps send numbers along two routes to the same answer. When they get there, they add up.

If both routes bring +0.5, the total is 1. Square it and the chance of that answer is 1, so it is certain. If one route brings +0.5 and the other brings −0.5, the total is 0. That answer will never turn up at all.

This is why the minus sign matters. Chances on their own are never negative, so adding them can only pile up. Only signed numbers can cancel. A good quantum program is built so the routes to wrong answers mostly cancel and the routes to the right answer add up. It is not the computer trying every answer and picking the best one. It is careful adding and cancelling.

Try this at home

The ripple tray

You need A baking tray or a glass dish, water, two pencils, a ruler, sticky tape, a torch and a grown-up nearby.

  1. Put the tray on a table in a dim room. A glass dish on white paper works best. Pour in water about 1 cm deep and let it go still.
  2. Shine the torch down onto the water from above. Each ripple throws a shadow, which makes it easier to see.
  3. Tap the water with one pencil point. Watch the rings spread out.
  4. Tape two pencils to a ruler, about a hand width apart, so they always tap together. Tap the water fast and steady with both points.
  5. Look in the space between the two sets of rings. You may spot faint lines fanning out where the water stays almost still. That is where a crest from one pencil meets a trough from the other. They are hard to see, so do not worry if you miss them.

It takes a few tries. Laughing is allowed. Splashing, less so.

No tray? Use paper

Draw a straight middle line across a sheet of tracing paper, then a wavy line along it. Trace both onto a second sheet. Lay one on top of the other, then slide it half a wave along so each crest sits on a trough. Heights above the middle line count as plus and heights below count as minus. Add the two heights at a few points. You get about zero every time.

Try it on the site

Open the puzzle page. The first puzzle starts with a qubit that reads 0 every time. Press H and the chances beside the bars say 50 in 100 each. Press H again and it is back to 0 every time, because the two routes to 1 cancelled. A qubit that was secretly 0 or 1 after the first H would give half and half here. A real one never does.

Now press the Start again button, then H, then Z, then H. Z flips one sign, so this time the routes to 0 cancel and you get a certain 1. You have also solved the first puzzle, the long way round.

Three quick questions

  1. A crest meets a trough of the same size. What happens?

    Show the answer

    They cancel, and the water is flat at that spot.

  2. Two routes bring +0.5 and −0.5 to the answer 1. What is the chance of reading 1?

    Show the answer

    Zero. The numbers add up to 0, and 0 × 0 is 0.

  3. Can two chances cancel each other out?

    Show the answer

    No. Chances are never negative, so adding them can only make more. Only the signed numbers can cancel.