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

Remove usage of deprecated qiskit.execute function #134

Closed
airwoodix opened this issue Feb 2, 2024 · 1 comment · Fixed by #136
Closed

Remove usage of deprecated qiskit.execute function #134

airwoodix opened this issue Feb 2, 2024 · 1 comment · Fixed by #136
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@airwoodix
Copy link
Collaborator

The qiskit.execute was deprecated in Qiskit 0.46.0. See Qiskit/qiskit#7892 for the background discussion. Replacement is either backend.run(transpile(...), ...) or using the Sampler primitive.

@airwoodix airwoodix added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 2, 2024
@airwoodix airwoodix self-assigned this Feb 2, 2024
@G3mha
Copy link

G3mha commented May 8, 2024

For those who have not yet identified an alternative to the execute() method in their code, the simplest solution to maintain your code operational is to downgrade qiskit's installation. This can be achieved by first uninstalling qiskit on pip, and then executing pip install qiskit==0.46.1. By doing so, you will still have access to the execute() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants