Quantum Error Correction
The QEC module provides automatic quantum error correction as a service. Submit a logical circuit and QCOS compiles it to a fault-tolerant physical circuit using your chosen error correction code, runs syndrome decoding in real time, and returns logically-corrected measurement outcomes.Why QEC Matters
Near-term QPUs (NISQ devices) have physical error rates of 0.1%–5% per gate. For circuits deeper than ~100 gates, errors accumulate and results become unreliable. QEC encodes each logical qubit into many physical qubits and continuously corrects errors, enabling arbitrarily long computations in principle.List Supported Codes
Compile with QEC
Convert a logical circuit to a fault-tolerant physical circuit (Pauli-based computation compiler):Run the QEC Pipeline
Compile and execute in one call.Syndrome Measurement
During execution, ancilla qubits are measured every syndrome cycle to detect errors without collapsing the logical state. Extract and decode syndromes:Python Example — Fault-Tolerant Bell State
Probabilistic Braiding Compilation (PBC)
For topological codes (surface code), QCOS supports probabilistic braiding compilation, which constructs fault-tolerant gates through anyon braiding operations.Related
- Backends Overview
- Algorithms — All standard algorithms support optional QEC wrapping
- HPC Backend — Large QEC simulations may require HPC