-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Z box #164
Z box #164
Conversation
Very nice! Is this ready to be merged? |
I think it is but if you think I have missed something, please let me know. |
Maybe at some point we want to have a seperate file for all the ZXW rewrites, just like how all the H-box rules are in |
Yeah that would be good. For some rewrites, the Z box behaves almost the same as the Z spider with a slight modification on how phases are modified. For those, I would prefer to keep it in the same rewrite. |
Basic support for the Z box generator. You can create, rewrite, draw, tensor contract, and save graphs with Z boxes. I have added the fusion rewrite, which works between two Z boxes or a Z box & Z spider. I have also added rewrite to convert a Z spider to Z box. Additional rewrites can be added in the future but that is conceptually straightforward.