Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* viz.plot_Z_err_cond adjust xlim centralpeak plot * black formatting viz.py * remove 1 variable for viz.plot_Z_err_cond * using GKPFormatter for x-ticks * removed fancy formatter and use existing gkp.to_pi_string * removed unused import FormatStrFormatter * removed unnecessary newxlabels * add return fig to plot_frac and more consistent code * mess from cherry-pick :see-no-evil: * Revert "removed fancy formatter and use existing gkp.to_pi_string" This reverts commit fe59c23. * using GKPFormatter for x-ticks * removed fancy formatter and use existing gkp.to_pi_string * removed unused import FormatStrFormatter * removed unnecessary newxlabels * add return fig to plot_frac and more consistent code * changes to viz.py for adjusted xlim * changes to gkp.py for adjusted xlim * using GKPFormatter for x-ticks * removed fancy formatter and use existing gkp.to_pi_string * removed unused import FormatStrFormatter * removed unnecessary newxlabels * add return fig to plot_frac and more consistent code * removed definition GKPFormatter * found the culprit - the formatter *is* needed * also use GKP_Formatter for yaxis frac plot * rename GKP_Formatter to GKPFormatter * use matplotlib Formatter class * docstring for GKP Formatter class * docstring init GKPFormatter * Update gkp.py * consistent style in string formatting float Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com> * More precise language in docstring Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com> * Renaming GKPFormatter to PiFormatter * Moving PiFormatter to viz.py * moving import math package * moving test_to_pi_string to new test_viz file * adding test to_pi_string for tex=False * docformatter for viz.py * Minor changes * have draw_decoding return fig, ax * added return statements in draw methods of stabilizer and matching graph * adding return for draw_decoding * forgot to add fig2, ax2 from G_match.draw * luis for the rescue * black * Added changelog details of PR #33 * add return to `egraph.draw` * adjust example file surface code to new return statement * added test draw EGraph * assert that f,a have right types * black * adjust test_draw with issubclass * call EGraph * added random_graph as def param * added docstring test * remove random graph * draw method does not work on empty graph * Update .github/CHANGELOG.md Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com> * moved draw test to test_test * remove matplotlib import * group EGraph draw tests in class * change encoding from CRLF to LF * Create .gitattributes * Update .gitattributes * Delete .gitattributes * Update tests/unit/test_viz.py Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com> * Finalizing PR Co-authored-by: soosub <joost.bus@resident.xanadu.ai> Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
- Loading branch information