Result

class qctrl.dynamic.types.qchack_measurements.Result(*, measurements=None, action=None, errors=None)

The measurement results for the simulation.

Variables
  • measurements (List[List[int]], optional) – The qubit measurements associated with each control and shot. The outer list has length equal to the number of controls you requested. Each element of that list has length equal to the number of shots you requested. Each element of the inner lists is either 0, 1, or 2, corresponding to the measured qubit state.

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

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