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

[BUG] Inconsistent draw() and mpl_draw() behavior #165

Open
ryanhill1 opened this issue Mar 18, 2025 · 0 comments
Open

[BUG] Inconsistent draw() and mpl_draw() behavior #165

ryanhill1 opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ryanhill1
Copy link
Member

There are inconsistent display issues when using pyqasm.draw() and pyqasm.printer.mpl_draw() in Jupyter notebooks:

pyqasm.draw() behavior:

  • The circuit diagram displays correctly the first time it’s called.
  • Subsequent calls produce no diagram output.
  • Restarting the kernel resets this behavior — it works once and then fails on following calls.
draw-bug.mov

pyqasm.printer.mpl_draw() behavior:

  • The circuit diagram displays twice on the first call.
  • Subsequent calls show the diagram only once, as expected.
  • After restarting the kernel, the double-display issue repeats on the first call.
mpl_draw_bug.mov
@ryanhill1 ryanhill1 added the bug Something isn't working label Mar 18, 2025
@ryanhill1 ryanhill1 changed the title [BUG] Inconsistent pyqasm.draw() and pyqasm.printer.mpl_draw() behavior in Jupyter notebooks [BUG] Inconsistent draw() and mpl_draw() behavior in Jupyter notebooks Mar 18, 2025
@ryanhill1 ryanhill1 changed the title [BUG] Inconsistent draw() and mpl_draw() behavior in Jupyter notebooks [BUG] Inconsistent draw() and mpl_draw() behavior Mar 18, 2025
@ryanhill1 ryanhill1 changed the title [BUG] Inconsistent draw() and mpl_draw() behavior [BUG] Inconsistent draw() and mpl_draw() behavior Mar 18, 2025
@ryanhill1 ryanhill1 added the good first issue Good for newcomers label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants