Skip to content

Why QEC?

What happens when a quantum computer makes a mistake?

The Reliability Problem

A quantum computation follows a simple shape: prepare some quantum information, perform a series of operations on it, and measure the result.

An ideal run

Step 1Prepare
Step 2Operations
Step 3More operations
Step 4Measure: correct result ✓

The same run, with one physical error early on

Step 1Prepare
Step 2⚠ Error occurs
Step 3Error carried forward
Step 4Measure: result affected ✗

An error early in a computation doesn't stay where it happened — every later operation builds on the information it corrupted. Not every error necessarily changes the final answer, but without some way of dealing with them, we generally can't tell which ones will.

Quantum algorithms depend on maintaining and manipulating quantum information reliably, from the first operation to the last.

Physical Qubits Are Imperfect

A qubit isn't an abstract mathematical object floating in isolation. It's a physical system — a circuit, an atom, a particle of light — and it has to be built, controlled, and read out in the real world.

IDEAL QUBIT
Isolated
Perfect operations
Perfect measurement
PHYSICAL QUBIT
Environment
Control imperfections
Noise
Measurement imperfections

A physical qubit can be affected by:

  • interaction with its environment — stray fields, heat, or anything else it touches
  • loss of coherence — quantum behavior fading over time
  • imperfect control operations — the pulses or signals that run gates aren't exact
  • imperfect measurements — reading a qubit out isn't perfectly reliable
  • unwanted interactions and other hardware imperfections

We'll keep these categories loose for now — Errors and Noise gives them proper names later.

This isn't a sign of sloppy engineering. It follows from the fact that information always has to live in a physical system, and physical systems are noisy. Classical hardware faces the same reality, and — as we'll see shortly — has long relied on error correction too.

Quantum information must be stored and manipulated using imperfect physical hardware.

Small Errors Become a Scaling Problem

One error is easy to survive when a computation is tiny. The picture changes as computations grow:

Small circuit
Few operations
↓
Fewer opportunities for error
Larger computation
Many qubits
+
Many operations
+
Longer execution
↓
Many opportunities for error

This doesn't mean every error destroys a computation. It means that as quantum computations become larger and more demanding, keeping the information reliable becomes increasingly important.

Better qubits help — but they don't remove the question

Improving physical qubits is essential: it makes errors rarer. But the more demanding the computation, the more chances there are for something to go wrong. For sufficiently demanding computations, even very good physical qubits can leave a gap between "rarely wrong" and "reliable enough."

So the real engineering challenge is a general one: how can we build reliable computation out of imperfect physical components? Classical computing ran into this problem first.

Classical Error Correction Gives Us an Idea

Here's the classic trick: store the information redundantly, and let the copies vote.

Information1
Store redundantly1 1 1
One bit changes1 0 1
Majority vote1 ✓

Classical systems protect information by introducing redundancy. If one physical component changes unexpectedly, the redundant copies help identify and recover the intended value.

Could we simply do the same thing with a qubit?

Quantum Information Makes the Problem Harder

Two complications get in the way.

You Cannot Simply Copy an Unknown Quantum State

An arbitrary, unknown quantum state can't be copied to create independent backups. This is the no-cloning theorem. We won't derive it here — what matters is what it rules out:

Unknown qubit
COPY
COPY
COPY

✗ Invalid model — quantum redundancy can't simply mean "make backup copies."

You Cannot Simply Inspect the State Whenever You Want

Checking a classical bit is harmless. Measuring a quantum state is not: a direct measurement can reveal or disturb exactly the quantum information a computation is trying to preserve.

The dilemma

If we can't freely copy the information, and we can't simply inspect the quantum state to see whether it's wrong — how can we detect an error at all?

That question is the hook for this entire module. We won't answer it yet.

The Key Idea of Quantum Error Correction

There is a way around the dilemma. Quantum error correction (QEC) protects quantum information by encoding logical information across multiple physical qubits, and by extracting information about errors without directly measuring the protected logical state.

One logical quantum state
↓ encoding
Multiple physical qubits

And when something goes wrong:

Physical error occurs
↓
QEC obtains information about the error
↓
Recovery
↓
Logical information preserved

How that information about the error is obtained — without measuring the logical state — is what the rest of the module is for. For now, all that matters is that a way around the dilemma exists.

Physical Qubits vs. Logical Qubits

This gives us two kinds of qubit to keep apart:

  • Physical qubit — an individual physical quantum system used by the hardware.
  • Logical qubit — quantum information encoded using multiple physical resources, so that errors can be detected and corrected.
○
○
○
○
○
PHYSICAL QUBITS
↓ encoding
◉
LOGICAL QUBIT

The number of physical qubits behind one logical qubit isn't fixed — it depends on the code used and how much protection is needed. The next section, Physical vs. Logical Qubits, develops this properly.

What QEC Is Trying to Achieve

Imperfect physical hardware
↓
Physical errors
↓
QEC
↓
More reliable logical information

QEC does not make physical hardware perfect. Instead, it uses additional physical resources, measurements, and processing to protect encoded logical information from physical errors.

That protection isn't free. It may require:

  • additional physical qubits
  • additional operations
  • repeated measurements
  • classical processing

We won't put numbers on this yet. The point is the trade: QEC spends extra resources and complexity to buy more reliable logical information.

Main Interactive — Protect the Information

Compare a single unprotected qubit with an encoded one. Introduce an error in each and watch what happens to the information. (This is deliberately abstract — the actual mechanisms come later.)

Physical error—
Error information—
Recovery—
Logical information—
Physical error none Logical information intact

Two different things happened in those two runs. In the unprotected case, a physical error was also a logical failure. In the protected case, a physical error occurred and the logical information survived. (This picture is simplified on purpose — real encodings have limits on how many errors they can handle, which later sections explore.)

The QEC Learning Journey

Here's where the rest of Module 07 goes, and the question each stop answers:

Takeaway

Quantum information
↓ must exist in
Physical hardware
↓ which experiences
Noise and imperfections
↓ so
Physical errors can corrupt the information
↓ and useful large-scale computation requires
Reliable logical information
↓ which is provided by
Quantum error correction provides
↓
Encode logical information across physical resources
↓
Detect information about errors
↓
Recover while preserving the logical state

Quantum error correction is the collection of techniques that allows quantum information to be protected from physical errors without simply copying or directly inspecting the unknown quantum state.

The most important thing to leave with is the questions:

  • How can one logical qubit be represented by many physical qubits?
  • What kinds of errors occur?
  • How can we detect an error without directly measuring the protected information?
  • How does a decoder decide what correction to make?

Those are what the rest of Module 07 answers.

Next: Physical vs. Logical Qubits →