TrialResult(*, params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray])¶
- The results of multiple executions of a circuit with fixed parameters.Stored as a Pandas DataFrame that can be accessed through the “data”attribute. The repetition number is the row index and measurement keysare the columns of the DataFrame. Each element is a big endian integerrepresentation of measurement outcomes for the measurement key in thatrepitition.
A ParamResolver of settings used when sampling result.
__init__(*, params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray]) → None¶
params – A ParamResolver of settings used for this result.
measurements – A dictionary from measurement gate key to measurement results. The value for each key is a 2-D array of booleans, with the first index running over the repetitions, and the second index running over the qubits for the corresponding measurements.