Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.1k stars 2.34k forks source link

Adjust graphviz options for better layout with plot_gate_map() (backport #12770) #13089

Closed mergify[bot] closed 3 weeks ago

mergify[bot] commented 3 weeks ago

Summary

This commit fixes an issue with the visualizations of some backends/coupling maps. The default neato settings worked well in most cases but for some graphs it was not generating a good layout. This tweaks the settings a bit so that layouts work with more classes of graphs.

Details and comments
This is an automatic backport of pull request #12770 done by Mergify.

qiskit-bot commented 3 weeks ago

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:

coveralls commented 3 weeks ago

Pull Request Test Coverage Report for Build 10717399292

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/visualization/gate_map.py 0 15 0.0%
<!-- Total: 0 15 0.0% -->
Files with Coverage Reduction New Missed Lines %
qiskit/visualization/gate_map.py 1 6.69%
crates/qasm2/src/lex.rs 7 91.98%
crates/qasm2/src/parse.rs 12 96.23%
<!-- Total: 20 -->
Totals Coverage Status
Change from base Build 10709714112: -0.03%
Covered Lines: 66887
Relevant Lines: 74505

💛 - Coveralls