ComposablePass

class hugr.passes.composable_pass.ComposablePass(*args, **kwargs)[source]

Bases: Protocol

A Protocol which represents a composable Hugr transformation.

Methods

then

Perform another composable pass after this pass.

Attributes

name

Returns the name of the pass.

property name: str

Returns the name of the pass.

then(other: ComposablePass) ComposablePass[source]

Perform another composable pass after this pass.