MarcSerraPeralta / dem-decoders

Wrapped decoders to work with stim.DetectorErrorModel
MIT License
0 stars 0 forks source link

Hotfix `util.remove_gauge_detectors` #17

Closed MarcSerraPeralta closed 3 months ago

MarcSerraPeralta commented 3 months ago

Remove the print statement in util.remove_gauge_detectors and also make the gauge detectors unique with gauge_detectors = list(set(gauge_detectors)), because there are cases (e.g. surface code $d=7$) that there are gauge errors like error(0.5) D0 D3.