All labs 08

Quantum Error Correction

Quantum

The 3-qubit bit-flip code: one logical qubit is spread across three physical qubits, a bit-flip error is injected on any line, and two ancilla qubits extract a syndrome that names the culprit — without ever measuring the data. A majority-vote correction restores the logical state and the fidelity returns to one.

Live circuit syndrome 00, fidelity 1
Quantum Error Correction6 components and 13 connections.PSI|ψ⟩do0o1o2EncodeENCEncodei0i1i2o0o1o2ChannelERRChanneli0i1i2o0o1o2s0s1SyndromeSYNSyndromei0i1i2s0s1dCorrectCORCorrectMOUT|ψ⟩
Quantum Error Correction

Inject a bit flip, then step the timeline through syndrome, decode, and correct. Click a qubit or gate to read it.

Inject a bit-flip on any physical qubit. The two Parity checks name the culprit without ever reading α,β\alpha,\beta. Then correct and read the fidelity.

Fault injection

Causal signal trace paused

Prepare ∣ψ⟩\lvert ψ\rangle One logical qubit enters the encoder.

Step 1 / 6 Prepare |ψ⟩

Notebook: 6 parts and 13 wires, modelled as stabilizer parity + syndrome decoder

Recommended lab 8 of 18

Infer a single-qubit bit flip from syndrome parity without reading the logical state.

Builds on: Bell-State Entanglement Visualizer

Predict, then test

What information do the two syndrome measurements reveal?

Commit before the explanation appears. This is a prediction, not a quiz score.

Governing model
∣0⟩L=∣000⟩, ∣1⟩L=∣111⟩  ⋅  s=(q0⊕q1, q1⊕q2)|0\rangle_L = |000\rangle,\ |1\rangle_L = |111\rangle \;\cdot\; s = (q_0{\oplus}q_1,\ q_1{\oplus}q_2)
Parts
  • logical qubit →3\to 3 physical
  • injectable XX error
  • 22 ancilla syndrome bits
  • majority-vote decoder
Limits of the model
  • corrects any single bit-flip
  • syndrome ∈{00,01,10,11}\in\{00,01,10,11\}
  • logical fidelity 0/10/1
Diagnosis challenge The fault is hidden. Work it out from the changed outputs first.