{"id":26786931,"url":"https://github.com/quantum-flytrap/tensor-diagrams","last_synced_at":"2025-04-19T19:34:32.971Z","repository":{"id":47741636,"uuid":"377137044","full_name":"Quantum-Flytrap/tensor-diagrams","owner":"Quantum-Flytrap","description":"Tensor diagrams - Penrose graphical notation in D3.js","archived":false,"fork":false,"pushed_at":"2022-12-09T14:23:54.000Z","size":231,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T12:17:15.758Z","etag":null,"topics":["array","d3js","data-viz","diagram","mathematics","penrose","quantum","tensor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quantum-Flytrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-15T11:21:41.000Z","updated_at":"2023-02-18T08:31:44.000Z","dependencies_parsed_at":"2023-01-25T22:01:51.916Z","dependency_job_id":null,"html_url":"https://github.com/Quantum-Flytrap/tensor-diagrams","commit_stats":null,"previous_names":["quantum-game/tensor-diagrams"],"tags_count":8,"template":false,"template_full_name":"metachris/typescript-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantum-Flytrap%2Ftensor-diagrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantum-Flytrap%2Ftensor-diagrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantum-Flytrap%2Ftensor-diagrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantum-Flytrap%2Ftensor-diagrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quantum-Flytrap","download_url":"https://codeload.github.com/Quantum-Flytrap/tensor-diagrams/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249780506,"owners_count":21324559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["array","d3js","data-viz","diagram","mathematics","penrose","quantum","tensor"],"created_at":"2025-03-29T12:17:19.702Z","updated_at":"2025-04-19T19:34:32.950Z","avatar_url":"https://github.com/Quantum-Flytrap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tensor diagrams - Penrose graphical notation in D3.js\n\n[![npm version](https://badge.fury.io/js/tensor-diagrams.svg)](https://badge.fury.io/js/tensor-diagrams)\n![License](https://img.shields.io/npm/l/tensor-diagrams)\n![Buld status](https://github.com/Quantum-Flytrap/tensor-diagrams/actions/workflows/lint-and-test.yml/badge.svg)\n[![Twitter @QuantumFlytrap](https://img.shields.io/twitter/follow/QuantumFlytrap)](https://twitter.com/QuantumFlytrap)\n\nA package for creating visual tensor diagrams using [Penrose graphical notation](https://en.wikipedia.org/wiki/Penrose_graphical_notation) in D3js. For machine learning, deep learning, quantum computing, quantum information, and other array operations. By [Piotr Migdał](https://p.migdal.pl/) and [Claudia Zendejas-Morales](https://claudiazm.xyz/) from [Quantum Flytrap](https://quantumflytrap.com/).  \n\nA simple live version: https://jsfiddle.net/stared/60ndm3co/.\n\nA work-in-progress article about Tensor Diagrams in Deep Learning, \u003chttps://p.migdal.pl/art-tensor-diagrams/\u003e and its source \u003chttps://github.com/stared/art-tensor-diagrams\u003e.\n\nInspirations include:\n\n* [tensornetwork.org/diagrams](http://tensornetwork.org/diagrams/)\n* [Matrices as Tensor Network Diagrams](https://www.math3ma.com/blog/matrices-as-tensor-network-diagrams) by Tai-Danae Bradley\n* [Drawing Trace Diagrams with TikZ](http://elishapeterson.wikidot.com/tikz:diagrams) by Elisha Peterson\n* Piotr's longstanding interest in data visualization of array operations\n  * [⟨𝜑|𝜓⟩.vue - a Vue-based visualization of quantum states and operations](https://github.com/Quantum-Flytrap/bra-ket-vue)\n  * [Simple diagrams of convoluted neural networks](https://p.migdal.pl/2018/09/15/simple-diagrams-deep-learning.html)\n  * [Symmetries and self-similarity of many-body wavefunctions](https://arxiv.org/abs/1412.6796)\n\nIf you want to use tensors in the browser, you may be looking for the [Quantum-Flytrap/quantum-tensors](https://github.com/Quantum-Flytrap/quantum-tensors) NPM package. If you are looking to visualize complex vectors and operators (especially for quantum computing), see [https://github.com/Quantum-Flytrap/bra-ket-vue](https://github.com/Quantum-Flytrap/bra-ket-vue).\n\n## Local setup\n\nCreated using a NPM TypeScript frontend boilerplate [metachris/typescript-boilerplate](https://github.com/metachris/typescript-boilerplate/), which uses [esbuild](https://esbuild.github.io/), and is described in detail in [Blog post: Starting a TypeScript Project in 2021](https://www.metachris.com/2021/03/bootstrapping-a-typescript-node.js-project/).\n\n```bash\n# Clone the repository\ngit clone git@github.com:Quantum-Flytrap/tensor-diagrams.git\ncd tensor-diagrams\n\n# Install dependencies\nyarn install\n\n# Now you can run various yarn commands:\nyarn lint\nyarn test\nyarn build-all\nyarn esbuild-browser\nyarn docs\n```\n\n\n## Feedback\n\nThe easiest feedback is by opening a [GitHub Issue](https://github.com/Quantum-Flytrap/tensor-diagrams/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum-flytrap%2Ftensor-diagrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantum-flytrap%2Ftensor-diagrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum-flytrap%2Ftensor-diagrams/lists"}