Package to check QIR for compatibility with quantinuum devices
Project description
quantinuum-qircheck
This repository contains the quantinuum_qircheck package.
Getting started
quantinuum_qircheck is available for Python 3.10, 3.11 and 3.12, on Linux, MacOS
and Windows. To install, run:
pip install quantinuum_qircheck
Bugs, support and feature requests
Please file bugs and feature requests on the Github issue tracker.
There is also a Slack channel for discussion and support. Click here to join.
Development
Install the project and development tools with uv:
uv sync --group dev
Install local git hooks with prek:
uvx prek install
You could also use make targets such as:
make install # for installation
make dev # install the project with lint and test tooling
make lint # run formatting, linting, and type checking
make tests # for running tests
make build # for source and wheel distribution packages
make clean # to clean up autogenerated files
To run the hook suite manually:
uvx prek run --all-files
Contributing
Pull requests are welcome. To make a PR, first fork the repo, make your proposed
changes on the main branch, and open a PR from your fork. If it passes
tests and is accepted after review, it will be merged in.
Code style
Formatting
All code should be formatted using ruff format. This is checked on the CI.
Type annotation
On the CI, ty is used as a static
type checker and all submissions must pass its checks. You should therefore run
uv run ty check quantinuum_qircheck tests locally on any changed files before submitting a PR.
Linting
We use ruff
on the CI to check compliance with a set of style requirements (listed in pyproject.toml).
An easy way to meet all formatting and linting requirements is to run make lint
or uvx prek run --all-files before sending a PR.
Tests
To run the tests:
- run
uv sync --group testif you have not already installed the test dependencies; - run
uv run pytest.
When adding a new feature, please add a test for it. When fixing a bug, please add a test that demonstrates the fix.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantinuum_qircheck-0.8.0-py3-none-any.whl.
File metadata
- Download URL: quantinuum_qircheck-0.8.0-py3-none-any.whl
- Upload date:
- Size: 872.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee1a4087a785a523338075f848fc04c277f683a554fc9140e1d3fc5a5e24125
|
|
| MD5 |
d4404899ed6c6ceb71f3506dff297b14
|
|
| BLAKE2b-256 |
b057f10daaea194a204128da58dad03b9f0a8aad5dcd658a39bb5b895357f965
|