zxcalc / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
45 stars 15 forks source link

Edge curve is not preserved by saving, applying rewrites, etc. #270

Open RazinShaikh opened 1 week ago

RazinShaikh commented 1 week ago

The curve distance for the edge is stored in EItem but not in side the PyZX graph. As a result, the curve information is often lost such as when applying a rewrite or saving to a file. One possible fix would be to introduce edge_data dictionary in the PyZX graph class. This is similar to vdata for vertices, which is currently supported.