returns a counts dictionary, while job.result()[0].data.meas.get_bitstrings() returns a list of individual samples.
A similar functionality for the POVMSampler could be enabled with an additional method for the POVMSPubResult class.
I guess .get_bitstrings is a poor name in the context of POVMs, but I suggest this could be called ..get_samples.
It would nice to have the option to return POVM outcomes as individual samples rather than as a counts dictionary.
The current
qiskit_ibm_runtime.SamplerV2
has some utility functions that enable this. More specifically,returns a counts dictionary, while
job.result()[0].data.meas.get_bitstrings()
returns a list of individual samples.A similar functionality for the
POVMSampler
could be enabled with an additional method for thePOVMSPubResult
class. I guess.get_bitstrings
is a poor name in the context of POVMs, but I suggest this could be called ..get_samples
.