feat: supported openqasm support to the playground along with its ast, hir and rir#3289
feat: supported openqasm support to the playground along with its ast, hir and rir#3289Gmin2 wants to merge 7 commits into
Conversation
|
cc @minestarks |
|
@microsoft-github-policy-service agree |
|
I was stuck on why the rir, hir and ast were not shown for openqasm AI help me with that and also at first understanding the flow and of code like how it is being rendered |
|
@Gmin2 Your code isn't passing the CI checks. Please run |
|
@Gmin2 to be clear, it's just minor stuff like lints and formatting - the Our workflow is here, and should hopefully match the errors you see locally! https://github.com/microsoft/qdk/actions/runs/26913329686/job/79600772588 |
|
Hey @minestarks thw CI should be green now ! |
|
@Gmin2 , thanks for your contribution, we really appreciate it! At a first glance the code looks good, but it would be really nice if we had more test coverage for the new methods you added. Nothing fancy, just replicating what we already have for the same features in Q#. |
|
thnx for the review, just pushed the test @joao-boechat |
minestarks
left a comment
There was a problem hiding this comment.
Looking really good - another round of requests (hopefully last). Thank you!
|
Hey @Gmin2 , could you let us know if you're still planning to make changes, so we can make sure the PR isn't abandoned? Please let me know if you need clarification on any of the comments. Thank you again for your contribution - it's almost there! |
|
Hey @minestarks addressed yur reviewed comments, take a look ! |
|
Looks good, thanks! Looks like CI failed due to some formatting checks. Could you fix them? |
|
should be fixed now ! |
this adds openqasm support to the q# playground, which only handled q# before. the playground now registers a basic openqasm syntax highlighting grammar in monaco, shows the openqasm samples in their own "Samples (OpenQASM)" nav section, and passes the right languageId and projectType through to the existing language service and compiler. so openqasm programs get live diagnostics, can run for shots, and render their ast, hir, rir and qir just like q#. the ir views needed a small backend change:
get_ast,get_hirandget_rirnow branch on the project type, and a new Interpreter::get_rir produces rir for openqasm, whose entry point is a generated expression instead of a q#@EntryPoint. multi file openqasm projects and openqasm katas are out of scope.Fixes #3233
Screen.Recording.2026-06-04.at.2.40.27.AM.mov