cond_loop

cond_loop#

Builder classes for structured control flow in HUGR graphs (Conditional, TailLoop).

Classes

Case

Dataflow graph builder for a case in a conditional.

Conditional

Build a conditional branching on a sum type.

Else

Build the 'else' branch of a conditional branching on a boolean value.

If

Build the 'if' branch of a conditional branching on a boolean value.

TailLoop

Builder for a tail-controlled loop.

Exceptions

ConditionalError

Error building a Conditional.