zxcalc / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
45 stars 15 forks source link

Boundary pivot never seems to be matched #245

Open tuomas56 opened 3 weeks ago

tuomas56 commented 3 weeks ago

I'm trying to produce a test case which uses the "boundary pivot" rule (from the "Graph-like rules" tab), but I can't figure out how to make this match. I think one of the following diagrams ought to work but the boundary pivot rule is always greyed out:

Screenshot 2024-06-12 at 22 19 16

Having a look at the pyzx source this seems like it should match (phase of 1/2 connected to the boundary, everything else is pauli phases, and connected as for a regular pivot)