Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.aqua.utils.get_subsystem_density_matrix

get_subsystem_density_matrix(statevector, trace_systems)

GitHub

Compute the reduced density matrix of a quantum subsystem.

Parameters

  • statevector (list|array) – The state vector of the complete system
  • trace_systems (list|range) – The indices of the qubits to be traced out.

Returns

The reduced density matrix for the desired subsystem

Return type

numpy.ndarray

Was this page helpful?
Report a bug or request content on GitHub.