atlas_q.diagnostics.bond_entropy_from_S#

atlas_q.diagnostics.bond_entropy_from_S(S)[source]#

Compute entanglement entropy from singular values

S = -Σ_i p_i log(p_i) where p_i = σ_i² / Σ_j σ_j²

Args:

S: Singular values (sorted descending)

Returns:

Entanglement entropy in bits (log base 2)