ExecutionMode

class boulderopal.graph.ExecutionMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Configuration for the execution mode used in execute_graph.

Variables

  • COMPILED – Compiled execution, where the graph you provide is compiled into an executable that can run operations in parallel and with low overhead (at the expense of compilation time). This mode can be faster for simulations of open system dynamics, large systems, or systems described by sampleable tensor function (Stf) objects.
  • EAGER – Eager execution, where the graph nodes you provide are executed sequentially immediately as they are encountered. This mode can be faster for simulations of systems described by piecewise-constant Hamiltonians with a large number (more than roughly 1000) of segments.

SEE ALSO

boulderopal.execute_graph : Evaluate a graph corresponding to a set of generic functions.

Was this useful?