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

Uploaded CPython 3.13 Windows x86-64

pytket-1.34.0rc0-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.0rc0-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.0rc0-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.0rc0-cp313-cp313-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.13 macOS 12.0+ ARM64

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

Uploaded CPython 3.12 Windows x86-64

pytket-1.34.0rc0-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.0rc0-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.0rc0-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.0rc0-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.34.0rc0-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.0rc0-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.0rc0-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.0rc0-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 macOS 13.0+ x86-64

pytket-1.34.0rc0-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.34.0rc0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9348edf5673073dd1970bec64a6d7615781c4d6ba7618dc6ce25ac7bf4e9398f
MD5 431b03cc06d5524dc811fa4cc1171613
BLAKE2b-256 0b2efe47fe0d6387a5309e7422b08e8df8030d50a6bce6f5bafadd416acfc646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b70817bdbd3c4c6a0bf3008fef978cf72c628ab3c67bf4f2e72cc8a610c385e
MD5 2442c381f356c7a960d54f4f31016288
BLAKE2b-256 09b323e5c98a6693c8233895d960ce6fff951bff18ec4bddb00c6b731c444319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 334e50631e98c7a30331d61ee188d64b5702b355e77749ca253deb1df0ecbf4d
MD5 801534c840977f1c16e31adcb1cbfc0d
BLAKE2b-256 c6bb5c08c8bd704c0a1d1f0adec159bb29f2fc9a086607a46a8327e4fe236456

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9ce862e86a9ab0342f7bccc483b9e8361b9f145c0d992477be85ea81448e71f2
MD5 f6dff3485bb30804c0a7d87828e78805
BLAKE2b-256 ba3b69968964d7bb07924cde96ed4071d2c48c9efe5a0ae2cde1840003022e81

See more details on using hashes here.

File details

Details for the file pytket-1.34.0rc0-cp313-cp313-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 196405aa67df010e175b3125f799dc65cf30f856ef49ecb5754eda1ea0887d96
MD5 11cb54da352ece498a08df8687dc0f9f
BLAKE2b-256 f7947c7d788c41f211141fd825e36c04163ebf4afb6a062b4104d70688028b69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1baf0ab83004347de91bf772ef08a5310775bcea879d87f91552cd4fc8ea207
MD5 a9eb4ea86de05215ee8a881848b5cad2
BLAKE2b-256 0c11daed1fed6a92a5882032171c25e29fa2a03da78d52adecedd73c85b048a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7fbeb90d4e27201303ce065d35ad75f388e35de7a456c18f54aae3307b619cd5
MD5 af110bc4b0d54724da7bb4641c9398c0
BLAKE2b-256 cf31234818221a4911645ed23e7980b5384d8161841ca5681f9fa7b93ef702ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d898e6a09c95b89e3d1363912587c1f7ef34299ed262fe9d6af329397f6e7ea9
MD5 91edc035c89696008d98a05b1830f7e6
BLAKE2b-256 418e22685839d4e88190dafc5bfdeb0a7e6de5a406c3175d8ded0110c09280c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c9021badd175d14beac1285d225ee5acae6281d639b7bf4c7d121eeb6ceafecd
MD5 8f214bb23596fd00d5ae5c59450894d3
BLAKE2b-256 76e93117909316c52032bdcd6f2f183417ebc966cbe0485826054344cb60adf5

See more details on using hashes here.

File details

Details for the file pytket-1.34.0rc0-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 bfe6b18a8ca01e634b39b3dd7199dccf9ce3d6783abe5a53998fbafa36729c88
MD5 c2907c7be1d466af729d53214c4e00a8
BLAKE2b-256 4ff08944473c2c6e2f3a218b0417d8b0acfc20e1b1b361643ac87b3e1a0220f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1af6982e954979f13a0d2e5b39ef77785bb4e984ae8ef1b588c8bfe41e829124
MD5 bf0ededa0e082ff7f735cfd68e5f7d0a
BLAKE2b-256 efcdd9da8caa941dc95a2e0a181b4852c79262c844852c90d8974fd30662b7de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4466f8b2abda0e7236b2ca191ce4f7a6e18b99b3b2c3ee074455b8050437122b
MD5 892e71a159b64beb526eb908bb7b15a2
BLAKE2b-256 43947bbae766875c07e995e580a139930a9e1e04ad51a97d1357bd21b14e9f18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9a27516a8796d47ba5e3b15045142d0a1e2b4e267603e3c7610bebc2bb3b0dc9
MD5 59df962b7582c02d86b7dd4191997d20
BLAKE2b-256 f956da91d1b332d1b8136ea8558e7eced29870543416f6c1fa828408cada07c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4eb67b0edcde257b90b6337e551fdfe7561e29db7ad0b23eb7958562cc7a1bc3
MD5 d4864c700dfd9e0efaeb4334436d427f
BLAKE2b-256 1288668920de256e087a43721920c7252f564dc70cd2256f6ae98442067d2ba0

See more details on using hashes here.

File details

Details for the file pytket-1.34.0rc0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d4307a1cfb18aa3e6299a8867a8481a450b618972835e61173053c8cf7aea3f1
MD5 e93dc8b65b5ca27db6f37aad1d7dd761
BLAKE2b-256 c61e4af1c3636df4a69c5c08f49a0510985b857c64593b8455d113ed09cda2f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bcc0573652eed378a49f01a46e2225af71a76a0c257f63ef1289dbf54c2c1fba
MD5 da9bb63fe72f44f8949fdc105e8b02d4
BLAKE2b-256 e3bdff6260aa3e308157212822fb94a5958aae13612a282b2bf87209a5c6e740

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb6269c228f7978dab05555d696eec45a2bbe0b58e57bef1a348979b8587cf03
MD5 4de47e392be73cd8d351b2143052dcf4
BLAKE2b-256 a9c9095b7e38cda51bb4592c91526bbff7fc11b7edd56ee7128990f8848f0a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6796840a6e9009ddd998c70f66820bc125e97a6dc484f1a0bb7f63f0ca3217ea
MD5 7271e981036de9f5ca1125509de819c2
BLAKE2b-256 eaaadc921a3794e4a6e770d2dd9e7a30380991ed4f3489445bd05cead70202ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5d2a5de05a707644439926f1f310a115cba2cb83dca05744902ab465f16b38b2
MD5 57000d6b4a3494bc288bb2146506aed2
BLAKE2b-256 fe3f33b67eaa95240ec39534efd1564b98e6b7d383617a5e893b3a59ce7077c4

See more details on using hashes here.

File details

Details for the file pytket-1.34.0rc0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.34.0rc0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 02addfdc40437e066d6e8de117cecb16fa4b596610a355725fde074cdffcd1f9
MD5 99232a3c06b6cc49013e06409a6682dd
BLAKE2b-256 a7b5684800137eeb8326b5b60a71e21a7cc85cc733304788ffc2551e9ab078ed

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