DisCoPy: Monoidal Categories in Python

Giovanni de Felice, Alexis Toumi, Bob Coecke
5/6/2020
math.CT

Official code: oxford-quantum-group/discopy (17 stars, BSD-3-Clause, last commit 2022-12-26).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

The Python toolkit for computing with string diagrams.

172TeX, PythonDec 12, 20223 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{felice2020discopy,
  title  = {DisCoPy: Monoidal Categories in Python},
  author = {Giovanni de Felice and Alexis Toumi and Bob Coecke},
  year   = {2020},
  eprint = {2005.02975},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.02975}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.02975.svg)](https://codeofpaper.com/paper/2005.02975)

Discussion