Skip to content
TypeScript library for quantum calculation
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example
img
spec fix spec lint Jan 30, 2020
src
.eslintrc.js
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
PULL_REQUEST_TEMPLATE.md
README.md
jest.config.js
package.json
tsconfig.json

README.md

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).

You can’t perform that action at this time.