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

If you're not sure about the file name format, learn more about wheel file names.

pytket-1.38.0-cp313-cp313-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.13Windows x86-64

pytket-1.38.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-1.38.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

pytket-1.38.0-cp313-cp313-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

pytket-1.38.0-cp312-cp312-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.12Windows x86-64

pytket-1.38.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-1.38.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

pytket-1.38.0-cp312-cp312-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

pytket-1.38.0-cp311-cp311-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.38.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-1.38.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

pytket-1.38.0-cp311-cp311-macosx_13_0_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-1.38.0-cp310-cp310-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.38.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-1.38.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.8 MB view details)

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

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

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-1.38.0-cp310-cp310-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.38.0-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/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.38.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f8a504ab49a5b08798e513ebe63a7dd03dc74f2397615a8cff8d71f0b569d315
MD5 33e1811805c388bb3ab6fb6749168fce
BLAKE2b-256 c75300674c328c07affd579f8d366593df17548766b8ce8a38c273d01ba27245

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 69a64955e9dbb4c6db9f6381036529bab9096b8fa83e21096ab02d6f5c0f54d8
MD5 06dcd069bdf21a0d7f8163b3871b3d2d
BLAKE2b-256 8fbd3f6799cbeb81e73a23a96701a0df59121efc4d8d904ee0d7007506f806b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d61044fa621e60a919face0665e2d8fccc54c95b8b846db86efaa47bd2595b2
MD5 087c78ab8bbff317efa9b6f6bb1d56f5
BLAKE2b-256 209b5388557f330e05b1fca04386e205d5a014dd7ee5822423c0ecf3c4f1512b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d482f5af4e7ff230ba24824141561adff2abb0289d352fa236fa6168d1e8f5a0
MD5 002479955964b163ea9d6525ccde1412
BLAKE2b-256 3fc4785b8d080a1fcadc61e0f80f11420b3c217e826a842035defbfb0788f896

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b790ead364a4dbddfd9bdd01d553859c5699edc6ff90266c5a71f842a7ce3f09
MD5 29c3fc96a14a992cd05cfb6f4660f1fa
BLAKE2b-256 be92d38fd96b08a48feb273e385dbc0b3a5a8e53eb687834defe70b63346ecf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0-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/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.38.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae501d405fc0dcbc87da784936595d846443f791b63d31934109eef6e07c8c5b
MD5 692c1bd737b0266374402c5eb1762a8e
BLAKE2b-256 1694be29e420cfa10871d11117a98a092528395ebf354a1e6a410209d801a6bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb6606be960ae93a5e84f09e1d1dd7bf36fb6c597eceba083bcd19dda232de53
MD5 0070cea3db73bd6d717175a12f649f2c
BLAKE2b-256 2e723510501dd5673011a20edb6c2ca6a39744e20d0568e7308259c45993f6ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 63bcd109145a29675598b3ef0fa282e831f8cabfadcb4a26b504c023cdae83b0
MD5 fe8cb1f496c062c2af9aeb58b15a7f7b
BLAKE2b-256 2088c69f75db991604268c251e13d342e8770f1cfacf46462e57d8abbac942ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7e366922cfbe93cdbb68a26d38a65b22587788c2427a47744aac41f47c80219b
MD5 773cd43b64bac3404bbea8842a2c9dc0
BLAKE2b-256 75dfe4b7e254b11f45c79349afde2d4b2abd0f60125557a3d48be9abb5e2bb3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 90099836a5cac409eec2ef9ff45742b49a45ddc9065aadbf5980300ef371d1a0
MD5 633775f194e0177dbc8d62f4cf39bc72
BLAKE2b-256 610ee3c78ebe138511a18960cf00bc7aad6a894a829c68bfa26766ac53a2ad05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0-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/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.38.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 365f9759fbc37caa8c9974aa19458a79a86da6e95702eb61049f267c8aca943d
MD5 28397a5befda7ff3b996ee4631346e98
BLAKE2b-256 dda0adad0d7fcec0af4e684fbbf5f79c38f0a910112782ac0926d31725ab66d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fea8b0c3170d75f41846901af2fcdd52fc9f8e9c3c02d3cd51ee229be8b7ecdf
MD5 0e99ae3f75166555540030fdf5938102
BLAKE2b-256 0b750991b5ce657a8e9a0b2ad5f26542f26b2b4148817c3ee3ee59070520723c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4101aa0c090c4959f7dde6b2a11c072768d9141cb139bd9fa1d021e637836233
MD5 6e8c173823e836c49b4adeac02e3902d
BLAKE2b-256 538429ada05965c216d28768c78217d4b12ab800ea77df2dd4f0e7a5f1fcd768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a85cbab852cd08c606453eea9111e7211d77af7882722b063ccb70abffd94452
MD5 b23a71c988485003c89c73b5af5224f3
BLAKE2b-256 df3ee276d87b9cf6591fbccf6236f0b93a65660f162a1ba536f0edbd50de7fab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 df9d896a7533bd49fdce8775bd8e78971feb0304b382c299a6b823ed338b8eba
MD5 801b1505e67c20aadb38af9d021d6eae
BLAKE2b-256 cb812c7e481fdd49fc421a9eac17f94224c16e7816b5c2ff1af69fe975b65454

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0-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/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.38.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b75110fb49df355aadcc729360206817fad4f15295fb89dde44804a7ae6a6b14
MD5 1d61aeb89021167695a7bba069e4e3a5
BLAKE2b-256 be697959bb05b93ce1919c2fd9a8a278a220d7f6e44c5dc4926ed71008198a3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 941e7ac175d05e62006381c31810f8775ca821f490ee6ccf7cb76fd27e56ccf7
MD5 d898b41452422af3a1736a1b84661f68
BLAKE2b-256 741f4054edecb15c0779eb4f5b551eb4cca51eac267dac5533682340858af4c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3729c090fc931b7938f995573651014b48ef3f832f592a1b6058357445580a88
MD5 8ebeea61660b27596be7f6bd93388d56
BLAKE2b-256 93f5db64a4a140a66a413c676cb078733128a377f9e3259b8c9cb53128d7ad76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7febba4c9b3f88de58e941653eae72fa2aff094eca89bf4859900dca7b31bbed
MD5 5eab2898f59bffd0c07e40f5d930a3e6
BLAKE2b-256 3d1b793827e1453904d6538b9ca3467464be90b185ba422bb46e1d6f8f59ebe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 82d8d9b909eac24d2b5e098901548b3af9d382d6e7c1834cf33643d95d784e8d
MD5 65e22735a53b5202f94d36f602561f46
BLAKE2b-256 31484ed68df7450c18da7083953d94a979b6f4e7a9c439547ddec27771504342

See more details on using hashes here.

Supported by

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