Skip to content

spital/quantum-computing-experiments

Repository files navigation

Quantum Computing Experiments Intro

2023 update

2023/11: Quantum Explorers 2023 proud to say - completed with flying colors (so far), Supreme Observer badge will launch on November 28, 2023! Quantum Explorers Theme Music Video

Starting on November 29, 2023, Qiskit Documentation and Qiskit educational resources will live on IBM Quantum Platform and will be removed from Qiskit.org

2023/11: Qiskit 0.45 release https://twitter.com/qiskit/status/1721592588774293664

2023/06: For the first time, IBM is making a 127-qubit quantum computer available publicly over IBM Cloud.

2022

I recently discovered IBM Quantum 2022 Updated Development Roadmap and was amazed of the recent developments and new possibilities.

I did not waste the time reading Quantum computer programming for dummies published via Los Alamos National Laboratory LANL news because I thought that better was learning by trying ;)

For easy viewing without install and for the test of the new Github's Math support in markdown I prepared some jupyter notebooks markdown conversions. Check directories below:

Quckstart

IBM Quantum computing registration is required for some examples, and is recommended for further experiments too. Also you do not need to install anything and just use the cloud. It is free for basic tasks, simulations, 7 qubits physical hardware too, there is a pay-as-you-go plan for 27 qubit hardware available now (2022/7) also.

Local Install

If a local install is preferred, using Ubuntu 20.04 container with python worked well. I had some success with CUDA enabled cuQuantum Appliance 22.03-cirq from Nvidia too, but sometimes I was not able to start GPU accelerated IBM's Qiskit Aer backend properly.

Start the container:

# For Nvidia GPU:
IMG=nvcr.io/nvidia/cuquantum-appliance:22.03-cirq
docker run -it --network host --name quantum --rm --gpus all -v$(pwd):/shared --ipc=host --ulimit memlock=-1 --ulimit stack=67108864  $IMG bash

# Without Nvidia GPU
IMG=ubuntu:20.04
docker run -it --network host --name quantum --rm --gpus all -v$(pwd):/shared $IMG bash

Install requirements:

apt update && apt -y install mc zstd sudo iputils-ping net-tools curl wget less iproute2 netcat gnupg git python3-pip

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC

pip install nvidia-pyindex -U

pip install jupyterlab pillow==6.2.2 matplotlib ipywidgets

jupyter nbextension enable --py widgetsnbextension  #       - Validating: OK

pip install numpy==1.22.4 docplex pylatexenc gurobipy cplex sparse torch torchvision pyscf
pip install qiskit-terra qiskit-aer qiskit_ibmq_provider
pip install qiskit-finance qiskit-experiments qiskit-machine-learning qiskit-nature

Run Experiments

Clone any repo of interest e.g. Qiskit tutorials, go to qiskit-tutorials/docs/tutorials and start Jupyter Lab via jupyter lab --allow-root --ip 0.0.0.0

For some experiments you need to configure your IBMQ account.

Good luck and May the Force be with you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published