-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mcx_gidney_khattar
- Loading branch information
Showing
164 changed files
with
2,979 additions
and
10,447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
ColumnLimit: '100' | ||
IndentWidth: '4' | ||
Language: Cpp | ||
TabWidth: '4' | ||
UseTab: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ main, 'stable/*' ] | ||
pull_request: | ||
branches: [ main, 'stable/*' ] | ||
merge_group: | ||
|
||
jobs: | ||
tests: | ||
if: github.repository_owner == 'Qiskit' | ||
name: linux-tests-c | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: cargo install cbindgen | ||
- name: Run tests | ||
run: make ctest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required (VERSION 3.27) | ||
project (Qiskit) | ||
|
||
# We are using CMake to build our C API test suite, and we leverage ctest to run | ||
# those tests. | ||
enable_testing () | ||
|
||
# The C API is provided by the qiskit_cext Rust crate. Its header gets | ||
# generated by cbindgen (see `make cheader`). It is important that this done as | ||
# a Release-build for cbindgen to work properly. | ||
find_library (qiskit qiskit_cext PATHS target/release REQUIRED) | ||
|
||
# Generally include the directory for the ``qiskit.h`` file. | ||
include_directories (dist/c/include) | ||
|
||
# The remaining CMake configuration is done inside of the C API test suite. | ||
add_subdirectory (test/c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.