ZX-Calculus Circuit Simplifier

Generate a circuit β†’ translate to a ZX diagram β†’ reduce it one elementary rule at a time. Every step is checked.

Circuit

Start

Initial diagram

Soundness vs confluence: any legal sequence of these elementary rules preserves the linear map (soundness β€” that's what the badge checks). But the rules are not confluent: different valid orderings can stop at differently-sized diagrams. Reaching a truly minimal diagram is hard and isn't guaranteed by the elementary rules alone.