Skip to content
Tech Interview Prep
Technical interview guide

Quantum Error Correction, Noise & Decoherence

Why real qubits are noisy, the difference between physical and logical qubits, and how surface codes trade physical qubit count for error resilience.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v3
Editorial status
Reviewed

Scope: IBM Quantum current QEC, noise, mitigation, and fault-tolerance guidance; surface-code and QEC literature reviewed 2026-09-04.

Overview

Curated: · Written: · Reviewed:

Quantum Error Correction, Noise & Decoherence

In one line

A logical qubit is information encoded across many physical qubits so that repeated syndrome measurements reveal errors without reading the encoded state. Reach for it when a computation must run longer than the physical coherence time allows.

Key definitions

  • T1: energy relaxation (amplitude damping) at rate 1/T1; a qubit left idle drifts toward |0>.
  • T2 / T2*: dephasing. T2 ≤ 2·T1 always. T2* is the Ramsey value; T2_echo is the Hahn echo value, which refocuses quasi-static noise. Never compare them as one number.
  • Stabilizer: a commuting Pauli operator with eigenvalue +1 on the code space. Its measured flip is one syndrome bit.
  • Distance d: weight of the lowest-weight nontrivial logical operator. Corrects t = floor((d−1)/2) arbitrary errors.
  • Pauli frame: a classical record of corrections, tracked in software instead of applied on hardware.
  • Pseudothreshold vs threshold: the first is a crossover for one code, decoder and device; the second is an asymptotic property of a scheme under an assumed noise model.

Formulas and complexity

t=⌊(d−1)/2⌋t=\lfloor (d-1)/2 \rfloor nphys=2d2−1(rotated surface code, one logical qubit)n_{\text{phys}} = 2d^2-1 \quad \text{(rotated surface code, one logical qubit)} pL≈A(ppth)⌊(d+1)/2⌋p_L \approx A\left(\frac{p}{p_{th}}\right)^{\lfloor (d+1)/2 \rfloor} Λ=εdεd+2\Lambda = \frac{\varepsilon_d}{\varepsilon_{d+2}} E(ρ)=(1−p)ρ+p I2E(\rho)=(1-p)\rho + p\,\frac{I}{2}

Stochastic: total error probability grows as n·p. Coherent: n gates of angle θ combine to rotation nθ, so the error is about sin²(nθ/2), which grows as n². Google 2024 surface-code result: Λ ≈ 2.14 and about 0.143% logical error per cycle at d = 7. Threshold near 1% physical error.

How it works

  1. Encode the logical state into a code subspace with an isometry.
  2. Each cycle, ancillas measure every X-type and Z-type stabilizer.
  3. A flipped syndrome bit is a detection event. The decoder (minimum-weight perfect matching) pairs events in space and time into the most likely error.
  4. Corrections go into the Pauli frame. The logical measurement is read out through that frame.
Encode logical state Syndrome round on ancillas Detection events in space and time Decoder: minimum-weight matching Update Pauli frame Logical measurement read through frame

When to use and when not to

SituationUse QECUse suppression or mitigation
Circuit deeper than T1/T2 allowsYes, needs a logical qubitNo
Shallow circuit, expectation value onlyOverhead too largeZero-noise extrapolation
Idle window dominated by 1/f dephasingToo costlyDynamical decoupling, e.g. XY4
Physical error below about 1%, decoder keeps upYesNot needed
Decoder slower than the cycle timeNo until fixedNot a substitute

Traps interviewers probe

  1. Treating Ramsey T2 as echo T2.* Fix: name the sequence. Short T2* with long echo T2 means quasi-static noise that echo refocuses.
  2. Quoting a single-round fidelity as a logical error rate. Fix: report logical error per cycle at a stated distance, round count, decoder and calibration window.
  3. Modelling a coherent over-rotation as stochastic. Hypothetical check: 0.1° per gate over 200 gates gives 200θ ≈ 0.349 rad, so the error is sin²(0.1745) ≈ 3%, not 1×10⁻⁴. Fix: characterize the rotation and use randomized compiling.
  4. Claiming break-even against the average or best physical qubit at unmatched workload. Fix: compare against the best physical qubit at matched workload and matched duration.
  5. Expecting more distance to fix a bad magic-state input. Going from d = 15 to d = 25 does not lower a 1×10⁻³ injected error. Fix: add distillation, then size the code distance.

Interview tips

Open with: "A logical qubit is a code subspace. The claim I defend is logical error per cycle against the unencoded baseline at matched workload."

Follow-ups to expect: decoder latency per round; how leakage is handled; what the break-even baseline is; how logical error scales with distance; magic-state factory overhead; why encoding does not violate no-cloning. For no-cloning, say that encoding distributes information into correlations, and that the syndrome is identical for |0_L> and |+_L>, so the records carry no information about the amplitudes.

30-second outline:

  1. Define logical versus physical qubit.
  2. Mechanism: stabilizers, syndrome, decoder, Pauli frame.
  3. Numbers: threshold near 1%, Λ ≈ 2.14 at d = 7 (Google 2024), 2d² − 1 physical qubits per logical qubit.
  4. Caveat: idle memory does not imply logical gates. Non-Clifford gates via distillation dominate the overhead.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.