-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Removed code deprecated in 0.20 #10767
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
In |
|
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.
Thanks! While I check for the rest of the code, do not forget to add the release note:
create a release note in the category upgrade:. If you can include an example with an alternative for user to migrate to the new code, as this change might break users code.
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.
Here some suggestions on how to reformulate the release notes. Let me know what you think.
Code and tests deprecated in 0.20 are removed. | ||
:class:`.visualization.QCircuitImage` objects no longer supports | ||
`qregs`, `cregs`, `layout`and `global_phase` arguments. | ||
|
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.
Code and tests deprecated in 0.20 are removed. | |
:class:`.visualization.QCircuitImage` objects no longer supports | |
`qregs`, `cregs`, `layout`and `global_phase` arguments. | |
The class constructor arguments `qregs`, `cregs`, `layout`and `global_phase` for :class:`.visualization.QCircuitImage` are removed, as they were deprecated in 0.20. |
Code and tests deprecated in 0.20 are removed. In | ||
:class:`.transpiler.CouplingMap` :meth:`~subgraph` is removed. | ||
:meth:`~reduce` can be used in place of | ||
:meth:`~subgraph`. |
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.
:meth:`~subgraph`
wont resolve, as it is being removed. By this PR :)
Code and tests deprecated in 0.20 are removed. In | |
:class:`.transpiler.CouplingMap` :meth:`~subgraph` is removed. | |
:meth:`~reduce` can be used in place of | |
:meth:`~subgraph`. | |
The method `subgraph` in :class:`.transpiler.CouplingMap` | |
is being removed as it was deprecated in 0.20. The method | |
:meth:`~reduce` can be used in its place. It does the same thing, but preserves nodelist order. |
- | | ||
Code and tests deprecated in 0.20 are removed. In | ||
:class:`.dagcircuit.DAGCircuit` private :meth:`~_copy_circuit_metadata` is removed. | ||
Instead use public :meth:`~copy_empty_like` with same functionality. |
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.
No need for this one, since it is a private method.
- | | |
Code and tests deprecated in 0.20 are removed. In | |
:class:`.dagcircuit.DAGCircuit` private :meth:`~_copy_circuit_metadata` is removed. | |
Instead use public :meth:`~copy_empty_like` with same functionality. |
Code and tests deprecated in 0.20 are removed. In | ||
:class:`.synthesis.SuzukiTrotter` deprecation warning for | ||
odd `order` is replaced with `ValueError`. | ||
Refer to `#10747 <https://github.com/Qiskit/qiskit/issues/10747>` |
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.
Code and tests deprecated in 0.20 are removed. In | |
:class:`.synthesis.SuzukiTrotter` deprecation warning for | |
odd `order` is replaced with `ValueError`. | |
Refer to `#10747 <https://github.com/Qiskit/qiskit/issues/10747>` | |
The parameter `order` in :class:`.synthesis.SuzukiTrotter` raises an exception instead of deprecation warning when set in an odd number. Suzuki product formulae are symmetric and therefore only defined for even orders. |
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.
Hmm, your suggestions are quite good, i have tried to accommodate them in the commit. Thanks
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.
Great work! Let's get it merged once you solve the conflicts in qiskit/dagcircuit/dagcircuit.py
Pull Request Test Coverage Report for Build 6149701107
💛 - Coveralls |
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.
LGTM, Thanks!
It fixes #10747
Summary
Details and comments
Please addChangelog: Removal
tag.