-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate pulse parameter scoping (#11691)
* Deprecate pulse reference parameter scoping As noted in #11654, parameter scoping does not work properly beginning with Qiskit 0.45.0. The problem is that the `Parameter` name is now used for the hash value and so the parameter produced with the scoped name is not equivalent to the original parameter and does not substitute for it when using parameter assignment. Since the scoped parameter mechanism was a convenience feature and not widely used, it is simply deprecated rather than made to work with parameter assignment. * black * Update releasenotes/notes/deprecate-pulse-parameter-scoping-6b6b50a394b57937.yaml Co-authored-by: Jake Lishman <jake@binhbar.com> * Move warning to documentation --------- Co-authored-by: Jake Lishman <jake@binhbar.com> Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
- Loading branch information
1 parent
89d403d
commit 6b914c7
Showing
3 changed files
with
93 additions
and
32 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
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/deprecate-pulse-parameter-scoping-6b6b50a394b57937.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,11 @@ | ||
--- | ||
deprecations: | ||
- | | ||
The :meth:`.ScheduleBlock.scoped_parameters` and | ||
:meth:`.ScheduleBlock.search_parameters` methods have been deprecated. | ||
These methods produce :class:`.Parameter` objects with names modified to | ||
indicate pulse scoping. The original intention of the methods was that | ||
these objects would still link to the original unscoped :class:`.Parameter` | ||
objects. However, the modification of the name breaks the link so that | ||
assigning using the scoped version does not work. See `#11654 | ||
<https://github.com/Qiskit/qiskit/issues/11654>`__ for more context. |
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