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

Uploaded CPython 3.12+Windows x86-64

pytket-2.10.3-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.3-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.3-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.3-cp312-abi3-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.10.3-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.3-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.3-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.10.3-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.3-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.3-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.10.3-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.3-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.10.3-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.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 918f55915989818ee595e4a5a05115a56c12dcf0eba57a330915acfd5300aa9e
MD5 6220fb00aaab4c53f2c6ccf08cda9b17
BLAKE2b-256 2fcdb6fb60082f90f764f65a846321f48f0a80ff96cdfafc477d5050fb344ef9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 543bf2c42bef7404fa9a91cb16b08094375ff2edc788921baec7f1cd2eae492e
MD5 e6d7197da339f27c7f0527311dfd8cd6
BLAKE2b-256 58ee64b6e950ca5cef7ce2906039aab763260aaac2fc6f7aa90424d0c38b12f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 15a4b7b16bb2ad2c91f685d5b9c27eef2b2ca8e708df1938e38a41dc732c2b97
MD5 5661e2497a3ae779da37870e065ed31a
BLAKE2b-256 5db7ff798b140f3c82d830e713f22fe8de898009b95314ff7e1d33c0e9e1260e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 82989f7bbb3f9bd1912e8696935cacfed3a63c0b5f5c54acbcd86609e772002d
MD5 e51ac4cd120cabd5fd92a98b0dc9dd71
BLAKE2b-256 b1661c3168a08af47df4393c06fa70084ed6834d6bd6db2ea67587d064eb0b64

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6da2fba0d600cbabc4e819c55f9a17f0e72e550f12ed922489ba9a6a44516da1
MD5 0964c8697e5787a59cee7ab8324c6fcd
BLAKE2b-256 b69ee6b882a6194d5ddf9cde54e6da85d119a29c1ac9472eb334de0b87886328

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-2.10.3-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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4491d19a34fc3f3a6a2f40a0b9452c26e4ffcb2e9947f908c891e6dd69e6976e
MD5 20b39963b1f0cb7fd7e19a829bf5df68
BLAKE2b-256 51328d32bf042c197fb2e2f8164f48a5aae3244a7e589dfcc6e911aee916d1b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c1eaf292e0930c3fc71cad44457fb78b80f45da43557b81e6eb98be198311799
MD5 37478a4176b3a926355bc33b34ccfb65
BLAKE2b-256 0c6b8c436c104f7c6f68d8d330aec1a3ad02ede9ebfaa23486693f2e918596bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8781b27646d1214c19d60634393d8265f9c14047d913a3288659ea5262a204d2
MD5 a55d6ccca19952d820c7d50d8acf9810
BLAKE2b-256 9fd8757e62708e74afa0eefe628de4f6697320d8382eab3686ebd990dfa7cf8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5de0bb01c94d072737d03dc2c51ced7f8e6d9ea3bc145232a38321bba8b0d50c
MD5 0da7be181851d04436bcce71d306e0f8
BLAKE2b-256 0943e02e0d41936be97562bf63b3707c47863c2bb36e135492f60f165ae9f899

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4aec929c96f6b94f50bbadf85896a7b45b864cd3566ab86ffc2572d68989981c
MD5 d92731e79894769b6f4a90fb708f895a
BLAKE2b-256 0b10c52d7fe7895140eed0022c7c4d4657d3857f72c7c8a011c4e719f74e9f7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-2.10.3-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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf23db9798011160d2601c3f4161305af6157d3c8b70ab78990acdb15f6e89be
MD5 9a6e86ff9f8778199777c157c85aee53
BLAKE2b-256 8f66d45d26f4fe09b950a131be453597de970b5d8992db8182478e6fdd11f723

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7b40b9d7d805ea721180692806bab62ecd0df38010cb13f6558b6c9bdc0df840
MD5 9aa7677b0ee1bdce337d9f08a44c68d5
BLAKE2b-256 1edd697acd0b956a65a9a113c1b32dbd46409317b6b7181a4d3b416a590411e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 463465fa090db8fd92a7c5c427561601f4bebc1849fbbeaa6c7dd4e47a62afe0
MD5 5101fdc0b22b17c6b68df80fca72b9a1
BLAKE2b-256 e0914890d294815330dd243e57d242fa624948d6ef61d8aaeb5bd802d1ed8690

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 fdad68d75882f609d703af93fe1842e8a38b74d5bac35d9bf6491632716809b7
MD5 04ecfe71ecf95d6152283a2212824322
BLAKE2b-256 abd113d32427783726c24dc7466131d2565802c1b4b513a215503e41a1e3bb44

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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.3-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 444c08e2dcd343957dc73ec8f090c87b3dea7f0bba29c5114ec35fc3dbc38f8a
MD5 a41d8f7a61e0bdd4bd2f4540543b1c5f
BLAKE2b-256 822a48cae85ea13476fd372639b6a3b2f8197deed18244139363182f7865c7ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3-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