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

Add more ZXW rewrite rules #131

Open
4 tasks
Tracked by #317
RazinShaikh opened this issue Aug 21, 2023 · 1 comment
Open
4 tasks
Tracked by #317

Add more ZXW rewrite rules #131

RazinShaikh opened this issue Aug 21, 2023 · 1 comment

Comments

@RazinShaikh
Copy link
Contributor

RazinShaikh commented Aug 21, 2023

PyZX only has the W fusion rule for now. PyZX should support some of the common rewrite rules of the ZXW calculus. Here are the few rules I have in mind:

  • ZW bialgebra
  • WW bialgebra (I prefer the W projector version instead of the fermionic swap version because fermionic swap doesn't generalize to qudits)
  • Trialgebra
  • Pcy - any Z copies through W

It would be nice to support these rules in both forward and backward directions because for rules like trialgebra, we often want to switch from W (or X) to X (or W), apply an X (or W) rewrite, and then switch back using the opposite direction of trialgebra.

@jvdwetering
Copy link
Collaborator

It would probably be best to add these into their own file (something like wrules.py), just like how the H-box rules are in their own file.

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

No branches or pull requests

2 participants