数学 > 范畴论
[提交于 2023年11月17日]
标题:DisCoPy: the Hierarchy of Graphical Languages in Python
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:DisCoPy is a Python toolkit for computing with monoidal categories. It comes with two flexible data structures for string diagrams: the first one for planar monoidal categories based on lists of layers, the second one for symmetric monoidal categories based on cospans of hypergraphs. Algorithms for functor application then allow to translate string diagrams into code for numerical computation, be it differentiable, probabilistic or quantum. This report gives an overview of the library and the new developments released in its version 1.0. In particular, we showcase the implementation of diagram equality for a large fragment of the hierarchy of graphical languages for monoidal categories, as well as a new syntax for defining string diagrams as Python functions.
提交历史
来自:Boldizsár Poór[v1] 2023年11月17日 星期五 16:03:08 UTC