Skip to content

raj-open/qiskit

Repository files navigation

qiskit

This repository contains basic qiskit code in the form of submodules (see in particular the ./src/algorithms folder) and ./notebooks. All scripts were created by the owner of the repository, unless otherwise stated.

Usage

System requirements

Windows users are first recommended to install

All users:

Setup

Run

just build

or

python3 -m pip install -r requirements.txt
# windows users:
py -3 -m pip install -r requirements.txt

Users, who wish to use IBM's cloud backend need an API-token. Copy the .env file from the ./templates folder into the root directory of the repository and insert the API token. E.g. if the token is a0ad9scjo23u0kaslodi the file should like this:

TOKEN=a0ad9scjo23u0kaslodi
URL=https://auth.quantum-computing.ibm.com/api
HUB=ibm-q
GROUP=open
PROJECT=main
SEED=12345678

Execution

Open the desired notebook from ./notebooks in e.g. VSCode (with appropriate jupyter extensions installed). Or run

just notebook xyz # do not include the ipynb extension!

to run the notebook xyz.ipynb in a browser.

IBM Lab

NOTE: Queued jobs in the cloud can sometimes take hours. Keep the size of experiments small (e.g. small circuit sizes, small numbers of samples, small number of shots) or cancel + delete old jobs, that are still pending and which are no longer needed.

About

A small repository to demonstrate a basic usage of IBM's `qiskit` backend.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors