identify_duplicate_circuits

autoeis.utils.identify_duplicate_circuits(circuits: Iterable[str], rtol: float = 1e-05) list[list[int]]

Identifies duplicate circuits in a list of circuit strings.

Parameters:
  • circuits (Iterable[str]) – List of circuit strings in CDC format. See here for details.

  • rtol (float, optional) – The relative tolerance for the circuit equivalence check. Default is 1e-5.

Returns:

A list of lists containing the indices of duplicate circuits. The first element of each sublist is the index of the circuit that is considered unique, and the rest are the indices of the duplicate circuits.

Return type:

list[list[int]]