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

DAG Drawer not working #3306

Closed
dennis-liu-1 opened this issue Oct 23, 2019 · 1 comment
Closed

DAG Drawer not working #3306

dennis-liu-1 opened this issue Oct 23, 2019 · 1 comment

Comments

@dennis-liu-1
Copy link
Contributor

Information

  • Qiskit Terra version: 0.10.0
  • Python version: 3.7.3
  • Operating system: Mac

What is the current behavior?

Calling dag_drawer() in the tutorial 4_transpiler_passes_and_passmanager.ipynb on IQX yields the following error:

Screen Shot 2019-10-23 at 2 31 12 PM

Steps to reproduce the problem

Ran other code that calls dag_drawer() as well, and this results in the same error.

What is the expected behavior?

Draw the dag without errors

Suggested solutions

@mtreinish
Copy link
Member

mtreinish commented Oct 23, 2019

It's caused because of an incompatibility with networkx 2.4 and nxpd which is used to generate the visualizations. There are 2 fixes in progress for it, one in the upstream nxpd lib: chebee7i/nxpd#15 and the other in terra itself (which is to stop using nxpd): #3280 (this is blocked on test failures on python 3.5 with networkx 2.4, likely caused by assumed dict ordering)

In the meantime the only way to avoid this is to downgrade networkx to 2.3.0 (which is what we do for ci and test envs).

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

2 participants