qBraid / qbraid-qir

qBraid-SDK QIR transpiler integration
https://docs.qbraid.com/qir
GNU General Public License v3.0
15 stars 5 forks source link

Support for aliases for openqasm3 to qir #78

Closed ryanhill1 closed 3 weeks ago

ryanhill1 commented 3 months ago

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.

https://github.com/qBraid/qbraid-qir/blob/08554ce4cb7937f33a09ee691f4e9bc865089aaa/qbraid_qir/qasm3/visitor.py#L775-L776

Placeholder test-cases in test_alias.py

king-p3nguin commented 1 month ago

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