Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 21, 2024
1 parent 1593eb1 commit 5bd7b17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mthree/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def system_info(backend):
info_dict["num_qubits"] = config.num_qubits
_max_shots = backend.options.validator.get("shots", (None, None))[1]
info_dict["max_shots"] = _max_shots if _max_shots else int(1e9)

if isinstance(backend, IBMBackend):
info_dict["simulator"] = False
elif isinstance(backend, BackendV2):
Expand Down
8 changes: 4 additions & 4 deletions mthree/test/test_multi_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
def test_multiple_job_submission():
"""Test that submitting multiple jobs works"""
backend = FakeKolkata()
_ = backend.configuration()
backend._configuration.max_experiments = 5
backend._conf_dict['max_experiments'] = 5
#backend._configuration.max_experiments = 5
mit = mthree.M3Mitigation(backend)
mit.cals_from_system()
assert all(cal.trace() > 1.8 for cal in mit.single_qubit_cals)
Expand All @@ -28,8 +28,8 @@ def test_multiple_job_submission():
def test_multiple_job_submission_single_circuit():
"""Test that submitting multiple single-circuit jobs works"""
backend = FakeKolkata()
_ = backend.configuration()
backend._configuration.max_experiments = 1
backend._conf_dict['max_experiments'] = 5
#backend._configuration.max_experiments = 1
mit = mthree.M3Mitigation(backend)
mit.cals_from_system()
assert all(cal.trace() > 1.8 for cal in mit.single_qubit_cals)

0 comments on commit 5bd7b17

Please sign in to comment.