Box

Contents

Box#

class discopy.feedback.Box(name, dom, cod, time_step=0, **params)[source]#

Bases: discopy.markov.Box, Diagram

A feedback box is a markov box in a feedback diagram.

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

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

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

  • _time_step (int) – The number of times the box has been delayed.

  • time_step (int) –

reset()[source]#

Reset a box to time step zero, used in Functor.