@qramana/qramana
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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/qramana

Try 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
0

If 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 build

Then you can run unit test.

$ npm run test

LICENSE

MIT

Acknowledgement

This software is supported by IPA Mitou Target Project 2018 (Category: quantum logic gate). See the abstract here (written in Japanese).

Readme

Keywords

Package Sidebar

Install

npm i @qramana/qramana

Weekly Downloads

3

Version

0.0.8

License

MIT

Unpacked Size

48.4 kB

Total Files

22

Last publish

Collaborators

  • kmkr01