A ribbon functor from ribbon diagrams to Intertwiner, i.e.
it sends a knot to the tensor network of \(\mathrm{Rep}(H)\) that
computes its invariant. Contract it yourself with
tensor.Diagram.eval().
Parameters:
ob_map – A mapping from atomic ribbon.Ty to
Representation.
ar_map – A mapping from generating ribbon.Box to arrays.
cod – The category Intertwiner[H] of the target algebra.
The inherited ribbon dispatch does the work: an atom goes to its
Representation (its dual l or
r when the winding is odd), a product of atoms to
the product of modules, and a cup/cap/twist to
Intertwiner.cups/caps/twist(). The one override
routes both crossings of a braid to Intertwiner.braid(), the
under-crossing being the antipode inverse rather than the tensor adjoint.
Example
The left trace of the braid is the inverse twist in any ribbon
category, so the twist followed by it is the identity. The functor
sends this ribbon diagram to a tensor network made of the ribbon
element acting through the module and the R-matrix closed by the
trace, which contracts to the identity — drawn as the
tensor.CMap: