You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature you'd like
Right now, verbatim boxes are ignored altogether when translating OpenQASM to Circuit objects via the Circuit.from_ir method:
frombraket.circuitsimportCircuitoq="""OPENQASM 3.0;#pragma braket verbatimbox { h $0; cnot $0, $1;}"""Circuit.from_ir(oq)
T : │ 0 │ 1 │
┌───┐
q0 : ─┤ H ├───●───
└───┘ │
┌─┴─┐
q1 : ───────┤ X ├─
└───┘
T : │ 0 │ 1 │
Verbatim boxes need to be supported for faithful translation of OpenQASM, particularly for programs with both verbatim and non-verbatim components.
Note: Implementing this feature will require expanding the OpenQASM parsing functionality in the default simulator package.
How would this feature be used? Please describe.
As mentioned above, this would allow OpenQASM programs with verbatim boxes to be translated correctly.
Describe alternatives you've considered
Entirely verbatim circuits, can be wrapped manually
Describe the feature you'd like
Right now, verbatim boxes are ignored altogether when translating OpenQASM to
Circuit
objects via theCircuit.from_ir
method:Verbatim boxes need to be supported for faithful translation of OpenQASM, particularly for programs with both verbatim and non-verbatim components.
Note: Implementing this feature will require expanding the OpenQASM parsing functionality in the default simulator package.
How would this feature be used? Please describe.
As mentioned above, this would allow OpenQASM programs with verbatim boxes to be translated correctly.
Describe alternatives you've considered
Entirely verbatim circuits, can be wrapped manually
but this fails for programs with verbatim boxes in between non-verbatim instructions.
The text was updated successfully, but these errors were encountered: