Support write_result operation in adaptive simulators - #3671
Open
João Boechat (joao-boechat) wants to merge 1 commit into
Open
Support write_result operation in adaptive simulators#3671João Boechat (joao-boechat) wants to merge 1 commit into
João Boechat (joao-boechat) wants to merge 1 commit into
Conversation
João Boechat (joao-boechat)
changed the base branch from
main
to
joaoboechat/finalize-non-clifford-support
August 31, 2026 22:58
João Boechat (joao-boechat)
changed the base branch from
joaoboechat/finalize-non-clifford-support
to
joaoboechat/stim-improve-error-messages
August 31, 2026 22:59
João Boechat (joao-boechat)
marked this pull request as ready for review
August 31, 2026 23:11
João Boechat (joao-boechat)
requested review from
Andrew Casey (amcasey),
Bill Ticehurst (billti),
Ian Davis (idavis) and
orpuente-MS
as code owners
August 31, 2026 23:11
João Boechat (joao-boechat)
requested a review
from Stefan J. Wernli (swernli)
as a code owner
September 2, 2026 19:26
João Boechat (joao-boechat)
force-pushed
the
joaoboechat/implement-op-write-result
branch
from
September 2, 2026 19:35
c7d8b34 to
cdf7def
Compare
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
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.
Adds adaptive simulator support for
void @__quantum__rt__write_result(i1, ptr), following the design proposed in qir-alliance/qir-spec#65. The operation initializes or overwrites a result identifier with a Boolean value that subsequent reads and output recording observe.This implementation will be used in a follow-up PR for the STIM compiler, in order to support certain operations that involve writing arbitrary boolean values to measurement records.
Implementation
Tests
Adds CPU, Clifford, and GPU coverage for constant writes, overwrites, and dynamically computed Boolean values.