Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix serialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed May 31, 2023
1 parent 114a216 commit 72a08bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_ibm_provider/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def default(self, obj: Any) -> Any: # pylint: disable=arguments-differ
if isinstance(obj, QuantumCircuit):
value = _serialize_and_encode(
data=obj,
serializer=lambda buff, data: dump(data, buff), # type: ignore[no-untyped-call]
serializer=lambda buff, data: dump(data, buff, RuntimeEncoder), # type: ignore[no-untyped-call]
)
return {"__type__": "QuantumCircuit", "__value__": value}
if isinstance(obj, Parameter):
Expand Down

0 comments on commit 72a08bc

Please sign in to comment.