cirq.von_neumann_entropy

cirq.von_neumann_entropy(density_matrix: numpy.ndarray) → float[source]

Calculates von Neumann entropy of density matrix in bits.

Parameters

density_matrix – The density matrix.

Returns

The calculated von Neumann entropy.