Skip to content

Commit

Permalink
Improve documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Jan 10, 2025
1 parent 5eb67ea commit 31902d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pytket/binders/passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ PYBIND11_MODULE(passes, m) {
"A pass to remove all barrier instructions from the circuit.");
m.def(
"RemovePhaseOps", &RemovePhaseOps,
"A pass to remove all Phase operations from the circuit.");
"A pass to remove all Phase operations from the circuit. This includes "
"conditional Phase operations, but not Phase operations inside "
"CircBoxes, QControlBoxes or other nested structures.");
m.def(
"ZXGraphlikeOptimisation", &ZXGraphlikeOptimisation,
"Attempt to optimise the circuit by simplifying in ZX calculus and "
Expand Down
2 changes: 1 addition & 1 deletion pytket/pytket/_tket/passes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def RemoveImplicitQubitPermutation() -> BasePass:
"""
def RemovePhaseOps() -> BasePass:
"""
A pass to remove all Phase operations from the circuit.
A pass to remove all Phase operations from the circuit. This includes conditional Phase operations, but not Phase operations inside CircBoxes, QControlBoxes or other nested structures.
"""
def RemoveRedundancies() -> BasePass:
"""
Expand Down

0 comments on commit 31902d6

Please sign in to comment.