pygsti.algorithms.scoring.list_score

Contents

pygsti.algorithms.scoring.list_score#

list_score(input_array, score_func='all')#

Score an array of eigenvalues. Smaller scores are better.

Parameters:
  • input_array (numpy array) – The eigenvalues to be scored.

  • score_func ({'all', 'worst'}, optional) –

    Sets the objective function for scoring the eigenvalues. If ‘all’, score is sum(1/input_array). If ‘worst’, score is 1/min(input_array).

    Note: we use this function in various optimization routines, and sometimes choosing one or the other objective function can help avoid suboptimal local minima.

Returns:

Score for the eigenvalues.

Return type:

float