-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add pass to remove Phase
gates
#1735
Conversation
@@ -2574,7 +2574,7 @@ class Circuit: | |||
@property | |||
def wasm_uid(self) -> str | None: | |||
""" | |||
:return: the unique wasm uid of the circuit | |||
:return: the unique WASM UID of the circuit, or `None` if the circuit has none |
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 don't understand why this wasn't caught by the CI check previously.
pytket/binders/passes.cpp
Outdated
@@ -679,6 +679,9 @@ PYBIND11_MODULE(passes, m) { | |||
m.def( | |||
"RemoveBarriers", &RemoveBarriers, | |||
"A pass to remove all barrier instructions from the circuit."); | |||
m.def( | |||
"RemovePhaseOps", &RemovePhaseOps, | |||
"A pass to remove all Phase operations from the circuit."); |
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.
The documentation should probably specify the limits of this pass, i.e. removes conditional Phases but not Phases within other boxes/controlled operations. Beyond this, the PR looks all good
Closes #1733 .