pytket.passes ================================== In pytket, compilation passes perform in-place transformations of circuits. From a user's point of view, passes are similar to `transforms `_; however passes allow for additional predicate checking and compositionality. There are passes such as `FullPeepholeOptimise `_ and `KAKDecomposition `_ which are designed for general purpose circuit optimisation. Also there are special purpose passes such as `OptimisePhaseGadgets `_ and `PauliSimp `_ which perform optimisation by targeting phase gadget and Pauli gadget structures within circuits. For more on these optimisation techniques see the `corresponding publication `_. Rebase passes can be used to convert a circuit to a desired gateset. See `RebaseCustom `_ and `auto_rebase_pass `_. For more on pytket passes see the `compilation `_ section of the user manual or the `notebook tutorials `_ .. automodule:: pytket._tket.passes :members: :special-members: __init__ .. autoclass:: pytket.passes.PassSelector :special-members: __init__ :members: pytket.passes.script ~~~~~~~~~~~~~~~~~~~~ .. automodule:: pytket.passes.script :members: compilation_pass_from_script, compilation_pass_grammar pytket.passes.auto_rebase ~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pytket.passes.auto_rebase :members: auto_rebase_pass, auto_squash_pass