Skip to content

Commit

Permalink
Update qiskit_ibm_runtime/utils/json.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Hincks <[email protected]>
  • Loading branch information
SamFerracin and ihincks authored Aug 12, 2024
1 parent 60eb36d commit f4cc3d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions qiskit_ibm_runtime/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,7 @@ def object_hook(self, obj: Any) -> Any:
circuit = _decode_and_deserialize(obj_val, load)[0]
return circuit.data[0][0]
if obj_type == "settings":
if (
obj["__module__"].startswith("qiskit.quantum_info.operators")
or obj["__module__"] == "qiskit_ibm_runtime.utils.noise_learner_result"
):
if obj["__module__"].startswith(("qiskit.quantum_info.operators", "qiskit_ibm_runtime.utils.noise_learner_result")):
return _deserialize_from_settings(
mod_name=obj["__module__"],
class_name=obj["__class__"],
Expand Down

0 comments on commit f4cc3d0

Please sign in to comment.