Skip to main content
IBM Quantum Platform

EvaluationNode

class samplomatic.samplex.nodes.EvaluationNode

GitHub

Bases: ABC, Node

A node that evaluates on an existing register state.

Methods Summary

Column 1
Column 2
evaluate(registers, parameter_values)Evaluate this node.

Methods Documentation

evaluate

abstractmethod evaluate(registers: dict[str, VirtualRegister], parameter_values: ndarray)

GitHub

Evaluate this node.

Parameters

  • registers – At least those registers needed by this node to read from or write to.
  • parameter_values – Parameter values to use during evaluation.

Raises

SamplexRuntimeError – If the number of parameter values received does not equal the number required by this node.

Was this page helpful?
Report a bug, typo, or request content on GitHub.