From 2ab2ccb7374e6400141a952b6a5623cd75b8f9f0 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Tue, 6 Aug 2024 08:31:48 +0200 Subject: [PATCH] qibo: add new dependency qulacs --- cmake/toolchain/heptools-dev-base.cmake | 1 + pyexternals/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/cmake/toolchain/heptools-dev-base.cmake b/cmake/toolchain/heptools-dev-base.cmake index 0201b87b8f..55b68638f3 100644 --- a/cmake/toolchain/heptools-dev-base.cmake +++ b/cmake/toolchain/heptools-dev-base.cmake @@ -694,6 +694,7 @@ endif() LCG_external_package(qastle 0.16.0 ) LCG_external_package(qibo 0.2.10 ) LCG_external_package(qibojit 0.1.3 ) +LCG_external_package(qulacs 0.6.4.1 ) LCG_external_package(qrcode 7.4.2 ) LCG_external_package(qtconsole 4.5.1 ) LCG_external_package(qtpy 1.7.1 ) diff --git a/pyexternals/CMakeLists.txt b/pyexternals/CMakeLists.txt index 367a4a3eed..83c18e4d9e 100644 --- a/pyexternals/CMakeLists.txt +++ b/pyexternals/CMakeLists.txt @@ -8865,6 +8865,19 @@ LCGPackage_Add( DEPENDS Python pip antlr4_python3_runtime ) +#---qulacs----------------------------------------------------------------------------------------------------- +LCGPackage_Add( + qulacs + URL ${GenURL}/qulacs-<VERSION>.tar.gz + CONFIGURE_COMMAND <VOID> + BUILD_COMMAND <VOID> + INSTALL_COMMAND ${MakeSitePackagesDir} + COMMAND ${PYTHON} -m pip install ${PySetupOptions} --no-deps . + COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR> + BUILD_IN_SOURCE 1 + DEPENDS Python pip Boost +) + #---qibo----------------------------------------------------------------------------------------------------- LCGPackage_Add( qibo @@ -8876,6 +8889,7 @@ LCGPackage_Add( COMMAND ${CMAKE_SOURCE_DIR}/pyexternals/Python_postinstall.sh <INSTALL_DIR> BUILD_IN_SOURCE 1 DEPENDS Python pip cma hyperopt openqasm3 joblib networkx numpy scipy sympy tabulate + IF <VERSION> VERSION_GREATER_EQUAL 0.2.10 THEN qulacs ENDIF ) #---qibojit----------------------------------------------------------------------------------------------------- -- GitLab