Skip to content

Allow for constant Result arrays in Adaptive Profile#3389

Draft
swernli wants to merge 3 commits into
mainfrom
swernli/constant-result-arrays
Draft

Allow for constant Result arrays in Adaptive Profile#3389
swernli wants to merge 3 commits into
mainfrom
swernli/constant-result-arrays

Conversation

@swernli

@swernli swernli commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

This change updates the data types in RIR to allow for variables of type Result to be used in the Adaptive Profile. This makes it possible to emit constant arrays of result identifiers into the data section of the generated QIR the same way arrays of qubit identifiers are supported. This also updates how Result literals are handled, allowing for their emission into RIR, transforming Zero into an extra result id allocation and detecting and rejecting One as unhandled during QIR codegen.

swernli added 3 commits June 25, 2026 00:31
This change updates the data types in RIR to allow for variables of type Result to be used in the Adaptive Profile. This makes it possible to emit constant arrays of result identifiers into the data section of the generated QIR the same way arrays of qubit identifiers are supported.
This also updates how Result literals are handled, allowing for their emission into RIR, transforming `Zero` into an extra result id allocation and detecting and rejecting `One` as unhandled during QIR codegen.
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

Successfully merging this pull request may close these issues.

1 participant