• This repository has been archived on 13/Sep/2019
  • Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    JavaScript
  • Created almost 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚛️ Qiskit (Quantum Information Science Kit) for JavaScript

Qiskit.js

Build Status stability-experimental lerna code style: prettier Downloads

⚛️ Quantum Information Science Kit for JavaScript, I was born as a clone of my big brother.

logo

🎁 Follow us on Twitter if you like this project

Alpha: 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 for the browser

📥 All components are compatible with browserify.

Install

Install lastest Node.js stable version (or LTS) and then:

npm i -g qiskit

Use

CLI

🚀 The command line client allows to play with the circuits without having to use any programming language API.

qiskitjs --help
qiskitjs <command>

Commands:
  backend [name] - Get latest calibration stats for a backend  [aliases: b]
  backends [onlySims] - Get latest calibration stats for a backend  [aliases: bs]
  calibration [backend] - Get latest calibration stats for a backend  [aliases: c]
  circuit <circuit> [backend] [shots] [name] [seed] [maxCredits] - Send the circuit to be run in the Quantum
  	Experience (https://quantumexperience.ng.bluemix.net)  [aliases: ci]
  credits - Information about your credits  [aliases: cr]
  factor <number> - Calculate a factor of a number  [aliases: f]
  job <id> - Get the info of a specific job  [aliases: j]
  jobs [limit] [offset] - Get all your jobs. Ordered by creation date  [aliases: js]
  login [printToken] - Use an API key to get a token to make requests  [aliases: l]
  params [backend] - Get latest parameter stats for a backend  [aliases: p]
  parse <circuit> - Parse the circuit to our IR (intermediate representation - JSON format)  [aliases: p]
  queue [backend] - Get the status of a backend queue  [aliases: q]
  random [engine] [length] [format] [backend] - Generate a true random number among 0 and 1  [aliases: r]
  result <jobId> - Get the result of a background job generated by an algorithm method. The engine is ommited
  	because IBM Q is the unique which uses background jobs for now  [aliases: re]

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

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');

console.log('True random numbers\n');

qiskit.algo.random().then(rand => console.log(`JavaScript: ${rand}`));

const cloud = new qiskit.Cloud();
cloud.login('YOUR_PERSONAL_TOKEN_HERE').then(() => {
  cloud.backends().then(data => {
    console.log('(IBM Backends');
    console.log(data);
  });

  qiskit.algo.random({
    engine: 'ibm',
    custom: cloud,
    // default: simulator
    // engine: "ibmqx4"
  }).then(rand => console.log(`IBM Cloud: ${rand}`))
});

qiskit.algo.random({
  engine: 'anu',
  length: 8,
}).then(rand => console.log(`ANU Server: ${rand}`));

API

👀 Full specification.

version

The actual version of the library.

  • version (string) - Version number.

qasm

A wrapper for the qiskit-qasm project.

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

sim

A wrapper for the qiskit-sim project.

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

Cloud

A wrapper for the qiskit-cloud project.

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

utils

A wrapper for the qiskit-utils project.

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

algo

A wrapper for the qiskit-algo project.

  • algo (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.

More Repositories

1

qiskit-community-tutorials

A collection of Jupyter notebooks developed by the community showing how to use Qiskit
Jupyter Notebook
710
star
2

qiskit-machine-learning

Quantum Machine Learning
Python
668
star
3

qiskit-aqua

Quantum Algorithms & Applications (**DEPRECATED** since April 2021 - see readme for more info)
Python
572
star
4

qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
Python
301
star
5

qiskit-metal

Quantum Hardware Design. Open-source project for engineers and scientists to design superconducting quantum devices with ease.
Python
288
star
6

IBMQuantumChallenge2020

Quantum Challenge problem sets
Jupyter Notebook
252
star
7

qiskit-finance

Quantum Finance
Python
237
star
8

qiskit-optimization

Quantum Optimization
Python
228
star
9

qiskit-ignis

Ignis (deprecated) provides tools for quantum hardware verification, noise characterization, and error correction.
Python
168
star
10

ibm-quantum-challenge-2024

For IBM Quantum Challenge 2024 (5-14 June 2024)
Jupyter Notebook
159
star
11

qiskit-experiments

Qiskit Experiments
Python
156
star
12

ibm-quantum-challenge-2021

For IBM Quantum Challenge 2021 (May 20 - 26)
Jupyter Notebook
155
star
13

ibm-quantum-challenge-spring-2023

For IBM Quantum Challenge Spring 2023
Jupyter Notebook
150
star
14

qiskit-translations

Home of Qiskit documentation translations
Shell
143
star
15

ibm-quantum-challenge-fall-2021

For IBM Quantum Challenge Fall 2021
Jupyter Notebook
139
star
16

may4_challenge_exercises

Original versions of the exercises
Jupyter Notebook
121
star
17

ibm-quantum-challenge-fall-22

For IBM Quantum Fall Challenge 2022
Jupyter Notebook
120
star
18

qiskit-algorithms

A library of quantum algorithms for Qiskit.
Python
115
star
19

qiskit-dynamics

Tools for building and solving models of quantum systems in Qiskit
Python
103
star
20

ibm-quantum-spring-challenge-2022

Jupyter Notebook
98
star
21

qgss-2023

All things Qiskit Global Summer School 2023: Theory to Implementation - Lecture notes, Labs and Solutions
Jupyter Notebook
97
star
22

open-science-prize-2021

Jupyter Notebook
84
star
23

quantum-explorers

A self-paced, quantum computing learning journey for high school students and above.
Jupyter Notebook
83
star
24

qiskit-qec

Qiskit quantum error correction framework
Python
81
star
25

qiskit-presentations

Awesome Qiskit presentations
Jupyter Notebook
79
star
26

qgss-2024

Qiskit Global Summer School 2024: The Path to Utility
Jupyter Notebook
74
star
27

qiskit-research

Research using Qiskit.
Python
67
star
28

open-science-prize-2022

Jupyter Notebook
67
star
29

qiskit-braket-provider

Qiskit-Braket provider to execute Qiskit programs on quantum computing hardware devices through Amazon Braket.
Python
58
star
30

mapomatic

Automatic mapping of compiled circuits to low-noise sub-graphs
Python
56
star
31

qiskit-application-modules-demo-sessions

Demo notebooks for Qiskit application modules demo sessions (Oct 8 & 15):
Jupyter Notebook
49
star
32

ibm-quantum-challenge-africa-2021

For IBM Quantum Challenge Africa 2021, 9 September (07:00 UTC) - 20 September (23:00 UTC).
Jupyter Notebook
49
star
33

Quantum-Challenge-Grader

Grading client for the IBM Quantum Challenges
Python
44
star
34

open-science-prize

Jupyter Notebook
42
star
35

qiskit-ionq

Qiskit provider for IonQ backends
Python
42
star
36

MicroQiskit

Jupyter Notebook
42
star
37

ICPC-Quantum-Challenge-2021

Original version of the exercises for the 2021 ICPC Quantum Computing Challenge
Jupyter Notebook
41
star
38

intro-to-quantum-computing-and-quantum-hardware

intro-to-quantum-computing-and-quantum-hardware
41
star
39

quantum-prototype-template

A template repository for generating new quantum prototypes based on Qiskit
Python
41
star
40

prototype-quantum-kernel-training

Toolkit for training quantum kernels in machine learning applications
Python
40
star
41

qiskit-swift

Qiskit in swift
Swift
39
star
42

lindbladmpo

A matrix-product-operators solver for the dynamics of interacting qubits modeled by a Lindblad master equation, written in C++ and wrapped with an easy-to-use Python interface.
Python
36
star
43

qiskit-hackathon-korea-22

Jupyter Notebook
35
star
44

qiskit-hackathon-korea-21

A repository for Qiskit Hackathon Korea (February 16-19, 2021)
33
star
45

qiskit-hackathon-taiwan-20

32
star
46

qiskit-cold-atom

Tools to control cold-atom-based quantum simulators and quantum computers.
Python
31
star
47

povm-toolbox

A toolbox for the implementation of positive operator-valued measures (POVMs).
Python
30
star
48

prototype-entanglement-forging

A module for simulating chemical and physical systems using a Variational Quantum Eigensolver (VQE) enhanced by Entanglement Forging.
Python
29
star
49

prototype-zne

Zero Noise Extrapolation (ZNE) prototype for error mitigation on the Qiskit Estimator primitive
Python
28
star
50

QuantumBlur

Jupyter Notebook
27
star
51

qiskit-aqt-provider

Qiskit provider for AQT backends.
Python
27
star
52

prototype-qrao

Quantum random access optimization prototype
Python
27
star
53

qiskit-dell-runtime

Qiskit Dell Runtime is a Qiskit Runtime platform that can execute classical-quantum code on both local and on-premise environments. With this platform, hybrid classical-quantum code bundle can be developed and executed. Powered by Qiskit Runtime API, this execution model provides close-integration of classical and quantum execution.
Python
27
star
54

QuantumGraph

Jupyter Notebook
26
star
55

qiskit-app-benchmarks

Qiskit Application Benchmarks
Python
25
star
56

qiskit-qcgpu-provider

A provider which allows Qiskit to use the QCGPU simulator
Python
25
star
57

qopt-best-practices

A collection of guidelines to run quantum optimization algorithms on superconducting qubits with Qiskit, using as reference the Quantum Approximate Optimization Algorithm (QAOA) workflow.
Jupyter Notebook
25
star
58

qiskit-pocket-guide

Code from the Qiskit Pocket Guide book
Jupyter Notebook
23
star
59

ffsim

Faster simulations of fermionic quantum circuits.
Python
22
star
60

qiskit-quantinuum-provider

Qiskit provider for Quantinuum backends.
Python
21
star
61

ml-qem

Library for solving quantum computing problems using machine learning
Python
20
star
62

awesome-qiskit

Awesome Qiskit is a list of projects, tools, utilities, libraries and tutorials from a broad community of developers and researchers.
Python
20
star
63

openshift-quantum-operators

Jupyter Notebook
19
star
64

qiskit-camp-europe-19

18
star
65

qiskit-jku-provider

A local provider which allows Qiskit to use a decision-diagrams quantum simulator from JKU
C++
18
star
66

qiskit-nature-pyscf

Documentation at https://qiskit-community.github.io/qiskit-nature-pyscf/
Python
18
star
67

subgraph-isomorphism

A quantum algorithm for the subgraph isomorphism problem
Python
17
star
68

monodromy

Computations in the monodromy polytope for quantum gate sets
Python
17
star
69

qiskit-qubit-reuse

A Qiskit transpiler stage plugin to enable qubit reuse via mid-circuit measurement and reset.
Python
17
star
70

qiskit_rng

Quantum random number generator with CQC extractor
Python
16
star
71

korean-community

Jupyter Notebook
16
star
72

qiskit-aqua-interfaces

qiskit-aqua-interfaces provides command-line and graphical interfaces for executing experiments using Qiskit Aqua.
Python
16
star
73

qiskit-camp-africa-19

Qiskit Camp Africa - December 11-14, 2019
15
star
74

qiskit-alt

High-performance Qiskit features backed by Julia. A Python front end to algorithms using Pauli and Fermionic operators implemented in Julia.
Python
13
star
75

qiskit-summer-jam-20

12
star
76

quantum-algorithms-benchmarks

Jupyter Notebook
12
star
77

qiskit-hackathon-singapore-19

11
star
78

community.qiskit.org

Home of the Qiskit Community
HTML
11
star
79

qiskit-hackathon-bilbao-19

Main repository for the Quantum Hackathon in Bilbao
10
star
80

quantum-fridays

Jupyter Notebook
10
star
81

repo-monitor

Python
9
star
82

mzm-phase-boundary

This repository contains the code and data from the manuscript "Simulating spectroscopic detection of Majorana zero modes with a superconducting quantum computer."
Jupyter Notebook
9
star
83

qiskit-benchmarks

A performance comparinson of Qiskit contributions
Python
8
star
84

QCHack-2022

8
star
85

qiskit.camp

Qiskit.camp 19 - Bringing together the Qiskit community
CSS
8
star
86

may4_challenge

Happy birthday IQX
Python
7
star
87

dsm-swap

A doubly stochastic matrices-based approach to optimal qubit routing
Python
7
star
88

Qiskit-runtime-primitives-with-MATLAB

Qiskit Runtime Primitives through Matlab
MATLAB
7
star
89

arraylias

A Python library for automatic aliasing of multiple array libraries
Python
7
star
90

qiskit-toqm

Qiskit Terra transpiler passes for the Time-Optimal Qubit Mapping (TOQM) algorithm.
Python
7
star
91

Qiskit-Hackathon-at-World-of-QUANTUM

Jupyter Notebook
6
star
92

quantum-hackathon-korea-22

6
star
93

archiver4qiskit

Tools to help record data from Qiskit jobs
Python
5
star
94

qiskit-quimb

Simulate Qiskit circuits using quimb.
Python
5
star
95

qiskit-nature-psi4

Python
5
star
96

QiskitUnityAsset

Qiskit Unity Asset official repository
C#
5
star
97

qiskit-translations-staging

Home of Staging Site of Qiskit Documentation Translations
5
star
98

qiskit-vue

Qiskit components library for Vue.
HTML
5
star
99

Qiskit-Resources

A curated list of all the Qiskit Resources in a single place
5
star
100

qiskit-bip-mapper

Qiskit transpiler plugin for BIP Mapping routing pass
Python
5
star