Closed enavarro51 closed 2 years ago
The tutorial https://github.com/Qiskit/qiskit-tutorials/blob/721d67ac97e8f0ca3b9b4156cc35a9a777363d12/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.ipynb uses the a previously deprecated node.condition instead of node.op.condition when node is a DAGOpNodeobject. This is blocking removal of the deprecation in qiskit-terra.
node.condition
node.op.condition
node
DAGOpNode
In addition any references on this page to the DAGNode class should be changed to the DAGOpNode class.
DAGNode
Run the tutorial https://qiskit.org/documentation/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.html. The deprecation will be shown.
No deprecation shown after change to node.op.condition.
Change the https://github.com/Qiskit/qiskit-tutorials/blob/721d67ac97e8f0ca3b9b4156cc35a9a777363d12/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.ipynb file to change node.condition to node.op.condition wherever it is used.
Informations
What is the current behavior?
The tutorial https://github.com/Qiskit/qiskit-tutorials/blob/721d67ac97e8f0ca3b9b4156cc35a9a777363d12/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.ipynb uses the a previously deprecated
node.condition
instead ofnode.op.condition
whennode
is aDAGOpNode
object. This is blocking removal of the deprecation in qiskit-terra.In addition any references on this page to the
DAGNode
class should be changed to theDAGOpNode
class.Steps to reproduce the problem
Run the tutorial https://qiskit.org/documentation/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.html. The deprecation will be shown.
What is the expected behavior?
No deprecation shown after change to
node.op.condition
.Suggested solutions
Change the https://github.com/Qiskit/qiskit-tutorials/blob/721d67ac97e8f0ca3b9b4156cc35a9a777363d12/tutorials/circuits_advanced/04_transpiler_passes_and_passmanager.ipynb file to change
node.condition
tonode.op.condition
wherever it is used.