pygsti.tools.listtools.remove_duplicates_in_place

pygsti.tools.listtools.remove_duplicates_in_place#

remove_duplicates_in_place(l, index_to_test=None)#

Remove duplicates from the list passed as an argument.

Parameters:
  • l (list) – The list to remove duplicates from.

  • index_to_test (int, optional) – If not None, the index within the elements of l to test. For example, if all the elements of l contain 2 tuples (x,y) then set index_to_test == 1 to remove tuples with duplicate y-values.

Return type:

None