0.0.8 • Published 5 years ago
@qramana/qramana v0.0.8
qramana
qramana is a TypeScript library for quantum calculation.
Feature
- Can handle qubit with only Qubit interface
- No need to consider synthetic quantum systems
- Can be implemented in JavaScript application (e.g. browser, Node.js)
- Pick and choose background system that make sense for you
More detail, see here.
Quick start
Install
To install current release via npm.
$ npm install @qramana/qramanaTry your first qubit
Write your first qubit definition to typescript code in qubit.ts,
import * as q from '@qramana/qramana';
const qubit = new q.Qubit({value: "|0>"});
console.log(qubit.measure()); and run it.
$ tsc qubit.ts
$ node qubit.js
0If you need more details, see tutorial.
Build qramana
If you want to build qramana to modify library code, clone and install dependencies.
$ git clone https://github.com/qramana/qramana.git
$ cd qramana
$ npm install
$ npm run buildThen you can run unit test.
$ npm run testLICENSE
MIT
Acknowledgement
This software is supported by IPA Mitou Target Project 2018 (Category: quantum logic gate). See the abstract here (written in Japanese).