Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.

Home Page:https://www.ibm.com/quantum/qiskit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Current implementation of StatevectorSampler does not return exact values

adekusar-drl opened this issue · comments

What should we add?

If the number of shots is not specified for StatevectorSampler, it defaults to 1024 and the results are sampled. In contrast, the original Sampler returns exact results without sampling. This discrepancy in behavior could lead to unexpected outcomes for users who assume exact results will be provided by default.