“…One of the best-studied graphical calculi is the ZX-calculus [9,10,12], which has been applied extensively in the study of quantum circuits and related structures in quantum computation (e.g. measurement-based quantum computing [6,17,28], fault-tolerant quantum computations [16,25], error-correcting codes [8], and circuit optimisation [18,19,29]). ZX-diagrams consist of spiders, a type of well-behaved linear map that is depicted by coloured dots:…”