We modularly build increasingly larger fragments of the ZX-calculus by modularly adding new generators and relations, at each point, giving some concrete semantics in terms of some category of spans. This is performed using Lack's technique of composing props via distributive laws, as well as the technique of pushout cubes of Zanasi. We do this for the fragment of the ZX-calculus with only the black $\pi$-phase (and no Hadamard gate) as well as well as the fragment which additionally has the and gate as a generator (which is equivalent to the natural number H-box fragment of the ZH-calculus). In the former case, we show that this is equivalent to the full subcategory of spans of (possibly empty) free, finite dimensional affine $\mathbb F_2$-vector spaces, where the objects are the non-empty affine vector spaces. In the latter case, we show that this is equivalent to the full subcategory of spans of finite sets where the objects are powers of the two element set. Because these fragments of the ZX-calculus have semantics in terms of full subcategories of categories of spans, they can not be presented by distributive laws over groupoids. Instead, we first construct their subcategories of partial isomorphisms via distributive laws over all isomorphims with subobjects adjoined. After which, the full subcategory of spans are obtained by freely adjoining units and counits the the semi-Frobenius structures given by the diagonal and codiagonal maps.
翻译:我们通过在每一点以模块方式添加新的发电机和关系来构建日益扩大的ZX计算器碎片, 并在每个点上添加一些混凝土的语义, 在某类范围中提供某些具体的语义。 这是使用“ 缺省” 通过分配法拼凑道道具的技术, 以及Zanasi 的推出立方体的技术来进行。 我们这样做是为了ZX计算器碎片, 只有黑色的 $\ pi$ 级( 没有哈达马德门 ), 以及作为发电机( 这相当于 ZH 计算器的自然数字 Hbox 频段碎片 ) 的碎片 。 在前一种情况下, 我们证明这相当于( 可能是空的) 自由的、 有限维维度的 立方格 F_ 2 位空间的碎片。 在后一种情况下, 我们显示这相当于“ 平面” 平面结构的 Hbox 底部结构的完整亚类, 其尾巴片是两个直径的直径 。