Twist#
- class discopy.balanced.Twist(dom, is_dagger=False)[source]#
Bases:
BoxThe twist on atomic type
dom.- Parameters:
dom (T) – the domain of the twist.
phase – the phase of the twist in integer multiples of
2 * pi.
Important
Twistis only defined for atomic types (i.e. of length 1). For complex types, useDiagram.twist()instead.