Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the text drawer with partially idle wires #13149

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Sep 13, 2024

Summary

Fixes #13128.

Details and comments

We think the issue is that the layers method adds the node by reference instead of a copy, which causes the _LayerSpooler to mutate the DAG while building the visualization layers.

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
@Cryoris Cryoris added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Sep 13, 2024
@Cryoris Cryoris added this to the 1.2.2 milestone Sep 13, 2024
@Cryoris Cryoris requested review from nonhermitian and a team as code owners September 13, 2024 12:06
@qiskit-bot
Copy link
Collaborator

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

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks for the change - I also checked that this does fix the MPL drawer bug as well, so it'd be good to include that in the release note, then we can merge this.

…yaml

Co-authored-by: Jake Lishman <jake@binhbar.com>
@jakelishman jakelishman added this pull request to the merge queue Sep 17, 2024
Merged via the queue into Qiskit:stable/1.2 with commit fd7560b Sep 17, 2024
14 checks passed
@mrossinek mrossinek deleted the fix-partial-idle-wires branch September 18, 2024 06:36
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qc.draw('text', idle_wires=False) results in ValueError : min() arg is an empty sequence
6 participants