-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Environment
- Qiskit Terra version:
- Python version:
- Operating system:
What is happening?
Parameter.is_real()
seems not correct.
How can we reproduce the issue?
>>> from qiskit.circuit import Parameter
>>> Parameter("a").is_real()
True
>>> (1j * Parameter("a")).is_real()
True
What should happen?
Both should return False
since we don't know whether a
is real or not.
Any suggestions?
No response
Cryoris
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working