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]¶
- run(hugr, *, inplace=True)[source]¶
Run the pytket pass as a HUGR transform returning a PassResult.
- Return type: