Closed
Description
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.
Activity