Simulate and sample circuits
Parse Stim-format circuits, inspect structure with
rstim stats, and sample measurement or detector shots.
RustQEC workspace
RustQEC brings together the rstim simulator and CLI, MWPM,
BP-OSD, and ILP decoders, and a parallel benchmark harness in one Cargo
workspace — one cargo build away.
What's in the box
Simulate circuits, extract detector error models, decode with three decoder families, and benchmark the results — without leaving the workspace.
Parse Stim-format circuits, inspect structure with
rstim stats, and sample measurement or detector shots.
Derive DEMs with rstim analyze_errors and sample them
directly with rstim sample_dem.
MWPM (rmatching), BP-OSD (rbposd), and ILP
(rilpqec) decoders share one workspace and harness.
RSMP v1 stores every measurement result in a circuit-bound archive, then recovers measurements, detectors, and observables with the original circuit.
Render SVG diagrams with rstim render_svg, including
seeded atom-loss sample-shot overlays, and export QP101 JSON.
Build CSS code matrices with qec-code and run exact or
randomized distance checks backed by qec-ilp-core.