qiskit icon indicating copy to clipboard operation
qiskit copied to clipboard

Make PrimitiveJob serializable

Open kt474 opened this issue 6 months ago • 2 comments

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

Details and comments

kt474 avatar Aug 15 '24 17:08 kt474