Codes
QEC code generators
7/7 passed in 344ms
| Test | What it does | Result |
|---|---|---|
test_logical_fidelity | logical_fidelity returns 1 - mean mismatch over predictions vs observed. | ✅ pass |
test_rep_dem_graphlike | The repetition-code DEM is non-empty and almost entirely graphlike. | ✅ pass |
test_rep_detection_scales | The repetition-code detection-event rate grows with the error rate. | ✅ pass |
test_rep_detector_count | The repetition code declares rounds*(d-1) + (d-1) detectors and one obs. | ✅ pass |
test_surface_dem_graphlike | The rotated surface-code DEM is non-empty and fully graphlike. | ✅ pass |
test_surface_noiseless_silent | With no noise every surface detector and observable stays at zero. | ✅ pass |
test_surface_structure | The distance-3 surface code has 9 data qubits, 16 detectors and one obs. | ✅ pass |