Skip to content

Update transpiler passes to not use deprecated features #2350

@ElePT

Description

@ElePT

What is the expected feature or enhancement?
Users have reported deprecation warnings such as:

qiskit_ibm_runtime/transpiler/passes/scheduling/dynamical_decoupling.py:547: DeprecationWarning: The property ``qiskit.dagcircuit.dagcircuit.DAGCircuit.unit`` is deprecated as of Qiskit 1.3.0. It will be removed in Qiskit 3.0.0.
  block_idx, idle_after, Delay(tau, self._dag.unit), qubit

and

qiskit_ibm_runtime/transpiler/passes/scheduling/dynamical_decoupling.py:570: DeprecationWarning: The property ``qiskit.dagcircuit.dagcircuit.DAGCircuit.unit`` is deprecated as of Qiskit 1.3.0. It will be removed in Qiskit 3.0.0.
  block_idx, t_start, Delay(time_interval, self._block_dag.unit), qubit

While these features haven't been removed in 2.0, there is an alternative in place and it makes sense to update the code as soon as possible to avoid unnecessary noise and to make the transition to 3.0 smoother.

Acceptance criteria

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions