-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
482 changed files
with
37,170 additions
and
10,108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.2.0 |
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ jobs: | |
{os: ubuntu-latest, dist: cp39-manylinux_x86_64}, | ||
{os: ubuntu-latest, dist: cp310-manylinux_x86_64}, | ||
{os: ubuntu-latest, dist: cp311-manylinux_x86_64}, | ||
{os: ubuntu-latest, dist: cp312-manylinux_x86_64}, | ||
|
||
{os: ubuntu-latest, dist: cp36-manylinux_i686}, | ||
{os: ubuntu-latest, dist: cp37-manylinux_i686}, | ||
|
@@ -92,11 +93,13 @@ jobs: | |
{os: macos-latest, dist: cp39-macosx_x86_64, macosarch: x86_64}, | ||
{os: macos-latest, dist: cp310-macosx_x86_64, macosarch: x86_64}, | ||
{os: macos-latest, dist: cp311-macosx_x86_64, macosarch: x86_64}, | ||
{os: macos-latest, dist: cp312-macosx_x86_64, macosarch: x86_64}, | ||
|
||
{os: macos-latest, dist: cp38-macosx_arm64, macosarch: arm64}, | ||
{os: macos-latest, dist: cp39-macosx_arm64, macosarch: arm64}, | ||
{os: macos-latest, dist: cp310-macosx_arm64, macosarch: arm64}, | ||
{os: macos-latest, dist: cp311-macosx_arm64, macosarch: arm64}, | ||
{os: macos-latest, dist: cp312-macosx_arm64, macosarch: arm64}, | ||
|
||
# pypy OSX builds disabled because numpy isn't prebuilt and fails to build. | ||
# | ||
|
@@ -119,6 +122,7 @@ jobs: | |
{os: windows-2019, dist: cp39-win_amd64}, | ||
{os: windows-2019, dist: cp310-win_amd64}, | ||
{os: windows-2019, dist: cp311-win_amd64}, | ||
{os: windows-2019, dist: cp312-win_amd64}, | ||
|
||
{os: windows-2019, dist: cp36-win32}, | ||
{os: windows-2019, dist: cp37-win32}, | ||
|
@@ -152,7 +156,7 @@ jobs: | |
- run: mkdir -p output/stim | ||
- run: mkdir -p output/stimcirq | ||
- run: mkdir -p output/sinter | ||
- run: python -m pip install pybind11==2.9.2 cibuildwheel==2.11.1 | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel | ||
- run: python -m cibuildwheel --print-build-identifiers | ||
- run: python -m cibuildwheel --output-dir output/stim | ||
- run: python setup.py sdist | ||
|
@@ -173,7 +177,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python -m pip install pybind11==2.9.2 | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel | ||
- run: python setup.py sdist | ||
- run: pip install dist/*.tar.gz | ||
upload_dev_release_to_pypi: | ||
|
@@ -211,7 +215,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- run: bazel build :all | ||
- run: bazel test :stim_test | ||
build_clang: | ||
|
@@ -238,7 +247,7 @@ jobs: | |
- run: cmake . | ||
- run: make libstim -j 2 | ||
- run: echo -e '#include "stim.h"\nint main(int argc,const char **argv) {return !stim::find_bool_argument("test", argc, argv);}' > test.cc | ||
- run: g++ -std=c++17 test.cc out/libstim.a -I src | ||
- run: g++ -std=c++20 test.cc out/libstim.a -I src | ||
- run: ./a.out test | ||
build_lib_install: | ||
runs-on: ubuntu-latest | ||
|
@@ -249,7 +258,7 @@ jobs: | |
- run: make -j 2 | ||
- run: make install | ||
- run: echo -e '#include "stim.h"\nint main(int argc,const char **argv) {return !stim::find_bool_argument("test", argc, argv);}' > test.cc | ||
- run: g++ -std=c++17 test.cc install_dir/lib/libstim.a -I install_dir/include | ||
- run: g++ -std=c++20 test.cc install_dir/lib/libstim.a -I install_dir/include | ||
- run: ./a.out test | ||
- run: echo -e "H 0 \n CNOT 0 1 \n M 0 1" | install_dir/bin/stim --sample | ||
benchmark_windows: | ||
|
@@ -258,8 +267,8 @@ jobs: | |
- uses: actions/checkout@v1 | ||
- uses: microsoft/[email protected] | ||
- run: cmake . | ||
- run: MSBuild.exe stim_benchmark.vcxproj /p:Configuration=Release /p:OutDir=msbuild_out /p:O=2 | ||
- run: msbuild_out/stim_benchmark.exe | ||
- run: MSBuild.exe stim_perf.vcxproj /p:Configuration=Release /p:OutDir=msbuild_out /p:O=2 | ||
- run: msbuild_out/stim_perf.exe | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -268,8 +277,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v1 | ||
- run: cmake . -DSIMD_WIDTH=${{ matrix.simd_width }} | ||
- run: make stim_benchmark -j 2 | ||
- run: out/stim_benchmark | ||
- run: make stim_perf -j 2 | ||
- run: out/stim_perf | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -306,7 +315,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
@@ -318,26 +332,32 @@ jobs: | |
- run: diff <(python -c "import stim; stim.main(command_line_args=['help', 'gates_markdown'])") doc/gates.md | ||
- run: diff <(python -c "import stim; stim.main(command_line_args=['help', 'formats_markdown'])") doc/result_formats.md | ||
- run: diff <(python -c "import stim; stim.main(command_line_args=['help', 'commands_markdown'])") doc/usage_command_line.md | ||
- run: diff <(dev/gen_known_gates_for_js.sh) glue/crumble/test/generated_gate_name_list.test.js | ||
- run: python doc/stim.pyi | ||
- run: npm install -g [email protected] [email protected] | ||
- run: diff <(dev/regen_crumble_to_cpp_string_write_to_stdout.sh) src/stim/diagram/crumble_data.cc | ||
- run: diff <(dev/compile_crumble_into_cpp_string_file.sh) src/stim/diagram/crumble_data.cc | ||
- run: pip install -e glue/sample | ||
- run: diff <(python dev/gen_sinter_api_reference.py -dev) doc/sinter_api.md | ||
test_generated_file_lists_are_fresh: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: dev/regen_file_lists.sh /tmp | ||
- run: diff /tmp/benchmark_files file_lists/benchmark_files | ||
- run: diff /tmp/python_api_files file_lists/python_api_files | ||
- run: diff /tmp/perf_files file_lists/perf_files | ||
- run: diff /tmp/pybind_files file_lists/pybind_files | ||
- run: diff /tmp/source_files_no_main file_lists/source_files_no_main | ||
- run: diff /tmp/test_files file_lists/test_files | ||
test_pybind: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- run: bazel build :stim_dev_wheel | ||
- run: pip install bazel-bin/stim-0.0.dev0-py3-none-any.whl | ||
- run: pip install pytest | ||
|
@@ -348,7 +368,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- run: bazel build :stim_dev_wheel | ||
- run: pip install bazel-bin/stim-0.0.dev0-py3-none-any.whl | ||
- run: pip install -e glue/cirq | ||
|
@@ -360,7 +385,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- run: bazel build :stim_dev_wheel | ||
- run: pip install bazel-bin/stim-0.0.dev0-py3-none-any.whl | ||
- run: pip install -e glue/sample | ||
|
@@ -373,7 +403,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
bazelisk-cache: true | ||
disk-cache: ${{ github.workflow }} | ||
repository-cache: true | ||
bazelisk-version: 1.x | ||
- run: bazel build :stim_dev_wheel | ||
- run: pip install bazel-bin/stim-0.0.dev0-py3-none-any.whl | ||
- run: pip install -e glue/zx | ||
|
@@ -384,7 +419,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: mymindstorm/setup-emsdk@v9 | ||
- uses: mymindstorm/setup-emsdk@v14 | ||
with: | ||
version: 2.0.18 | ||
actions-cache-folder: 'emsdk-cache' | ||
|
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
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,2 @@ | ||
bazel_dep(name = "googletest", version = "1.14.0") | ||
bazel_dep(name = "pybind11_bazel", version = "2.11.1") |
Oops, something went wrong.