Node#

class cuqi.experimental.algebra.Node#

Base class for all nodes in the abstract syntax tree.

Responsible for building the AST by creating nodes that represent the operations applied to variables.

Each subclass must implement the __call__ method that will evaluate the node given the input parameters.

__init__()#

Methods

__init__()

get_variables([variables])

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