Functor

Contents

Functor#

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

Bases: 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 (T) – The domain of the functor.

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