Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2024
1 parent 71b590a commit 9703aa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mqt/qecc/cc_decoder/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def threshold_fit(
"""Compute standard fit function for the threshold."""
p, ell = variables
expr = (p - pth) * (ell ** (1 / mu))
return cast(float, b0 + b1 * expr + b2 * (expr**2))
return cast("float", b0 + b1 * expr + b2 * (expr**2))


def calculate_threshold(
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qecc/circuit_synthesis/state_prep_det.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def deterministic_correction(
for verify_outcome_int in range(1, 2**num_and_stabs):
verify_outcome = _int_to_int8_array(verify_outcome_int, num_and_stabs)
logger.info(
f"Computing deterministic verification for non-det outcome {verify_outcome}: {verify_outcome_int}/{2** num_and_stabs - 1}"
f"Computing deterministic verification for non-det outcome {verify_outcome}: {verify_outcome_int}/{2**num_and_stabs - 1}"
)

# only consider errors that triggered the verification pattern
Expand Down

0 comments on commit 9703aa8

Please sign in to comment.