Skip to content

[DISCUSSION] Support for transforming QASM to other IRs #212

@bachase

Description

@bachase

In ucc-ft, we are prototyping a tool to check the fault tolerance of a quantum circuit that implements an aspect of an error correcting code. This example) is checking if circuit implementing state preparation for the surface code fault tolerant. ucc-ft relies internally on an existing Julia package to do the check. That package uses its own representation for quantum programs.

The current heavy lifting in ucc-ft is converting from QASM to this Julia representation (called qprog). It does so by customizing the printer visitor that is part of openqasm3 package.

The approach so far is a bit of a hack, so in opening this discussion, curious if this translating use case is one pyqasm supports/intends to support, or if not directly, if some components in pyqasm would be useful to build on top of.

Note that this QASM -> qprog approach might change over time if we decide to shift the implementation to python. In that case, symbolically executing the QASM could would be the next challenge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions