Skip to content

Commit

Permalink
Fake backends correctly report themselves as simulators
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Oct 30, 2024
1 parent 9d01de5 commit ad5a0cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qiskit_ibm_runtime/fake_provider/fake_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad5a0cd

Please sign in to comment.