Run it
Analyze once, sample directly
rstim analyze_errors --in circuit.stim --out model.dem
rstim sample_dem --in model.dem --shots 1000 --out_format dets
Example results
Detection and DEM sampling
| Workload | Implementation | Result |
|---|---|---|
| Surface d=13, r=13 detect | rstim compiled | 34.339 ms |
| Surface d=13, r=13 detect | Stim CLI | 266.172 ms |
| Surface d=11, r=100 DEM sample | rstim | 329 shots/s |
| Surface d=11, r=100 DEM sample | Stim | 2,669 shots/s |
Benchmark evidence
Checked DEM results
Loading detector-model evidence.