Result

class qctrl.dynamic.types.graph.Result(*, output=None, metadata=None, errors=None, action=None)

The result of a graph evaluation. It includes the evaluated outputs.

Variables
  • output (dict, optional) – The dictionary giving the value of each requested output node. The keys of the dictionary are the names \(\{s_j\}\) of the output nodes.

  • metadata (dict, optional) – Metadata associated with the calculation. No guarantees are made about the contents of this metadata dictionary; the contained information is intended purely to help interpret the results of the calculation on a one-off basis.

  • errors (List[qctrl.dynamic.types.Error], optional) – Related validation errors.

  • action (qctrl.dynamic.types.CoreAction, optional) – Metadata about the execution of the function.