Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Oct 22, 2024
1 parent 2ebb5bd commit 1ed2372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mthree/test/test_extra_cals.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_save_cals(tmp_path):
cal_file = tmp_path / "cal.json"
mit = mthree.M3Mitigation(backend)
mit.cals_from_system(cals_file=cal_file)
_ = mit.single_qubit_cals #Force waiting since async=True by default
_ = mit.single_qubit_cals # Force waiting since async=True by default
with open(cal_file, "r", encoding="utf-8") as fd:
cals = np.array(orjson.loads(fd.read())["cals"], dtype=np.float32)
assert np.array_equal(mit.single_qubit_cals, cals)
Expand All @@ -83,7 +83,7 @@ def test_load_cals(tmp_path):
backend = FakeAthens()
mit = mthree.M3Mitigation(backend)
mit.cals_from_system(cals_file=cal_file)
_ = mit.single_qubit_cals #Force waiting since async=True by default
_ = mit.single_qubit_cals # Force waiting since async=True by default
new_mit = mthree.M3Mitigation(backend)
new_mit.cals_from_file(cal_file)
assert np.array_equal(mit.single_qubit_cals, new_mit.single_qubit_cals)

0 comments on commit 1ed2372

Please sign in to comment.