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.

entropy

entropy(state)

GitHub

Compute the von-Neumann entropy of a quantum state.

Parameters

state (array_like) – a density matrix or state vector.

Returns

The von-Neumann entropy S(rho).

Return type

float

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