pygsti.tools.listtools.find_replace_tuple_list

pygsti.tools.listtools.find_replace_tuple_list#

find_replace_tuple_list(list_of_tuples, alias_dict)#

Applies find_replace_tuple() on each element of list_of_tuples.

Parameters:
  • list_of_tuples (list) – A list of tuple objects to perform replacements upon.

  • alias_dict (dictionary) – Dictionary whose keys are potential elements of t and whose values are tuples corresponding to a sub-sequence that the given element should be replaced with. If None, no replacement is performed.

Return type:

list