PytketHugrPass¶
- class tket.passes.PytketHugrPass(*pytket_passes)[source]¶
Bases:
ComposablePass- __call__(hugr, *, inplace=True)¶
Call the pass to transform a HUGR, returning a Hugr.
- Return type:
Hugr
- property name: str¶
Returns the name of the pass.
- pytket_passes: list[BasePass]¶
A class which provides an interface to apply pytket passes to Hugr programs.
The user can create a
PytketHugrPassobject from any serializable member of pytket.passes.