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.