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.
Remove the print statement in
util.remove_gauge_detectors
and also make the gauge detectors unique withgauge_detectors = list(set(gauge_detectors))
, because there are cases (e.g. surface code $d=7$) that there are gauge errors likeerror(0.5) D0 D3
.