Giter Club home page Giter Club logo

qiskit-js's Introduction

QISKit.js

License lerna Build Status

โš›๏ธ Quantum Information Science Kit for JavaScript. ๐Ÿ’ก This project born as a clone (in JS) of its big brother.

beta: Until v1 breaking changes could be included.

Philosophy

๐Ÿ“™ The basic concept of our quantum program is an array of quantum circuits. The program workflow consists of three stages: Build, Compile, and Run. Build allows you to make different quantum circuits that represent the problem you are solving. Compile allows you to rewrite them to run on different backends (simulators/real chips of different quantum volumes, sizes, fidelity, etc); and Run launches the jobs. After the jobs have been run, the data is collected. There are methods for putting this data together, depending on the program. This either gives you the answer you wanted or allows you to make a better program for the next instance.

If you want to learn more about Quantum Computing, you're invited to visit our Quamtum Experience project.

Structure

๐Ÿ‘œ The components of this repository are exposed as these libraries:

  • @qiskit/sdk: Meta-package, documented in this file. It also includes a command line client, which is your friend if you want to play with some OpenQASM circuits (in the Quantum Experience or the local simulator) without having to use any other programming language.
  • @qiskit/qasm: OpenQASM stuff, including the parser.
  • @qiskit/cloud: To send circuits to the Quantum Experience.
  • @qiskit/sim: Local simulator for OpenQASM circuits.
  • @qiskit/utils: Helpers shared among all packages.
  • @qiskit/devs: High level algorithms for easy use. Designed for developers (vs. researchers).

QISKit for the browser

You can find a bundled version with the same stuff ready to be used in the browser in the dist folder.

Install

โ˜• Install last Node.js stable version (or LTS) and then:

npm i -g @qiskit/sdk

Use

CLI

๐Ÿš€ The command line client allows to play with the circuits without having to use any programming language API.

qiskitjs --help

Programatically

๐Ÿ“ As you can see in the next section, we have to use it like in the rest of independent modules. The only difference is we need to select the proper field of the main object before.

const qiskit = require('@qiskit/sdk');

console.log('Simulator version');
console.log(qiskit.sim.version);

API

๐Ÿ‘€ Full specification.

version

The actual version of the library.

  • version (string) - Version number.

qasm

A wrapper fot the qiskit-qasm project.

  • qasm (object) - The same object provided in the original library.

sim

A wrapper fot the qiskit-sim project.

  • sim (object) - The same object provided in the original library.

Cloud

A wrapper fot the qiskit-cloud project.

  • Cloud (object) - The same constructor provided in the original library.

utils

A wrapper fot the qiskit-utils project.

  • utils (object) - The same object provided in the original library.

devs

A wrapper fot the qiskit-devs project.

  • devs (object) - The same object provided in the original library.

Authors

๐Ÿ‘ฝ https://github.com/QISKit/qiskit-js/graphs/contributors

Original code (Python) authors here.

Other QISKit projects

๐ŸŽ’

License

๐Ÿง QISKit is released under the Apache license, v2.0.

Do you want to help?

๐Ÿ˜Ž If you'd like to help please take a look to our contribution guidelines.

qiskit-js's People

Contributors

abdonrd avatar cbjuan avatar jelcaf avatar jesusprubio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.