A dagger-Frobenius monoid on an object is a monoid whose adjoint comonoid satisfies the Frobenius law .
Theorem (Coecke, Pavlovic and Vicary). Every orthogonal basis of a finite-dimensional Hilbert space defines a commutative dagger-Frobenius monoid, and every commutative dagger-Frobenius monoid in arises in this way from an orthogonal basis. The basis is orthonormal exactly when the monoid is special, and then the comultiplication copies and the counit deletes the basis vectors :
For the computational basis of a qubit, is the map and composites of , , , are the phase-free Z spiders of the ZX-calculus; the Hadamard basis gives the X spiders. A pair of such structures for mutually unbiased bases, and the laws relating them, is the starting point of Coecke and Duncan. The proof is not reproduced here. A textbook treatment is in Heunen and Vicary.