Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Sep 21, 2024
1 parent 5bd7b17 commit 2951695
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mthree/test/test_default_shots.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def test_athens_mod_shots1():
"""Check that default shots works properly for low settings"""
backend = FakeAthens()
backend._configuration.max_shots = LOW_SHOTS
backend._conf_dict['max_shots'] = LOW_SHOTS
mit = mthree.M3Mitigation(backend)
mit.cals_from_system()

Expand All @@ -32,7 +32,7 @@ def test_athens_mod_shots1():
def test_athens_mod_shots2():
"""Check that default shots works properly for high settings"""
backend = FakeAthens()
backend._configuration.max_shots = HIGH_SHOTS
backend._conf_dict['max_shots'] = HIGH_SHOTS
mit = mthree.M3Mitigation(backend)
mit.cals_from_system()

Expand Down
3 changes: 1 addition & 2 deletions mthree/test/test_inoperable_qubits.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def _faulty():


BACKEND = FakeKolkata()
_ = BACKEND.properties()
BACKEND._properties.faulty_qubits = _faulty
BACKEND._props_dict['faulty_qubits'] = _faulty


def test_inoperable_qubits1():
Expand Down
2 changes: 0 additions & 2 deletions mthree/test/test_multi_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_multiple_job_submission():
"""Test that submitting multiple jobs works"""
backend = FakeKolkata()
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 @@ -29,7 +28,6 @@ def test_multiple_job_submission_single_circuit():
"""Test that submitting multiple single-circuit jobs works"""
backend = FakeKolkata()
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 2951695

Please sign in to comment.