Refactor qasm3_drawer for Scalability + Bonus SVG/LaTeX Output #627
Labels
qasm 🧵
For issues relating to OpenQASM
visualization 🎨
Diagrams, drawings, plots, and other visualizations
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 andmatplotlib2tikz
orpylatexenc
for LaTeX integration.The text was updated successfully, but these errors were encountered: