Need private packages and team management tools?Check out npm Teams »

bra-ket-vue

0.3.0 • Public • Published

bra-ket-vue

npm version License Build Status Twitter @QuantumGameIO

A visualizer for quantum states and matrices. In Vue.js. See live examples with code, or just live examples.

By Piotr Migdał (quantum physics & programming) and Klem Jankiewicz (UX & design).

Unitary Fund

Installation

For a node project use:

npm install bra-ket-vue

or for yarn:

yarn add bra-ket-vue

For browser HTML files, put in <head>...</head>:

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/quantum-tensors"></script>
<script src="https://unpkg.com/bra-ket-vue"></script>

Or if you want to stick to specific versions

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="https://unpkg.com/quantum-tensors@0.4.7/dist/quantum-tensors.min.js"></script>
<script src="https://unpkg.com/bra-ket-vue@0.3.0/dist/bra-ket-vue.min.js"></script>

For some applications you may want to read a bit about Vue.js.

Examples

Here are examples in the dark style. All components are aviable in two styles: dark and bright.

States (vectors)

Ket list for quantum computing

Ket list for quantum optics

Operators (matrices)

Matrix - beam-spliutter

Matrix - CNOT gate

Live examples with code

Notes

This repo was created using a script vue-sfc-rollup (a Vue component library generator, for JavaScript and TypeScript).

For more, see packaging Vue v2 Components for npm in the official Vue documentation.

Keywords

none

Install

npm i bra-ket-vue

DownloadsWeekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

1.15 MB

Total Files

53

Last publish

Collaborators

  • avatar