Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for aliases for openqasm3 to qir #78

Open
ryanhill1 opened this issue Apr 4, 2024 · 0 comments
Open

Support for aliases for openqasm3 to qir #78

ryanhill1 opened this issue Apr 4, 2024 · 0 comments
Labels
enhancement New feature or request qasm3 Related to OpenQASM 3 conversions unitary-hack Issues tagged with Unitary Hack '24

Comments

@ryanhill1
Copy link
Member

ryanhill1 commented Apr 4, 2024

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

@ryanhill1 ryanhill1 added enhancement New feature or request qasm3 Related to OpenQASM 3 conversions labels Apr 4, 2024
@TheGupta2012 TheGupta2012 added the unitary-hack Issues tagged with Unitary Hack '24 label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qasm3 Related to OpenQASM 3 conversions unitary-hack Issues tagged with Unitary Hack '24
Projects
None yet
Development

No branches or pull requests

2 participants