-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Remove deprecated methods from QuantumCircuit #8980
Remove deprecated methods from QuantumCircuit #8980
Conversation
This removes the old `c?u[1-3]` methods from `QuantumCircuit`, along with the `combine` and `extend` methods. The numbered-argument `UGate` alternatives had been deprecated since Terra 0.16, and the simpler forms of `compose` since 0.17. The `U1Gate` class, and so on, are left in so the transpiler and equivalence rules can still support legacy backends with these as basis gates, but their privileged place as direct methods on `QuantumCircuit` is removed.
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:
|
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, always nice to clean up the code 😉 There's a lint error due to an unused import of warnings
in the test_extensions_standard
but otherwise this looks good!
Updated, thanks! |
Pull Request Test Coverage Report for Build 3380611518
💛 - Coveralls |
I've removed the now-unused private circuit method |
releasenotes/notes/remove-deprecated-circuit-methods-3e4eb27c4709ba12.yaml
Outdated
Show resolved
Hide resolved
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
Summary
This removes the old
c?u[1-3]
methods fromQuantumCircuit
, along with thecombine
andextend
methods. The numbered-argumentUGate
alternatives had been deprecated since Terra 0.16, and the simpler forms ofcompose
since 0.17.The
U1Gate
class, and so on, are left in so the transpiler and equivalence rules can still support legacy backends with these as basis gates, but their privileged place as direct methods onQuantumCircuit
is removed.Details and comments
I also cut out the test warning suppressions that were related to these methods.