Skip to content

Commit

Permalink
Same fix for block base padder
Browse files Browse the repository at this point in the history
  • Loading branch information
dieris committed Feb 5, 2024
1 parent fc14c8b commit cc09037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _get_node_duration(self, node: DAGNode) -> int:
cal_key = tuple(indices), tuple(float(p) for p in node.op.params)
duration = self._block_dag.calibrations[node.op.name][cal_key].duration
else:
duration = node.op.duration
duration = self._durations.get(node.op, indices, unit="dt")

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

0 comments on commit cc09037

Please sign in to comment.