Skip to content
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

Cutqc cut method fails with the latest release of qiskit #5

Open
hrushikesh890 opened this issue Dec 29, 2022 · 0 comments
Open

Cutqc cut method fails with the latest release of qiskit #5

hrushikesh890 opened this issue Dec 29, 2022 · 0 comments

Comments

@hrushikesh890
Copy link

With the latest release of qiskit, some elements of DAGNode have been deprecated.
In cutter.py
if u.type == "op" and v.type == "op":
throws the following error
File "cutqc/cutter.py", line 341, in read_circ if u.type == "op" and v.type == "op": AttributeError: 'DAGInNode' object has no attribute 'type'

Solution is simple
Replace faulting line with
if (type(u) == DAGOpNode) and (type(v) == DAGOpNode):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant