MATLAB/Octave QEC simulations

Quantum Error Correction

Educational implementations of small quantum error-correction codes, syndrome decoders, Monte Carlo sweeps, generated reports, and reusable figures for studying logical recovery under simple Pauli noise models.

Implemented schemes

Algorithms and Codes

Focused implementation pages preserve the scientific details while giving each code its own entry point.

3-Qubit Bit-Flip

Encode, syndrome extraction, correction, Monte Carlo logical-error sweeps, and noisy syndrome rounds.

3 qubitsX errorsMonte Carlo

3-Qubit Phase-Flip

X-basis repetition code with X-parity syndrome checks and single Z-error recovery.

3 qubitsZ errorsX checks

5-Qubit Perfect Code

Distance-3 stabilizer code with syndrome-table recovery for arbitrary single-qubit Pauli errors.

5 qubitsstabilizerPauli recovery

7-Qubit Steane

CSS code using Hamming parity checks with separate X/Z syndrome decoding.

7 qubitsCSSHamming

9-Qubit Shor

Concatenated-style repetition structure with bit and phase syndromes for single-Pauli recovery.

9 qubitsShorsingle Pauli

3x3 Bacon-Shor

Subsystem-code Pauli-frame model with row/column syndromes, representative corrections, and logical residual checks.

9 qubitssubsystemPauli frame

Surface-3 Prototype

Compact 9-data-qubit surface-code model with X/Z/Pauli channels, noisy syndrome rounds, and a circuit-level schedule prototype.

surface codematching lookupschedule

Generated artefacts

Figure Dashboard

Committed PNG outputs remain available as direct image assets and as part of the results documentation.

Bit-flip logical error vs physical error
Bit-flip logical error vs physical error
Bit-flip syndrome distribution
Bit-flip syndrome distribution
Bit-flip decoder confusion matrix
Bit-flip decoder confusion matrix
Bit-flip error weight distribution
Bit-flip error weight distribution
Bit-flip Monte Carlo demo
Bit-flip Monte Carlo demo
Recovery failure by error weight
Recovery failure by error weight
Depolarizing logical error comparison
Depolarizing logical error comparison
Bit-flip noisy syndrome rounds
Bit-flip noisy syndrome rounds
Surface-3 logical error vs X error
Surface-3 logical error vs X error
Surface-3 channel comparison
Surface-3 channel comparison
Surface-3 noisy syndrome rounds
Surface-3 noisy syndrome rounds
Surface distance logical error scaling
Surface distance logical error scaling

Documentation

Docs, Guides, and Reports

All markdown documentation is published as styled HTML and copied as raw markdown for reproducibility.

Overview

README.md

MarkdownHTML
Open

Algorithms

docs/ALGORITHMS.md

MarkdownHTML
Open

Usage

docs/USAGE.md

MarkdownHTML
Open

Theory

docs/THEORY.md

MarkdownHTML
Open

Results

docs/RESULTS.md

MarkdownHTML
Open

Surface-3

docs/SURFACE3.md

MarkdownHTML
Open

Simulation Report

docs/SIMULATION_REPORT.md

MarkdownHTML
Open

Setup

docs/setup.md

MarkdownHTML
Open

Repository Layout

docs/REPOSITORY_LAYOUT.md

MarkdownHTML
Open

Roadmap

docs/ROADMAP.md

MarkdownHTML
Open

Contributing

CONTRIBUTING.md

MarkdownHTML
Open

Bit-Flip

docs/algorithms/BITFLIP.md

MarkdownHTML
Open

Phase-Flip

docs/algorithms/PHASEFLIP.md

MarkdownHTML
Open

5-Qubit

docs/algorithms/FIVE_QUBIT.md

MarkdownHTML
Open

Steane

docs/algorithms/STEANE.md

MarkdownHTML
Open

Shor

docs/algorithms/SHOR.md

MarkdownHTML
Open

Color-7

docs/algorithms/COLOR7.md

MarkdownHTML
Open

Bacon-Shor

docs/algorithms/BACON_SHOR.md

MarkdownHTML
Open

Repetition Decoder

docs/algorithms/REPETITION_DECODER.md

MarkdownHTML
Open

Surface Distance

docs/algorithms/SURFACE_DISTANCE.md

MarkdownHTML
Open

API and Source Reference

Generated from src/, examples/, and tests/ first-line comments

GeneratedHTML
Open

Source reference

Code, Examples, Tests

Project-specific implementation files are copied into the site artifact so source links and examples remain accessible.