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

Refactor qasm3_drawer for Scalability + Bonus SVG/LaTeX Output #627

Open
ryanhill1 opened this issue May 15, 2024 · 0 comments
Open

Refactor qasm3_drawer for Scalability + Bonus SVG/LaTeX Output #627

ryanhill1 opened this issue May 15, 2024 · 0 comments
Labels
qasm 🧵 For issues relating to OpenQASM visualization 🎨 Diagrams, drawings, plots, and other visualizations

Comments

@ryanhill1
Copy link
Member

Currently, the qbraid.visualization.qasm3_drawer function parses an input OpenQASM 3 string using a brute force method. As the scope of the OpenQASM AST continues to expand, this approach will become unscalable. We would like to refactor this module using a more streamlined approach that leverages the native openqasm3.parser and the openqasm3.ast Python data classes.

Bonus: Implement an option that enables users to generate diagrams in SVG or LaTeX formats, in addition to the default ASCII text output. This feature can be facilitated by leveraging external libraries such as matplotlib for SVG creation and matplotlib2tikz or pylatexenc for LaTeX integration.

@ryanhill1 ryanhill1 added visualization 🎨 Diagrams, drawings, plots, and other visualizations qasm 🧵 For issues relating to OpenQASM labels May 15, 2024
@ryanhill1 ryanhill1 changed the title Refactor qasm3_drawer to Refactor qasm3_drawer for Scalability + Bonus SVG/LaTeX Output May 15, 2024
@ryanhill1 ryanhill1 added the unitaryhack Dedicated issue for UF open-source hackathon label May 15, 2024
@ryanhill1 ryanhill1 removed unitaryhack Dedicated issue for UF open-source hackathon labels Jun 12, 2024
@ryanhill1 ryanhill1 pinned this issue Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qasm 🧵 For issues relating to OpenQASM visualization 🎨 Diagrams, drawings, plots, and other visualizations
Projects
None yet
Development

No branches or pull requests

1 participant