[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-657383-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-657383-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","representing-and-implementing-matrices-using-algebraic-zx-calculus","Representing and Implementing Matrices Using Algebraic ZX-calculus","","Elementary matrices play a central role in linear algebra. This paper provides a diagrammatic representation of all 2^m × 2^n-sized elementary matrices in algebraic ZX-calculus, and proves properties of these diagrams under inverses and transposes via diagram rewriting. The representation is further applied to depict the Jozsa-style matchgate within algebraic ZX-calculus. For practical validation and usability, an implementation is provided in discopy, enabling numerical verification of the constructions and supporting future ZX-calculus-based matrix synthesis.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/representing-and-implementing-matrices-using-algebraic-zx-calculus/657383/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/representing-and-implementing-matrices-using-algebraic-zx-calculus/657383.png","ImageObject",300,407,{"name":42,"@type":43},"Terk","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-30","2026-10-26",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does the paper contribute regarding elementary matrices in algebraic ZX-calculus?","Question",{"text":62,"@type":63},"It presents a diagrammatic representation for all 2^m × 2^n-sized elementary matrices in algebraic ZX-calculus and studies how these diagrams behave under inverses and transposes using diagram rewriting.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How are properties like inverses and transposes handled in the proposed framework?",{"text":67,"@type":63},"The paper proves basic properties of the inverses and transposes diagrammatically by applying rewriting rules that transform parts of ZX diagrams into equivalent sub-diagrams.",{"name":69,"@type":60,"acceptedAnswer":70},"How is the representation validated or made practical?",{"text":71,"@type":63},"The representation method is implemented in discopy, where numerical verification is used to confirm the examples discussed in the paper.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},657383,1793095743,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145},1099525198933,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","arXiv :2110 .06898v4 [ quant-ph] 4 May 2023  \nRepresenting and Implementing Matrices Using Algebraic  \nZX-calculus  \nQuanlong Wang 1 Richie Yeung 1;2  \n1 Quantinuum, 17 Beaumont Street, Oxford OX1 2NA, United Kingdom  \n2University of Oxford  \nIn linear algebra applications, elementary matrices hold a signiﬁcant role. This paper presents a diagrammatic representation of all 2m 􀀂 2n-sized elementary matrices in algebraic ZX-calculus, showcasing their properties on inverses and transpose through diagrammatic rewriting. Additionally, the paper uses this representation to depict the Jozsa-style matchgate in algebraic ZX-calculus. To further enhance practical use, we have implemented this representation in discopy. Overall, this work sets the groundwork for more applications of ZX-calculus such as synthesising controlled matrices  \n[19] in quantum computing.  \n1 Introduction  \nMatrices are used everywhere in modern science, like machine learning [17] or quantum computing [18], to name a few. Meanwhile, there is a graphical language called ZX-calculus that could also deal with matrix calculations such as matrix multiplication and tensor product [3, 5] . Then there naturally arisesa question: why are people bothering with using diagrams for matrix calculations given that matrix technology has been applied with great successes? There are a few reasons for doing so. First, there is a lot of redundancy in matrix calculations which could be avoided in graphical calculus. For example, to prove the cyclic property of matrices tr(AB) = tr(BA), all the elements of the two matrices will be involved, while in graphical language like ZX-calculus, the proof of the cyclic property is almost a tautology [4] . Second, matrix calculations always have all the elements of matrices involved, thus a“global” operation, while in ZX-calculus, the operations are just diagram rewriting where only a part of a diagram is replaced by another sub-diagram according to certain rewriting rule, thus essentially a“local” operation which makes things much easier. Finally, graphical calculus is much more intuitive than matrix calculation, therefore a pattern/structure is more probably to be recognised in a graphical formalism. In fact, as a graphical calculus for matrix calculation, ZX-calculus has achieved plenty of successes in the ﬁeld of quantum computing and information [1, 6, 13, 20]  \nFor research realm beyond quantum, traditional ZX-calculus [3] is inconvenient as “it lacks a way to directly encode the complex numbers” [26] . To remedy this inconvenience while still preserving its power, we introduced an “extended” version called algebraic ZX-calculus with new generators added in (not a real extension in the sense that the new generators can be expressed by the original generators)  \n[23] . While [22] proves the completeness of algebraic ZX calculus using elementary matrix operations, the set of elementary operations given are a minimal set (multiplying the bottom row, adding the bottom row to other rows) and are unsuitable for practical matrix synthesis.  \nIn this paper, we ﬁrst provide diagrammatic representations for adding, multiplying and switching the rows and columns of a 2m 􀀂 2n matrix, diagrammatically prove some basic properties about their inversesand transposes. Then we show how to represent an arbitrary matrix of size 2m 􀀂 2n in ZX diagrams. Finally we show how this representation method could be used for representing matchgates [10] . We  \n2 Representing and Implementing Matrices Using Algebraic ZX-calculus  \nalso include an implementation of this representation method in discopy (see [link]), which numerically veriﬁes these examples. The results of this paper can be generalised from the ﬁeld of complex numbers to arbitrary commutative semirings due to the completeness of algebraic ZX-calculus over semirings [24] .  \nRelated Work: There is an established and related body of research known as Graphical Linear Algebra. [2] The diagrams in this formal","cbCaifeGJRdRGIfs","https://ap.wps.com/l/cbCaifeGJRdRGIfs","pdf",566139,25,"English","# Introduction\n## Motivation for using diagrams in matrix calculations\n## Limitations of traditional ZX-calculus\n# Algebraic ZX-calculus\n## Generators, interpretations, and rewriting rules","[{\"question\":\"What does the paper contribute regarding elementary matrices in algebraic ZX-calculus?\",\"answer\":\"It presents a diagrammatic representation for all 2^m × 2^n-sized elementary matrices in algebraic ZX-calculus and studies how these diagrams behave under inverses and transposes using diagram rewriting.\"},{\"question\":\"How are properties like inverses and transposes handled in the proposed framework?\",\"answer\":\"The paper proves basic properties of the inverses and transposes diagrammatically by applying rewriting rules that transform parts of ZX diagrams into equivalent sub-diagrams.\"},{\"question\":\"How is the representation validated or made practical?\",\"answer\":\"The representation method is implemented in discopy, where numerical verification is used to confirm the examples discussed in the paper.\"}]","Representing and Implementing Matrices Using Algebraic ZX-calculus | PDF",1792978316,63]