Swap

Contents

Swap#

class discopy.frobenius.Swap(dom=None, perm=None)[source]#

Bases: Permutation, discopy.compact.Swap, discopy.markov.Swap, Box

A frobenius swap is a compact and Markov swap in a frobenius diagram.

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

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