diff --git a/qiskit_ibm_provider/transpiler/passes/scheduling/block_base_padder.py b/qiskit_ibm_provider/transpiler/passes/scheduling/block_base_padder.py index 336f5072c..5d473527e 100644 --- a/qiskit_ibm_provider/transpiler/passes/scheduling/block_base_padder.py +++ b/qiskit_ibm_provider/transpiler/passes/scheduling/block_base_padder.py @@ -319,7 +319,9 @@ def _add_block_terminating_barrier( qubits = self._block_dag.qubits else: barrier = Barrier(self._block_dag.num_qubits() - len(self._idle_qubits)) - qubits = [x for x in self._block_dag.qubits if x not in self._idle_qubits] + qubits = [ + x for x in self._block_dag.qubits if x not in self._idle_qubits + ] barrier_node = self._apply_scheduled_op( block_idx,