zxcalc / pyzx

Python library for quantum circuit rewriting and optimisation using the ZX-calculus
Apache License 2.0
388 stars 116 forks source link

Add cat decompositions #266

Closed mjsutcliffe99 closed 3 months ago

mjsutcliffe99 commented 3 months ago

Add the cat3, cat4, cat5, cat6, and magic5 decompositions, plus a validity check function and a generic catlike term constructor function