pygsti.tools.jamiolkowski.sums_of_negative_choi_eigenvalues#
- sums_of_negative_choi_eigenvalues(model)#
Compute the amount of non-CP-ness of a model.
This is defined (somewhat arbitrarily) by summing the negative eigenvalues of the Choi matrix for each gate in model separately. This function is different from
sum_of_negative_choi_eigenvalues()in that it returns sums separately for each operation of model.- Parameters:
model (Model) – The model to act on.
- Returns:
each element == sum of the negative eigenvalues of the Choi matrix for the corresponding gate (as ordered by model.operations.iteritems()).
- Return type:
list of floats