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

Removal of deprecated Qiskit 2.0 related code #2318

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

Conversation

gadial
Copy link
Collaborator

@gadial gadial commented Feb 18, 2025

Summary

Removes code that is incompatible with the upcoming Qiskit 2.0 release.

Details and comments

Qiskit 2.0 drops support for Pulse and BackendV1, resulting in several required removals:

  • Everything that uses convert_to_target is removed
  • Usage of qiskit.pulse is removed.
  • Use of BackendProperties is removed, resulting in the removal of NoiseModel's from_backend_properties method.
  • BackendV1 related code is removed.
  • Use of BackendStatus was removed, resulting in the removal of the status method for the Aer backend.

Copy link

@eliarbel eliarbel left a comment

Choose a reason for hiding this comment

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

Most of the actual removals seem good to me but I'm not sure about deprecations though. I've left line comments asking about deprecation and requests for some documentation fixes.

self._options_configuration = {}
self._options_properties = {}

def status(self):

Choose a reason for hiding this comment

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

Can we just remove this without a deprecation first?

return noise_model

@classmethod
def from_backend_properties(

Choose a reason for hiding this comment

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

Same note about deprecation... I'm not sure what is the right approach for Aer.

---
deprecations:
- |
Remove the parts of the code that relied on deprecated `qiskit` components:

Choose a reason for hiding this comment

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

Suggested change
Remove the parts of the code that relied on deprecated `qiskit` components:
Remove the parts of the code that relied on deprecated `qiskit` components that are being removed in Qiskit 2.0:

Remove the parts of the code that relied on deprecated `qiskit` components:
* Everything that uses `convert_to_target` is removed
* Usage of `qiskit.pulse` is removed.
* Use of `BackendProperties` is removed, resulting in the removal of :class:`.NoiseModel`'s :meth:`.from_backend_properties` method.
Copy link

@eliarbel eliarbel Feb 23, 2025

Choose a reason for hiding this comment

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

BackendProperties is still mentioned in various docstrings (e.g. as a return value). Those should be cleared. It's also mentioned in Device backend noise model simulations tutorial.

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