{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/4"}],"enrichment":{"capability":"Provides a reference abstract syntax tree (AST) for OpenQASM 3 quantum programs, with parsing and AST manipulation tools for building compiler passes in Python.","skillfed_tags":["quantum-computing","compiler-tools"],"use_cases":["Build compiler optimization passes that analyze and transform OpenQASM 3 quantum circuits","Parse OpenQASM 3 source files into an in-memory representation for analysis or code generation","Traverse and modify quantum program ASTs using visitor and transformer patterns","Develop quantum software tools that need to understand OpenQASM 3 program structure"],"what_it_does":"openqasm3 is a reference implementation of the OpenQASM 3 abstract syntax tree in Python, designed to help developers write compiler passes and tools for quantum programs. It provides three main components: the AST node definitions, a parser that converts OpenQASM 3 text into the tree structure, and a visitor/transformer base for traversing and modifying the AST.\n\nThe package deliberately minimizes dependencies for users who only consume the AST structure itself, with optional dependencies available for parsing functionality. It is maintained as part of the main OpenQASM project and actively developed alongside the OpenQASM 3 language specification itself, though the API is currently in early stages and not considered stable.","worth_installing":"Yes, if you are working with OpenQASM 3 quantum programs and need to parse or manipulate them programmatically. The low install friction and active maintenance make it a practical choice. However, be aware that the API is explicitly unstable and subject to breaking changes as the OpenQASM 3 language itself evolves\u2014pin your version carefully in production code."},"id":"openqasm3","links":{"html":"https://skillfed.io/packages/openqasm3","md":"https://skillfed.io/packages/openqasm3.md","pypi":"https://pypi.org/project/openqasm3/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-02-19","license_spdx":null,"license_treatment":"permissive","name":"openqasm3","python_support":"unspecified","summary":"Reference OpenQASM AST in Python"},"popularity":{"monthly_downloads":483280,"position":6415,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
