pygsti.algorithms.germselection.drop_random_germs#
- drop_random_germs(candidate_list, rand_frac, target_model, keep_bare=True, seed=None)#
Function for dropping a random fraction of the candidate germ list.
- Parameters:
candidate_list (list of Circuits) – List of candidate germs
target_model (Model) – The model (associates operation matrices with operation labels)
rand_frac (float between 0 and 1) – random fraction of candidate germs to drop
keep_bare (bool) – Whether to always include the bare germs in the returned set.
- Returns:
availableGermsList – list of candidate germs with random fraction dropped.
- Return type:
List