From ad5a0cdb0e653d71d3b79cf9fd812947eecefe85 Mon Sep 17 00:00:00 2001 From: Paul Nation Date: Wed, 30 Oct 2024 09:47:05 -0400 Subject: [PATCH] Fake backends correctly report themselves as simulators --- qiskit_ibm_runtime/fake_provider/fake_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qiskit_ibm_runtime/fake_provider/fake_backend.py b/qiskit_ibm_runtime/fake_provider/fake_backend.py index b28086a58..b74521471 100644 --- a/qiskit_ibm_runtime/fake_provider/fake_backend.py +++ b/qiskit_ibm_runtime/fake_provider/fake_backend.py @@ -151,6 +151,8 @@ def _get_conf_dict_from_json(self) -> dict: conf_dict = self._load_json(self.conf_filename) # type: ignore decode_backend_configuration(conf_dict) conf_dict["backend_name"] = self.backend_name + # Set simulator to True cause config comes from real system and has it False + conf_dict["simulator"] = True return conf_dict def _set_props_dict_from_json(self) -> None: