Skip to content

Commit

Permalink
Map indices for instruction durations
Browse files Browse the repository at this point in the history
  • Loading branch information
dieris committed Feb 5, 2024
1 parent a861a70 commit fc14c8b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def _get_duration(self, node: DAGNode, dag: Optional[DAGCircuit] = None) -> int:
duration = dag.calibrations[node.op.name][cal_key].duration
node.op.duration = duration
else:
duration = node.op.duration
# map to outer dag to get the appropriate durations
duration = self._durations.get(node.op, indices, unit="dt")

if isinstance(duration, ParameterExpression):
raise TranspilerError(
Expand Down

0 comments on commit fc14c8b

Please sign in to comment.