Permutation

Contents

Permutation#

class discopy.compact.Permutation(dom, perm)[source]#

Bases: discopy.symmetric.Permutation, Box

A compact permutation is a symmetric permutation in a compact category.

Parameters:
  • dom (pivotal.Ty) – The domain, i.e. the wires to permute.

  • perm (Sequence[int]) – The permutation as a finset.Permutation or a list.