cirq.sim.ActOnDensityMatrixArgs

State and context for an operation acting on a density matrix.

Inherits From: ActOnArgs

To act on this object, directly edit the target_tensor property, which is storing the density matrix of the quantum system with one axis per qubit.

Methods

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.