diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4adb600..1bbbcab 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -60,7 +60,7 @@ jobs: - name: Run tests run: | cd build - ./capi-demo \ + ./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ --tolerance 1.0e-3 \ --max_time 600 \ diff --git a/.github/workflows/test_development_versions.yml b/.github/workflows/test_development_versions.yml index 9f410ba..d475ae3 100644 --- a/.github/workflows/test_development_versions.yml +++ b/.github/workflows/test_development_versions.yml @@ -76,7 +76,7 @@ jobs: - name: Run tests run: | cd build - ./capi-demo \ + ./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ --tolerance 1.0e-3 \ --max_time 600 \ diff --git a/.github/workflows/test_latest_versions.yml b/.github/workflows/test_latest_versions.yml index 4ee0bbd..c822c5f 100644 --- a/.github/workflows/test_latest_versions.yml +++ b/.github/workflows/test_latest_versions.yml @@ -87,7 +87,7 @@ jobs: - name: Run tests run: | cd build - ./capi-demo \ + ./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ --tolerance 1.0e-3 \ --max_time 600 \ diff --git a/.github/workflows/test_without_exceptions_rtti.yml b/.github/workflows/test_without_exceptions_rtti.yml index 9cdc2f0..109bd05 100644 --- a/.github/workflows/test_without_exceptions_rtti.yml +++ b/.github/workflows/test_without_exceptions_rtti.yml @@ -69,7 +69,7 @@ jobs: - name: Run tests run: | cd build - ./capi-demo \ + ./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ --tolerance 1.0e-3 \ --max_time 600 \ diff --git a/CMakeLists.txt b/CMakeLists.txt index 09499d8..4b9b7db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(capi-demo LANGUAGES C CXX) +project(c-api-demo LANGUAGES C CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -36,8 +36,8 @@ find_package(MPI REQUIRED) # OpenMP library find_package(OpenMP REQUIRED) -# qiskit_capi library -add_library(qiskit_capi STATIC IMPORTED) +# qiskit_c_api library +add_library(qiskit_c_api STATIC IMPORTED) # nlohmann_json include(FetchContent) @@ -94,16 +94,16 @@ target_include_directories(sbd INTERFACE ) target_link_libraries(sbd INTERFACE MPI::MPI_C) -add_executable(capi-demo src/main.cpp) +add_executable(c-api-demo src/main.cpp) if (MSVC) - target_link_directories(capi-demo + target_link_directories(c-api-demo PUBLIC ${QISKIT_ROOT}/target/release ${QRMI_ROOT}/target/release ) - target_link_libraries(capi-demo + target_link_libraries(c-api-demo ffsim sqd-addon boost_dynamic_bitset @@ -116,12 +116,12 @@ if (MSVC) -lopenblas ) elseif(APPLE) - target_link_directories(capi-demo + target_link_directories(c-api-demo PUBLIC ${QISKIT_ROOT}/dist/c/lib ${QRMI_ROOT}/target/release ) - target_link_libraries(capi-demo + target_link_libraries(c-api-demo qiskit qrmi ffsim @@ -134,7 +134,7 @@ elseif(APPLE) ${ACCELERATE_LIBRARY} ) else() - target_link_libraries(capi-demo + target_link_libraries(c-api-demo PUBLIC "-L${QISKIT_ROOT}/dist/c/lib -L${QRMI_ROOT}/target/release -Wl,-rpath ${QISKIT_ROOT}/dist/c/lib -Wl,-rpath ${QRMI_ROOT}/target/release" qiskit @@ -150,7 +150,7 @@ else() ) endif() -target_include_directories(capi-demo +target_include_directories(c-api-demo PRIVATE ${QISKIT_ROOT}/dist/c/include ${QRMI_ROOT} diff --git a/README.md b/README.md index e67b42c..bfe35f1 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ You can obtain these credentials from your IBM Quantum account. ### Single Process ```sh -./capi-demo \ +./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ -v \ --tolerance 1.0e-3 \ @@ -149,7 +149,7 @@ You can obtain these credentials from your IBM Quantum account. ### MPI Execution ```sh -mpirun -np 96 ./capi-demo \ +mpirun -np 96 ./c-api-demo \ --fcidump ../data/fcidump_Fe4S4_MO.txt \ -v \ --tolerance 1.0e-3 \ @@ -161,7 +161,7 @@ mpirun -np 96 ./capi-demo \ ``` ## Run Options -The following command-line options are available when running `capi-demo`. These control the behavior of the SQD simulation and quantum sampling: +The following command-line options are available when running `c-api-demo`. These control the behavior of the SQD simulation and quantum sampling: ### SQD Options | Option | Description | Default Value | @@ -198,6 +198,6 @@ These parameters can also be obtained using `ffsim`. ## Contributing -The source code is available [on GitHub](https://github.com/qiskit-community/qiskit-capi-demo). +The source code is available [on GitHub](https://github.com/qiskit-community/qiskit-c-api-demo). By participating, you are expected to uphold Qiskit's [code of conduct](https://github.com/Qiskit/qiskit/blob/main/CODE_OF_CONDUCT.md).