cirq.DensityMatrixSimulatorState

class cirq.DensityMatrixSimulatorState(density_matrix: numpy.ndarray, qubit_map: Dict[cirq.ops.raw_types.Qid, int])[source]

The simulator state for DensityMatrixSimulator

Parameters
  • density_matrix – The density matrix of the simulation.

  • qubit_map – A map from qid to index used to define the ordering of the basis in density_matrix.

__init__(density_matrix: numpy.ndarray, qubit_map: Dict[cirq.ops.raw_types.Qid, int]) → None[source]

Initialize self. See help(type(self)) for accurate signature.