Twist#
- class discopy.balanced.Twist(dom, is_dagger=False)[source]#
Bases:
Box
The 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
Twist
is only defined for atomic types (i.e. of length 1). For complex types, useDiagram.twist()
instead.