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

Fix example #2162

Merged
merged 6 commits into from
Jun 12, 2024
Merged

Fix example #2162

merged 6 commits into from
Jun 12, 2024

Conversation

nihaocami
Copy link
Contributor

Summary

This doc which is live https://qiskit.github.io/qiskit-aer/getting_started.html has a wrong example code which I am fixing to run correctly with qiskit 1.0

Details and comments

qiskit.execute() is deprecated and instead we should run the job on the simulator directly. The example provide on the get started page is wrong and can cause confusion. I am changing the example so we can run it directly on the aer sim.

@doichanj
Copy link
Collaborator

doichanj commented Jun 4, 2024

Thank you, but I think backend.run() will be also deprecated, so could you please use SamplerV2 instead of using backend.run()

@nihaocami
Copy link
Contributor Author

Hi @doichanj do you mean the one in qiskit_ibm_runtime ? I thought maybe we wanted to keep introductory examples as simple as possible.

@doichanj
Copy link
Collaborator

doichanj commented Jun 4, 2024

No, I mean the example in readme.md, it uses SamplerV2.run() instead of using AerSimulator.run()

@nihaocami
Copy link
Contributor Author

No, I mean the example in readme.md, it uses SamplerV2.run() instead of using AerSimulator.run()

Oh yeah that's even better. Done!

@nihaocami
Copy link
Contributor Author

Hi @doichanj Can we merge this?

@doichanj doichanj merged commit 5e40517 into Qiskit:main Jun 12, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants