Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 10, 2025

Summary

Fixed a failure in the circuit text drawer, which could occur when circuit blocks inside
control flow operations were defined on different registers than the outer circuit.
This happened only when appending ControlFlowOp operations directly, not with
the builder interface.

Details

This uncovered a related issue, #15154.


This is an automatic backport of pull request #15155 done by Mergify.

* Fix textdrawer for controlflow with different regs

* review comments

(cherry picked from commit 7f641ed)
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

@github-actions github-actions bot added this to the 1.4.5 milestone Oct 10, 2025
@github-actions github-actions bot added Changelog: Bugfix Include in the "Fixed" section of the changelog mod: visualization qiskit.visualization labels Oct 10, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 18411433614

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 15 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.002%) to 88.52%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 93.78%
crates/qasm2/src/parse.rs 6 97.57%
crates/qasm2/src/lex.rs 8 91.75%
Totals Coverage Status
Change from base Build 18391357215: 0.002%
Covered Lines: 77350
Relevant Lines: 87381

💛 - Coveralls

@Cryoris Cryoris enabled auto-merge October 10, 2025 16:23
@Cryoris Cryoris added this pull request to the merge queue Oct 10, 2025
Merged via the queue into stable/1.4 with commit 46f5c0d Oct 10, 2025
20 checks passed
@Cryoris Cryoris deleted the mergify/bp/stable/1.4/pr-15155 branch October 10, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Bugfix Include in the "Fixed" section of the changelog mod: visualization qiskit.visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants