qiskit.aqua.utils.get_subsystem_density_matrix¶
-
get_subsystem_density_matrix
(statevector, trace_systems)[código fonte]¶ Compute the reduced density matrix of a quantum subsystem.
- Parâmetros
statevector (list|array) – The state vector of the complete system
trace_systems (list|range) – The indices of the qubits to be traced out.
- Retorna
The reduced density matrix for the desired subsystem
- Tipo de retorno
numpy.ndarray