qiskit.providers.aer.library.set_density_matrix¶
-
set_density_matrix
(self, state)[Quellcode]¶ Set the density matrix state of the simulator.
- Parameter
state (DensityMatrix) – a density matrix.
- Rückgabe
with attached instruction.
- Rückgabetyp
- Verursacht
ExtensionError – If the density matrix is the incorrect size for the current circuit.