Pytket is a python module for interfacing with TKET, a quantum computing toolkit and optimising compiler developed by Quantinuum. In addition to pytket there are several pytket extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also allow circuit conversion between several widely used quantum software tools including qiskit, cirq and pennylane.
The source code for the TKET compiler can be found in this github repository.
Installation
Installation is supported for Linux, MacOS and Windows. Installation requires python 3.10+.
To install run the pip command:
pip install pytket
See Installation troubleshooting for help with installation.
To install the pytket extension modules add a hyphen and the extension name to the command:
pip install pytket-quantinuum
For a list of pytket extensions see this page: https://docs.quantinuum.com/tket/api-docs/extensions.html.
Warning. There is a known issue with installing pytket in a conda environment on MacOS: you may not be able to install versions more recent then 1.11.0. The only known remedy is to use an official Python distribution instead.
Documentation and Examples
API reference: https://docs.quantinuum.com/tket/api-docs/
To get started using pytket see the user guide.
Support and Discussion
For bugs and feature requests we recommend creating an issue on the github repository.
User support: tket-support@quantinuum.com
For discussion, join the public slack channel here.
There is also a pytket tag on quantum computing stack exchange.
Mailing list: join here.
Citation
If you wish to cite TKET in any academic publications, we generally recommend citing our software overview paper for most cases.
If your work is on the topic of specific compilation tasks, it may be more appropriate to cite one of our other papers:
- "On the qubit routing problem" for qubit placement (a.k.a. allocation) and routing (a.k.a. swap network insertion, connectivity solving). https://arxiv.org/abs/1902.08091 .
- "Phase Gadget Synthesis for Shallow Circuits" for representing exponentiated Pauli operators in the ZX calculus and their circuit decompositions. https://arxiv.org/abs/1906.01734 .
- "A Generic Compilation Strategy for the Unitary Coupled Cluster Ansatz" for sequencing of terms in Trotterisation and Pauli diagonalisation. https://arxiv.org/abs/2007.10515 .
Release files for pytket 2.18.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 110.9 MB
Release files / pytket-2.18.2-cp312-abi3-win_amd64.whl
| Download URL | pytket-2.18.2-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
75144387e01939aa8e95d10bf568baf00cc1eda868671daa5fc22cd418b02460
|
|
BLAKE2b-256 checksum How to use checksums |
53162eb54f4e158c3056286bd2c99f43c88aa15b9530c60fb1fe54f0c5992fb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytket-2.18.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f38f53bce9ad59056f458f5b6cb363d28b797e406523af7b93bedc6dbdb17f8c
|
|
BLAKE2b-256 checksum How to use checksums |
891c1b179d56e1cc9b9e4c248498a2230c61be14fa709f052cfc61c2f74d0066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | pytket-2.18.2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.7 MB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
762d035496c269642b6bac0fc27264fcb29f7fc791ddeb9478a6a56ea0460415
|
|
BLAKE2b-256 checksum How to use checksums |
555ffbeee907a6dcf24e117fae143a44d15cc50ad9e1b8c2c3a3b5140f2dbedc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp312-abi3-macosx_15_0_x86_64.whl
| Download URL | pytket-2.18.2-cp312-abi3-macosx_15_0_x86_64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.12 abi3 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
1d68fb00925b64d7701005d672c1ac64abed298677d994551f88e48626c38a54
|
|
BLAKE2b-256 checksum How to use checksums |
2843bbbe610b51f688e2f2347b25ca57983f20e9682ffb75f77e910eea6d6fe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp312-abi3-macosx_14_0_arm64.whl
| Download URL | pytket-2.18.2-cp312-abi3-macosx_14_0_arm64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.12 abi3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
182e0a5f531aa635352fce1307fa5e20afbef3ab26f6c5b75b1076578ab6e47e
|
|
BLAKE2b-256 checksum How to use checksums |
1d1bd20b25e9a470dd952806778e98d6b176b7e5b1828efd2f6529ecab3cd064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp311-cp311-win_amd64.whl
| Download URL | pytket-2.18.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
13a15ea22bd56b87474e36599a1dd1b22c40f1a0892a95a56459ee1095f3f0a5
|
|
BLAKE2b-256 checksum How to use checksums |
1de9efff1381f1320c51bd5247ed87fca742bd7ae99530bf20fc9f9231354b1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytket-2.18.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9c8caae5eb1d68ad2849ed4d5a5fa6268db33d2c463c79bed686d69dc1540f88
|
|
BLAKE2b-256 checksum How to use checksums |
6d8850effae73d94912ab42e0669db167d4717511f2f66ce1b84b63a2aea86cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | pytket-2.18.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
353a166484c2df0091495989e440e59d2e2e8c7f56323866490be6050210d23d
|
|
BLAKE2b-256 checksum How to use checksums |
27f98dd46fd49b39e682e8b4da40796dc5d205acd87a80373d9e52b489496017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp311-cp311-macosx_15_0_x86_64.whl
| Download URL | pytket-2.18.2-cp311-cp311-macosx_15_0_x86_64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.11 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
c387e0e389f2e2426218c62290c2414dde83e80a218897ddccd743e63cd038a8
|
|
BLAKE2b-256 checksum How to use checksums |
a9b52d9ed14a3e61c0ddd8f4a12dc5f121c539db579f4b969e580ddecac3e6be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | pytket-2.18.2-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e7e07172665e1196960c8275afe201712c41925fcfad3674c0e2059eed174cc5
|
|
BLAKE2b-256 checksum How to use checksums |
3c172ed845196e2fbb698281e3588da0f042e0b2b88f2fb2f625378d67785086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp310-cp310-win_amd64.whl
| Download URL | pytket-2.18.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
764701836be2785117cdbc75b5e00309cb352614300a4dfacca8be18ff4aca0a
|
|
BLAKE2b-256 checksum How to use checksums |
b41a09ec1ac1ceab88362d8ce0c531f650c9665409cf0296683b7255a524e44f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pytket-2.18.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1ea74a9c3b15a88b6d0ae8155f0f90c9ea767ebda77b21999a74b034fd56894a
|
|
BLAKE2b-256 checksum How to use checksums |
1c688a03201e9c254980526003005009110232e1bb9845d425e6f3d4d8484152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | pytket-2.18.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
0013c4a7d2f4faa8b9d63443b31ac9ebf1718c00796ed1fda132bf9121ac94a1
|
|
BLAKE2b-256 checksum How to use checksums |
526345c2a70ded1d169e9b2e38508a8a4f8ac27412479e87addab9893ac49fad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp310-cp310-macosx_15_0_x86_64.whl
| Download URL | pytket-2.18.2-cp310-cp310-macosx_15_0_x86_64.whl |
|---|---|
| Size | 6.4 MB |
| Tags | CPython 3.10 macOS 15.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
a5db01f4d5bafad8f8e775c4ecd4b4bfc94ea12a68e4b4d8bba3753f38fc86a1
|
|
BLAKE2b-256 checksum How to use checksums |
cb33a4b4ec8f7270b5e9ee58b3684d8ef956d2e48a179ae252e1877dc30ad138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / pytket-2.18.2-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | pytket-2.18.2-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
46caf0dae19859fe79ec703d0a7bf4de57a0a9b198024f04a44e82748eaf960a
|
|
BLAKE2b-256 checksum How to use checksums |
932f9cbdf6fcf39147234e5127c90ff43944e7f0ef6d183c93b818bbb9be396c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log