6666 additional_msg = "The `target` parameter should be used instead. You can build a `Target` instance "
6767 "with defined properties with Target.from_configuration(..., backend_properties=...)" ,
6868)
69- @deprecate_pulse_arg ("inst_map" , predicate = lambda inst_map : inst_map is not None )
7069def transpile ( # pylint: disable=too-many-return-statements
7170 circuits : _CircuitT ,
7271 backend : Optional [Backend ] = None ,
7372 basis_gates : Optional [List [str ]] = None ,
74- inst_map : Optional [List [InstructionScheduleMap ]] = None ,
7573 coupling_map : Optional [Union [CouplingMap , List [List [int ]]]] = None ,
7674 backend_properties : Optional [BackendProperties ] = None ,
7775 initial_layout : Optional [Union [Layout , Dict , List ]] = None ,
@@ -105,7 +103,7 @@ def transpile( # pylint: disable=too-many-return-statements
105103
106104 The prioritization of transpilation target constraints works as follows: if a ``target``
107105 input is provided, it will take priority over any ``backend`` input or loose constraints
108- (``basis_gates``, ``inst_map``, `` coupling_map``, ``backend_properties``, ``instruction_durations``,
106+ (``basis_gates``, ``coupling_map``, ``backend_properties``, ``instruction_durations``,
109107 ``dt`` or ``timing_constraints``). If a ``backend`` is provided together with any loose constraint
110108 from the list above, the loose constraint will take priority over the corresponding backend
111109 constraint. This behavior is independent of whether the ``backend`` instance is of type
@@ -120,7 +118,6 @@ def transpile( # pylint: disable=too-many-return-statements
120118 **basis_gates** target basis_gates basis_gates
121119 **coupling_map** target coupling_map coupling_map
122120 **instruction_durations** target instruction_durations instruction_durations
123- **inst_map** target inst_map inst_map
124121 **dt** target dt dt
125122 **timing_constraints** target timing_constraints timing_constraints
126123 **backend_properties** target backend_properties backend_properties
@@ -133,12 +130,6 @@ def transpile( # pylint: disable=too-many-return-statements
133130 will override the backend's.
134131 basis_gates: List of basis gate names to unroll to
135132 (e.g: ``['u1', 'u2', 'u3', 'cx']``). If ``None``, do not unroll.
136- inst_map: DEPRECATED. Mapping of unrolled gates to pulse schedules. If this is not provided,
137- transpiler tries to get from the backend. If any user defined calibration
138- is found in the map and this is used in a circuit, transpiler attaches
139- the custom gate definition to the circuit. This enables one to flexibly
140- override the low-level instruction implementation. This feature is available
141- iff the backend supports the pulse gate experiment.
142133 coupling_map: Directed coupling map (perhaps custom) to target in mapping. If
143134 the coupling map is symmetric, both directions need to be specified.
144135
@@ -394,14 +385,8 @@ def callback_func(**kwargs):
394385 # Edge cases require using the old model (loose constraints) instead of building a target,
395386 # but we don't populate the passmanager config with loose constraints unless it's one of
396387 # the known edge cases to control the execution path.
397- # Filter instruction_durations, timing_constraints, backend_properties and inst_map deprecation
388+ # Filter instruction_durations, timing_constraints, backend_properties deprecation
398389 with warnings .catch_warnings ():
399- warnings .filterwarnings (
400- "ignore" ,
401- category = DeprecationWarning ,
402- message = ".*``inst_map`` is deprecated as of Qiskit 1.3.*" ,
403- module = "qiskit" ,
404- )
405390 warnings .filterwarnings (
406391 "ignore" ,
407392 category = DeprecationWarning ,
@@ -429,7 +414,6 @@ def callback_func(**kwargs):
429414 instruction_durations = instruction_durations ,
430415 backend_properties = backend_properties ,
431416 timing_constraints = timing_constraints ,
432- inst_map = inst_map ,
433417 initial_layout = initial_layout ,
434418 layout_method = layout_method ,
435419 routing_method = routing_method ,
0 commit comments