tensor-diagrams
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Tensor diagrams - Penrose graphical notation in D3.js

npm version License Buld status Twitter @QuantumFlytrap

A package for creating visual tensor diagrams using Penrose graphical notation in D3js. For machine learning, deep learning, quantum computing, quantum information, and other array operations. By Piotr Migdał and Claudia Zendejas-Morales from Quantum Flytrap.

A simple live version: https://jsfiddle.net/stared/60ndm3co/.

Inspirations include:

If you want to use tensors in the browser, you may be looking for the 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.

Local setup

Created using a NPM TypeScript frontend boilerplate metachris/typescript-boilerplate, which uses esbuild, and is described in detail in Blog post: Starting a TypeScript Project in 2021.

# Clone the repository
git clone https://github.com/Quantum-Flytrap/tensor-diagrams
cd tensor-diagrams

# Install dependencies
yarn install

# Now you can run various yarn commands:
yarn lint
yarn test
yarn build-all
yarn esbuild-browser
yarn docs

Feedback

The easiest feedback is by opening a GitHub Issue.

Package Sidebar

Install

npm i tensor-diagrams

Weekly Downloads

12

Version

0.3.0

License

MIT

Unpacked Size

417 kB

Total Files

40

Last publish

Collaborators

  • pmigdal