-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: pytket v1.29 release update (#1448)
* Allow barriers when dagger or transpose circuits (#1400) * Allow barriers in dagger() and transpose() * bump tket version * add changelog entry * Format test * Bump cachix/install-nix-action from 26 to 27 (#1403) Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 26 to 27. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](cachix/install-nix-action@v26...V27) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/add-to-project from 0.6.1 to 1.0.1 (#1404) Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.6.1 to 1.0.1. - [Release notes](https://github.com/actions/add-to-project/releases) - [Commits](actions/add-to-project@v0.6.1...v1.0.1) --- updated-dependencies: - dependency-name: actions/add-to-project dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use `ubuntu-24.04` on CI (#1401) * Add OpType.CnRx and OpType.CnRz (#1405) * Add CnRx and CnRz * Update circuit_test.py * re clang format * regen stubs * Update changelog.rst * bump version * Unbump changelog... oops * Update ControlledGates.cpp * split controlled phase gate decomp * Update circuit_test.py * Update OpType.hpp * Update `place_fully_connected` (#1409) * update place_fully_connected * Update placement.cpp * Update placement_test.py * Bump cachix/cachix-action from 14 to 15 (#1416) Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 14 to 15. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](cachix/cachix-action@v14...v15) --- updated-dependencies: - dependency-name: cachix/cachix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Post benchmarking results to slack (#1417) * Post results to slack * Remove run on PR * Remove documentation * Remove pr comment * Refactor auto rebase and auto squash (#1410) * Implement python rebase functions in C++ * Implement auto_rebase in c++ * Implement auto_squash in c++ * Test exception handling * Add AutoRebase, AutoSquash to binder * Update circuit_library * Update json schema * deprecate auto_rebase and auto_squash * Fix bug * Replace auto_rebase_pass and auto_squash_pass with AutoRebase and AutoSquash * Remove auto_rebase_pass and auto_squash_pass from docs * Bump tket version * Remove extra lines in docs * Regenerate stubs * Add changelog entry * Fix linting errors * Sorted gate sets in serialisation * Better deprecation handling * Add docs for added CircPool functions * Add comment to hard-to-understand test * Fix typo in json schema * Replace `find()` with `contains()` * Set `always_squash_symbols` to false when squash `Rz` and `PhasedX` * Revert to using ubuntu-22.04 runner for valgrind checks. (#1432) * Handle `NPhasedX` gates in `decompose_cliffords_std()` (#1431) * Add workflow to mark stale issues and PRs. (#1437) * update remove blank wires to keep classical bits (#1435) * update remove blank wires * add testcase * update changelog * update tket version * update testcases * update regen stubs * fix typo * add param to remove_classical_wire in python * regen stubs * Update pytket/docs/changelog.rst Co-authored-by: Alec Edgington <[email protected]> * rename parameter to keep_blank_classical_wires * update tket version * fix param * Update pytket/binders/circuit/Circuit/main.cpp Co-authored-by: Alec Edgington <[email protected]> * Update pytket/binders/circuit/Circuit/main.cpp Co-authored-by: Alec Edgington <[email protected]> * Update pytket/pytket/_tket/circuit.pyi Co-authored-by: Alec Edgington <[email protected]> * update testcases to use bits and qubits * regen stubs --------- Co-authored-by: Alec Edgington <[email protected]> * Try running ZX test with all Python versions. (#1438) * Update Windows compiler version. (#1442) * Fix FlattenRelabelRegistersPass (#1441) * update tket version * update parameter of remove_blank_wires in gen_flatten_relabel_registers_pass * add python testcase for compilation pass flatten_relabel * update tket version * Allow classical transforms and predicates on up to 64 bits (#1446) * Update docs and changelog for 1.29.0 release. (#1447) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: yao-cqc <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alec Edgington <[email protected]> Co-authored-by: Silas Dilkes <[email protected]> Co-authored-by: Dan Mills <[email protected]> Co-authored-by: cqc-melf <[email protected]>
- Loading branch information
1 parent
f249e80
commit 81bca7f
Showing
93 changed files
with
1,314 additions
and
610 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ concurrency: | |
cancel-in-progress: true | ||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
env: | ||
INSTALL_DIR: "/home/runner/local" | ||
TMP_DIR: "/home/runner/tmp" | ||
|
@@ -22,7 +22,7 @@ jobs: | |
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: no-conan-build-ubuntu-22.04 | ||
key: no-conan-build-ubuntu-24.04 | ||
- name: install ninja | ||
run: | | ||
sudo apt update | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ concurrency: | |
jobs: | ||
check_changes: | ||
name: Check tket library version | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
tket_or_workflow_changed: ${{ steps.filter.outputs.tket_or_workflow }} | ||
tket_changed: ${{ steps.filter.outputs.tket }} | ||
|
@@ -29,7 +29,8 @@ jobs: | |
tket_package_exists: ${{ steps.tket_package_exists.outputs.tket_package_exists }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- uses: dorny/[email protected] | ||
|
@@ -69,7 +70,7 @@ jobs: | |
name: Check documentation build | ||
needs: check_changes | ||
if: needs.check_changes.outputs.tket_or_workflow_changed == 'true' || needs.check_changes.outputs.doxyfile_or_workflow_changed == 'true' | ||
runs-on: 'ubuntu-22.04' | ||
runs-on: 'ubuntu-24.04' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check doxygen | ||
|
@@ -97,18 +98,17 @@ jobs: | |
if: needs.check_changes.outputs.tket_or_workflow_changed == 'true' | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-12', 'macos-14'] | ||
os: ['ubuntu-24.04', 'macos-12', 'macos-14'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: apt update | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: matrix.os == 'ubuntu-24.04' | ||
run: sudo apt update | ||
- name: Select Python 3.11 | ||
# otherwise turtlebrowser/[email protected] fails on macos-12 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
|
@@ -120,7 +120,7 @@ jobs: | |
cp ${PROFILE_PATH} ${DEFAULT_PROFILE_PATH} | ||
conan remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs --index 0 | ||
- name: Install runtime test requirements | ||
if: matrix.os == 'ubuntu-22.04' && github.event_name == 'schedule' | ||
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'schedule' | ||
run: | | ||
sudo apt install texlive texlive-latex-extra latexmk | ||
mkdir -p ~/texmf/tex/latex | ||
|
@@ -155,6 +155,10 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
|
@@ -223,23 +227,27 @@ jobs: | |
name: Build and test pytket (ubuntu) | ||
needs: check_changes | ||
if: needs.check_changes.outputs.tket_or_workflow_changed == 'true' || needs.check_changes.outputs.pytket_or_workflow_changed == 'true' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
run: | | ||
conan profile detect | ||
DEFAULT_PROFILE_PATH=`conan profile path default` | ||
PROFILE_PATH=./conan-profiles/ubuntu-22.04 | ||
PROFILE_PATH=./conan-profiles/ubuntu-24.04 | ||
diff ${DEFAULT_PROFILE_PATH} ${PROFILE_PATH} || true | ||
cp ${PROFILE_PATH} ${DEFAULT_PROFILE_PATH} | ||
conan remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs --index 0 | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: tket-dynamic-ubuntu-22.04 | ||
key: tket-dynamic-ubuntu-24.04 | ||
- name: further ccache config | ||
run: | | ||
ccache --set-config base_dir=${HOME} | ||
|
@@ -274,15 +282,9 @@ jobs: | |
with: | ||
python-version: '3.12' | ||
- name: Build pytket | ||
if: github.event_name != 'schedule' | ||
run: | | ||
cd pytket | ||
pip install -e .[ZX] -v | ||
- name: Build pytket | ||
if: github.event_name == 'schedule' # https://github.com/CQCL/tket/issues/1242 | ||
run: | | ||
cd pytket | ||
pip install -e . -v | ||
- name: Run doctests | ||
run: | | ||
cd pytket | ||
|
@@ -334,11 +336,10 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Select Python 3.11 | ||
# otherwise turtlebrowser/[email protected] fails on macos-12 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
|
@@ -422,6 +423,10 @@ jobs: | |
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
|
@@ -542,7 +547,7 @@ jobs: | |
needs: build_test_pytket_ubuntu | ||
concurrency: gh_pages | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -570,7 +575,7 @@ jobs: | |
name: Check pytket line and branch coverage | ||
needs: build_test_pytket_ubuntu | ||
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download artefact | ||
|
@@ -598,7 +603,7 @@ jobs: | |
- publish_pytket_coverage | ||
- check_pytket_coverage | ||
if: always() | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- shell: python | ||
name: Check job results | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
tklog: ${{ steps.filter.outputs.tklog }} | ||
tkassert: ${{ steps.filter.outputs.tkassert }} | ||
|
@@ -46,7 +46,7 @@ jobs: | |
if: ${{ needs.changes.outputs.libs != '[]' && needs.changes.outputs.libs != '' }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-12', 'windows-2022', 'macos-14'] | ||
os: ['ubuntu-24.04', 'macos-12', 'windows-2022', 'macos-14'] | ||
lib: ${{ fromJson(needs.changes.outputs.libs) }} | ||
build_type: ['Release', 'Debug'] | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -63,10 +63,10 @@ jobs: | |
$normalized_file = [IO.File]::ReadAllText($f) -replace "`r`n", "`n" | ||
[IO.File]::WriteAllText($f, $normalized_file) | ||
} | ||
- name: Set up Python 3.11 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
|
@@ -97,7 +97,7 @@ jobs: | |
name: build library (manylinux) | ||
needs: changes | ||
if: ${{ needs.changes.outputs.libs != '[]' && needs.changes.outputs.libs != '' }} | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
lib: ${{ fromJson(needs.changes.outputs.libs) }} | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ concurrency: | |
jobs: | ||
|
||
changes: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
tket: ${{ steps.filter.outputs.tket }} | ||
steps: | ||
|
@@ -37,16 +37,20 @@ jobs: | |
name: Generate coverage report | ||
needs: changes | ||
if: needs.changes.outputs.tket == 'true' || github.event_name == 'schedule' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
- name: Set up conan | ||
run: | | ||
conan profile detect | ||
DEFAULT_PROFILE_PATH=`conan profile path default` | ||
PROFILE_PATH=./conan-profiles/ubuntu-22.04 | ||
PROFILE_PATH=./conan-profiles/ubuntu-24.04 | ||
diff ${DEFAULT_PROFILE_PATH} ${PROFILE_PATH} || true | ||
cp ${PROFILE_PATH} ${DEFAULT_PROFILE_PATH} | ||
conan remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs --index 0 | ||
|
@@ -91,7 +95,7 @@ jobs: | |
name: Check coverage | ||
needs: generate_coverage | ||
if: ((github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && needs.changes.outputs.tket == 'true') || github.event_name == 'schedule' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download artefact | ||
|
@@ -115,7 +119,7 @@ jobs: | |
needs: generate_coverage | ||
concurrency: gh_pages | ||
if: github.event_name == 'push' && needs.changes.outputs.tket == 'true' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -144,7 +148,7 @@ jobs: | |
needs: check_coverage | ||
concurrency: gh_pages | ||
if: github.event_name == 'schedule' | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
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 |
---|---|---|
|
@@ -17,17 +17,16 @@ jobs: | |
name: Build | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-22.04', 'macos-12', 'windows-2022', 'macos-14'] | ||
os: ['ubuntu-24.04', 'macos-12', 'windows-2022', 'macos-14'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Select Python 3.11 | ||
# otherwise turtlebrowser/[email protected] fails on macos-12 | ||
- name: Select Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
|
||
- name: Install conan | ||
uses: turtlebrowser/[email protected] | ||
|
@@ -51,7 +50,7 @@ jobs: | |
|
||
build_manylinux_x86_64: | ||
name: Build on manylinux (x86_64) | ||
runs-on: 'ubuntu-22.04' | ||
runs-on: 'ubuntu-24.04' | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
Oops, something went wrong.