qiskit.providers.aer.library.set_density_matrix¶
-
set_density_matrix
(self, state)[código fonte]¶ Set the density matrix state of the simulator.
- Parâmetros
state (DensityMatrix) – a density matrix.
- Retorna
with attached instruction.
- Tipo de retorno
- Levanta
ExtensionError – If the density matrix is the incorrect size for the current circuit.