DisCoPy: Monoidal Categories in Python
arXiv:2005.02975 · doi:10.4204/EPTCS.333.13
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.
arXiv commentIn Proceedings ACT 2020, arXiv:2101.07888
References in corpus (29)
- The NumPy array: a structure for efficient numerical computation
- A Practical Introduction to Tensor Networks: Matrix Product States and Projected Entangled Pair States
- Efficient numerical simulations with Tensor Networks: Tensor Network Python (TeNPy)
- tket : A Retargetable Compiler for NISQ Devices
- A survey of graphical languages for monoidal categories
- TensorLy: Tensor Learning in Python
- PyZX: Large Scale Automated Diagrammatic Reasoning
- Disintegration and Bayesian Inversion via String Diagrams
- Mathematical Foundations for a Compositional Distributional Model of Meaning
- Quantum Algorithms for Compositional Natural Language Processing
- TensorNetwork: A Library for Physics and Machine Learning
- Kindergarten Quantum Mechanics
- A Universal Construction for (Co)Relations
- A Compositional Framework for Reaction Networks
- Picturing classical and quantum Bayesian inference
- Quantomatic: A Proof Assistant for Diagrammatic Reasoning
- Categories of Optics
- Knowledge Representation in Bicategories of Relations
- Globular: an online proof assistant for higher-dimensional rewriting
- Autonomization of Monoidal Categories
- Lenses and Learners
- Coherence for Frobenius pseudomonoids and the geometry of linear proofs
- A categorical semantics for causal structure
- Normalization for planar string diagrams and a quadratic equivalence algorithm
- The Mathematics of Text Structure
- Interacting Conceptual Spaces I : Grammatical Composition of Concepts
- Functorial Question Answering
- Incremental Monoidal Grammars
- Towards Compositional Distributional Discourse Analysis
Cited by in corpus (13)
- QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computer
- Grammar-aware sentence classification on quantum computers
- Foundations for Near-Term Quantum Natural Language Processing
- Operads for complex system design specification, analysis and synthesis
- A CCG-Based Version of the DisCoCat Framework
- Diagrammatic Differentiation for Quantum Machine Learning
- lambeq: An Efficient High-Level Python Library for Quantum NLP
- Quantum Linear Optics via String Diagrams
- A category theory framework for Bayesian learning
- SQL2Circuits: Estimating Cardinalities, Execution Times, and Costs for SQL Queries with Quantum Natural Language Processing
- A dataflow programming framework for linear optical distributed quantum computing
- Functorial Language Models
- Learning a Deep Generative Model like a Program: the Free Category Prior