Add MeasureReset instruction - #3199
Open
yaelbh wants to merge 1 commit into
Open
Conversation
TsafrirA
reviewed
Aug 12, 2026
TsafrirA
left a comment
Collaborator
There was a problem hiding this comment.
I think we should consider explaining a bit better the relationship between the MeasureReset and dynamic circuit. Theoretically, one can achieve the same result with a simple if test. I believe the point of this instruction to make use of better performing alternatives at the HW level.
SamFerracin
reviewed
Aug 12, 2026
|
|
||
| This instruction implements a reset operation whose intermediate measurement | ||
| result is captured in a classical bit, making it observable to the user. | ||
| It uses 1 quantum bit and 1 classical bit, and its name must start with |
Collaborator
There was a problem hiding this comment.
Suggested change
| It uses 1 quantum bit and 1 classical bit, and its name must start with | |
| It uses one quantum bit and one classical bit, and its name must start with |
SamFerracin
reviewed
Aug 12, 2026
| ``measure_reset``. | ||
|
|
||
| The semantics are: measure the qubit into the classical bit, then | ||
| conditionally flip the qubit back to |0> — i.e., a reset whose measurement |
Collaborator
There was a problem hiding this comment.
Suggested change
| conditionally flip the qubit back to |0> — i.e., a reset whose measurement | |
| conditionally flip the qubit back to ``|0>`` — i.e., a reset whose measurement |
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.
Summary
We add a
MeasureResetinstruction, similar to existingMidCircuitMeasureandMidCircuitReset.Details and comments
reset_2andmeasure_reset, similar tomeasure_2#2840.measure_reset, includingmeasure_reset_2.MidCircuitResetandMidCircuitMeasureReset#2841 about the corresponding transpilation pass remains open, since this PR doesn't add the pass. When writing the pass, remember to check how https://github.com/Qiskit/qiskit/blob/main/qiskit/transpiler/passes/optimization/reset_after_measure_simplification.py is done.AI/LLM disclosure