Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

fix: hybrid neural network deprecated package fix #2062 #2133

Closed
wants to merge 4 commits into from

Conversation

nuvinga
Copy link

@nuvinga nuvinga commented Jun 21, 2023

Changes

Fixes the usage of deprecated q_obj for run() in machine-learning-qiskit-pytorch.ipynb.
Closes #2062

Implementation details

Introduces changes to the machine-learning-qiskit-pytorch.ipynb notebook by removing the qobj statement and replaced with t_qc. Using a qobj for run() is deprecated as of qiskit-aer 0.9.0 and transpiled circuits should now be passed directly using backend.run(circuits, **run_options).

The change has been made in both the v1 and v2 notebooks.

Screenshots

FIle paths: notebooks/v1/ch-machine-learning/machine-learning-qiskit-pytorch.ipynb and notebooks/v2/ch-machine-learning/machine-learning-qiskit-pytorch.ipynb

image

@vabarbosa
Copy link
Contributor

FYI @frankharkins

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nuvinga thanks! Can you make this PR to Qiskit/textbook instead please? Just copy this notebook across with the changes.

@nuvinga
Copy link
Author

nuvinga commented Jun 22, 2023

Hi @frankharkins, I've made the changes to the textbook and the following is the PR:

qiskit/textbook - PR #52

Sorry about the delayed response :)

@nuvinga
Copy link
Author

nuvinga commented Jun 26, 2023

Hi @frankharkins & @vabarbosa. just checking up on this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Cannot run the quiskit aer simulator
3 participants