pygsti.tools.listtools#
Utility functions for working with lists
Functions
|
Applies alias_dict to the circuits in list_of_circuits. |
A 0-based list of integers specifying which occurrence, i.e. enumerated duplicate, each list item is. |
|
|
Replace elements of t according to rules in alias_dict. |
|
Applies |
|
Like itertools.product but returns the first modified (incremented) index along with the product tuple itself. |
|
Recursively replaces lists with tuples. |
|
Iterate over all partitions of integer n into nbins bins. |
|
Iterate over all partitions of integer n. |
|
Remove duplicates from the a list and return the result. |
|
Remove duplicates from the list passed as an argument. |
Iterate over all sorted (decreasing) partitions of integer n. |