-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ignored nodes and returning a weight (#6)
- 4th detector coordinate set to -1 now means 'ignore this detector' - Improve some of the decomposition logic - Add `chromobius.CompiledDecoder.predict_weighted_obs_flips_from_dets_bit_packed` - Update some of the `gen` utilities for making test circuits - Fix bit rotted CI configuration
- Loading branch information
Showing
171 changed files
with
5,790 additions
and
9,075 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 |
---|---|---|
|
@@ -53,25 +53,41 @@ jobs: | |
MACOSX_DEPLOYMENT_TARGET: "10.15" | ||
CIBW_BUILD: "${{ matrix.os_dist.dist }}" | ||
CIBW_ARCHS_MACOS: "${{ matrix.os_dist.macosarch }}" | ||
CIBW_TEST_REQUIRES: pytest stim sinter pygltflib | ||
CIBW_TEST_REQUIRES: pytest stim~=1.14 sinter pygltflib | ||
CIBW_TEST_COMMAND: pytest {project}/src | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python tools/overwrite_dev_versions_with_date.py | ||
- run: mkdir -p output/stim | ||
- run: mkdir -p output/stimcirq | ||
- run: mkdir -p output/sinter | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools | ||
- run: python -m cibuildwheel --print-build-identifiers | ||
- run: python -m cibuildwheel --output-dir output/chromobius | ||
- uses: actions/[email protected] | ||
with: | ||
name: "dist-chromobius-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}" | ||
path: dist/* | ||
build_sdist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python -m pip install setuptools pybind11~=2.11.1 | ||
- run: python tools/overwrite_dev_versions_with_date.py | ||
- run: mkdir output | ||
- run: python setup.py sdist | ||
- run: mv dist/* output/chromobius | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist | ||
path: | | ||
./output/chromobius/* | ||
name: "dist-chromobius-sdist" | ||
path: dist/*.tar.gz | ||
merge_upload_artifacts: | ||
needs: ["build_dist", "build_sdist"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Merge Artifacts | ||
uses: actions/upload-artifact/merge@v4 | ||
with: | ||
name: dist-chromobius | ||
pattern: dist-chromobius-* | ||
check_sdist_installs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -90,14 +106,19 @@ jobs: | |
build_bazel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: bazelbuild/setup-bazelisk@v1 | ||
- uses: actions/checkout@v3 | ||
- 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 :chromobius_test | ||
build_clang: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
cd .. | ||
git clone https://github.com/google/googletest.git -b release-1.12.1 | ||
|
@@ -115,14 +136,14 @@ jobs: | |
perf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
- run: cmake . | ||
- run: make chromobius_perf -j 2 | ||
- run: out/chromobius_perf | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
cd .. | ||
git clone https://github.com/google/googletest.git -b release-1.12.1 | ||
|
@@ -136,7 +157,7 @@ jobs: | |
test_o3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
cd .. | ||
git clone https://github.com/google/googletest.git -b release-1.12.1 | ||
|
@@ -152,7 +173,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 :chromobius_dev_wheel | ||
- run: pip install bazel-bin/chromobius-0.0.dev0-py3-none-any.whl | ||
- run: diff <(python tools/gen_chromobius_api_reference.py -dev) doc/chromobius_api_reference.md | ||
|
@@ -172,10 +198,15 @@ 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 :chromobius_dev_wheel | ||
- run: pip install bazel-bin/chromobius-0.0.dev0-py3-none-any.whl | ||
- run: pip install pytest stim sinter pygltflib | ||
- run: pip install pytest stim~=1.14 sinter pygltflib | ||
- run: pytest src | ||
- run: tools/doctest_proper.py --module chromobius | ||
upload_dev_release_to_pypi: | ||
|
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
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
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.