Alexis Toumi, Richie Yeung, Boldizsár Poór, Giovanni de Felice
{"title":"DisCoPy: Python中图形语言的层次结构","authors":"Alexis Toumi, Richie Yeung, Boldizsár Poór, Giovanni de Felice","doi":"arxiv-2311.10608","DOIUrl":null,"url":null,"abstract":"DisCoPy is a Python toolkit for computing with monoidal categories. It comes\nwith two flexible data structures for string diagrams: the first one for planar\nmonoidal categories based on lists of layers, the second one for symmetric\nmonoidal categories based on cospans of hypergraphs. Algorithms for functor\napplication then allow to translate string diagrams into code for numerical\ncomputation, be it differentiable, probabilistic or quantum. This report gives\nan overview of the library and the new developments released in its version\n1.0. In particular, we showcase the implementation of diagram equality for a\nlarge fragment of the hierarchy of graphical languages for monoidal categories,\nas well as a new syntax for defining string diagrams as Python functions.","PeriodicalId":501256,"journal":{"name":"arXiv - CS - Mathematical Software","volume":"20 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-11-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"DisCoPy: the Hierarchy of Graphical Languages in Python\",\"authors\":\"Alexis Toumi, Richie Yeung, Boldizsár Poór, Giovanni de Felice\",\"doi\":\"arxiv-2311.10608\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"DisCoPy is a Python toolkit for computing with monoidal categories. It comes\\nwith two flexible data structures for string diagrams: the first one for planar\\nmonoidal categories based on lists of layers, the second one for symmetric\\nmonoidal categories based on cospans of hypergraphs. Algorithms for functor\\napplication then allow to translate string diagrams into code for numerical\\ncomputation, be it differentiable, probabilistic or quantum. This report gives\\nan overview of the library and the new developments released in its version\\n1.0. In particular, we showcase the implementation of diagram equality for a\\nlarge fragment of the hierarchy of graphical languages for monoidal categories,\\nas well as a new syntax for defining string diagrams as Python functions.\",\"PeriodicalId\":501256,\"journal\":{\"name\":\"arXiv - CS - Mathematical Software\",\"volume\":\"20 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-11-17\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Mathematical Software\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2311.10608\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Mathematical Software","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2311.10608","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
DisCoPy: the Hierarchy of Graphical Languages in Python
DisCoPy is a Python toolkit for computing with monoidal categories. It comes
with two flexible data structures for string diagrams: the first one for planar
monoidal categories based on lists of layers, the second one for symmetric
monoidal categories based on cospans of hypergraphs. Algorithms for functor
application then allow to translate string diagrams into code for numerical
computation, be it differentiable, probabilistic or quantum. This report gives
an overview of the library and the new developments released in its version
1.0. In particular, we showcase the implementation of diagram equality for a
large fragment of the hierarchy of graphical languages for monoidal categories,
as well as a new syntax for defining string diagrams as Python functions.