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

Uploaded CPython 3.12+Windows x86-64

pytket-2.10.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.10.2-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.10.2-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.10.2-cp312-abi3-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

pytket-2.10.2-cp311-cp311-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.10.2-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.10.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

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

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.10.2-cp311-cp311-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-2.10.2-cp310-cp310-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.10.2-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.10.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

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

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.10.2-cp310-cp310-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pytket-2.10.2-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3e4f0ea23017be423badd69a906c9554ede04895aa05bd3f8c3761b7b2154c9f
MD5 bea33586b8d7d21e58a6a5fe56b0a455
BLAKE2b-256 d4ccb3ae816d13d0864e6045637ed2b5c0a872a724416a9fb1ccad343815aafe

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 107950ab249272589f6493bd5af0e1c8b38e684644e8fbeab80b58219b6d3394
MD5 32d1ea53e4fd6517e68ba2f044b2d0e7
BLAKE2b-256 0bdf6e41d82e1e189e83a93b191d9e84dfd5686006d4e2980daed12aada7b0ec

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dc397207e39fb8b962009d650672501a3ed86ddd2bd0aff606cdd90b5239f5e6
MD5 d5b2b343f32ea0d5ebbfa3908dd2f27c
BLAKE2b-256 0077ba6b1425ed21ad2cf353ed3916d3fcadbee84cc48fbeed742a8d03bdcb14

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 4920168d6441ea31569dc2f5a877b9b81fa5d438f733eda92549b9b30b3035bb
MD5 3d9794b21fa0d93396169be3594a892a
BLAKE2b-256 2d250c0dd3f63ae1e5b507fa35fb74333f212b23d7030a21cbaa7a6d04695859

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 728d3dc112c08a535414fe05e66d32e819fd6c71692f09d1c857fc2decc6ea25
MD5 f9616e15684e17e06109d789175c5b60
BLAKE2b-256 f9beaf20780c210f161095925dab0310517345c478c1fbef23955c2041002e91

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.2-cp312-abi3-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.10.2-cp311-cp311-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-2.10.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f40c9355ed672457133718d24dd7d6c0a23382c4b34cab9bc29b9674a3ce33bb
MD5 438883e573ba83e10d39c695f1239116
BLAKE2b-256 d936969cd365042a02b1ee2af8f1977a73b0b8fe3710d8596a756e230589e84a

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e4005d17eabc957d1943fe8d4dc62fb7a19d2a656fae42b92753a16f190fd4b
MD5 6494b10484f91330a08604adff0b5f97
BLAKE2b-256 40f6078fefb3387efeb863bf02befb82b25fe3357591a278289c0c077120b1f9

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0955789c2e5a2a053aa1055c59da1789bd4ac9f1d85cd49e71c89bcba37da16c
MD5 56bc8d6efa7d6896118696456af0f006
BLAKE2b-256 64ecd8e5a775599a3e1fa4171d58dca0b9f44a8c14bc070f992c92878f0a4829

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 6c1062bc7a57104fe00e2c09d455185ebd456ae7c90e48f10b98cf668b9d2537
MD5 56a8a152d59a47be364a5ac7eaddedac
BLAKE2b-256 272630e02a364024124f40977cc19079fd3d471ea686b5237db2113999a9c9c1

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2fbe7a2ac89fb46a771f37a5a008cf79c7f2951cc1d5e79408d21217f58964e6
MD5 6146cc24dd218668d582fd4d3d7353bf
BLAKE2b-256 389f81c881fb3805b9eb1103b7aba5b0c50df9fd6154f2bd191e8b99142277dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.2-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.10.2-cp310-cp310-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-2.10.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a037d0fb41dc8ddb5c473916fda93e8c5ef22b13b6db390bcbeef8a0b7c7e4df
MD5 fc3f8fbd165b7f6d548622de3f046958
BLAKE2b-256 1f89b933c0a7b65c7b86f4f1d66154bcc9e3610aa58bced8afa971520ab5fa7a

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1015f4465ef7257110b482ab8fcdd03a7fd1ec69290e668543e95ee587672d67
MD5 049fa89bad3f355215b61b70572e1d0a
BLAKE2b-256 64c308cbef4cffb9b201e4e37fd0740966003b2a0a64b6a8ab481fbac8e62f06

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e07a55c921109b57966dbbe9a5fc437e7bb299f27d8cbe52ae248d0a20a291f
MD5 41eadbf1bc44be52f17fad9a0977dbcf
BLAKE2b-256 cbae63e2883f6c2a4ffec04e6c16e092f98b0baa0ccede9f91107e66215d31b8

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 48d494a6dac4a8c130f7f2f0a5b9f275e11d5ef6bbe928221d41f20a45106fd5
MD5 6b9f38eecff2ab1f36476bb2ed1641dc
BLAKE2b-256 546460b436beac4d415a13230f23eff0d5e5d05b3be7009c2fe4f264d091bbca

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.10.2-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.2-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e5776cad203b705917e58ff117d1d09772c06096db93642c30e21b268cfa79a0
MD5 567da516575ae52d6de4b773eecd900e
BLAKE2b-256 18d0a8415b4e91489be87c6041bcbb42b7bf1780f38f936df01d54768955078b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.2-cp310-cp310-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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