Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_development_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_latest_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_without_exceptions_rtti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand All @@ -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 |
Expand Down Expand Up @@ -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).

Loading