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
The current example in the guide for using plot_histogram to visualise results from Sampler are outdated. SamplerV2 returns a PrimitiveResult which doesn't have quasi_dist attribute, the migration guide docs explain how a somewhat equivalent solution can be implemented here: https://docs.quantum.ibm.com/api/qiskit/primitives#migration-from-primitives-v1-to-v2 but it's not the clearest because it only shows how to get the equivalent of what quasi_dist would have returned, not how to plot it! Thanks :)
URL to the relevant documentation
The current example in the guide for using plot_histogram to visualise results from Sampler are outdated. SamplerV2 returns a PrimitiveResult which doesn't have quasi_dist attribute, the migration guide docs explain how a somewhat equivalent solution can be implemented here: https://docs.quantum.ibm.com/api/qiskit/primitives#migration-from-primitives-v1-to-v2 but it's not the clearest because it only shows how to get the equivalent of what quasi_dist would have returned, not how to plot it! Thanks :)
Select all that apply
Describe the fix.
Update the content! Here's the link to the example: https://docs.quantum.ibm.com/guides/visualize-results
The text was updated successfully, but these errors were encountered: