![]() |
State and context for an operation acting on a clifford tableau.
cirq.sim.ActOnCliffordTableauArgs(
tableau: cirq.sim.CliffordTableau
,
axes: Iterable[int],
prng: np.random.RandomState,
log_of_measurement_results: Dict[str, Any]
)
There are two common ways to act on this object:
- Directly edit the
tableau
property, which is storing the clifford tableau of the quantum system with one axis per qubit. - Call
record_measurement_result(key, val)
to log a measurement result.
Methods
record_measurement_result
record_measurement_result(
key: str,
value: Any
)
Adds a measurement result to the log.
Args | |
---|---|
key
|
The key the measurement result should be logged under. Note
that operations should only store results under keys they have
declared in a _measurement_keys_ method.
|
value
|
The value to log for the measurement. |