TrialResult(*, params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray], repetitions: int)¶
The results of multiple executions of a circuit with fixed parameters.
A ParamResolver of settings used when sampling result.
A dictionary from measurement gate key to measurementresults. Measurement results are stored in a 2-dimensionalnumpy array, the first dimension corresponding to the repetitionand the second to the actual boolean measurement results (orderedby the qubits being measured.)
The number of times a circuit was sampled to get theseresults.
__init__(*, params: cirq.study.resolver.ParamResolver, measurements: Dict[str, numpy.ndarray], repetitions: int) → 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.
- repetitions – The number of times the circuit was sampled.
histogram(*, key, cirq.Qid, …)
Counts the number of times a measurement result occurred.
multi_measurement_histogram(*, keys, …)
Counts the number of times combined measurement results occurred.