论文标题
盘式:Python中的单体类别
DisCoPy: Monoidal Categories in Python
论文作者
论文摘要
我们介绍了Discopy,这是一种用于计算单类别类别的开源工具箱。该库提供了一个直观的语法,用于定义字符串图和单体函数。它的模块化允许在类别理论的各种应用中有效实施计算实验,其中图已成为通用语言。例如,我们首次使用Discopy在量子硬件上进行自然语言处理。
We introduce DisCoPy, an open source toolbox for computing with monoidal categories. The library provides an intuitive syntax for defining string diagrams and monoidal functors. Its modularity allows the efficient implementation of computational experiments in the various applications of category theory where diagrams have become a lingua franca. As an example, we used DisCoPy to perform natural language processing on quantum hardware for the first time.