Functor

Functor#

class discopy.quantum.channel.Functor(ob, ar, dom=None, dtype=<class 'int'>)[source]#

Bases: discopy.tensor.Functor

A channel functor is a tensor functor into classical-quantum channels.

Parameters:
  • ob (dict[cat.Ob, CQ]) – The object mapping.

  • ar (dict[cat.Box, array]) – The arrow mapping.

  • dom (type) – The domain of the functor.

  • dtype (type) – The datatype for the codomain Channel[dtype].

dom#

alias of Diagram

cod#

alias of Channel