opto.trace.propagators.graph_propagator#

Module Contents#

Classes#

TraceGraph

GraphPropagator

API#

class TraceGraph[source]#

Bases: opto.trace.propagators.propagators.AbstractFeedback

graph: List[Tuple[int, opto.trace.nodes.Node]] = None#
user_feedback: Any = None#
empty()[source]#
classmethod expand(node: opto.trace.nodes.MessageNode)[source]#
visualize(simple_visualization=True, reverse_plot=False, print_limit=100)[source]#
class GraphPropagator[source]#

Bases: opto.trace.propagators.propagators.Propagator

Initialization

init_feedback(node, feedback: Any)[source]#
aggregate(feedback: Dict[opto.trace.nodes.Node, List[opto.trace.propagators.graph_propagator.TraceGraph]])[source]#