Skip to main content

pytket-qujax

Slack Stack Exchange

Pytket is a python module for interfacing with tket, a quantum computing toolkit and optimising compiler developed by Quantinuum.

pytket-qujax is an extension to pytket that allows pytket circuits to be executed on the QuJax simulator.

Some useful links:

Getting started

pytket-qujax is compatible with Python versions 3.10 to 3.13 on Linux, MacOS and Windows. To install, run:

pip install pytket-qujax

This will install pytket if it isn't already installed, and add new classes and methods into the pytket.extensions namespace.

Bugs, support and feature requests

Please file bugs and feature requests on the Github issue tracker.

Development

To install an extension in editable mode run:

pip install -e .

We have set up the repo to be used with uv. You can use also:

uv sync --python 3.12

to install the package. This will automatically pick up all requirements for the tests as well.

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, with default options. This is checked on the CI.

Type annotation

On the CI, mypy is used as a static type checker and all submissions must pass its checks. You should therefore run mypy locally on any changed files before submitting a PR. You can run them with:

uv run mypy --config-file=mypy.ini --no-incremental --explicit-package-bases pytket tests

Linting

We use ruff on the CI to check compliance with a set of style requirements (listed in ruff.toml). You should run ruff over any changed files before submitting a PR, to catch any issues.

An easy way to meet all formatting and linting requirements is to issue pre-commit run --all-files.

If you are using uv running uv run pre-commit run --all-files --show-diff-on-failure will install the package and run all the checks.

Tests

To run the tests for this module:

  1. ensure you have installed pytest, hypothesis, and any modules listed in the dev-dependencies section of the pyproject.toml file; (If you are using uv this will be picked up automatically.)
  2. 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.

Metadata

Release files for pytket-qujax 0.22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytket-qujax 0.22.0
File Interpreter ABI Platform Actions
pytket_qujax-0.22.0-py3-none-any.whl Python 3 none any Details for pytket_qujax-0.22.0-py3-none-any.whl

Release files / pytket_qujax-0.22.0-py3-none-any.whl

Download URL pytket_qujax-0.22.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a22d30034fe9bfc566576696a15976cc0d3fb5f86f2e84e88bcd7506ef19edac
BLAKE2b-256 checksum
How to use checksums
8aa5523f85830f38c2bdaa78e8341775ae00209765f0419d0f3281dbe46c7118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for pytket-qujax 0.22.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page