Box

Contents

Box#

class discopy.quantum.zx.Box(name=None, dom=None, cod=None, data=None, *args, **kwargs)[source]#

Bases: Box[complex], Diagram

A ZX box is a tensor box in a ZX diagram.

Parameters:
  • name (str) – The name of the box.

  • dom (rigid.PRO) – The domain of the box, i.e. its input.

  • cod (rigid.PRO) – The codomain of the box, i.e. its output.