forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start deprecation of complex parameters in Qiskit Pulse (Qiskit#9735)
* Add warning and update tests * Release notes * Move warning to all Pulse objects. * Fix releasenote typo * Move warning to format_parameter_value
- Loading branch information
Showing
4 changed files
with
46 additions
and
13 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
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/symbolic-pulse-complex-deprecation-89ecdf968b1a2d89.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 @@ | ||
--- | ||
deprecations: | ||
- | | ||
Assignment of complex values to ``ParameterExpression`` in any Qiskit Pulse object | ||
now raises a ``PendingDeprecationWarning``. This will align the Pulse module with | ||
other modules where such assignment wasn't possible to begin with. The typical use | ||
case for complex parameters in the module was the SymbolicPulse library. As of | ||
Qiskit-Terra 0.23.0 all library pulses were converted from complex amplitude | ||
representation to real representation using two floats (amp,angle), as used in the | ||
``ScalableSymbolicPulse`` class. This eliminated the need for complex parameters. | ||
Any use of complex parameters (and particularly custom-built pulses) should be | ||
converted in a similar fashion to avoid the use of complex parameters. |
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