-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Changes on HoareOptimizer #5135
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
Conversation
Co-authored-by: Abby Mitchell <abby.mitchell@btinternet.com>
While reviewing this PR with @javabster, we noticed that the |
Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
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.
thanks for the fix, please also add a bugfix release note
Summary
Changes on
HoareOptimizer
. Resolves #4981.Details and comments
This PR introduces the following changes on
HoareOptimizer
.Fixes triviality check condition for
or
together with previous conditions is unsatisfiable.
CZGate
,CU1Gate
,MCU1Gate
.These gates act trivially (up to global phase) iff the clause
Removes 'always trivial' condition from
CRZGate
.Catches
CircuitError
for instructions with no inverse.For example, the following code would previously raise an error.