Make boxing_pass_manager() always use site="before" for meas/reset boxes - #409
Merged
Conversation
joshuasn
reviewed
Sep 9, 2026
joshuasn
left a comment
Collaborator
There was a problem hiding this comment.
lgtm, care to add a changelog?
Collaborator
Author
|
Oh thanks. I have one written but not pushed. |
joshuasn
approved these changes
Sep 9, 2026
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
Right now if you specify the site as "after", this applies to all boxes found by the boxing pass manager. However, when you add site=after to a boxing containing measurements, the noise is not actually injected, but the signs are still reported.
Details and comments
Right now something like this
actually ends up with a disconnected samplex. The one on the left is just reporting the noise signs, and nothing on the right is injecting noise.