qiskit.providers.aer.library.set_density_matrix¶
-
set_density_matrix
(self, state)[소스]¶ Set the density matrix state of the simulator.
- 매개변수
state (DensityMatrix) – a density matrix.
- 반환값
with attached instruction.
- 반환 형식
- 예외
ExtensionError – If the density matrix is the incorrect size for the current circuit.