We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
opaque
PyQASM should gracefully parse the opaque identifier -
ValidationError Traceback (most recent call last) Cell In[6], line 1 ----> 1 mod = pyqasm.load(""" 2 OPENQASM 2.0; 3 include "qelib1.inc"; 4 qreg q[2]; 5 creg c[2]; 6 opaque custom_gate (a,b,c) p,q,r;""") File ~/Desktop/qBraid/repos/pyqasm/pyqasm/entrypoint.py:47, in load(program) 45 program = openqasm3.parse(program) 46 except openqasm3.parser.QASM3ParsingError as err: ---> 47 raise ValidationError(f"Failed to parse OpenQASM string: {err}") from err 48 elif not isinstance(program, openqasm3.ast.Program): 49 raise TypeError("Input quantum program must be of type 'str' or 'openqasm3.ast.Program'.") ValidationError: Failed to parse OpenQASM string:
Handle opaque in the visitor
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
What happened?
PyQASM should gracefully parse the
opaque
identifier -Suggestions (Optional)
Handle
opaque
in the visitorThe text was updated successfully, but these errors were encountered: