cirq.sim.ActOnArgs

State and context for an operation acting on a state tensor.

Methods

copy

View source

Creates a copy of the object.

measure

View source

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.
invert_mask The invert mask for the measurement.