Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
NoEvaa 185c7614a4 | 1 year ago | |
---|---|---|
TFI_chain | 1 year ago | |
research | 1 year ago | |
src | 1 year ago | |
README.md | 1 year ago | |
eval.py | 1 year ago | |
model_N4.ckpt | 1 year ago | |
model_N8.ckpt | 1 year ago | |
model_N12.ckpt | 1 year ago | |
requirements.txt | 1 year ago | |
train.py | 1 year ago |
机器学习已经被广泛地应用于各种各样的模型上,从经典统计力学到用于识别相变的量子强关联系统。
最近提出的量子卷积神经网络(QCNN)为使用量子电路代替经典神经网络作为分类方法的主干提供了一个新的框架。
该论文给出了利用一维横场Ising模型(TFIM)的变分量子本征求解器的波函数来训练QCNN的结果,证明了QCNN能够很准确地识别出与TFIM的顺磁相和铁磁相对应的波函数。
QCNN可以被训练来预测假定量子临界点附近的波函数对应的“相位”,即使它是由远离它的波函数训练的。这为利用QCNN来识别量子临界点提供了基础。
使用的数据集:TFI_chain.zip
数据集大小:392 MB
数据格式:NPY文件及TXT文件
dataset.py
中处理。下载数据集,目录结构如下:
.
└── TFI_chain
└── closed
├── 4
├── 8
├── 12
└── 16
pip install numpy
pip install sklearn
.
├── README.md # QCNN相关说明
├── requirements.txt # 依赖说明文件
├── TFI_chain # 数据集
│ └── closed
├── src
│ ├── QCNNet.py # 模型结构定义
│ ├── ansatz_qcnn.py # 量子拟设定义
│ ├── loss.py # 损失函数定义
│ └── dataset.py # 数据集处理定义
├── research
│ ├── performance_test1.ipynb # 模型表现测试1
│ ├── performance_test2.ipynb # 模型表现测试2
│ └── performance_test3.ipynb # 模型表现测试3
├── eval.py # 评估文件
└── train.py # 训练文件
QCNN-NGPark
目录下。train.py
开始训练。将会对N = 4, 8, 12情况数据集进行训练。python train.py
model_N{N}.ckpt
中。eval.py
进行评估。将会对N = 4, 8, 12情况数据集进行评估。python eval.py
参数 | QCNN(N = 4) | QCNN(N = 8) | QCNN(N = 12) |
---|---|---|---|
模型版本 | V1 | V1 | V1 |
资源 | Ubuntu 18.04.5 LTS | Ubuntu 18.04.5 LTS | Ubuntu 18.04.5 LTS |
上传日期 | 2022-06-28 | 2022-06-28 | 2022-06-28 |
MindSpore版本 | 1.6.0 | 1.6.0 | 1.6.0 |
MindQuantum版本 | 0.5.0 | 0.5.0 | 0.5.0 |
数据集 | TFI_chain | TFI_chain | TFI_chain |
训练参数 | epoch=5,batch_size=60 | epoch=4,batch_size=30 | epoch=1,batch_size=30 |
优化器 | Adam | Adam | Adam |
损失函数 | SoftMarginLoss | SoftMarginLoss | SoftMarginLoss |
参数(M) | 63 | 147 | 231 |
参数 | QCNN(N = 4) | QCNN(N = 8) | QCNN(N = 12) |
---|---|---|---|
模型版本 | V1 | V1 | V1 |
资源 | Ubuntu 18.04.5 LTS | Ubuntu 18.04.5 LTS | Ubuntu 18.04.5 LTS |
上传日期 | 2022-06-28 | 2022-06-28 | 2022-06-28 |
MindSpore版本 | 1.6.0 | 1.6.0 | 1.6.0 |
MindQuantum版本 | 0.5.0 | 0.5.0 | 0.5.0 |
数据集 | TFI_chain | TFI_chain | TFI_chain |
批次大小 | 81 | 81 | 81 |
输出 | Acc | Acc | Acc |
精确度 | 0.9876543209876543 | 0.9876543209876543 | 0.9876543209876543 |
推理模型 | 287B(.ckpt文件) | 624B(.ckpt文件) | 960B(.ckpt文件) |
2022昇腾AI创新大赛昇思赛道 第一批赛题十五:利用MindQuantum实现量子卷积神经网络求解量子多体问题 NGPark
Jupyter Notebook Python other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》