diff --git a/src/mqt/qecc/cc_decoder/plots.py b/src/mqt/qecc/cc_decoder/plots.py index 02355b6a..b2d02778 100644 --- a/src/mqt/qecc/cc_decoder/plots.py +++ b/src/mqt/qecc/cc_decoder/plots.py @@ -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( diff --git a/src/mqt/qecc/circuit_synthesis/state_prep_det.py b/src/mqt/qecc/circuit_synthesis/state_prep_det.py index 69c834df..7ee90aa2 100644 --- a/src/mqt/qecc/circuit_synthesis/state_prep_det.py +++ b/src/mqt/qecc/circuit_synthesis/state_prep_det.py @@ -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