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.
Windows users are first recommended to install
All users:
- python 3.10.x;
- the justfile tool.
Run
just buildor
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=12345678Open 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.
- API Key: https://quantum-computing.ibm.com/account.
- Job monitoring/cancellation: https://quantum-computing.ibm.com/jobs.
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.