Skip to content

Commit 1ef25b4

Browse files
committed
Merge branch 'main' into david/update-noisy-ghz-example
2 parents 66d13ce + 4a96fdb commit 1ef25b4

File tree

87 files changed

+2690
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2690
-220
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'Pull bloqade submodules'
2+
description: 'Composite action to pull in the git repositories of bloqade-* submodules at the latest version tags compatible with bloqade. They are put in a directory called submodules'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: extract bloqade-circuit version
7+
id: bloqade_circuit_extract_version
8+
shell: bash
9+
run: |
10+
VERSION=$(uv pip show bloqade-circuit | awk '/^Version: / {print "v"$2}')
11+
echo "version=$VERSION" >> $GITHUB_OUTPUT
12+
13+
- name: clone the latest bloqade-circuit release
14+
id: clone_bloqade_circuit
15+
uses: actions/checkout@v5
16+
with:
17+
repository: QuEraComputing/bloqade-circuit
18+
path: 'submodules/bloqade-circuit'
19+
ref: ${{ steps.bloqade_circuit_extract_version.outputs.version }}
20+
21+
- name: Extract bloqade-analog version
22+
id: bloqade_analog_extract_version
23+
shell: bash
24+
run: |
25+
VERSION=$(uv pip show bloqade-analog | awk '/^Version: / {print "v"$2}')
26+
echo "version=$VERSION" >> $GITHUB_OUTPUT
27+
28+
- name: clone the latest bloqade-analog release
29+
id: clone_bloqade_analog
30+
uses: actions/checkout@v5
31+
with:
32+
repository: QuEraComputing/bloqade-analog
33+
path: 'submodules/bloqade-analog'
34+
ref: ${{ steps.bloqade_analog_extract_version.outputs.version }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
python-version: ["3.10", "3.11", "3.12"]
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
- name: Install uv
2424
uses: astral-sh/setup-uv@v6
2525
with:

.github/workflows/dev-doc-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Build documentation
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Install uv
1818
uses: astral-sh/setup-uv@v6
1919
with:
@@ -27,14 +27,14 @@ jobs:
2727
# get latest dependencies from git directly
2828
- name: clone the latest bloqade-circuit
2929
id: clone_bloqade_circuit
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
with:
3232
repository: QuEraComputing/bloqade-circuit
3333
path: 'submodules/bloqade-circuit'
3434

3535
- name: clone the latest bloqade-analog
3636
id: clone_bloqade_analog
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
3838
with:
3939
repository: QuEraComputing/bloqade-analog
4040
path: 'submodules/bloqade-analog'

.github/workflows/devdoc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Deploy dev documentation
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919
- name: Install uv
@@ -25,6 +25,10 @@ jobs:
2525
cache-dependency-glob: "uv.lock"
2626
- name: Install Documentation dependencies
2727
run: uv sync --group doc
28+
29+
- name: Pull bloqade submodules
30+
uses: ./.github/pull_bloqade_submodules
31+
2832
- name: Set up build cache
2933
uses: actions/cache@v4
3034
id: cache

.github/workflows/doc-nightly.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Build documentation
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Install uv
1818
uses: astral-sh/setup-uv@v6
1919
with:
@@ -24,6 +24,9 @@ jobs:
2424
- name: Install Documentation dependencies
2525
run: uv sync --group doc
2626

27+
- name: Pull bloqade submodules
28+
uses: ./.github/pull_bloqade_submodules
29+
2730
- name: Set up build cache
2831
uses: actions/cache@v4
2932
id: cache

.github/workflows/doc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@ jobs:
1515
name: Deploy preview documentation
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
19+
1920
- name: Install uv
2021
uses: astral-sh/setup-uv@v6
2122
with:
2223
# Install a specific version of uv.
2324
version: "0.5.1"
2425
enable-cache: true
2526
cache-dependency-glob: "uv.lock"
27+
2628
- name: Install Documentation dependencies
2729
run: uv sync --group doc
30+
31+
- name: Pull bloqade submodules
32+
uses: ./.github/pull_bloqade_submodules
33+
2834
- name: Set up build cache
2935
uses: actions/cache@v4
3036
id: cache

.github/workflows/isort.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- uses: isort/isort-action@v1
1717
with:
1818
sortPaths: "src" # only sort files in the src directory

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
ruff:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- uses: chartboost/ruff-action@v1
1717
black:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
- uses: psf/black@stable

.github/workflows/pub_doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Deploy release documentation
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919
- name: Install uv

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- name: Install uv
1313
uses: astral-sh/setup-uv@v6
1414
with:
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Download all the dists
42-
uses: actions/download-artifact@v4
42+
uses: actions/download-artifact@v5
4343
with:
4444
name: python-package-distributions
4545
path: dist/
@@ -60,12 +60,12 @@ jobs:
6060

6161
steps:
6262
- name: Download all the dists
63-
uses: actions/download-artifact@v4
63+
uses: actions/download-artifact@v5
6464
with:
6565
name: python-package-distributions
6666
path: dist/
6767
- name: Sign the dists with Sigstore
68-
uses: sigstore/gh-action-sigstore-python@v3.0.0
68+
uses: sigstore/gh-action-sigstore-python@v3.0.1
6969
with:
7070
inputs: >-
7171
./dist/*.tar.gz

0 commit comments

Comments
 (0)