iqm.benchmarks.utils.sort_batches_by_final_layout#
- iqm.benchmarks.utils.sort_batches_by_final_layout(transpiled_circuit_list: List[IQMCircuit]) Tuple[Dict[Tuple, List[IQMCircuit]], Dict[Tuple, List[int]]] #
Sort batches of circuits according to the final measurement mapping in their corresponding backend.
- Parameters:
transpiled_circuit_list (List[QuantumCircuit]) – the list of circuits transpiled to a given backend.
- Returns:
dictionary, keys: final measured qubits, values: corresponding circuits. sorted_indices (Dict[Tuple, List[int]]): dictionary, keys: final measured qubits, values: corresponding circuit indices.
- Return type:
sorted_circuits (Dict[Tuple, List[QuantumCircuit]])