Skip to content

Commit 4f4e2ea

Browse files
committed
update
1 parent 6eb4ab4 commit 4f4e2ea

File tree

4 files changed

+168
-0
lines changed

4 files changed

+168
-0
lines changed

.github/workflows/docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run doc build and create artifact
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
- "runci/**"
11+
schedule:
12+
# 04:00 every Tuesday morning
13+
- cron: "0 4 * * 2"
14+
15+
jobs:
16+
docs-checks:
17+
name: Run doc build and create artifact
18+
runs-on: "ubuntu-latest"
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: "0"
23+
submodules: recursive
24+
- name: Set up uv
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
version: "0.4.20"
28+
enable-cache: true
29+
- name: Setup dependencies
30+
run: |
31+
uv venv --python 3.12
32+
- name: copy docs files
33+
run: |
34+
cp -R docs/pytket-docs-theming/_static docs
35+
cp docs/pytket-docs-theming/conf.py docs
36+
cp docs/pytket-docs-theming/pyproject.toml docs
37+
cp docs/pytket-docs-theming/uv.lock docs
38+
- name: Install docs dependencies
39+
run: |
40+
source .venv/bin/activate
41+
uv pip install hugr-qir
42+
cd docs
43+
uv pip install .
44+
sphinx-build -b html . build -D html_title=hugr-qir
45+
sphinx-build -b linkcheck . build
46+
sphinx-build -v -b coverage . build/coverage
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: docs
50+
path: docs/build/

docs/api.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# API documentation
2+
3+
The hugr-qir module allows the conversion of hugr to QIR.
4+
5+
See the [hugr-qir section](https://github.com/Quantinuum/hugr-qir) of the documentation website for some example usage.
6+
7+
```{eval-rst}
8+
.. automodule:: hugr_qir.hugr_to_qir.hugr_to_qir
9+
.. automodule:: hugr_qir.output.OutputFormat
10+
11+
```

docs/changelog.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
```{eval-rst}
2+
.. currentmodule:: hugr_qir
3+
```
4+
5+
# Changelog
6+
7+
## v0.0.19
8+
9+
- add support for get_current_shot
10+
11+
## v0.0.18
12+
13+
- update github links
14+
- fix lowering of discard/QFree for quantinuum-hardware targets
15+
16+
## v0.0.17
17+
18+
- fix error messages
19+
- support more complicated guppy if/elif statements
20+
21+
## v0.0.16
22+
23+
- update hugr rust version requirement 0.24.2
24+
25+
## v0.0.15
26+
27+
- update hugr version requirement 0.14.0
28+
29+
## v0.0.14
30+
31+
- update guppylang version requirement 0.21.5
32+
- update dependency version requirements
33+
34+
## v0.0.12
35+
36+
- add conversion of RNG functions
37+
38+
## v0.0.11
39+
40+
- add options for compilation target and optimization level
41+
- configure output format using output_format option and remove 'emit_text' toggle
42+
43+
## v0.0.10
44+
45+
- fix issues with function names
46+
47+
## v0.0.9
48+
49+
- fix issues with windows wheels
50+
51+
## v0.0.8
52+
53+
- update guppylang version requirement 0.21.0
54+
- update hugr version requirement 0.13.0
55+
- update quantinuum-qircheck version requirement to 0.3.0
56+
57+
## v0.0.7
58+
59+
- expose option to validate input hugr
60+
- update guppylang version requirement 0.20.0
61+
- update hugr version requirement 0.12.2
62+
63+
## v0.0.5
64+
65+
- update hugr_to_qir to take ModulePointer and bytes for conversion
66+
67+
## v0.0.4
68+
69+
- update guppylang version requirement 0.19.1
70+
71+
## v0.0.3
72+
73+
- update quantinuum-qircheck version requirement to 0.2.0
74+
75+
## v0.0.1
76+
77+
- add hugr_to_qir conversion function

docs/index.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
file_format: mystnb
3+
---
4+
5+
# hugr-qir
6+
7+
`hugr-qir` is a module that offers the conversion of hugr to QIR. The HUGR can for example be generated from guppy.
8+
9+
`hugr-qir` is available for Python 3.10, 3.11, 3.12 and 3.13, on Linux, MacOS
10+
and Windows. To install, run:
11+
12+
```
13+
pip install hugr-qir
14+
```
15+
16+
17+
18+
```{eval-rst}
19+
.. toctree::
20+
api.md
21+
changelog.md
22+
```
23+
24+
```{eval-rst}
25+
.. toctree::
26+
:caption: Useful links
27+
28+
Issue tracker <https://github.com/Quantinuum/hugr-qir/issues>
29+
PyPi <https://pypi.org/project/hugr-qir/>
30+
```

0 commit comments

Comments
 (0)