Swap# class discopy.tensor.Swap(dom=None, perm=None)[source]# Bases: Permutation, 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.