qiskit
qiskit copied to clipboard
Make PrimitiveJob serializable
Summary
In qiskit-ibm-runtime
we want to add job methods to our QiskitRuntimeLocalService
(Issue https://github.com/Qiskit/qiskit-ibm-runtime/issues/1607). In order to save PrimitiveJob
objects locally we need a way to serialize them. It's currently not serializable due to the use of ThreadPoolExecutor
:
https://github.com/Qiskit/qiskit/blob/35d0954578d5312a63fb702f29bbd3d47ff25cc5/qiskit/primitives/primitive_job.py#L47-L48
Credit to @t-imamichi