Skip to content

Commit

Permalink
🔧 Adjust codecov config (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
nquetschlich authored Dec 12, 2023
1 parent ba904bd commit 3207641
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ignore:
- "predictor/*"
- "tests/*"

coverage:
range: 60..90
Expand Down
8 changes: 4 additions & 4 deletions src/mqt/predictor/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def __init__(self) -> None:
self.ionq_harmony_calibration = parse_simple_calibration_config("ionq_harmony")
self.ionq_aria1_calibration = parse_simple_calibration_config("ionq_aria1")
self.quantinuum_h2_calibration = parse_simple_calibration_config("quantinuum_h2")
self.ibm_washington_cx_mean_error = get_mean_IBM_washington_cx_error()
self.ibm_montreal_cx_mean_error = get_mean_IBM_montreal_cx_error()
self.ibm_washington_cx_mean_error = get_mean_ibm_washington_cx_error()
self.ibm_montreal_cx_mean_error = get_mean_ibm_montreal_cx_error()

except Exception as e:
raise RuntimeError("Error in Calibration initialization: " + str(e)) from e


def get_mean_IBM_washington_cx_error() -> float:
def get_mean_ibm_washington_cx_error() -> float:
"""Returns the mean cx error for the IBM Washington device."""
cmap: list[list[int]] = FakeWashington().configuration().coupling_map
backend = FakeWashington().properties()
Expand All @@ -43,7 +43,7 @@ def get_mean_IBM_washington_cx_error() -> float:
return cast(float, np.mean(res))


def get_mean_IBM_montreal_cx_error() -> float:
def get_mean_ibm_montreal_cx_error() -> float:
"""Returns the mean cx error for the IBM Washington device."""
cmap: list[list[int]] = FakeMontreal().configuration().coupling_map
backend = FakeMontreal().properties()
Expand Down

0 comments on commit 3207641

Please sign in to comment.