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.0rc0-cp313-cp313-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.13Windows x86-64

pytket-1.38.0rc0-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.0rc0-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.0rc0-cp313-cp313-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pytket-1.38.0rc0-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.0rc0-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.0rc0-cp312-cp312-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-1.38.0rc0-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.0rc0-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.0rc0-cp311-cp311-macosx_13_0_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.38.0rc0-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.0rc0-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.0rc0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-1.38.0rc0-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.0rc0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.38.0rc0-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.0rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4576613bb2fa000615aececf7c581599bacf6427c559b3feff02c3a9c98a54f9
MD5 1773a3367cfea34ebc225723977eb81a
BLAKE2b-256 f933a61fa728f4181813a543d274c84584819b5d5824277559dcc4d40d2f9278

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f836e8bc3c207444943df17cdfc6f722d9b4ac05866a32a2f8bfb24d3ddddf79
MD5 c819957666825e3e86da5660e540e513
BLAKE2b-256 99900df372fe9a2d9242a3b0f3c9a04741e9c652867c861cbd223ec784a5b556

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cc07c18160c90e4ba2ca6773a42330d3c65839e058fc2e9e50ec14ca3e025cba
MD5 7872b34fae6744d77da63e935de46356
BLAKE2b-256 da1398fa2043975d7740e9ffad84ce10885ab47135ba4d82fc174184525b7a46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4d1535801076bcaaf082c7305405946df2e852d9872b138903c5be56fef26ea3
MD5 f9af4947716bbed5ee3c2eee2f4c8cc5
BLAKE2b-256 6270bc8d28eba823fd84c6c8fb9990b17373a463be56aec53cc94c2e3c32f4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e9837b26b5b88ef33ecaae78082b801a572f176b81e28a2589637e35d9a1d2cf
MD5 9bee81b2d7fafaec311c7ba6d34f638a
BLAKE2b-256 08ee7ce830a36e6b12c0b37776272951e3c50b2b3768b1f55d3f575d5b05e6a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0rc0-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.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fdb1d556ac4004ba1692b05994b12c5c0fafd160d2d3bac6fb3a26ffc9232eac
MD5 ae27524bbca713e629ec658a5beb1827
BLAKE2b-256 f2133887d52a2459b71467ed59e365222f86d5376bdaacb26cd81a7ab07b21d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a9fd9c7fb74097c65927583e8546945f37d604e3ee3b46024585d06978e7cb88
MD5 277e82157a82269c67d19e54397c5fc8
BLAKE2b-256 9bcf159276426434fe82fd6d5eaf4e9441c65bc1781939849ae16f7ebdac7bea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a2451b033b0cc0981e8210cd68f40901da6c0dcd26cfcd835819fb91e1267141
MD5 389eae3ab8a27760d98b8882753b2331
BLAKE2b-256 72e3bac750217805aca2a8e52ed3444e58aaec00caf765332bd740337fab3d2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bf1edb4a334b1cb634f3f9b61f965c6faed4fd197a39bfecefb4519329863ab8
MD5 737add8db3c4385c4e5ac11f084f1191
BLAKE2b-256 4582e009b9e4aeb4978a066b6bef9f75256243d6ee29703e6f1c1c38e87b6784

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 779affff14cb55335c991a8f149398c139b52ef1399deec0019ae989e5006b9f
MD5 14ca49561800d7824c28b4e62747778b
BLAKE2b-256 0524b94917a1308cbafbbc1034976b36426052e4e751515f5d572e5329192ad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0rc0-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.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6de63a4500e5df05fa0fc0c7a4259e65417034ca8efdbf7a9570f8231ff3faaf
MD5 c62a7a9f44f179e52f0af7ad74426069
BLAKE2b-256 e69d44148bdf363414273345cedd6a43dd0ede14f46c9808f9df64954d3a9d75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b33d3583beda22488002837619b13e0f3fa6dfe40b79ad1632846c5fae677f81
MD5 4cd5f7e8899e649534bd0dfc3f73d170
BLAKE2b-256 d4fd1174153980e32851ceb41fc4371ed7ddddc92ed5acb64a8fd8952add5752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cd7fc03a17ec39311495a5cbc4f419f78ad02606e8daf85d665b1e20bf75f9b
MD5 d4411a786a01d5fa763cf50b8a469c9c
BLAKE2b-256 7e7dab5387aec93b8eed8583b3271e740bb9de15d3f4b7ac797a0ec5f07600c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 87ed8c43f243bdbf8b887c22e70394c2f0338b0a2a8a9c1a9fb4f1183551efba
MD5 d5112add0df7fd60fb13ee4fa43d5eaf
BLAKE2b-256 e35116205590a5fa7030f9002f0477b2497ae921be4fc00e5fbc3e208da80aee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f60c3c136a605bd7895e91171a8bbccb136d59d6398ec802b0171b5d93dab5f4
MD5 2c497bac235b2750b6544716e1452dd2
BLAKE2b-256 a40db5998cfb1b27b427af7ee10816d802da28982eb60adafd5567527feb0aa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.38.0rc0-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.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed9f2afbf2068e05f16b2b6d000dd8773bbe30c5a1c685b09e6460aab4096c69
MD5 1722f29266e87f4a7329d1230ae55269
BLAKE2b-256 a5ee5ab7709ff55a3d51e3b64816bf50b2ba1fdecbeb19ea3a7c818e1dd286ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d9b1f4cdd2dc1423c36207c01e2d33f7867f35333c50daf9e6cb09064965e74c
MD5 b77b669450d769dbb64455180c52637d
BLAKE2b-256 5f38825d61fc0d4d712b69e4c08b5c0ed010be7e37082b032b935f4185a45827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 08d9aef9fa4bae5bd2b30f7349f4ad79861337a8f655776ab7dfcb13c0b1415e
MD5 ad90857cb06ed03104ef078e8c57b2c5
BLAKE2b-256 9bc5802188a6d4e40f919ef5792121c9ccea8171741612eba1967c77b3092064

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5b48cb81c855b37a0148d1c98ccfb2fd0aec5e0d300b412233cda5a00252faee
MD5 5b97d270e67912da41809ebf0ccc74ff
BLAKE2b-256 32130d1958ba79a527823e00806c19a91b5d05ede457b8904d0d20df58d91c9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.38.0rc0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8c219587c373b93ea6a82bdc0a7dfa51f3622d6526072dd7ee42543b907769fc
MD5 8b9463f502932c021e0d2d4fa42e23d7
BLAKE2b-256 6751356433d0c775b47642c40f22c991edfbee090f89702fdce5ca99f0d8e087

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