Skip to content

Add MeasureReset instruction - #3199

Open
yaelbh wants to merge 1 commit into
Qiskit:mainfrom
yaelbh:measure_reset
Open

Add MeasureReset instruction#3199
yaelbh wants to merge 1 commit into
Qiskit:mainfrom
yaelbh:measure_reset

Conversation

@yaelbh

@yaelbh yaelbh commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

We add a MeasureReset instruction, similar to existing MidCircuitMeasure and MidCircuitReset.

Details and comments

AI/LLM disclosure

  • I didn't use LLM tooling, or only used it privately.
  • I used the following tool to help write this PR description:
  • I used the following tool to generate or modify code: Bob

@yaelbh
yaelbh requested a review from SamFerracin August 11, 2026 09:45

@TsafrirA TsafrirA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.


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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

``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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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.

Support reset_2 and measure_reset, similar to measure_2

3 participants