Skip to content

Commit

Permalink
Sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
pehamTom committed Jul 16, 2024
1 parent dfc90a5 commit 763cbe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mqt/qecc/ft_stateprep/state_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def combine_faults(
x_errors: If True, combine the fault sets for X errors. If False, combine the fault sets for Z errors.
"""
self.compute_fault_sets()
if len(additional_faults) == 0:
return self.x_fault_sets if x_errors else self.z_fault_sets

fault_sets_unreduced = self.x_fault_sets_unreduced.copy() if x_errors else self.z_fault_sets_unreduced.copy()
assert fault_sets_unreduced[1] is not None
Expand Down

0 comments on commit 763cbe5

Please sign in to comment.