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+.

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.html.

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-2.17.0-cp312-abi3-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.12+Windows x86-64

pytket-2.17.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.17.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.17.0-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.17.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

pytket-2.17.0-cp311-cp311-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.17.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.17.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.17.0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.17.0-cp311-cp311-macosx_14_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

pytket-2.17.0-cp310-cp310-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.17.0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.17.0-cp310-cp310-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file pytket-2.17.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.17.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytket-2.17.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2e9152841dfa153329267460696dcfc0b864a05c4ed2fbb1c27f3005b06fd7fa
MD5 88fa717d6b1f4dd07a24ce0296280f89
BLAKE2b-256 004253130fa80c4c64b12af55a1651a3990058c05004dafb746ad549015ce13e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp312-abi3-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32d5ba1cc4ac905c74cb8a224ed11285e66ba83a168d4a58b8e38b4d94cdd02b
MD5 692be0e40c0aef209218c5472a68fd89
BLAKE2b-256 66ca3acfd76dd22785b9084fe8e8ebd9aeadb44c5829fdf25fe14eb3c7071baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8d53f2d11542f5b65b89dc257a386d57407502395106df248fe0201e633d92e5
MD5 522a6dabd90c07525b57bad7d8909a12
BLAKE2b-256 289a1465a6b347e1c9c8ff918d0375b9eb7d804e2027fe344580c9c1056c6e97

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 8759841f63dfb07abc73f7031172ad8b2b0160f0f1eface0ce2b6baded2362f9
MD5 c407d53dda6b596b2e9038fb4b8bce9c
BLAKE2b-256 a58f0060f7513b7e3ca18f29c3b8ef6563c4767563b7e9edc6313b21315f4114

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp312-abi3-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fb81ede31753f357ed5e154d5ab015d1c6c807944ce0dccd37f57dce26919f7f
MD5 12f2bd657c83b543e303838dd2d3787e
BLAKE2b-256 d2663a858aa63f793ccd112b0cf813137abdde0d6d8052a6c69f960b2eadc561

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp312-abi3-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pytket-2.17.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytket-2.17.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45e33192717dd9b36490b5848969c630a02651eda880bd71e6145e73a0422070
MD5 9615734f78e03647058abb406fabdf43
BLAKE2b-256 236f9477d3ae0561e5ed9b8cbe7907a833f3f64202747fd49aaadc3a3bb0d98e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pytket-2.17.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6783c2f9f207fe00b0d0ae1f8683abc5c1647b532f7a07886c6f14f6153e4fb
MD5 0246bcc76f833b1ee7f50704df161e72
BLAKE2b-256 b1b0f095c133849df2addcbade418f71935b7fb3ccac8291abc2c52da597791e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dc4ff06120a666b5606c8ebaf957fd425469e516f642c0fb13ce87135a164ca5
MD5 5520307cc5eb6a5c29f08fe2975d8ad1
BLAKE2b-256 6373f248f88a9219b6b293b8ac637457dcfb74aab0a3ce3a9d333c687f056a04

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 71d51378c455cce2ffd92ba1a4601436bf2f5dcba0c5cafb2bb88b407e6d215a
MD5 e1bab4da8b8111968f037b143617bc42
BLAKE2b-256 66a1ca9c778955ce97690ad78f094de26e5e46b335f9d9701408f0539b0901c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp311-cp311-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e110dcd9d23532e9aa8e1970d5851ede63574581995eb18de9b4498efe41495b
MD5 e6db95dc9a43191bf38849a4b8b4c7a5
BLAKE2b-256 4505c4c5db78bfc6ddb223deab80b26fb0f2ac0b47909faef1003b51d904edc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pytket-2.17.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytket-2.17.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9bec9a70e8f4c4e3604d3106f618c0bde88e8ab38163fb2ed5b018f574b05c7
MD5 a7697bb3abb2e3750537b25cf4f3c05e
BLAKE2b-256 6d111315c8143adc4b3459fa6748faaf20b29fd1f3e92b163e4198de5141560c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pytket-2.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4b9ee299532014bf1e7472c44eeca28f9cd9096401deb73097c487d8e484664
MD5 7e8559921a9fad8ce3cc35de0e89c8c9
BLAKE2b-256 6c99a42dd943822cb4ac323504e8c266c3225976b71e35a2e502b83bd5fbd5e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 620cc5874f914d002bd70fe2ea782678b4a4d9073e60769062129ea139f57922
MD5 e5960327930d8547be487c820db0d07b
BLAKE2b-256 d04ce91dfa91dfdab41f4027cfc938232beb53a37dc949eaf0a2f8313dfb413e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 e56fd92d1e89572e80558ec1c575081b8dccf73fc438434d07acb1d2fac9408f
MD5 10fb4a404693f07ea248c0d4b5fadce0
BLAKE2b-256 0580388a949bba59c6ec356c1a56b79628668679d94ed71cbc1ff3196522b214

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp310-cp310-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.17.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.17.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d716e9d64a158a800c72e59de6cb0f68e0369bf2e5b63ad2e8fe1725a30620f3
MD5 90bb7ab25c4fb8763dd678a69bee6271
BLAKE2b-256 f0ed93471e655cc79040c357ebb8658d58383c6b36022447a91ef9aacf897a1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.17.0-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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