-
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 functionality from extensions, qasm, and dagcircuit modules #7208
Conversation
This commit goes through qiskit.extensions, qiskit.qasm, qiskit.util, and qiskit.dagcircuit modules and cleans up deprecated functionality that has gone through a full deprecation cycle and no longer needs to be supported.
We may need to leave For linking purposes: Ali also has #7011 to clean up |
Hmm, yeah I'll back it out the |
Why not just issue the deprecation warning raw in the |
I mean something like having the file be: import warnings
from qiskit.utils import *
warnings.warn("Use qiskit.utils instead", DeprecationWarning) It isn't imported by Terra during init, so users won't see the warning until they import it themselves, and you can't use any functions through its namespace without importing it. The warning can be attached to the import, rather than the member access, I think? |
The qiskit/util.py will need to be deprecated a bit longer it's still in active use by downstream packages and it was right on the boundary of being deprecated long enough anyway so being a bit more conservative on this is probably for the best anyway.
c3a725d
to
d43072b
Compare
I did try that when I first pushed up #5420 but back then |
Sure - I'll do it in a bit. I want to go through and check the other downstream qiskit packages first for uses of |
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.
These deprecations look good to me now.
Pull Request Test Coverage Report for Build 1425762814
💛 - Coveralls |
Summary
This commit goes through qiskit.extensions, qiskit.qasm, qiskit.util,
and qiskit.dagcircuit modules and cleans up deprecated functionality
that has gone through a full deprecation cycle and no longer needs to
be supported.
Details and comments