Removed Deprecated Pulse Call Instruction#11537
Conversation
|
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7532353892Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
…/Qiskit into deprecation-0.25-pulse
ElePT
left a comment
There was a problem hiding this comment.
The removal procedure looks well executed :), I think I don't have enough pulse expertise to judge if any additional unit test is necessary to compensate for the removal of Call.
| from qiskit.test import QiskitTestCase | ||
|
|
||
|
|
||
| class ParameterTestBase(QiskitTestCase): |
There was a problem hiding this comment.
I haven't taken the time to analyze the test in depth, but would it make sense to keep it and only delete/replace the schedule.Call line?
There was a problem hiding this comment.
Thanks for taking a look! :) Yes, there are a couple of test cases that could qualify for removal or rephrasing. The discussion in issue #10103 lead me to believe there are already alternatives for test cases using Pulse.Call, allowing for current Pulse.Call test cases to be removed... Do you suggest to rephrase all test cases using builder.call instead of Pulse.Call?
There was a problem hiding this comment.
You shouldn't remove these tests. This file covers the test cases for schedule parameter assignment.
nkanazawa1989
left a comment
There was a problem hiding this comment.
Thanks @sbrandhsn for taking care of this. I really appreciate. My comment is largely about these two:
- You can revert changes to symbolic pulse, since this is done by #11403
- Please do NOT delete the entire parameter assignment test
test.python.pulse.test_parameter_manager. You can just remove dependency onCallfrom the reference object.
| from qiskit.test import QiskitTestCase | ||
|
|
||
|
|
||
| class ParameterTestBase(QiskitTestCase): |
There was a problem hiding this comment.
You shouldn't remove these tests. This file covers the test cases for schedule parameter assignment.
|
|
||
| self.assertEqual(assigned, ref_obj) | ||
|
|
||
| def test_nested_assignment_partial_bind(self): |
There was a problem hiding this comment.
Please keep this test. You can just remove dependency on Call and add subroutine directly here because subroutine is ScheduleBlock.
…e1c768.yaml Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
|
Arigatou gozaimashita, @nkanazawa1989 ! :-) I was not familiar with the pulse part of qiskit, thanks for clarifying the deprecation of Pulse.Call! This PR also removes:
|
nkanazawa1989
left a comment
There was a problem hiding this comment.
@sbrandhsn Thanks for quick update!
* removed deprecated pulse.Call * up reno right location * doc fix * fixes qpy error * fix temporary files * updated release note * Update releasenotes/notes/deprecate-pulse-instruction-call-52dca0dd26e1c768.yaml Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> * reintroduced testcases that used Pulse.Call --------- Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
Summary
Removed pulse call instruction deprecated in #10247 and #10103
Details and comments
I was a bit unsure about removing all test cases that use
pulse.Callsince it seemed thatpulse.Callsometimes only provides reference values for some of these, but proceeded after reading the discussion in #10103. I hope that was okay.But just to be sure, it would be great if you (maybe @nkanazawa1989 ? :-) ) can check that all removed test cases are indeed included in https://github.com/Qiskit/qiskit/blob/main/test/python/pulse/test_builder.py or https://github.com/Qiskit/qiskit/blob/main/test/python/pulse/test_builder_v2.py.
I'm especially sceptical that everything in
TestParameterGetterandTestParameterSettercould be removed -- there,pulse.Callwas used to create some reference values.