Functor

Functor#

class discopy.quantum.channel.Functor(ob_map, ar_map, dom=None, dtype=<class 'float'>, optimize='greedy', **params)[source]#

Bases: discopy.tensor.Functor

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

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

  • ar_map (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