Quantomatic / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
44 stars 14 forks source link

Fix a bug where "bialgebra" under "Simplification routines" causes a crash. #227

Closed dlyongemallo closed 5 months ago

dlyongemallo commented 5 months ago

Because it has the same name as "bialgebra" under "Basic rules", the make_animation function attempts to perform the incorrect animation. This crashes as the matcher for bialg_simp, which is const_true , returns the wrong type (Callable[..., Any] rather than the expected List[Any]).

See https://github.com/Quantomatic/zxlive/issues/132#issuecomment-1814408236 for context.