pygsti.algorithms.germselection.randomize_model_list#
- randomize_model_list(model_list, randomization_strength, num_copies, seed=None)#
Applies random unitary perturbations to a model or list of models.
If model_list is a length-1 list, then num_copies determines how many randomizations to create. If model_list contains multiple models, then num_copies must be None and each model is randomized once to create the corresponding returned model.
- Parameters:
model_list (Model or list) – A list of Model objects.
randomization_strength (float, optional) – Strength of unitary randomizations, as passed to
Model.randomize_with_unitary().num_copies (int) – The number of random perturbations of model_list[0] to generate when len(model_list) == 1. A value of None will result in 1 copy. If len(model_list) > 1 then num_copies must be set to None.
seed (int, optional) – Starting seed for randomization. Successive randomizations receive successive seeds. None results in random seeds.
- Returns:
A list of the randomized Models.
- Return type:
list