This PR implements functionality to optionally return the POVM measurements as individual samples rather than counts dictionaries, see #33.
Essentially, the abstract method _counter of POVMImplementation is replaced by a new method _povm_outcomes that returns a list of samples instead of a counts dictionary. Similarly, the get_counts_from_raw method is renamed to get_povm_outcomes_from_raw and has a boolean flag that determines whether to return samples or counts.
A small note on this has been added to the getting_started.ipynb tutorial.
And to fix the failing CI, you can run tox -e style from the root of your local clone to try and fix this automatically. tox -e lint will tell you if it got everything.
This PR implements functionality to optionally return the POVM measurements as individual samples rather than counts dictionaries, see #33.
Essentially, the abstract method
_counter
ofPOVMImplementation
is replaced by a new method_povm_outcomes
that returns a list of samples instead of a counts dictionary. Similarly, theget_counts_from_raw
method is renamed toget_povm_outcomes_from_raw
and has a boolean flag that determines whether to return samples or counts.A small note on this has been added to the
getting_started.ipynb
tutorial.