pygsti.sum_of_negative_choi_evals¶
-
pygsti.
sum_of_negative_choi_evals
(gateset)¶ Compute the amount of non-CP-ness of a gateset by summing the negative eigenvalues of the Choi matrix for each gate in gateset.
Parameters: gateset (GateSet) – The gate set to act on. Returns: the sum of negative eigenvalues of the Choi matrix for each gate. Return type: float