@@ -102,6 +102,7 @@ def convert_to_target( # type: ignore[no-untyped-def]
102102 # Create instruction property placeholder from backend configuration
103103 basis_gates = set (getattr (configuration , "basis_gates" , []))
104104 supported_instructions = set (getattr (configuration , "supported_instructions" , []))
105+ gate_configs = {gate .name : gate for gate in configuration .gates }
105106
106107 # Instructions that are not defined in Qiskit, such as `measure_2`, are placed in
107108 # `instruction_signatures` (see below) and handled separately
@@ -110,8 +111,6 @@ def convert_to_target( # type: ignore[no-untyped-def]
110111 supported_instructions .intersection ({"measure" , "delay" , "reset" }),
111112 supported_instructions .intersection (CONTROL_FLOW_OP_NAMES ),
112113 )
113- gate_configs = {gate .name : gate for gate in configuration .gates }
114-
115114 inst_name_map = {}
116115 faulty_ops = set ()
117116 faulty_qubits = set ()
@@ -282,7 +281,7 @@ def _get_value(prop_dict: dict, prop_name: str) -> Any:
282281 duration = _get_value (qubit_prop , "readout_length" ), # type: ignore[arg-type]
283282 )
284283
285- for op in all_instructions .intersection ({"measure" , "delay" , "reset" }):
284+ for op in supported_instructions .intersection ({"measure" , "delay" , "reset" }):
286285 # Map required ops to each operational qubit
287286 if prop_name_map [op ] is None :
288287 prop_name_map [op ] = {
0 commit comments