Skip to content

Refactor to use OpenQASM3 AST instead of string concatenation; update README and docs with usage examples #2

Description

@gstenzel

Currently, OpenQASM3 code is generated using naive string concatenation, which is error-prone and difficult to maintain. Refactor the codebase to construct OpenQASM3 output using its Abstract Syntax Tree (AST) for improved reliability and maintainability.

Additionally, update the README and relevant documentation to:

  • Explain the new approach leveraging the OpenQASM3 AST.
  • Provide clear examples demonstrating how to generate OpenQASM3 code using the AST.
  • Illustrate how to call and use these features in practical scenarios.

This update will make the codebase more robust and the documentation more helpful for users adopting these features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions