diff --git a/mthree/_helpers.py b/mthree/_helpers.py index 9416a1f1..80682ba9 100644 --- a/mthree/_helpers.py +++ b/mthree/_helpers.py @@ -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): diff --git a/mthree/test/test_multi_job.py b/mthree/test/test_multi_job.py index e8afcbbc..c87f0dfe 100644 --- a/mthree/test/test_multi_job.py +++ b/mthree/test/test_multi_job.py @@ -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) @@ -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)