Skip to content

Restrict qasm2.main if-statement via validation pass. #188

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

Open
weinbe58 opened this issue Apr 24, 2025 · 0 comments
Open

Restrict qasm2.main if-statement via validation pass. #188

weinbe58 opened this issue Apr 24, 2025 · 0 comments

Comments

@weinbe58
Copy link
Member

weinbe58 commented Apr 24, 2025

use Validation infrastructure in #179 to restrict:

  1. If statement doesn't have an else block
  2. If statement only has one expression inside the body.
@weinbe58 weinbe58 changed the title Restrict qasm2.main lowering to only accept 1 expr in if block Restrict qasm2.main if-statement via validation pass. Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant