-
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.
) * Fix is_real on ParameterExpression * typo in reno Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3705798
commit 2bab09c
Showing
3 changed files
with
31 additions
and
2 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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/fix-paramexpr-isreal-8d20348b4ce6cbe7.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,14 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix a bug where a bound :class:`.ParameterExpression` was not identified as real | ||
if ``symengine`` was installed and the bound expression was not a plain ``1j``. | ||
For example:: | ||
from qiskit.circuit import Parameter | ||
x = Parameter("x") | ||
expr = 1j * x | ||
bound = expr.bind({x: 2}) | ||
print(bound.is_real()) # used to be True, but is now False | ||
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