pygsti.sums_of_negative_choi_evals¶
-
pygsti.
sums_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 separately.
Parameters: gateset (GateSet) – The gate set to act on. Returns: each element == sum of the negative eigenvalues of the Choi matrix for the corresponding gate (as ordered by gateset.gates.iteritems()). Return type: list of floats