Commit 6a1e44e
fix(workbench): LER was Blossom's, reported under every decoder's name
_ler() accepted `kind` and ignored it. The body built
pymatching_compat.Matching.from_detector_error_model(sdem) and decoded with
that, and Matching is hard-wired to BlossomDecoder -- its __init__ declares
`self._decoder: BlossomDecoder` and from_detector_error_model takes no decoder
argument. Every row therefore carried Blossom's logical error rate while being
labelled with whatever decoder had just been benchmarked.
That is how the workbench export could report two_stage at a 5.0% logical error
rate while 42.5% of two_stage's own corrections failed to reproduce their
syndrome, and colour_code at 29% with a 1% syndrome match rate. The two columns
were measuring different decoders.
Now only kinds whose LER can actually be attributed produce a figure; the rest
return None. A missing number, never a wrong one. syndrome_match_rate remains
per-decoder and is the honest accuracy signal for the others.
Also corrects docs/RELEASING.md: the pre-flight said "expect 221 passed" when
the suite is 303, and pytest must run through dev.bat or 58 CUDA tests fail on
licensing alone.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 59d68ef commit 6a1e44e
2 files changed
Lines changed: 39 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
331 | 337 | | |
332 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
333 | 360 | | |
334 | | - | |
335 | | - | |
336 | 361 | | |
337 | 362 | | |
338 | 363 | | |
| |||
344 | 369 | | |
345 | 370 | | |
346 | 371 | | |
| 372 | + | |
347 | 373 | | |
348 | 374 | | |
349 | 375 | | |
| |||
0 commit comments