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

Uploaded CPython 3.12+Windows x86-64

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

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.11.0-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.11.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.11.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.13.7

File hashes

Hashes for pytket-2.11.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2a5d9fc9ac0b47e4155a1c6b8bff162ff73ecc2dc304d3b3816d68933631f60a
MD5 23d182da9d6fffd455e102350baa51f5
BLAKE2b-256 9ce0e77203103e8e2aa29195d2278ef29d49c2917a2412da0c83ce00a2fc4b76

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 300e4912b5e26c4bf5cf0996498a447d106363636b5aac0e5cf8d4c49a1821e5
MD5 7f941663ece99c6765cd7626049fe3e1
BLAKE2b-256 336e69e08f914074979c3a8720ce05b1ccae4d64bbfe6c99fc6c856dd98f8537

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c402585d7566aee25c0d7ade3f9015b3faadcd23a5f708fa04d29dae6bc620e5
MD5 f21ee65846d04d8411c9827247896223
BLAKE2b-256 1e3d383e79153af6c4278c35befdbf1fce4ce1edd75a8138d7f32f84d887661d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 2b4246d0f42cf569a0e0efce0adcb09aaa0c7fad08e247d94c6996e12afdbc5e
MD5 126b1a3fb84d2a9dc4437e38fc11b85d
BLAKE2b-256 331ce4a331db8215d02417793082df90fd5da85ca7a3b79e1abcfca60f57ec7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1a9470aa43e5cd7d42c27723b5d9c6078d06a79560eb7ac029037fb3822befac
MD5 172dc5c5eb6f83ed5f85dcd831d0c00c
BLAKE2b-256 13775bc3981511d13ddf81632e2679ba1291037fe42cedac27a06538ed210630

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.11.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.13.7

File hashes

Hashes for pytket-2.11.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a9003a74e98ba0369c2d4e4b2a155c276b6076df21b83797730fef3a1a4f9e75
MD5 ed5ae50685fbe21af46a5658580ecf19
BLAKE2b-256 5aba8c5f877aef693eedbd1b1c92a4a3af55083c0a58fceec23af1f4d375f0b6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 636c6fd32e391fa5f85a6b45eb48e1500e5389366966af0382614202c5a38ba7
MD5 d9e52e10fd7761d469ffef0819d52074
BLAKE2b-256 6b48388705df6aea6adde2b05dfa9d1344813d20d1a33e19e6243465dcab6c87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aefab22c14c7a3a0fc3d53af55a38fe15e69ab2410bce9e2c244e9feca7991ed
MD5 9d1feec28bbd038fafdd9f24ec2004b5
BLAKE2b-256 6e0993c53e0c9475d84fa8f5fcf3ef955f62b53c595c080b7e23c9f17356895f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 15c06743f63d199eab0d25f21314ed4b026f871e2ad08d9734271c2fa80c41fe
MD5 02d3a3a3b1d82a529d1f2ae8eca0558a
BLAKE2b-256 2166684e88d01cf64c695163991f52d818db34d7f15a2be8421ae3dad7ccdb87

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 983120620b6a18092aefcb00419bcbaeada5b21ded8d1cb671d328e5127fe387
MD5 4e3b472101e911717fdf95c6350dd9b9
BLAKE2b-256 e458a0db81314bac0b1b1d8134a02eb79b065cf00188284da9f23e305560c49e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.11.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.13.7

File hashes

Hashes for pytket-2.11.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42016c53306275818a128eaff807326cc1d5e82aeb4f4376fb32e6af71a8ce55
MD5 69fbd9605dfa2ffbb1104fa1c3c5fc7c
BLAKE2b-256 d6f3717187874ff9696b4c11c1af4689415c747f3878c89fc632875bd6fd500b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 78446e92086efd841ac41cbe98bb8f17b3adfcac1854459183b984a4fd8099f1
MD5 e6b7736e7dcbea532766e08b506c127c
BLAKE2b-256 62e8c377f30df17c1688ee10d22556061217f854108fc491058c9a8a4e7bd29d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3aa1d95bfa3f1f41e46c374f2c7baf4f6fb71e4b8cde3809ff15e51fb4ebe791
MD5 2f552700aa0df58d5363b6e423b4a99b
BLAKE2b-256 2919ea549e428b4f5e4ed5c917ada45b3cb16b4490921cb446820148661bcc40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c77deb8b1852a11408af9082ba19a03e62684fb6ec5b8827bb048bebbe1393d9
MD5 4801df933854ab5dced4f5df504def3b
BLAKE2b-256 b0e8a1ac3ba9cc989af52ede94854d4899bdab7b3e44761d510177af7bfcc142

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.11.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4a9b79613b2febc1d3b163e48751e0dbeac84c3e3c292ae68b0fc9b7b5c64506
MD5 f3df7ff9612cef7596f7ab86817fd217
BLAKE2b-256 08ae2052aa517d587628f6caf62ab9dac1fd1688f445c851395b861911b2c4f5

See more details on using hashes here.

Provenance

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