DisCoPy: Monoidal Categories in Python
Giovanni de Felice, Alexis Toumi, Bob Coecke
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.
Topics & Concepts
ToolboxComputer sciencePython (programming language)Programming languageModularity (biology)FunctorTheoretical computer scienceMathematicsPure mathematicsBiologyGeneticsLogic, programming, and type systemsTopic ModelingScientific Computing and Data Management