-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace DAGNode class with OpNode, InNode, and OutNode classes #6567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @enavarro51 , this looks good so far. One question on the DAGNode
parent class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @enavarro51 , this looks good so far. Few comments below.
releasenotes/notes/dag_node_to_op_in_out_node-af2cf9c3e7686285.yaml
Outdated
Show resolved
Hide resolved
…deprecated in DAGNode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for the updates @enavarro51 . One more question about deprecation warnings, then I think this on hold for #6694 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the updates @enavarro51 , and for working out all the edge cases. Few small comments, then this looks good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @enavarro51 !
Summary
Fixes #6493
Details and comments
This PR replaces the
qiskit.dagcircuit.DAGNode
class with 3 classes -OpNode, InNode, and OutNode
- and turnsDAGNode
into the parent of the 3 classes. Thetype
,op
, andwire
kwargs to DAGNode have been deprecated.