atlas_q.truncation.check_entropy_sanity#

atlas_q.truncation.check_entropy_sanity(entropy, chi_left, chi_right)[source]#

Verify entropy is within physical bounds

For a bond with dimensions χ_L and χ_R, maximum entropy is: S_max = log₂(min(χ_L · 2, 2 · χ_R))

Args:

entropy: Measured entanglement entropy chi_left: Left bond dimension chi_right: Right bond dimension

Returns:

True if entropy is physically reasonable