iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.relabel_qubits_array_from_zero#
- iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.relabel_qubits_array_from_zero(arr: List[List[int]]) List[List[int]] #
Helper function to relabel a qubits array to an increasingly ordered one starting from zero e.g., [[2,3], [5], [7,8]] -> [[0,1], [2], [3,4]] Note: this assumes the input array is sorted in increasing order!