VariableNode#

class cuqi.experimental.algebra.VariableNode(name)#

Node that represents a generic variable, e.g. “x” or “y”.

Parameters:

name (str) – Name of the variable. Used for printing and to retrieve the given input value of the variable in the kwargs dictionary when evaluating the tree.

__init__(name)#

Methods

__init__(name)

get_variables([variables])

Returns a set with the names of all variables in the sub-tree originated at this node.