-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Adjust graphviz options for better layout with plot_gate_map() #12770
Conversation
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.
One or more of the following people are relevant to this code:
|
Based on that image I'm wondering if we want to scale up the fontsize a bit? |
Pull Request Test Coverage Report for Build 10705646259Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
That second example looks like we should condition: on |
Those look fine to me, the |
…ore into adjust-neato-settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the final tweaks @1ucian0 !
* Adjust graphviz options for better layout with plot_gate_map() 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. * Don't set graph attributes if qubit_coordinates is set * adjust sizes * planar branching * support for backendv1 * remove the formula * new ref images --------- Co-authored-by: Luciano Bello <bel@zurich.ibm.com> Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> (cherry picked from commit 52733ae)
… (#13089) * Adjust graphviz options for better layout with plot_gate_map() 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. * Don't set graph attributes if qubit_coordinates is set * adjust sizes * planar branching * support for backendv1 * remove the formula * new ref images --------- Co-authored-by: Luciano Bello <bel@zurich.ibm.com> Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> (cherry picked from commit 52733ae) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
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