qiskit-community / povm-toolbox

A toolbox for the implementation of positive operator-valued measures (POVMs).
https://qiskit-community.github.io/povm-toolbox/
Apache License 2.0
30 stars 0 forks source link

[feature] Job recovery #23

Closed mrossinek closed 3 months ago

mrossinek commented 4 months ago

When running jobs using real hardware, they may queue for a long time. During this time, I may purposefully (or accidentally) close my Python session/kernel.

When this happens, I can obtain my job's results using the QiskitRuntimeService. However, this is only the job that gets submitted internally within the POVMSampler and the actual job object which I need for the POVMPostProcessor is a POVMSamplerJob which also contains the appropriate POVM metadata.

We should provide some simple interface for:

This may touch upon some intricate details w.r.t. serialization of the metadata (which I don't think is possible right now because of the POVMImplementation stored inside of it). Maybe we can rethink the contents and instead store some data from which the appropriate POVMImplementation can be recovered (e.g. the angles and bias).