The whole process of building mindspore quantum computing environment

1. Basic environment preparation 
1. The disk capacity of the server is required to be 200G, and the root directory requires 80G, and the disk capacity needs to be expanded by 50G in
advance
. min
4. Visit the gitee website to verify the version information of the basic environment:

https://gitee.com/mindspore/docs/blob/master/install/third_party/third_party_cpu_install.md#%E6%BA%90%E7%A0%81%E7%BC%96%E8%AF%91%E6%96%B9%E5%BC%8F%E5%AE%89%E8%A3%85mindspore-cpu%E7%89%88%E6%9C%AC%E5%90%AB%E7%AC%AC%E4%B8%89%E6%96%B9%E4%BE%9D%E8%B5%96


5. Upgrade glibc2.14 to glibc2.17
6. Install anaconda (built-in python3.8.3) or python3.8.3 (recommended to install python3.8.3 directly)
7. Upgrade gcc from version 4.47 to version 7.3

2. Install mindspore and mindquantum

1.上传mindspore-2.0.0a0-cp38-cp38-linux_x86_64.whl到linux服务器中
2.pip install numpy==1.20 -i https://pypi.tuna.tsinghua.edu.cn/simple
3.pip install mindspore-2.0.0a0-cp38-cp38-linux_x86_64.whl  --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
4.pip install mindquantum -i https://pypi.tuna.tsinghua.edu.cn/simple

3. Verify whether the installation is successful

Enter the following command to verify the success of mindspore and mindquantum installation

1.python -c "import mindspore;mindspore.run_check()"
2.1python -c 'import mindquantum' 
2.2pip list | grep mindquantum


If MindQuantum was successfully installed, its name and version number will be displayed. If it doesn't show up, it's either installed incorrectly or not installed.

Guess you like

Origin blog.csdn.net/weixin_71921932/article/details/129620682