Please enable JavaScript to use CodeHS

Quantum Computing

Bits vs. Qubits

Ordinary computers store information as bits: hard 0s and 1s. Quantum computers use qubits — and that small change unlocks a whole new kind of computing.

Quantum ~10 min Beginner friendly Lesson 2 of 10
The Big Idea

A bit is a switch; a qubit is a dial

Every ordinary computer — your phone, your laptop, your game console — stores information in bits. A bit is like a light switch: it is either 0 (off) or 1 (on). No in-between, no maybe.

A qubit — short for “quantum bit” — is more like a dimmer dial than a switch. Before you look at it, a qubit can be in a blend of 0-ness and 1-ness at the same time. Scientists call that blend a superposition. When you finally measure the qubit, it snaps to a single answer — 0 or 1 — and the blend sets the odds of which answer you get.

You will see physicists write the two extremes as |0⟩ and |1⟩. Those are just friendly labels: |0⟩ means “definitely 0,” |1⟩ means “definitely 1,” and anything in between is a blend of the two.

Simple definition: A bit is always 0 or 1. A qubit is a blend of 0 and 1 described by probabilities — measuring it gives one answer, but you cannot know which ahead of time.

Honest footnote: The dial is an analogy, not the whole story. A real qubit’s blend is written in numbers called amplitudes, which can add up or cancel out in ways ordinary probabilities cannot. That strange trick — interference — is where quantum computers get their power. For now, “a blend of possibilities” is the right picture.


Try It

Tune a qubit, then measure it

Drag the slider to set the chance that this pretend qubit measures as 1. The needle shows the blend: all the way left means definitely |0⟩, all the way right means definitely |1⟩. Then press Measure — each click is like measuring a fresh qubit tuned the same way.

Qubit dial P(0) = 75% / P(1) = 25%
25%
No measurements yet.
Results tally
0
0 (0%)
1
0 (0%)

Tip: set the slider to 50% and hit “Measure ×20” a few times. The tally will hover near half and half — but rarely land exactly on it.

Did you notice? Even at 75%, a single measurement still sometimes comes out 0. The probability tells you the pattern over many measurements, never the answer to the next one.


Why It Matters

Why qubits change the game

One qubit holding a blend is neat. The real magic is how blends multiply. Two qubits can hold a blend of four possibilities at once (00, 01, 10, and 11). Three qubits hold a blend of eight. Every new qubit doubles the number of possibilities a quantum computer can describe.

That doubling gets wild fast. Ten qubits can hold a blend of 1,024 values at once. Three hundred qubits could hold a blend of more states than there are atoms in the observable universe. No ordinary computer can even write down a list that long — yet a quantum computer can manipulate the whole blend with a single operation.

Here is the catch, and it is a big one: real qubits are fragile. Heat, light, or a stray vibration can knock the blend out of tune. That is why today’s quantum chips live in refrigerators colder than deep space, and why the people who build better qubits — physicists, materials scientists, and engineers — are some of the most in-demand problem solvers on the planet.

One more honest note: A big blend does not mean a quantum computer “tries every answer at once” and reads them all. When you measure, you still get just one ordinary answer. The speedup comes from interference — clever steps that cancel the blends pointing at wrong answers and boost the blends pointing at right ones.


Your Turn

Check your understanding

If a qubit has a 30% chance of measuring 1 and you measure it 100 times, about how many 1s would you expect? Would you ever be able to predict a single measurement exactly?

Your answer:

Sample answer: About 30 ones — maybe 27 or 33, since each measurement is random. You can never predict a single measurement exactly; you only know the odds. More trials make the tally settle closer to 30%.


Check Yourself

Quick quiz

1. What is the main difference between a bit and a qubit?

2. A qubit has a 75% chance of measuring 1. You measure it once. What do you get?

3. Why does adding more qubits matter so much?

Keep learning about quantum computing

You have met the qubit — now zoom in on its strangest talent. Next up: what superposition really means, and what it means to be in two states at once.

Part of the Quantum Computing tutorial series.