Two-qubit entropy from the reduced determinant (source code)

= Two-qubit entropy from the reduced determinant
{title2=$\lambda_\pm=(1\pm\sqrt{1-4D})/2$}

For a unit-trace two-dimensional reduced state of a bipartite <pure state>, <determinant> $D$ gives <eigenvalues> $(1\pm\sqrt{1-4D})/2$. Their binary entropy quantifies <entanglement>. Natural logarithms give a maximum $\ln2$; base-two logarithms give one bit.