DisCoPy: Monoidal Categories in Python

6 May 2020  ·  Giovanni de Felice, Alexis Toumi, Bob Coecke ·

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.

PDF Abstract