Quantum computing toolkit and interface to the TKET compiler
Project description
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, 3.11, 3.12 or 3.13.
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.
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file pytket-1.35.0rc2-cp313-cp313-win_amd64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78aae9a9fec9eaf5deefbedd05ce3661cf90585f0c72bb215343720906638a9 |
|
MD5 | c66b87e56b0b4bbd85c097e2c3734468 |
|
BLAKE2b-256 | 8ad8a369b527d154638471f0376f019c81e230fb17f43f23962773d14e329279 |
File details
Details for the file pytket-1.35.0rc2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab8113b08e6d9c2c54520075de10b829ab836fddef04b32e5ac551f0a46a4c8 |
|
MD5 | af841a46ae716f9d1dc25e57a86e0e01 |
|
BLAKE2b-256 | 601422f805bf8e982efd9713062927a32b37b1ceaa0abd3a26eb863ebd7f1e22 |
File details
Details for the file pytket-1.35.0rc2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b372a41e8ab3cd31ae42ce53314207274abbf25a9239cce203dbc728c15fcae |
|
MD5 | 3f9992a977509606bb6bdd9034660a0e |
|
BLAKE2b-256 | 72f1cbb864e1ef838ffa2fc648dd2fbbf0783f1c9480f9054f2f1ef48a7b3aa5 |
File details
Details for the file pytket-1.35.0rc2-cp313-cp313-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp313-cp313-macosx_13_0_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.13, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2d14f319edd115a6d605d88a98eab05bc93ee88580e8d44e5264a0db18e2c92 |
|
MD5 | 02670932f368d4e9eaf8a7340e7ed31a |
|
BLAKE2b-256 | 4ebfcaf3d11c6d7d40f695179df84786808e0c2bad56ddce46e6e1110c34ee45 |
File details
Details for the file pytket-1.35.0rc2-cp313-cp313-macosx_13_0_arm64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp313-cp313-macosx_13_0_arm64.whl
- Upload date:
- Size: 6.3 MB
- Tags: CPython 3.13, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88583d1b051d21588b3668ec5b5475ed47074ca202aab004ff9096dc6645e8ad |
|
MD5 | a8ef187e9023d365e8ee5ef772a8b80f |
|
BLAKE2b-256 | 4f1c75ce19e489a55f986b8c846c49e9ad6d5abf94cd02dde4ac9c63da24d76c |
File details
Details for the file pytket-1.35.0rc2-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61f50271383029f933bd87a4966592af7844122974d56d2e93a149f5ff77a07 |
|
MD5 | 48887c907ce155e91d2567a9d38d5129 |
|
BLAKE2b-256 | 91b3c4c8b8cf374fca7aa20adb24e5c00705cf49c12ea1f592f0bfcc46327cf6 |
File details
Details for the file pytket-1.35.0rc2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9af9248c55ba295122b937ed6e09ae042520eda55715b51d1df0a588b7bce6 |
|
MD5 | c41fc52ad3bc9682dcb667374eb5e411 |
|
BLAKE2b-256 | 75b4193f9898f28ebd9e8b6ae60ad9c8af6045f5e2d8a5b1fb1e921426b203fa |
File details
Details for the file pytket-1.35.0rc2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d008d42e138b0df5f4739ca25a6671588ecf59ffeaff4911f49f1ceab3b9bf |
|
MD5 | 08b6a595398953d8687e5f4534d427ac |
|
BLAKE2b-256 | be060343aa011abcad7c4be5357e60b7780b3cea6ebf954d44e467dbf5594244 |
File details
Details for the file pytket-1.35.0rc2-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502d32e1b079e8770b0fcf07c492c71b2af1fc177fb638b30545466a4b6f86ba |
|
MD5 | d8a29fa7dc03bdbeccc95ab411a1a35f |
|
BLAKE2b-256 | 1f25728c06bd0e78b609734fa48bea80f49f64c96fc049b012da14cf4337555e |
File details
Details for the file pytket-1.35.0rc2-cp312-cp312-macosx_13_0_arm64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp312-cp312-macosx_13_0_arm64.whl
- Upload date:
- Size: 6.3 MB
- Tags: CPython 3.12, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21829c896768ab8851eac65eda952f8d192fb95512c804f560ac1a02569eeeff |
|
MD5 | 7031a9260a7dd28fe230e2d694845dce |
|
BLAKE2b-256 | 9658f5a0be3b800fb1720ba47c2d46c0feaeebe3b78fb4fa0fa51673df049688 |
File details
Details for the file pytket-1.35.0rc2-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc05ca620db6119f6e3d8d957c69fd671dc415cd114de2675dec2e4d0e2b7bb5 |
|
MD5 | 8952afa9ff7421b0c7e5772f42f23eec |
|
BLAKE2b-256 | eeccd80826f505c7e622778053769ae40bc29014b59bf3ff75d74d452582281b |
File details
Details for the file pytket-1.35.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c6cccbb9aa3e0bbbb370f079d694f5e72542728eb9e753c35915224749208b |
|
MD5 | 6b7ae3781a53f7be9fd0902f0e7ce9c6 |
|
BLAKE2b-256 | 7c128201c5048a4b6d43fbb4d8582c7a6ebfa7330657d83b9874e88b4fe531aa |
File details
Details for the file pytket-1.35.0rc2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04295b7d2b47734feb26726f49dbb4e5ac880603cf5b05cdbd8577226aa2dbb3 |
|
MD5 | ac58dd4b72375cea1a7a5021556338c7 |
|
BLAKE2b-256 | 6e4d0b18d48b7acf6b5514cf67ce98794e5cceabb79cba4d48a38ab0698c3d39 |
File details
Details for the file pytket-1.35.0rc2-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 6.8 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc6a23dcd2fd065165c49e867b4d841797f8beee2d18346656d0c2078cb9d318 |
|
MD5 | a4da08a70c67dfa7dc062c357fb1b4ca |
|
BLAKE2b-256 | 3e222d34920b99d9aece03bbcbf176ffa838383f3678fbccf020d1d364cbd7ca |
File details
Details for the file pytket-1.35.0rc2-cp311-cp311-macosx_13_0_arm64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp311-cp311-macosx_13_0_arm64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.11, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf07ce290c268adc7f09544aa32991e605fcc3f86b45d96721073a33666a1670 |
|
MD5 | 4227c9f219288a42b341a9c99d7ec9d2 |
|
BLAKE2b-256 | 3b4d3bcd59e73f592e4f5bc46e217c0e782661f53ae7ac72457bdc08de05d9e8 |
File details
Details for the file pytket-1.35.0rc2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e83e66ca650cb49211edcbd28033d352d7d43047fc233a15daf7ed40fed8dc9 |
|
MD5 | 78966faaa1971c0df0eb61be5cd4bc69 |
|
BLAKE2b-256 | 6f85d0825a1c50bd4dd1f7baa4e9ea1a22bf5c4bf38785977dcd3ca498dff799 |
File details
Details for the file pytket-1.35.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c589a17519568e07c11e5ff273239971fa1becbe120265540b2c7693f91555 |
|
MD5 | 4447e876ad4cd6370280fb72b01ff77e |
|
BLAKE2b-256 | d49a85a2c6ee9028b81551866a55321c72a27d80c8aeaf33b4efbdc6168a9ee2 |
File details
Details for the file pytket-1.35.0rc2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252f06fa6890f7e54dbf615f932e6cb2686947d2a51a3343a7b6f69c011ca3b6 |
|
MD5 | 5405efcbf5d790ad589e851b76d646c6 |
|
BLAKE2b-256 | df5ff3a7e028cb33ee12025efa7d1d69c801900c78c1e165617c6daa6ac4a704 |
File details
Details for the file pytket-1.35.0rc2-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 6.8 MB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0e707a8d588f1a3ab56c2488fb9ce737ce8c7801511fcb14269751c067babc5 |
|
MD5 | de55ed75db1fd6d38da8c077155bae06 |
|
BLAKE2b-256 | b41c053fef89f48a469d2cff4675bb25021a84e549ef45fa9fd0de4e50579e2d |
File details
Details for the file pytket-1.35.0rc2-cp310-cp310-macosx_13_0_arm64.whl
.
File metadata
- Download URL: pytket-1.35.0rc2-cp310-cp310-macosx_13_0_arm64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.10, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a49bce6b57a2f110a2ada31f0fe977a344fc0dac211b8aec25af5b502c601a |
|
MD5 | f1903bd016fbf20e90eea81f4701a9c2 |
|
BLAKE2b-256 | 1d2fdbad51d7796b1a3f637bd7d9f3024bc6a2474aaebcc1d67fea93a97309e2 |