Skip to content

Commit

Permalink
Tweak sinter's automatic detector error model computation
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 committed Sep 21, 2024
1 parent c5830cd commit b0355be
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 b0355be

Please sign in to comment.