cirq.StepResult

class cirq.StepResult(measurements: Optional[Dict[str, List[bool]]] = None)[source]

Results of a step of a SimulatesIntermediateState.

measurements
A dictionary from measurement gate key to measurement
results, ordered by the qubits that the measurement operates on.
__init__(measurements: Optional[Dict[str, List[bool]]] = None) → None[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

sample(qubits, repetitions) Samples from the system at this point in the computation.
sample_measurement_ops(measurement_ops, …) Samples from the system at this point in the computation.
simulator_state() Returns the simulator_state of the simulator after this step.