Skip to content

Commit 99df7f6

Browse files
authored
Rename capi-demo to c-api-demo (#9)
1 parent 8330fe2 commit 99df7f6

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Run tests
6161
run: |
6262
cd build
63-
./capi-demo \
63+
./c-api-demo \
6464
--fcidump ../data/fcidump_Fe4S4_MO.txt \
6565
--tolerance 1.0e-3 \
6666
--max_time 600 \

.github/workflows/test_development_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Run tests
7777
run: |
7878
cd build
79-
./capi-demo \
79+
./c-api-demo \
8080
--fcidump ../data/fcidump_Fe4S4_MO.txt \
8181
--tolerance 1.0e-3 \
8282
--max_time 600 \

.github/workflows/test_latest_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- name: Run tests
8888
run: |
8989
cd build
90-
./capi-demo \
90+
./c-api-demo \
9191
--fcidump ../data/fcidump_Fe4S4_MO.txt \
9292
--tolerance 1.0e-3 \
9393
--max_time 600 \

.github/workflows/test_without_exceptions_rtti.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Run tests
7070
run: |
7171
cd build
72-
./capi-demo \
72+
./c-api-demo \
7373
--fcidump ../data/fcidump_Fe4S4_MO.txt \
7474
--tolerance 1.0e-3 \
7575
--max_time 600 \

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(capi-demo LANGUAGES C CXX)
2+
project(c-api-demo LANGUAGES C CXX)
33

44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -36,8 +36,8 @@ find_package(MPI REQUIRED)
3636
# OpenMP library
3737
find_package(OpenMP REQUIRED)
3838

39-
# qiskit_capi library
40-
add_library(qiskit_capi STATIC IMPORTED)
39+
# qiskit_c_api library
40+
add_library(qiskit_c_api STATIC IMPORTED)
4141

4242
# nlohmann_json
4343
include(FetchContent)
@@ -94,16 +94,16 @@ target_include_directories(sbd INTERFACE
9494
)
9595
target_link_libraries(sbd INTERFACE MPI::MPI_C)
9696

97-
add_executable(capi-demo src/main.cpp)
97+
add_executable(c-api-demo src/main.cpp)
9898

9999

100100
if (MSVC)
101-
target_link_directories(capi-demo
101+
target_link_directories(c-api-demo
102102
PUBLIC
103103
${QISKIT_ROOT}/target/release
104104
${QRMI_ROOT}/target/release
105105
)
106-
target_link_libraries(capi-demo
106+
target_link_libraries(c-api-demo
107107
ffsim
108108
sqd-addon
109109
boost_dynamic_bitset
@@ -116,12 +116,12 @@ if (MSVC)
116116
-lopenblas
117117
)
118118
elseif(APPLE)
119-
target_link_directories(capi-demo
119+
target_link_directories(c-api-demo
120120
PUBLIC
121121
${QISKIT_ROOT}/dist/c/lib
122122
${QRMI_ROOT}/target/release
123123
)
124-
target_link_libraries(capi-demo
124+
target_link_libraries(c-api-demo
125125
qiskit
126126
qrmi
127127
ffsim
@@ -134,7 +134,7 @@ elseif(APPLE)
134134
${ACCELERATE_LIBRARY}
135135
)
136136
else()
137-
target_link_libraries(capi-demo
137+
target_link_libraries(c-api-demo
138138
PUBLIC
139139
"-L${QISKIT_ROOT}/dist/c/lib -L${QRMI_ROOT}/target/release -Wl,-rpath ${QISKIT_ROOT}/dist/c/lib -Wl,-rpath ${QRMI_ROOT}/target/release"
140140
qiskit
@@ -150,7 +150,7 @@ else()
150150
)
151151
endif()
152152

153-
target_include_directories(capi-demo
153+
target_include_directories(c-api-demo
154154
PRIVATE
155155
${QISKIT_ROOT}/dist/c/include
156156
${QRMI_ROOT}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ You can obtain these credentials from your IBM Quantum account.
135135
### Single Process
136136

137137
```sh
138-
./capi-demo \
138+
./c-api-demo \
139139
--fcidump ../data/fcidump_Fe4S4_MO.txt \
140140
-v \
141141
--tolerance 1.0e-3 \
@@ -149,7 +149,7 @@ You can obtain these credentials from your IBM Quantum account.
149149
### MPI Execution
150150

151151
```sh
152-
mpirun -np 96 ./capi-demo \
152+
mpirun -np 96 ./c-api-demo \
153153
--fcidump ../data/fcidump_Fe4S4_MO.txt \
154154
-v \
155155
--tolerance 1.0e-3 \
@@ -161,7 +161,7 @@ mpirun -np 96 ./capi-demo \
161161
```
162162

163163
## Run Options
164-
The following command-line options are available when running `capi-demo`. These control the behavior of the SQD simulation and quantum sampling:
164+
The following command-line options are available when running `c-api-demo`. These control the behavior of the SQD simulation and quantum sampling:
165165

166166
### SQD Options
167167
| Option | Description | Default Value |
@@ -207,6 +207,6 @@ To simulate a different molecule, you need to prepare the following files:
207207

208208
## Contributing
209209

210-
The source code is available [on GitHub](https://github.com/qiskit-community/qiskit-capi-demo).
210+
The source code is available [on GitHub](https://github.com/qiskit-community/qiskit-c-api-demo).
211211
By participating, you are expected to uphold Qiskit's [code of conduct](https://github.com/Qiskit/qiskit/blob/main/CODE_OF_CONDUCT.md).
212212

0 commit comments

Comments
 (0)