Skip to content

Commit

Permalink
fixup! update_from_instruction_schedule_map
Browse files Browse the repository at this point in the history
  • Loading branch information
to24toro committed Aug 22, 2023
1 parent 609e238 commit 9b4f56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/transpiler/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ def update_from_instruction_schedule_map(self, inst_map, inst_name_map=None, err
qiskit_inst_name_map = get_standard_gate_name_mapping()
if inst_name_map is not None:
qiskit_inst_name_map.update(inst_name_map)

for inst_name in inst_map.instructions:
# Prepare dictionary of instruction properties
out_props = {}
Expand All @@ -501,8 +500,9 @@ def update_from_instruction_schedule_map(self, inst_map, inst_name_map=None, err
props = None

entry = get_calibration(inst_name, qargs)

if getattr(props, "_calibration", None) != entry:
if not entry.user_provided:
continue
if self.dt is not None:
try:
duration = entry.get_schedule().duration * self.dt
Expand Down

0 comments on commit 9b4f56c

Please sign in to comment.