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

This version

2.5.0

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

Uploaded CPython 3.12+Windows x86-64

pytket-2.5.0-cp312-abi3-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-64manylinux: glibc 2.28+ x86-64

pytket-2.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.5.0-cp312-abi3-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

pytket-2.5.0-cp312-abi3-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.5.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.5.0-cp311-cp311-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-2.5.0-cp311-cp311-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.5.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.5.0-cp310-cp310-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.5.0-cp310-cp310-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-2.5.0-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.12.9

File hashes

Hashes for pytket-2.5.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ac15b2ab7e59d72fe2a1e47991e533a25ba3a619ffaf2acfb131c98128ad61f0
MD5 31aff0fc8c75c61e2edbf2c278e9cba1
BLAKE2b-256 c1f4aa2a7d450343f7c020ed4cc9f23b420348b3e0d1fe233fbfe890572898c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4eaf16b131af21f85403d92ed337f9e36a1632101ed1059f7dbf2924f4f57af9
MD5 94abe14ab100d50ff7155492dc635375
BLAKE2b-256 4b48e2c0f1b1db098b174dd89586a9213d2767a2945cebfaf5e5bebf5edb8a08

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-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.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 755cccb2a9e93889aa7163a8291d1bcdaf38d6f376cd0a67677717d96213a8ec
MD5 09cc7348d8a301754374a331c8bc7faf
BLAKE2b-256 3a70761130f4e1aa95f771a3473bac74f60da921257057905a435cdc4932e0c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-cp312-abi3-manylinux_2_27_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.5.0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 23da4f587b4a7593404859b228572bff0a88627b333706100989a9f43851f438
MD5 ef1b1f358fbb2f480073ef905e727dad
BLAKE2b-256 6c1fa2ef37ab2897b31e04904f2b3626b9e44f00eec434c59e739dc149d52b4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4cacdd72a81424b6f9004f548976f5da32b71b93ca43a6d22bf2168691160c24
MD5 a7bf8e22b367054f977557ec490dd32a
BLAKE2b-256 ff1d9ff68a230d627e196aa64b9cc8efc37423c5bfaff74c0b00509e4a7dadfe

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.5.0-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.12.9

File hashes

Hashes for pytket-2.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b45dfd41c94da673c37f1b0277ea24aa9c8124df4d8c228cedd6f12e93cfc023
MD5 77ebcbb2897150518d2fba536529d028
BLAKE2b-256 2007f3a5840876206ff1087c58f0f61d7882bc7b858d7b964a567422b0943be0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ddbd70b4c5209ce3f92742f868fddc924718ab1f676dd104c736be6e9c43f4d6
MD5 859528e4145241e2c4c66cb47dee0d14
BLAKE2b-256 f5c59d5390ff6b1542497b97b7baf0f30fa153ddc02c2fae937089962767a9ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-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.5.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 992058f5380a382d6a0c58ddbea7e65fa2e9e815ff0f67b4d59a14ecc10d9c5e
MD5 d6c044297b9b4cb2155a970a897ba537
BLAKE2b-256 26adfd64075c642078a17bf6ba3de93b71f2debaffd08b88f06766621a8b8109

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-cp311-cp311-manylinux_2_27_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.5.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0b78165e377fa157604d7bff100e60c89c07efa442398ec918ab65f2cd5c0ec7
MD5 e78c669dfd41044f3389cb6ff48a0a71
BLAKE2b-256 f67bf737337f6901367079d51497dab9ad9cf9dca55fead3af8ca5ef3d1341c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 723f686141821ad3920ce99ecb240fbc75aee881392a02b3f983703bdf1cf4b6
MD5 236ab37b94b525c351740327484b1254
BLAKE2b-256 f4f3a18605037349ffdf00386a3089aa244e26f43fda7e8ead6f2eee2d98e775

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.5.0-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.12.9

File hashes

Hashes for pytket-2.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 43a67fde157712055a60b2be4c8deaae0728ebd2ddfebf1984c1c9ad65ddd5d9
MD5 84412ad227ca06e5b0e26f7bd80ff200
BLAKE2b-256 547f62593dea55f3519ee6cf2fe5773669d571ee518b45d6f276545082309ef3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dec224bebf003840e615c26aa54d9e90d7d606457a3b15c94ab5cf9299ee6893
MD5 fe03254e897d657bf2feaa68b08e52ee
BLAKE2b-256 c2334bce563ad66bc1db0191f0d080dad903c02aa3ab092d92deab6c5a01fe84

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-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.5.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 86fe082aef10f348b8ff5eae89fa1eba4b0b0a094c6a21688ed45934a0055432
MD5 946d3dddf0576e82b85155975d5c462b
BLAKE2b-256 88f93d177b05e88adab78b7d5587c65c52591d288271d74be4f64f6c7973f9d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.5.0-cp310-cp310-manylinux_2_27_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.5.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.5.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b7124811634a1fa00dffff3d6a097924b5314b1b3961cf52ce94c39a62545cea
MD5 8916c31cd8f9dec650b5416bcee7f2de
BLAKE2b-256 4cf9d599d4f534131e808ab31cc4b71407d47da8b15432ff0a535264e8fb5bd6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.5.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d357deb6fe22ceb8e24ab260b78c06fd4c6a103ff8cbce03170a6db85c3ac6e4
MD5 e4ba2be81055f80196b7f7cd67273c92
BLAKE2b-256 f40f8d002a9c9257da43d0b0829d20b9d64911d10865ac8284678d3772d555c2

See more details on using hashes here.

Provenance

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