pygsti.algorithms.fiducialselection.add_penalties_greedy#
- add_penalties_greedy(unpenalized_score, fid_list, l1_penalty=0, op_penalty=0, gate_penalty=None)#
- Parameters:
unpenalized_score (float) – The score function value to add penalty terms to.
l1_penalty (float, optional (default 0.0)) – A penalty term associated with the number of fiducials in a candidate list.
op_penalty (float, optional (default 0.0)) – A penalty term associated with the total number of gate operations used in aggregate across all of the fiducials in a candidate set.
gate_penalty (dict, optional (default None)) – A dictionary with keys given by gate labels and values corresponding to a penalty term for that gate. This penalty is added for each instance of a gate in the dictionary across all fiducials in a candidate list of fiducials.