-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
pi_check in qasm and truncate floats #4276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm good was thinking about the location in circuits but i think this is used enough that we should include. also see the need for sqrt(2) as well.
can you add a test that the qasm produced by this is parsable. |
good to go after it passes |
Hold on doing sqrt(2) as well |
@nonhermitian that was just as a suggestion in my approval. It could be another pr as there might be a few irrational numbers we want to use (don't do them all but quantum does use a few) |
Ok, I hold off for another day. |
* pi_check in qasm and truncate floats * lint * Update latex.py * Update matplotlib.py * Update text.py * add round trip qasm test Co-authored-by: Jay Gambetta <jay.gambetta@us.ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Summary
fixes #4272
Does what the title says.
Details and comments