negativity

Function negativity 

Source
pub fn negativity(
    state: &QuantumState,
    dims: (usize, usize),
) -> Result<f64, QuantumInfoError>
Expand description

Calculate the negativity of a bipartite state.

N(ρ) = (||ρ^{T_A}||₁ - 1) / 2 where ρ^{T_A} is the partial transpose.

§Arguments

  • state - Bipartite quantum state
  • dims - Dimensions of subsystems (dim_A, dim_B)

§Returns

The negativity N ≥ 0