Skip to content

Commit 508ba44

Browse files
authored
polish docs (#230)
* polish docs * improve guppy-hugr handling * improve multiprocessing handling
1 parent 702c24a commit 508ba44

611 files changed

Lines changed: 47507 additions & 43949 deletions

File tree

Some content is hidden

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

.github/workflows/python-test.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,23 @@ defaults:
2424
jobs:
2525
python-test:
2626
runs-on: ${{ matrix.os }}
27-
timeout-minutes: 90
27+
timeout-minutes: 240
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
os: [ubuntu-latest, windows-latest, macOS-latest]
31+
# Full Python version matrix on Ubuntu (fast)
32+
os: [ubuntu-latest]
3233
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
34+
include:
35+
# Windows/macOS: only test oldest and newest stable Python (slow platforms)
36+
- os: windows-latest
37+
python-version: "3.10"
38+
- os: windows-latest
39+
python-version: "3.14"
40+
- os: macOS-latest
41+
python-version: "3.10"
42+
- os: macOS-latest
43+
python-version: "3.14"
3344

3445
steps:
3546
- name: Free Disk Space (Ubuntu)
@@ -139,6 +150,13 @@ jobs:
139150
Write-Host "Verifying LLVM installation..."
140151
cargo run -p pecos --features cli --release -- llvm check
141152
153+
- name: Install PECOS CLI (Windows)
154+
if: runner.os == 'Windows'
155+
shell: pwsh
156+
run: |
157+
Write-Host "Installing PECOS CLI..."
158+
cargo install --path crates/pecos --features cli
159+
142160
- name: Build and test PECOS (Windows)
143161
if: runner.os == 'Windows'
144162
shell: pwsh
@@ -225,6 +243,12 @@ jobs:
225243
just build-debug
226244
just pytest-all
227245
246+
- name: Install PECOS CLI (non-Windows)
247+
if: runner.os != 'Windows'
248+
run: |
249+
echo "Installing PECOS CLI..."
250+
cargo install --path crates/pecos --features cli
251+
228252
- name: Build and test PECOS (non-Windows)
229253
if: runner.os != 'Windows'
230254
run: |

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ tmp/
1212
# pytest results
1313
junit/
1414

15+
# Generated doc tests (from scripts/docs/generate_doc_tests.py)
16+
python/quantum-pecos/tests/docs/generated/
17+
18+
# Generated WASM binaries (compile from .wat source)
19+
*.wasm
20+
1521
# Cython
1622
*.pyc
1723
*.pyd

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ repos:
4141
- id: black
4242

4343
- repo: https://github.com/keewis/blackdoc
44-
rev: v0.4.1
44+
rev: v0.4.6
4545
hooks:
4646
- id: blackdoc
47+
args: [--line-length=120]
4748
additional_dependencies:
48-
- black==25.1.0
49+
- black==25.9.0

.typos.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ arange = "arange"
2525
nd = "nd"
2626
# delocate is a macOS wheel repair tool (delocate-wheel command)
2727
delocate = "delocate"
28+
# Gate name breakdown notation uses partial words like C(ontrolled), R(otation)
29+
ontrolled = "ontrolled"
30+
otation = "otation"
31+
repare = "repare"
32+
easure = "easure"
33+
egative = "egative"
34+
agger = "agger"

0 commit comments

Comments
 (0)