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 or 3.12.

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://tket.quantinuum.com/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://tket.quantinuum.com/api-docs/

To get started using pytket see the user manual.

For worked examples using TKET see our notebook examples.

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.29.1-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.29.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.1-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.29.1-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.29.1-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.29.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.1-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.29.1-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.29.1-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.29.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.1-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.29.1-cp310-cp310-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.29.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a18c2646906c5c69638dda656d04ab36df293afc072f0468d1bda4ad3208c948
MD5 8b25d840f7e282e859cc9fdf8c50dc3b
BLAKE2b-256 e4dd03d132413400db16ab6488d24e87d33e12940a7f2169f800127b962ac873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f75b9fbbc9e9c0955250792f703d49e1e7af1e41a609c430767223f408d1eefe
MD5 b5065b9e552d4ad29e68b753c3308564
BLAKE2b-256 1ff964faec47d9c41b627c32f07e6727e3cf0a8f45ddb162fcb9702431fda713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c8f09a666b49c210c707f704bb4fe527187dd070427dcbe68a03d0cbdf8be990
MD5 0c992c027e877c87e07e01a78c640656
BLAKE2b-256 7b88ca9235a27e85966ce11f6af4ba5a86afc540407873dbbe6f34bdf1d74da1

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f870470a4b73ed55f7a25168f24b3688b77c53d5f716db7fdfab8241847d2b7b
MD5 37ecc73da1e98e256877cc94efece85a
BLAKE2b-256 816bba31ff9a976b571f5ffb04ed74565ad315987caf42a4b6c4b33c324e880b

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 9eca8c495559c9718aec956ecca61f09f93491a79a93005c6d856adc350dbb25
MD5 9c2cb6959db0c0e2c809cae7000b610e
BLAKE2b-256 ff8b764cf17aff40f808a0b39880e2272c91c331985992f96a64b4e8c358d24b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.29.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 43b177d92d889afc1c683251952b809aaf6c4b6fea9de8b58a4c6e17b92b407f
MD5 1632700060fa70fcbd4b9fd927b0ca92
BLAKE2b-256 a4d7208cd31b6a2dd430aecf5c70e949bb1022deb558531a2041662bdb977880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd4af12c56e77361b14d48f0e4167693515b263e00e39e26c8f0cccb4d77f20f
MD5 6172ae6ff2475e00d4af09bf528c02ba
BLAKE2b-256 83c32102167034911caf8e635c843a4303ead40d0941ce6a117d3911a3d784c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1deb1844b26571ccc02d9336e7a9133987ea0df4c0246435833674710e8c4a9a
MD5 e3920cf23289144e6a4d7d9035456a3a
BLAKE2b-256 75abb1af3497194f69dfb4af32944afa1f07c278d1b19d73c5a2f44b8c9badbf

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2ff35948cdcefcdf8bd8b51ca8fe1502a38b693756ef9a4aaab934b8637192f5
MD5 93d29af1979e0c12f96ff60a09705186
BLAKE2b-256 efc26270ddfb567fe8d44da3cb27c826346ef423312bae85756ec5c38686a8e8

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a6ebe311de9a131b327bc48b13f708767fbcdf48964dab90329ed88deb5d699f
MD5 c3596a1fca96ae526858bb8b54db033f
BLAKE2b-256 e3e1fe3267007cdf366ab33b2f52456873681e17b5cdb37dcac1b80e71324bb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.29.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 34e5c00d656c247e89dd57aa80718465c4f6c23c2c2597233be0e2ffcef2cb7a
MD5 23f3216362f2bece69ae2bf36dc3afe8
BLAKE2b-256 88b8175ae42408d696055800beaebd307e962af6190d18ef17829f63490e05e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 286d22a39652928a98f781df46e9c9a044c906f1ad5cd17f431b3013da2d6c05
MD5 0725e962ac9c7ec993f3bf6f52759b3f
BLAKE2b-256 aed7d312b5ce40f0fb3c3ef6f5eebafd8a5085e22cef9d47a84342bac312de8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ca2d602372684caab90c39f2d971c9d414bed9419fd7b6573326b50d88de98f8
MD5 38c053a37316759db676f141033511e4
BLAKE2b-256 558d2f9cf3a8aa5723ead3449a0ceb59ad829849c6e60f389d987053e2321d56

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0745e22400398b7a10446f06b5c1d5a17a1a3922a560423cb8f019e9b09fc239
MD5 e7d999b83a8703587ba2f7c6687410ea
BLAKE2b-256 7b45fd2ee016a4f62105711b75e51ed13172bcf5964a84f1962c21b13b2ee11b

See more details on using hashes here.

File details

Details for the file pytket-1.29.1-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3901d3cacdaa515752b40e78d8497e52209c795ea30c0f8e7d1348835cb9af4e
MD5 c2e41fd1399a4b4da75e5a5bfd3688c3
BLAKE2b-256 afba15aa469f6166b9fdb6c8cfaf986d47b0b60a498227c2b46fe7ae69485b05

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