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

Migrate to Qiskit Nature v0.5 #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

towynlin
Copy link

When running the notebook code locally, I received this deprecation warning:

NatureDeprecationWarning: The qiskit_nature.operators package is deprecated as of version 0.5.0 and will be removed no sooner than 3 months after the release. Instead use the qiskit_nature.second_q.operators package.

I mentioned this in slack, and Steve Wood helpfully pointed me to the Qiskit Nature v0.5 Migration Guide.

The HeisenbergModel is almost identical to the IsingModel, so I subclassed it and made the minor override in second_q_op. The notebook then just needed a couple imports changed and the usage of HeisenbergModel simplified.

I don't have access to ibmq_quadalupe or the included provider, so I can't run the whole notebook — just running simulations for now. Someone who does have access should probably check that everything runs well. In an effort to maintain compatibility and clear messaging, I minimized what I changed in the notebook — just enough to make sure the code using the updated imports ran as expected.

@CLAassistant
Copy link

CLAassistant commented Feb 14, 2023

CLA assistant check
All committers have signed the CLA.

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