Skip to content

Add support for fault equivalent rewrites#427

Open
lunarr-eclipse wants to merge 21 commits intozxcalc:masterfrom
96-LB:show_feq_rewrites
Open

Add support for fault equivalent rewrites#427
lunarr-eclipse wants to merge 21 commits intozxcalc:masterfrom
96-LB:show_feq_rewrites

Conversation

@lunarr-eclipse
Copy link

This PR adds support for fault equivalent rewrites, alongside additional documentation and bugfixes.

Changes:

  • Implemented fault-equivalent (FE) rewrite mode with toggle button and fault-weight input. This can be accessed in the proof panel.
  • Added existing FE rewrites from PyZX to ZXLive
  • Added new rewrites to PyZX, which are also supported in ZXLive with this PR: 2FE unfuse-n and fuse-4/5/n
  • Bug fixes: vertex dragging, copy 0/π spider rule, typing
  • New documentation for shortcuts and FE rewrites

Co-authored with @loisdelamar

@jvdwetering
Copy link
Collaborator

Looks great! Could you take a look at the mypy errors? I think not all of them have to do with the new functionality, but some of them probably do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants