-
Notifications
You must be signed in to change notification settings - Fork 380
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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): |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
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.
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:
convert_to_target
is removedqiskit.pulse
is removed.BackendProperties
is removed, resulting in the removal ofNoiseModel
'sfrom_backend_properties
method.BackendV1
related code is removed.BackendStatus
was removed, resulting in the removal of thestatus
method for the Aer backend.