Skip to content

Clean up 0-bit instruction behaviour in generate_boxing_pass_manager()#382

Merged
ihincks merged 1 commit into
mainfrom
issue-377
Jun 26, 2026
Merged

Clean up 0-bit instruction behaviour in generate_boxing_pass_manager()#382
ihincks merged 1 commit into
mainfrom
issue-377

Conversation

@ihincks

@ihincks ihincks commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes #377 by making the pass manager pass them through instead of erroring.
This also fixes similar problems like 0-width barriers.

Details and comments

This PR also updates the build() docstring to comment that removing the global phase attribute
is expected behaviour.

@joshuasn joshuasn 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.

lgtm

@ihincks ihincks merged commit c4e6a5e into main Jun 26, 2026
8 checks passed
@ihincks ihincks deleted the issue-377 branch June 26, 2026 17:38
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.

generate_boxing_passmanager fails on GlobalPhaseGate instructions

2 participants