You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user used to have in V1: dists = job.result().quasi_dists
Could we provide an example of conversion of his code (including a circuit example) to V2 using: counts = job.result()[0].data.meas.get_counts()
?
Thanks
The text was updated successfully, but these errors were encountered:
The old output format was a dictionary of with bitstring (in int) as the key and quasi-probabilities as the value for each circuit, e.g. [{0: 0.4589879389380925, 1: 0.5410120610619075}]. The new format has the same key (but as string) and counts as the value. To convert the new format to the old, one can do:
URL to the relevant documentation
https://docs.quantum.ibm.com/migration-guides/v2-primitives#sampler-examples--input-and-output
Select all that apply
Describe the fix.
When a user used to have in V1:
dists = job.result().quasi_dists
Could we provide an example of conversion of his code (including a circuit example) to V2 using:
counts = job.result()[0].data.meas.get_counts()
?
Thanks
The text was updated successfully, but these errors were encountered: