Closed frankharkins closed 1 week ago
What is the expected feature or enhancement?
Unlike other result types, NoiseLearnerResult is not JSON serializable. I get an error when trying to save the job using this guide: https://docs.quantum.ibm.com/guides/save-jobs#save-results-to-disk.
NoiseLearnerResult
import json from qiskit_ibm_runtime import RuntimeEncoder with open("result.json", "w") as file: json.dump(retrieved_job.result(), file, cls=RuntimeEncoder)
TypeError: Object of type NoiseLearnerResult is not JSON serializable
Full traceback.
Acceptance criteria
NoiseLearnerResult can be serialized with RuntimeEncoder and RuntimeDecoder.
RuntimeEncoder
RuntimeDecoder
Thank you!
What is the expected feature or enhancement?
Unlike other result types,
NoiseLearnerResult
is not JSON serializable. I get an error when trying to save the job using this guide: https://docs.quantum.ibm.com/guides/save-jobs#save-results-to-disk.Full traceback.
Acceptance criteria
NoiseLearnerResult
can be serialized withRuntimeEncoder
andRuntimeDecoder
.