We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter.is_real() seems not correct.
Parameter.is_real()
>>> from qiskit.circuit import Parameter >>> Parameter("a").is_real() True >>> (1j * Parameter("a")).is_real() True
Both should return False since we don't know whether a is real or not.
False
a
No response
The text was updated successfully, but these errors were encountered:
Didn't we already discuss whether to use three-level logic here ? @Cryoris
Sorry, something went wrong.
Yeah, we did 🙂 The plan was to do the same as sympy and symengine: return None while the expression is not bound, otherwise True or False accordingly
None
True
Successfully merging a pull request may close this issue.
Environment
What is happening?
Parameter.is_real()
seems not correct.How can we reproduce the issue?
What should happen?
Both should return
False
since we don't know whethera
is real or not.Any suggestions?
No response
The text was updated successfully, but these errors were encountered: