-
Notifications
You must be signed in to change notification settings - Fork 133
QIR Profiles Selection via Project Field or EntryPoint argument #2591
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pabilities or throws new error. Added is_single_file to Compilation and as param to prepare_package_store.
idavis
reviewed
Jul 14, 2025
Merged
swernli
reviewed
Jul 20, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
reviewed
Jul 21, 2025
minestarks
requested changes
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall. The excessive isSingleFile
plumbing is the only real issue I see which should just go away if you stick it inside the appropriate struct
billti
reviewed
Jul 22, 2025
minestarks
approved these changes
Jul 22, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 24, 2025
Adds the `#pragma qdk.qir.profile` pragma to our QASM compiler. This pragma is used to specify the profile to compile the QASM file with, i.e. `#pragma qdk.qir.profile Base` to have the file compile with the `Base` profile. QASM files are always compiled with the profile specified by their source with this pragma. If no pragma is provided, the compilation will default to `Unrestricted`. The PR is built on top of and relies on #2591
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This removes the workspace setting for the QIR profile and adds a setting for this for Q# project files instead, i.e.
"targetProfile": "base"
. Single-file Q# files are supported by adding an argument to the @entrypoint attribute where a user will specify what profile the file is meant to compile with, i.e.@EntryPoint(Adaptive_RI)
, or usesUnrestricted
as a default.