Skip to main content

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

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

Built Distributions

pytket-1.34.0-cp313-cp313-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.13 Windows x86-64

pytket-1.34.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.34.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.34.0-cp313-cp313-macosx_13_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.13 macOS 13.0+ x86-64

pytket-1.34.0-cp313-cp313-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.13 macOS 13.0+ ARM64

pytket-1.34.0-cp312-cp312-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.34.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.34.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.34.0-cp312-cp312-macosx_13_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

pytket-1.34.0-cp312-cp312-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

pytket-1.34.0-cp311-cp311-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.34.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.34.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.34.0-cp311-cp311-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

pytket-1.34.0-cp311-cp311-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

pytket-1.34.0-cp310-cp310-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.34.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.34.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.34.0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

pytket-1.34.0-cp310-cp310-macosx_13_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

File details

Details for the file pytket-1.34.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.34.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 8.5 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

Hashes for pytket-1.34.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9fa8cffdcedcd76e1f2d6bf8701e67580f786ee9a9dde15ec7b0782b37e3eb19
MD5 95ae08997ae71de610bc16cd175a411b
BLAKE2b-256 431ed814b92fd11258a13b939cf2cf812d8937f0d1b9cd0b41fd41e841d46229

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3d902d1e15450afa5b7c2967d90cd2596a6d81d920c101d61c636c9e1e3a08c
MD5 feb7c94edc925963c64895ce87217e06
BLAKE2b-256 150cbd4ac3eff58af7e1953d3f1b011f8bdc9fa0150ce82b0d4368a878518ab8

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 877a682629366c3385bed538a3d6d6d99672af493fce6cc47b71eaf1c4ddc225
MD5 754e0061141a52d7e0d765b7e5b82d76
BLAKE2b-256 7ce1850cb1988abdaf9ce75e48656658449953bb0af41ab62f47437770d553d2

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0eb13928c15c3da1911b9992e728d3c341bf22d3c6df7dd371b3ea92831de581
MD5 c8dd783791629523c17aedc63f0fedca
BLAKE2b-256 e37b70237cdb0cfbda1f31fcd8dae6a4da635071b8a9e071dcfcbb5d15b68835

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bc875f83f2645e99e582f5603ea98df02e4cb8d5afafb6bda0e229c15b61dcad
MD5 ad6119b55aa6e2e596abba9aa49e857e
BLAKE2b-256 1688c00c24784b4af6b5fcbee7a1b67d8a0f0c2d63e6e167d2f1e70bd3f25f0d

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.34.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.5 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

Hashes for pytket-1.34.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cf0266e4b6694cf93fa530a519cfad034775f8d8b9f965008875260e3020e97f
MD5 af8800008cd69e1955b10ba505e0abf4
BLAKE2b-256 1d8b28146b9dc9080445bfc884a9dfc87c2b6ef27e2853db094612dc6d5f55d6

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 16a294007b459499575f4816e61ba29f68bfab68bafa3ea63ee1beca3ce5eecc
MD5 7ce1d1585253f90d6638f4e2dcfadb4e
BLAKE2b-256 8a3c6368d4936a8d3b7723bc7ff8dc283b384ef9e194d219bc2c96ce661b76cc

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bbe5fbc8534c5bd79c32c7ef0cb9ee91a82b177e804fdc27114fcc78968bc6dc
MD5 fc6019cc3cd21789ad82d412bef05537
BLAKE2b-256 116d359636c558c885900ae654b47250b4288f53de114772283abc11460648a3

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 05265b28cccca21bcc8556d3a03b689bf6e00153a4abaf2908e285c131fa14ba
MD5 44045f9ae6a236fc2fda0a8438d8b76c
BLAKE2b-256 131b899079c4c090173d73c74cf1e6156898799223dd03954860ae93481c2479

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 57174d85482beaaa20b8eafc6dc50f64763ecef1a3d7d8f44e96125923687179
MD5 c8718ede29fc5e02bac038d185f46044
BLAKE2b-256 98d4d1364cd7e09e9c928bb4cddfa4b85c25980289f490e81c599e6d630c5078

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.34.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.5 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

Hashes for pytket-1.34.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ba3c55112d5e43b9938e7b70babec35ab47edb760950f16c38913593bdaac01
MD5 cd0c9cba8f80935579c919d576273e1c
BLAKE2b-256 9706bcbb4d5219cce86fe34d455be31b0798d037a4a6db95bf21f067ae0d9172

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b66a13aa45ea585c8b33e204346a6411da1c1cfb34977421004b2ac75f102864
MD5 c61443d8b5719102adfd3a2056b58c36
BLAKE2b-256 b51d43b4d46d53b7615f6161aa8dca31089e89a5ed5a76f7747ba5d61b6710b7

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 89f12ec14a6709ef8d817b9b599b3a70786614b1cf849b5f2a649178e72679df
MD5 91b38099daabef4190c722bab9e6002a
BLAKE2b-256 0ccd8f1288bfb9b9f4f2885a87cccf7256b10c7fd0c6fe634b2ef6cd2d12a520

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7473dee634498c5605b85b20a0c24f80efdc71e74a7fbeeed955a42a597eda20
MD5 6a25832898bcf3c087b8833668641447
BLAKE2b-256 7842ba8f0a3a404f85764ea59c80fa5d34280ea378367ece1cc350569a35bd9d

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3975f7d6b3f7daeb40c4354b675ba216310dd6b8fe567629609a703ce8cba8c7
MD5 6540802c398164a6cb0bb9d2f193a4e8
BLAKE2b-256 7e12528b423705b2d3ee583f36031c52d90fa8b10a6f047f9931b83c861a29df

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-1.34.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.5 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

Hashes for pytket-1.34.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a532bc4d9aa164fca12f3a1b5261509ee1b0e516510c05ec88a3fcaafbfdfd29
MD5 952249454a846e5dc51396dc19b7f260
BLAKE2b-256 87de6d712fc99c9f5564ed2499af48ddadf39ef802019693707b3df862e3cd2a

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cc9bc2b6f99c3120d70f3114a06b60ffe253e03a591040e7f9f5a34304933c3d
MD5 0081580ab339e4abf7ad1cb13cc0d047
BLAKE2b-256 f39e4c527c4e77cba75be3a0d2c03e121e8f6cf3178fa3a38f16239778e8ff5f

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a3bdd7c7a2d5fdb3e51fc9f1aec2e8a3ed6eb1a03659bd747c9c5cf26c382477
MD5 25d754bef34c44fb01e01a98cf6031b9
BLAKE2b-256 4b3a5dcdb53911446404c436cf739115ac03d897c436952f3588007e8bd5aa20

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 11efe662fef45d5a2d8a0a936413511a41ef8bf856683972392ccd986ccbc7d7
MD5 509d761f8838b54956c09d8e64bf5efd
BLAKE2b-256 bdd7cc0b06c1ca20376b28aed46de5ead6ab0770a94d5489c788d2f96eb42839

See more details on using hashes here.

File details

Details for the file pytket-1.34.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2a3486168421a644b36295d3f0e69a458a347c012cb58586538a681c1a65181c
MD5 78ac0b923d1d128d745730f4660d448e
BLAKE2b-256 c08cf5daade505184e6624940a72c22dadca676c20c50c1bba905f7b7dee2afb

See more details on using hashes here.

Supported by

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