opto.trace.propagators.propagators#

Module Contents#

Classes#

AbstractPropagator

AbstractFeedback

Propagator

SumPropagator

API#

class AbstractPropagator[source]#
abstract propagate(child: opto.trace.nodes.MessageNode) Dict[opto.trace.nodes.Node, Any][source]#
class AbstractFeedback[source]#
class Propagator[source]#

Bases: opto.trace.propagators.propagators.AbstractPropagator

Initialization

register(operator_name, propagate_function)[source]#
propagate(child: opto.trace.nodes.MessageNode) Dict[opto.trace.nodes.Node, Any][source]#
abstract init_feedback(node: opto.trace.nodes.Node, feedback: Any)[source]#
class SumPropagator[source]#

Bases: opto.trace.propagators.propagators.Propagator

Initialization

init_feedback(feedback: Any)[source]#