qiskit-ibm-runtime
qiskit-ibm-runtime copied to clipboard
Better workflows for sampler with readout error mitigation
What is the expected feature or enhancement? When readout error mitigation is turned on, a calibration job is executed, the results stored, and the sampler returns a quasi-distribution from the counts returned by the system. There are currently a couple of issues with this workflow.
~~1) Qiskit has no way of computing expectation values from sampled distributions (https://github.com/Qiskit/qiskit-terra/issues/8465). This should be fixed in Terra in the next release.~~ Resolved
- If doing multiple calls to the
Sampler
, e.g. within aSession
, I typically do not need to do this calibration over and over. Instead, it should be possible to cache this value, at theSession
level (or higher?) and use over and over again, and thus reduce the overall overhead.
Acceptance criteria
I can reuse measurement calibration data for multiple calls to the Sampler
within a Session