-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove pulse scoped_parameters and search_parameters
The `scoped_parameters` and `search_parameters` methods have been removed from the `ScheduleBlock` class. These methods returned `Parameter` objects that partially linked to the parameters in the `ScheduleBlock` instance but assigning values using these objects did not work correctly. Users should use `ScheduleBlock.parameters` instead and iterate through `ScheduleBlock.references` and compare to the `Schedule.parameters` attributes of the subreferences when needing to distinguish which subroutine a parameter is used in. See #11654 for more information.
- Loading branch information
Showing
3 changed files
with
84 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/remove-pulse-scoped-parameters-fa897399900f2ef2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The ``scoped_parameters`` and ``search_parameters`` methods have been | ||
removed from the `.ScheduleBlock` class. These methods returned | ||
`.Parameter` objects that partially linked to the parameters in the | ||
`.ScheduleBlock` instance but assigning values using these objects did not | ||
work correctly. Users should use `.ScheduleBlock.parameters` instead and | ||
iterate through `.ScheduleBlock.references` and compare to the | ||
`.Schedule.parameters` attributes of the subreferences when needing to | ||
distinguish which subroutine a parameter is used in. See `#11654 | ||
https://github.com/Qiskit/qiskit/issues/11654`__ for more information. |
Oops, something went wrong.