-
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
Deprecate accidentally public internal helper methods on QuantumCircuit #12785
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 10073672823Details
💛 - Coveralls |
58ae8ea
to
aa4a429
Compare
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.
Two tiny comments otherwise LGTM 🙂
qiskit/circuit/quantumcircuit.py
Outdated
@classmethod | ||
@deprecate_func( | ||
since=1.2, | ||
removal_timeline="in qiskit 2.0", |
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.
Should we uppercase this? 🙂
removal_timeline="in qiskit 2.0", | |
removal_timeline="in Qiskit 2.0", |
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.
I wrote it in lowercase because the beginning of the message writes qiskit
in lowercase. But I also don't love it. Anyways, I modified the timeline message in a7b7361 to say
"in the 2.0 release" to be consistent with other deprecations (qobj and assemble).
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.
Oh I didn't notice... that seems odd. Maybe we should change that as well 🤔 (not here ofc)
Co-authored-by: Julien Gacon <gaconju@gmail.com>
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 for the updates! 🙂
…it (Qiskit#12785) * Deprecate accidentally public qc helper methods * Fix lint * Complete reno and add removal timeline * Update qiskit/circuit/quantumcircuit.py Co-authored-by: Julien Gacon <gaconju@gmail.com> * Update remaining docstrings and removal timeline. * Trailing whitespace --------- Co-authored-by: Julien Gacon <gaconju@gmail.com>
…it (Qiskit#12785) * Deprecate accidentally public qc helper methods * Fix lint * Complete reno and add removal timeline * Update qiskit/circuit/quantumcircuit.py Co-authored-by: Julien Gacon <gaconju@gmail.com> * Update remaining docstrings and removal timeline. * Trailing whitespace --------- Co-authored-by: Julien Gacon <gaconju@gmail.com>
Summary
Fixes #12417. I added the "private version" of the methods so that we can then remove the public one in 2.0. Let me know if you had a different idea for the deprecation.
Details and comments