Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "Visualize Results" Guide Plot Histogram Section for SamplerV2 #2619

Open
1 of 5 tasks
haileed04 opened this issue Feb 4, 2025 · 1 comment
Open
1 of 5 tasks

Comments

@haileed04
Copy link

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

  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix.

Update the content! Here's the link to the example: https://docs.quantum.ibm.com/guides/visualize-results

@haileed04 haileed04 added bug 🐛 content 📄 needs triage 🤔 this issue needs to be prioritized by the docs team labels Feb 4, 2025
@javabster
Copy link
Collaborator

thanks for this catch! We'll update as soon as we can, or if you would like to open a PR for it you are very welcome to!

@javabster javabster added good first issue 🐣 and removed needs triage 🤔 this issue needs to be prioritized by the docs team labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

4 participants