Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Aug 12, 2024
1 parent f4cc3d0 commit b66a85d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qiskit_ibm_runtime/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,12 @@ 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", "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 b66a85d

Please sign in to comment.