cuqi.experimental.algebra.Node.condition#

abstractmethod Node.condition(**kwargs)#

Conditions the tree by replacing any VariableNode with a ValueNode if the variable is in the kwargs dictionary.