|View source on GitHub|
Wrapper around a stabilizer state in CH form for the act_on protocol.
`cirq.ActOnStabilizerCHFormArgs`, `cirq.sim.clifford.ActOnStabilizerCHFormArgs`, `cirq.sim.clifford.act_on_stabilizer_ch_form_args.ActOnStabilizerCHFormArgs`
cirq.sim.StabilizerStateChForm, axes: Iterable[int], prng: np.random.RandomState, log_of_measurement_results: Dict[str, Any], qubits: Sequence['cirq.Qid'] = None )
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.|
||Determines the canonical ordering of the qubits. This is often used in specifying the initial state, i.e. the ordering of the computational basis states.|
||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
copy() -> "cirq.ActOnStabilizerCHFormArgs"
Creates a copy of the object.
measure( key, invert_mask )
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 invert mask for the measurement.|