OpReplacements¶ class guppyft.encode.OpReplacements[source]¶ __init__() → None[source]¶ ops: dict[tuple[str, str], tuple[GuppyFunctionDefinition[Any, Any] | Hugr[Any] | None, str]]¶ Stores the operations to replace during op implementation and the implementation functions. A function can be set to None to indicate that a declaration with the given name should be generated instead.