Adds options to control probability type and threshold of QuantumAlgorithm
#449
Labels
type: feature request
New feature or request
QuantumAlgorithm
#449
What should we add?
Follow-up #436 (comment) by @woodsp-ibm
If users apply Sampler to
QuantumAlgorithm
, the resultQuasiDistribution
is interpreted at the following method.https://github.com/Qiskit/qiskit-optimization/blob/a752fd9e6af400a427a841952aac9555e454bc30/qiskit_optimization/algorithms/optimization_algorithm.py#L522-L525
QuasiDistribution
can return both quasi-probabilities (can be negative values) and nearest probability. We need to think of 1) whether we provide an option to control quasi prob or nearest prob and 2) how to control it.We also need to think of an option to control
min_probability
. We currently set1e-6
and do not allow users control it. But, it might be necessary to control it especially for quasi-probabilities.One idea is to add options to
QuantumAlgorithm.__init__
as follows.I welcome your feedback and ideas.
The text was updated successfully, but these errors were encountered: