8000 [BUG] Incorrect validation error on parametrized gates · Issue #175 · qBraid/pyqasm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUG] Incorrect validation error on parametrized gates #175

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

Closed
ryanhill1 opened this issue Apr 21, 2025 · 0 comments · Fixed by #176
Closed

[BUG] Incorrect validation error on parametrized gates #175

ryanhill1 opened this issue Apr 21, 2025 · 0 comments · Fixed by #176
Labels
bug Something isn't working

Comments

@ryanhill1
Copy link
Member
ryanhill1 commented Apr 21, 2025

Environment

  • PyQASM version: 0.3.1
  • Python version: 3.11
  • Operating system: Ubuntu 20.04

What happened?

import pyqasm

qasm = """
OPENQASM 3.0;
include "stdgates.inc";
qubit[1] q;
u1(pi) q[0];
"""

module = pyqasm.loads(qasm)

module.validate()
ERROR:pyqasm: Error at line 5, column 0 in QASM file

 >>>>>> u1(pi) q[0];
...

ValidationError: Expected 1 parameter for gate 'u1', but got 1

Thee program gave the expected number of parameters, but still resulted in validation error, showing there is some bug here. Could also happening for other parameterized gates, but haven't checked.

Currently causing qBraid-SDK daily CI to fail: https://github.com/qBraid/qBraid/actions/runs/14575738997/job/40881368223

Suggestions (Optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0