Swap

Contents

Swap#

class discopy.tensor.Swap(name=None, dom=None, cod=None, data=None, *args, **kwargs)[source]#

Bases: discopy.frobenius.Swap, Box

A tensor swap is a frobenius swap in a tensor diagram.

Parameters:
  • left (Dim) – The type on the top left and bottom right.

  • right (Dim) – The type on the top right and bottom left.

  • dom (T) –

  • cod (T) –