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

[BUG] Bug in Measurement parsing #15

Open
TheGupta2012 opened this issue Oct 15, 2024 · 0 comments
Open

[BUG] Bug in Measurement parsing #15

TheGupta2012 opened this issue Oct 15, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@TheGupta2012
Copy link
Contributor

TheGupta2012 commented Oct 15, 2024

Environment

  • pyqasm version: 0.0.1
  • Python version: 3.12.7
  • Operating system: macOS Sonoma 14.4

What happened?

Semantic analysis should pass for the following -

bit b;
qubit[2] q;        
h q;
b = measure q[0]; 

but fails with the error -

pyqasm.exceptions.ValidationError: Register sizes of q and b do not match for measurement operation

Suggestions (Optional)

No response

@TheGupta2012 TheGupta2012 added bug Something isn't working good first issue Good for newcomers labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant