Skip to content

Commit c372b7c

Browse files
SUMMARY and RESULTS markdowns
1 parent 73498aa commit c372b7c

33 files changed

Lines changed: 980 additions & 4 deletions

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
python -m pip install --upgrade pip
3131
python -m pip install -e ".[docs]"
3232
33+
- name: Check benchmark artifacts
34+
run: |
35+
python scripts/export_benchmark_artifacts.py
36+
git diff --exit-code notebooks/benchmarks/RESULTS.md notebooks/benchmarks/_artifacts
37+
3338
- name: Build docs
3439
run: |
3540
python -m sphinx -W -b html docs docs/_build/html

.github/workflows/package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
"__pycache__",
7474
".pyc",
7575
".pytest_cache",
76+
"/notebooks/benchmarks/_artifacts/",
7677
"/results/",
7778
"/images/",
7879
"/vendor_wheels/",
@@ -97,6 +98,9 @@ jobs:
9798
if not any(name.endswith("tests/test_notebook_validation.py") for name in sdist_names):
9899
raise SystemExit("Expected tests to be included in sdist")
99100
101+
if any(name.endswith("tests/test_benchmark_artifacts.py") for name in sdist_names):
102+
raise SystemExit("Repository-only benchmark artifact tests must not be included in sdist")
103+
100104
print(f"wheel: {wheel.name} ({len(wheel_names)} files)")
101105
print(f"sdist: {sdist.name} ({len(sdist_names)} files)")
102106
PY

.github/workflows/pages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@ jobs:
3838
python -m pip install --upgrade pip
3939
python -m pip install -e ".[docs]"
4040
41+
- name: Check benchmark artifacts
42+
run: |
43+
python scripts/export_benchmark_artifacts.py
44+
git diff --exit-code notebooks/benchmarks/RESULTS.md notebooks/benchmarks/_artifacts
45+
4146
- name: Build docs
4247
run: |
4348
python -m sphinx -W -b html docs docs/_build/html
4449
4550
- name: Configure Pages
4651
uses: actions/configure-pages@v5
47-
with:
48-
enablement: true
4952

5053
- name: Upload Pages artifact
5154
uses: actions/upload-pages-artifact@v3

CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,81 @@ All notable changes to this project will be documented in this file.
44

55
---
66

7+
## [0.3.24] - April 20, 2026
8+
9+
### Added
10+
11+
- **Published Sphinx documentation site**
12+
13+
Added a Sphinx/Furo documentation shell around the existing `README.md`,
14+
`USAGE.md`, `THEORY.md`, `notebooks/README_notebooks.md`, and `more_docs/`
15+
content.
16+
17+
The docs build supports MyST Markdown, Mermaid diagrams, API autodoc pages,
18+
strict Sphinx builds, and GitHub Pages deployment.
19+
20+
- **Benchmark summary and results pages**
21+
22+
Added benchmark documentation pages for:
23+
24+
- `notebooks/benchmarks/SUMMARY.md`
25+
- `notebooks/benchmarks/RESULTS.md`
26+
- `notebooks/benchmarks/MAINTENANCE.md`
27+
28+
These pages summarize the benchmark notebook inventory, method-selection
29+
guidance, artifact policy, and result-bearing notebooks.
30+
31+
- **Curated benchmark artifact export flow**
32+
33+
Added `scripts/export_benchmark_artifacts.py` to promote selected local
34+
benchmark outputs into tracked, curated artifacts under
35+
`notebooks/benchmarks/_artifacts/`.
36+
37+
The exporter currently publishes selected figures and CSV/Markdown tables for:
38+
39+
- H2 ansatz comparison
40+
- H2 mapping comparison
41+
- low-qubit VQE benchmark
42+
- H2 cross-method runtime
43+
- LiH cross-method results
44+
- QPE H2 decision-map summaries
45+
- H2 noise-robustness reference results
46+
47+
- **Benchmark artifact regression tests**
48+
49+
Added tests that verify `RESULTS.md` references existing curated artifacts,
50+
enforce a small set of expected artifact file types, guard against oversized
51+
artifact files, and confirm the benchmark exporter is idempotent.
52+
53+
### Changed
54+
55+
- **Documentation URLs and Pages workflows**
56+
57+
Updated the package documentation URL and README badge/link to point at the
58+
GitHub Pages documentation site.
59+
60+
Added docs and Pages workflow checks that run the benchmark artifact exporter
61+
and fail if curated artifacts are stale.
62+
63+
- **Benchmark artifact policy**
64+
65+
Kept raw `results/` and `images/` ignored while tracking only curated,
66+
reviewed copies under `notebooks/benchmarks/_artifacts/`.
67+
68+
### Fixed
69+
70+
- **Generated artifact cleanup**
71+
72+
Removed stale local smoke/cache result files and orphaned generated images from
73+
the ignored artifact directories, leaving only referenced generated images in
74+
the local `images/` directory.
75+
76+
## [0.3.23] - April 20, 2026
77+
78+
### Changed
79+
80+
- Published the initial GitHub Pages documentation release.
81+
782
## [0.3.22] - April 20, 2026
883

984
### Added

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ recursive-include notebooks *.md
1919
# same smoke/regression suite against the sdist. These are not included in the
2020
# wheel because package discovery is restricted to the runtime package modules.
2121
recursive-include tests *.py *.ipynb
22+
exclude tests/test_benchmark_artifacts.py
2223

2324
# Exclude notebooks themselves (huge)
2425
exclude notebooks/*.ipynb
2526
exclude notebooks/**/*.ipynb
2627

28+
# Exclude curated benchmark artifacts from the sdist. They are tracked in the
29+
# repository for the docs site, but they are generated result artifacts rather
30+
# than source-package inputs.
31+
prune notebooks/benchmarks/_artifacts
32+
2733
# Exclude large data directories
2834
prune data
2935
prune results

docs/benchmarks/_artifacts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../notebooks/benchmarks/_artifacts

docs/benchmarks/results.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```{include} ../../notebooks/benchmarks/RESULTS.md
2+
```

docs/benchmarks/summary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```{include} ../../notebooks/benchmarks/SUMMARY.md
2+
```

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
templates_path = ["_templates"]
26-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
26+
exclude_patterns = ["_build", "benchmarks/_artifacts", "Thumbs.db", ".DS_Store"]
2727

2828
html_theme = "furo"
2929
html_title = project

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Notebooks <user/notebooks>
1919
architecture
2020
```
2121

22+
```{toctree}
23+
:maxdepth: 1
24+
:titlesonly:
25+
:caption: Benchmarks
26+
27+
Benchmark Summary <benchmarks/summary>
28+
Benchmark Results <benchmarks/results>
29+
```
30+
2231
```{toctree}
2332
:maxdepth: 1
2433
:titlesonly:

0 commit comments

Comments
 (0)