pub fn negativity( state: &QuantumState, dims: (usize, usize), ) -> Result<f64, QuantumInfoError>
Calculate the negativity of a bipartite state.
N(ρ) = (||ρ^{T_A}||₁ - 1) / 2 where ρ^{T_A} is the partial transpose.
state
dims
The negativity N ≥ 0