一个包含了量子计算、量子机器学习、量子深度学习的库
| model | ||
| qlayer | ||
| qnn | ||
| train | ||
| main.py | ||
| readme.md | ||
| test.py | ||
| utils.py | ||
Quantum Neural Networks in NISQ era
Introduction
Structure of the Project
graph TD
proj[Project] --> dat[data]
Requirements for Each Algorithm
Main environments for the whole project:
| Term | Version | Command |
|---|---|---|
python |
3.10.16 |
conda create -n name python=3.10 |
torch |
2.4.0+cu124 |
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.4 -c pytorch -c nvidia |
numpy |
`1.26.4 | default by pennylane |
Environment for each algorithm:
| Package | Version | Command | Package |
|---|---|---|---|
pennylane |
>0.40.0 |
conda install -c conda-forge pennylane-lightning-gpu pip install --upgrade pennylane pip install --upgrade pennylane-lightning-gpu |
qtransformer.py |
transformers |
4.50.3 |
pip install transformers | transformer_train.py |
datasets |
3.5.0 |
pip install datasets | transformer_train.py |