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

Hopf in custom rewrite rule not stored/loaded. #356

Open
Aerylia opened this issue Oct 22, 2024 · 2 comments
Open

Hopf in custom rewrite rule not stored/loaded. #356

Aerylia opened this issue Oct 22, 2024 · 2 comments
Labels
Category: Custom rules Enhancements and issues dealing with adding or using custom rules Priority: High Type: bug Something is not right

Comments

@Aerylia
Copy link
Collaborator

Aerylia commented Oct 22, 2024

I'm not sure if this is related to #304 but I tried to make my own hopf to introduce CNOTs since the CNOT introduction does not always respect the ordering of the controls vs the targets. But the double edge isn't stored in the rewrite rule.

This is the rewrite rule:
image

This is how the rule is loaded in the proof system:
image

@jvdwetering
Copy link
Collaborator

This probably has to do with the fact the save/load system doesn't currently properly support parallel edges. See also #308.

@RazinShaikh
Copy link
Collaborator

RazinShaikh commented Oct 24, 2024

As a workaround, you can use the magic wand to cut two wires, applying the hopf rule.

Edit: Sorry, I just noticed that you are introducing two wires, not removing them. The magic wand suggestion won't be useful then.

@RazinShaikh RazinShaikh added Type: bug Something is not right Category: Custom rules Enhancements and issues dealing with adding or using custom rules Priority: High labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Custom rules Enhancements and issues dealing with adding or using custom rules Priority: High Type: bug Something is not right
Projects
None yet
Development

No branches or pull requests

3 participants