Skip to main content

Package to check QIR for compatibility with quantinuum devices

Project description

quantinuum-qircheck

Slack Stack Exchange

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:

  1. run uv sync --group test if you have not already installed the test dependencies;
  2. 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantinuum_qircheck-0.8.0-py3-none-any.whl (872.6 kB view details)

Uploaded Python 3

File details

Details for the file quantinuum_qircheck-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for quantinuum_qircheck-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ee1a4087a785a523338075f848fc04c277f683a554fc9140e1d3fc5a5e24125
MD5 d4404899ed6c6ceb71f3506dff297b14
BLAKE2b-256 b057f10daaea194a204128da58dad03b9f0a8aad5dcd658a39bb5b895357f965

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page