-
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 ParametricPulse classes #11024
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:
|
Pull Request Test Coverage Report for Build 7124792193
💛 - Coveralls |
@1ucian0 Its been a while, can you help me get the review from the code owners? |
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
@@ -50,12 +50,12 @@ class ParametricPulseShapes(Enum): | |||
@classmethod | |||
def from_instance( | |||
cls, | |||
instance: Union[library.ParametricPulse, library.SymbolicPulse], | |||
instance: [library.SymbolicPulse], |
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.
you don't need the square brackets here
Yes sure!.. I'll resolve it |
9b7ecd9
to
2c201a5
Compare
@1ucian0 @nkanazawa1989 I have resolved all the conflicts and submitted it for PR. Kindly, take a look and help me merge it. Thank You! |
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 a lot for your work @Ak-ash22 !
it looks good to me in general (just some comments in the release note). However, it would be great if @nkanazawa1989 can have the final 👍 .
(and thanks @rupeshknn for reviewing it ahead!)
...tes/notes/releasenotes/notes/remove-deprecated-parametric-pulses-class-667e4b970e1163b3.yaml
Outdated
Show resolved
Hide resolved
...tes/notes/releasenotes/notes/remove-deprecated-parametric-pulses-class-667e4b970e1163b3.yaml
Outdated
Show resolved
Hide resolved
@@ -1465,8 +1465,7 @@ def __new__( | |||
# Note this is implemented using Piecewise instead of just returning amp | |||
# directly because otherwise the expression has no t dependence and sympy's | |||
# lambdify will produce a function f that for an array t returns amp | |||
# instead of amp * np.ones(t.shape). This does not work well with | |||
# ParametricPulse.get_waveform(). | |||
# instead of amp * np.ones(t.shape). |
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 catch fixing the comments!
...tes/notes/releasenotes/notes/remove-deprecated-parametric-pulses-class-667e4b970e1163b3.yaml
Outdated
Show resolved
Hide resolved
…tric-pulses-class-667e4b970e1163b3.yaml Co-authored-by: Luciano Bello <[email protected]>
…tric-pulses-class-667e4b970e1163b3.yaml Co-authored-by: Luciano Bello <[email protected]>
…tric-pulses-class-667e4b970e1163b3.yaml Co-authored-by: Luciano Bello <[email protected]>
Thanks @Ak-ash22 this looks good to me! |
Summary
Fixes #10810
Details and comments
Removed deprecated code parametric_pulses.py and tests. I noticed a bug in the related test.... in the qiskit/test/python/pulse/test_pulse_lib.py, there is a test class named TestParametricPulses(..) but it calls all the Gaussian, Constant and other waveforms from the symbolic_pulses.py and not from the paramteric_pulses.py. So I changed the name of the test class to TestSymbolicPulses(..).
Removed the related code from other files where ParametricPulses class was imported and used.
Created a reno 'remove-deprecated-parametric-pulses-class-667e4b970e1163b3.yaml' for the issue.
This PR has been requested to tagged as Changelog: Removal to reflect the removal deprecated components.