OriginQ / QPanda-2

QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.
https://originqc.com.cn/en/quantum_soft.html?type=qpanda&lv2id=43&lv3id=72
Apache License 2.0
1.16k stars 92 forks source link

linux环境下,编译加上-DUSE_EXTENSION=ON报错 #225

Closed one-yue closed 1 year ago

one-yue commented 1 year ago

我的编译命令是这样: cmake -DUSE_PYQPANDA=OFF -DFIND_CUDA=OFF -DUSE_CHEMIQ=OFF -DUSE_EXTENSION=ON -DCMAKE_CXX_STANDARD=14 -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ ..

在编译过程中报错: [ 46%] Building CXX object Core/CMakeFiles/DLL_QPANDA.dir/Utilities/Tools/ProcessOnTraversing.cpp.o /home/openfoam2112/applications/QPanda-2-master/Core/Utilities/Tools/ProcessOnTraversing.cpp:6:10: fatal error: Extensions/VirtualZTransfer/VirtualZTransfer.h: No such file or directory

include "Extensions/VirtualZTransfer/VirtualZTransfer.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [Core/CMakeFiles/DLL_QPANDA.dir/Utilities/Tools/ProcessOnTraversing.cpp.o] Error 1 make[1]: [Core/CMakeFiles/DLL_QPANDA.dir/all] Error 2 make: *** [all] Error 2

求解如何编译,谢谢

shenzhi-git commented 1 year ago

您好,github上的版本暂时还不支持EXTENSION中的功能,编译的时候USE_EXTENSION可以设置为OFF

one-yue commented 1 year ago

谢谢回复,Extension里的是未开源吗,哪里可以使用到Extension里面的算法呢,需要用到HHL算法

shenzhi-git commented 1 year ago

是的,当前有部分功能还未开源