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

[Visualisation] Known qadence.draw issues #333

Closed
RolandMacDoland opened this issue Feb 7, 2024 · 0 comments
Closed

[Visualisation] Known qadence.draw issues #333

RolandMacDoland opened this issue Feb 7, 2024 · 0 comments
Labels
to_check To check in the development of the new expression system. visualisation

Comments

@RolandMacDoland
Copy link
Collaborator

  • Latex strings: graphviz cannot deal with latex natively. one (the only) solution is to generate SVGs that can be used as icons. there is code that does almost all of the work in qadence.draw.utils, just alignment in different outputs (png/svg/notebook) has to be fixed. also, this becomes very slow for circuits with many gates, because for every gate we have to compile a fresh svg (via latex). caching svgs based on hashes of expressions could be a solution here
  • bending wires: when drawing tags (in graphviz clusters) around blocks that contain control gates/identities the nodes are sometimes squeezed together which leads to bending of circuit wires. this could either be solved by setting node height=1, or (probably the worse solution) by generating icons for identity/control nodes which have the same height as the other nodes.
  • if the outermost block is tagged the tag is not displayed.
@jpmoutinho jpmoutinho added the to_check To check in the development of the new expression system. label May 14, 2024
@jpmoutinho jpmoutinho closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to_check To check in the development of the new expression system. visualisation
Projects
None yet
Development

No branches or pull requests

2 participants