Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/pull_bloqade_submodules/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,18 @@ runs:
repository: QuEraComputing/bloqade-analog
path: 'submodules/bloqade-analog'
ref: ${{ steps.bloqade_analog_extract_version.outputs.version }}

- name: extract bloqade-lanes version
id: bloqade_lanes_extract_version
shell: bash
run: |
VERSION=$(uv pip show bloqade-lanes | awk '/^Version: / {print "v"$2}')
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: clone the latest bloqade-lanes release
id: clone_bloqade_lanes
uses: actions/checkout@v5
with:
repository: QuEraComputing/bloqade-lanes
path: 'submodules/bloqade-lanes'
ref: ${{ steps.bloqade_lanes_extract_version.outputs.version }}
9 changes: 8 additions & 1 deletion .github/workflows/dev-doc-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
repository: QuEraComputing/bloqade-circuit
path: 'submodules/bloqade-circuit'

- name: clone the latest bloqade-lanes
id: clone_bloqade_lanes
uses: actions/checkout@v6
with:
repository: QuEraComputing/bloqade-lanes
path: 'submodules/bloqade-lanes'

- name: clone the latest bloqade-analog
id: clone_bloqade_analog
uses: actions/checkout@v6
Expand All @@ -40,7 +47,7 @@ jobs:
path: 'submodules/bloqade-analog'

- name: add local repos as dependencies
run: uv add submodules/bloqade-circuit submodules/bloqade-analog
run: uv add submodules/bloqade-circuit submodules/bloqade-lanes submodules/bloqade-analog

- name: Set up build cache
uses: actions/cache@v5
Expand Down
1 change: 1 addition & 0 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Here you can find a full API reference grouped by the respective submodules of bloqade:

* [`bloqade-circuit`](./bloqade-circuit/src/bloqade/types)
* [`bloqade-lanes`](./bloqade-lanes/python/bloqade/lanes/device)
* [`bloqade-analog`](./bloqade-analog/src/bloqade/analog/)

Please note that the reference is auto-generated and therefore follows the structure of the code.
Expand Down
13 changes: 13 additions & 0 deletions docs/scripts/gen_ref_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@
if os.getenv("GITHUB_ACTIONS") == "true":
BLOQADE_CIRCUIT_SRC_PATH = "submodules/bloqade-circuit/"
BLOQADE_ANALOG_SRC_PATH = "submodules/bloqade-analog/"
BLOQADE_LANES_SRC_PATH = "submodules/bloqade-lanes/"
else:
"""
NOTE: we assume the following project structure when building locally:

../
├── bloqade
├── bloqade-analog
├── bloqade-lanes
└── bloqade-circuit
"""
BLOQADE_CIRCUIT_SRC_PATH = "../bloqade-circuit/"
BLOQADE_LANES_SRC_PATH = "../bloqade-lanes/"
BLOQADE_ANALOG_SRC_PATH = "../bloqade-analog/"


Expand All @@ -41,6 +44,12 @@
"docs/",
"debug/",
"squin/cirq/emit/", # NOTE: this fails when included because there is an __init__.py missing, but the files have no docs anyway and it will be moved so safe to ignore
"demo/",
"scripts/",
"examples/",
"crates/",
"lanes/analysis/", # TODO: don't skip this
"lanes/arch/gemini/",
]


Expand Down Expand Up @@ -101,3 +110,7 @@ def make_nav(bloqade_package_name: str, BLOQADE_PACKAGE_PATH: str):
bloqade_analog_nav = make_nav("bloqade-analog", BLOQADE_ANALOG_SRC_PATH)
with mkdocs_gen_files.open("reference/SUMMARY_BLOQADE_ANALOG.md", "w") as nav_file:
nav_file.writelines(bloqade_analog_nav.build_literate_nav())

bloqade_lanes_nav = make_nav("bloqade-lanes", BLOQADE_LANES_SRC_PATH)
with mkdocs_gen_files.open("reference/SUMMARY_BLOQADE_LANES.md", "w") as nav_file:
nav_file.writelines(bloqade_lanes_nav.build_literate_nav())
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ nav:
- API Reference:
- 'reference/index.md'
- Bloqade Digital: 'reference/bloqade-circuit/src/bloqade/'
- Bloqade Lanes: 'reference/bloqade-lanes/python/bloqade/'
- Bloqade Analog: 'reference/bloqade-analog/src/bloqade/analog/'
- Blog:
- blog/index.md
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"bloqade-circuit[cirq,qasm2,qbraid,vis,stim]~=0.11.0",
"bloqade-circuit[cirq,qasm2,qbraid,vis,stim]~=0.14.0",
"bloqade-analog~=0.16.3",
"bloqade-lanes~=0.6.0",
]

[build-system]
Expand Down
Loading