entropy

entropy(state)[source]

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