This PR updates the PadDynamicalDecoupling pass to work with the Qiskit 1.3 updates on the DAGCircuit class. In particular, before this PR, https://github.com/Qiskit/qiskit/pull/12550 would break the test_insert_midmeas_hahn test from test/unit/transpiler/passes/scheduling/test_dynamical_decoupling.py, which is now fixed.
If helpful, this PR can also be incorporated into #2041, but thought that it might make sense to separate it given that it's not only changing unit tests. In principle there should be no user-facing changes so no reno was added.
Summary
This PR updates the
PadDynamicalDecoupling
pass to work with the Qiskit 1.3 updates on theDAGCircuit
class. In particular, before this PR, https://github.com/Qiskit/qiskit/pull/12550 would break thetest_insert_midmeas_hahn
test fromtest/unit/transpiler/passes/scheduling/test_dynamical_decoupling.py
, which is now fixed.If helpful, this PR can also be incorporated into #2041, but thought that it might make sense to separate it given that it's not only changing unit tests. In principle there should be no user-facing changes so no reno was added.
Details and comments
Fixes #