66 py_doc_deps :
77 type : string
88 required : true
9- default : build==1.3.0 setuptools==80.9.0 sphinx==8.2.3 sphinx-multiversion==0.2.4 sphinx-rtd-theme==3.0.2 sphinx-inline-tabs==2023.4 .21 sphinx-c-autodoc==1.5 .0 clang==18.1.8
9+ default : build==1.4.2 setuptools==82.0.1 sphinx==9.1.0 sphinx-multiversion==0.2.4 sphinx-rtd-theme==3.1.0 sphinx-inline-tabs==2025.12 .21.14 sphinx-c-autodoc==1.6 .0 clang==18.1.8
1010 py_cibw_deps :
1111 type : string
1212 required : true
13- default : cibuildwheel==3.2.0
13+ default : cibuildwheel==3.4.0
14+ rust_min_version :
15+ type : string
16+ required : true
17+ default : ' 1.82.0'
18+ rust_version :
19+ type : string
20+ required : true
21+ default : ' stable'
22+ qiskit_version :
23+ type : string
24+ required : true
25+ default : ' 2.3.1'
26+ qiskit_aer_version :
27+ type : string
28+ required : true
29+ default : ' 0.17.2'
1430
1531jobs :
1632 rust :
1733 name : Rust ${{ matrix.toolchain }} tests
1834 strategy :
1935 matrix :
20- toolchain : ['1.82.0', stable , nightly]
36+ toolchain : [${{ inputs.rust_min_version }}, ${{ inputs.rust_version }} , nightly]
2137 runs-on : ubuntu-24.04
2238 steps :
2339 - name : Install Rust
3046 - name : Build crate
3147 run : cargo package
3248 - name : Upload crate
33- if : ${{ matrix.toolchain == 'stable' }}
49+ if : ${{ matrix.toolchain == inputs.rust_version }}
3450 uses : actions/upload-artifact@v4
3551 with :
3652 name : rust-crate
3955 - name : Build documentation
4056 run : cargo doc --no-deps
4157 - name : Upload documentation
42- if : ${{ matrix.toolchain == 'stable' }}
58+ if : ${{ matrix.toolchain == inputs.rust_version }}
4359 uses : actions/upload-artifact@v4
4460 with :
4561 name : rust-doc
5571 - name : Install Rust
5672 run : |
5773 rustup set profile minimal
58- rustup update stable
59- rustup default stable
74+ rustup update ${{ inputs.rust_version }}
75+ rustup default ${{ inputs.rust_version }}
6076 rustup target add wasm32-wasip1
6177 - uses : actions/checkout@v4
6278
7692 - name : Install Rust
7793 run : |
7894 rustup set profile minimal
79- rustup update stable
80- rustup default stable
95+ rustup update ${{ inputs.rust_version }}
96+ rustup default ${{ inputs.rust_version }}
8197
8298 - name : Install Python
8399 uses : actions/setup-python@v5
@@ -166,8 +182,8 @@ jobs:
166182
167183 - name : Prepare environment
168184 run : |
185+ pip install --constraint=tests/pip-constraints.txt --only-binary=numpy pytest numpy
169186 pip install --only-binary=qblaze --no-index --find-links=dist qblaze
170- pip install --only-binary=numpy pytest numpy==2.3.4
171187
172188 - name : Run tests
173189 run : pytest --ignore tests/test_qiskit.py --ignore python/qblaze/qiskit.py
@@ -178,10 +194,9 @@ jobs:
178194 strategy :
179195 matrix :
180196 os : [ubuntu-24.04, ubuntu-24.04-arm, windows-2025, macos-13, macos-14]
181- # Qiskit binaries are not available for Windows on ARM
182- # Qiskit Aer binaries are not available for Python 3.14
183- python : ['3.11', '3.13']
184- qiskit : ['1.4.5', '2.2.1']
197+ # Qiskit and Qiskit Aer binaries are not available for Windows on ARM
198+ python : ['3.11', '3.14']
199+ qiskit : ['1.4.5', ${{ inputs.qiskit_version }}]
185200 runs-on : ${{ matrix.os }}
186201 steps :
187202 - uses : actions/setup-python@v5
@@ -197,8 +212,8 @@ jobs:
197212
198213 - name : Prepare environment
199214 run : |
215+ pip install --constraint=tests/pip-constraints.txt --only-binary=numpy,scipy,qiskit,qiskit-aer pytest numpy qiskit==${{ matrix.qiskit }} qiskit-aer==${{ inputs.qiskit_aer_version }}
200216 pip install --only-binary=qblaze --no-index --find-links=dist qblaze
201- pip install --only-binary=numpy,scipy,qiskit,qiskit-aer pytest numpy==2.3.4 scipy==1.16.2 qiskit==${{ matrix.qiskit }} qiskit-aer==0.17.2
202217
203218 - name : Run tests
204219 run : pytest
0 commit comments