Update metadata of Primitives V2 (backport #12784) #12857
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the metadata of Primitives V2 to be compatible with that of real devices.
precision
->target_precision
shots
shots
If I need to keep the compatibility of the metadata within Qiskit 1.*, I will revert the rename and removal.
I'm wondering
StatevectorEstimator
because it does not compute expectation values directly from the state vector not based on shots. So, there is not relevant information about shots and I did not addshots
toStatevectorEstimator
yet. If necessary, I can add something likeshots=inf
, for example.Addresses Qiskit/qiskit-ibm-runtime#1724
Summary of discussion:
1-a. Shall we add
shots=inf
toStatevectorEstimator
or not addshots
?precision
ofStatevectorEstimator
andshots
ofStatevectorSampler
.TODO
Details and comments
SamplerV2 of qiskit-ibm-runtime returns the following metadata
EstimatorV2 of qiskit-ibm-runtime returns the following metadata
This is an automatic backport of pull request #12784 done by [Mergify](https://mergify.com).