Skip to content

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

Closed
@ryanhill1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    qasm 🧵For issues relating to OpenQASMvisualization 🎨Diagrams, drawings, plots, and other visualizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions