zxcalc / pyzx

Python library for quantum circuit rewriting and optimisation using the ZX-calculus
Apache License 2.0
387 stars 116 forks source link

No option to automatically space spiders in graph #275

Open mehatamm opened 3 weeks ago

mehatamm commented 3 weeks ago

I'm working on a project that frequently generates zx diagrams I would like to draw, but as the qubit has been abstracted out pyzx currently just draws all spiders stacked on top of another. I would like to add an option for drawing that implements a graph drawing algorithm to space the spiders in a reasonable/aesthetic manner.