Skip to content

Support for aliases for openqasm3 to qir #78

Closed

Description

@ryanhill1

In OpenQASM 3 the let keyword allows declared quantum bits and registers to be referred to by another name as long as the alias is in scope:

qubit[5] q;
// myreg[0] refers to the qubit q[1]
let myreg = q[1:4];

See https://openqasm.com/language/types.html#aliasing

Add support for converting OpenQASM 3 programs that use aliasing to QIR.

elif isinstance(statement, AliasStatement):
raise NotImplementedError("OpenQASM 3 aliases not yet supported")

Placeholder test-cases in test_alias.py

Activity

  1. added
    enhancementNew feature or request
    qasm3Related to OpenQASM 3 conversions
    on Apr 4, 2024
  2. king-p3nguin commented on Jun 4, 2024

    @king-p3nguin
    Contributor

    Hi, I would like to work on this issue for unitaryhack.

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestqasm3Related to OpenQASM 3 conversionsunitary-hackBountied issue for Unitary Hack

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions