Skip to content

Commit

Permalink
Tweak sinter's automatic detector error model computation (#832)
Browse files Browse the repository at this point in the history
Derived from #734 , adjusted for
major code updates since then

Co-Author: @inmzhang
  • Loading branch information
Strilanc authored Sep 24, 2024
1 parent df99302 commit 8892636
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def _fill_in_task(task: Task) -> Task:
try:
dem = circuit.detector_error_model(decompose_errors=True, approximate_disjoint_errors=True)
except ValueError:
dem = circuit.detector_error_model(approximate_disjoint_errors=True)
try:
dem = circuit.detector_error_model(approximate_disjoint_errors=True)
except ValueError:
dem = circuit.detector_error_model(approximate_disjoint_errors=True, flatten_loops=True)
changed = True
if not changed:
return task
Expand Down

0 comments on commit 8892636

Please sign in to comment.