Toolset for executing quantum jobs on Qubernetes.
Install the core package:
pip install q8sThe default installation includes the built-in cpu execution target.
Additional execution targets are provided by plugin packages:
pip install q8s-cuda
pip install q8s-hpc-cpu
pip install q8s-hpc-rocmSubmit a job to the Qubernetes cluster:
q8sctl execute app.py --kubeconfig /path/to/kubeconfigFor more options, run:
q8sctl execute --helpInstall the q8s-kernel:
q8sctl jupyter --installStart the jupyter notebook server:
jupyter notebookor the jupyter lab server:
jupyter labSelect the Q8s kernel when creating a new notebook.
See CONTRIBUTING.md for development setup, testing, pre-commit checks, and pull request guidelines.
The development process explains how issues, specifications, architecture decisions, implementation, review, and releases fit together.
Each package has its own version in packages/<package>/pyproject.toml and is released with a tag named <package>-v<version>:
| Package | Example tag |
|---|---|
q8s |
q8s-v0.14.0 |
q8s-cuda |
q8s-cuda-v0.1.0 |
q8s-hpc-cpu |
q8s-hpc-cpu-v0.1.0 |
q8s-hpc-rocm |
q8s-hpc-rocm-v0.1.0 |
Before the first release of each plugin, register a pending Trusted Publisher at https://pypi.org/manage/account/publishing/ using the package name, this repository's GitHub owner and name, workflow filename publish.yml, and environment pypi. Keep the existing publisher configuration for q8s.
To release, update the selected package's version, merge the change, and push the matching tag. For example, to publish q8s-cuda version 0.1.0:
git tag q8s-cuda-v0.1.0
git push origin q8s-cuda-v0.1.0Push release tags individually. GitHub does not trigger tag-push workflows when more than three tags are pushed at once, so avoid git push --tags when releasing all four packages together.
The workflow verifies that the tag matches the package metadata, tests all packages, and builds and checks each package's wheel and source archive. It publishes only the tagged package to PyPI and attaches its signed distributions to a GitHub release. Legacy tags such as v0.14.0 do not trigger publication. When a plugin requires a new core version, publish q8s first.
Pull requests run tests and builds without publishing. Branch pushes also publish all four packages to TestPyPI using the existing testpypi environment, skipping distributions that have already been uploaded. Before the first plugin upload, register a pending Trusted Publisher for each plugin at https://test.pypi.org/manage/account/publishing/ with the same GitHub owner, repository, and workflow filename, but environment testpypi. Keep the existing TestPyPI publisher configuration for q8s.