Skip to main content

Q-Gear

Project description

qgear

paper link: https://arxiv.org/pdf/2504.03967

image.png

Preliminary

  • Let’s assume you already have a computational GPU node allocated on HPC
  • Checking the NVIDIA GPU
    • nvidia-smi
  • Create a env (we do not recommend using default such .local / HOME)
  • Note that more than one GPU support need to enable MPI > the way we choose is high performance lustre file system

1. Install ENV

clone repo

git clone git@github.com:gzquse/qgear.git`

cd qgear
module load conda
conda create --prefix=/pscratch/sd/{location}/{username}/qgear -y python=3.11 pip
conda activate $SCRATCH/qgear
pip install -u qgear 
pip install -u ipykernel
python -m ipykernel install --user --name qgear --display-name qgear

2. Open Jupyter Notebook

NERSC jupyter

https://jupyter.nersc.gov/

Select the kernel image.png

go to nbs/example.ipynb; run example image-2.png

Pypi

https://pypi.org/project/qgear/

Demos

1. simple speed up with random circuit and QFT

https://gzquse.github.io/qgear/examples.html

2. quantum image encoding

see appendix F in the paper https://gzquse.github.io/qgear/apps.html

image.png

local development

. ./pm_martin.dev.source

# make sure qgear package is installed in development mode
https://nbdev.fast.ai/tutorials/tutorial.html
pip3 install -e '.[dev]'
pip3 install qgear

# compile to have changes apply to qgear
nbdev_prepare

Goal

build the versatile all-in-one quantum accelerator for HPC-QPU hybrid regime that supports all the mainstream quantum frameworks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qgear-1.1.0.tar.gz (403.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qgear-1.1.0-py3-none-any.whl (444.3 kB view details)

Uploaded Python 3

File details

Details for the file qgear-1.1.0.tar.gz.

File metadata

  • Download URL: qgear-1.1.0.tar.gz
  • Upload date:
  • Size: 403.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for qgear-1.1.0.tar.gz
Algorithm Hash digest
SHA256 013abf0fe08a09391c67b1fc05c1153622de77e818e2b40610249c59cb72d96f
MD5 68cb10eb241e2dff1b2fcd82cf682f86
BLAKE2b-256 1f8fd037b7dc466ac9cbb362ec9bf60d3b549362983f67299df983e3bd68589d

See more details on using hashes here.

File details

Details for the file qgear-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: qgear-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 444.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for qgear-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaed72bda454253c77051547d25f87003fdb9bf84e8cc98e8953461c5c7c2928
MD5 8a8a0005f35e511d734518e733513636
BLAKE2b-256 fd6fbb2363c116741d9ce85ea006d55e1c17931aff1ca746443043664738bc9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page