|View source on GitHub|
Wrapper around a stabilizer state in CH form for the act_on protocol.
cirq.sim.StabilizerStateChForm, axes: Iterable[int], prng: np.random.RandomState, log_of_measurement_results: Dict[str, Any] )
To act on this object, directly edit the
state property, which is
storing the stabilizer state of the quantum system with one axis per qubit.
||The StabilizerStateChForm to act on. Operations are expected to perform inplace edits of this object.|
||The indices of axes corresponding to the qubits that the operation is supposed to act upon.|
||The pseudo random number generator to use for probabilistic effects.|
A mutable object that measurements are
being recorded into. Edit it easily by calling
record_measurement_result( key: str, value: Any )
Adds a measurement result to the log.
The key the measurement result should be logged under. Note
that operations should only store results under keys they have
declared in a
||The value to log for the measurement.|