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

Uploaded CPython 3.12+Windows x86-64

pytket-2.12.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.12.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.12.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.12.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.12.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.12.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.12.0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.12.0-cp311-cp311-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.12.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.12.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.12.0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.12.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.12.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.12.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.12.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5bb147f9f8272b15809adab6157f1b268c77d89626420218c85ecf54e8194276
MD5 7dfd0b121c4f33b16ce3366d04f1b59a
BLAKE2b-256 a7a7f7084cc6775eb2d3b8764f6c9f65d0fd45eeaff09296e2a1b334ae79064d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5be307ab153b0233f417d9bf87fd38f78244dc992ca0edfe9f1f9ed0f8f3d1f2
MD5 4394dca3f618b9f64aafdabbba1eed77
BLAKE2b-256 1962ac83b21871ce3d6764d869a643bd78024dadb05e0091b6e21ad1b9c5ee6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 42d47a5b008f84f4e2ac00fa94325e4ad6e046602e5f81cd717aa02e0b207725
MD5 eff9114959c68b9f4e578a463b6ee209
BLAKE2b-256 8e97f082ac73878ea7bad6c5d4b69f3410a27f7e313b7265b67d7f7ce90bf5f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 9560f382387fe976f649f0012bb2b1df3a08d2bdf33ba7e13acce52f32ca4ccd
MD5 08ef10009d0fee8312b9ae579c97052b
BLAKE2b-256 08282653cea5db2eb792bc118dcac37e9319bf978e4df03d7f0c1baa95dbaa40

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.12.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.12.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.12.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 92205d244964bdf158287a1bf0358bb68452f9329324f163e3f0549d27c3a4c1
MD5 c1fd03ae87423cab899dbf5f12d64b53
BLAKE2b-256 6da74442c112cb5e7964c2a3c38933022655e460a2f7ae727673d9a829a9b933

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.12.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.12.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9817635e961b03e31fb67d60446cd226368841ab40a96aa1d4f481760e63b469
MD5 2b45594bc3431bb47f5d35752145f222
BLAKE2b-256 1097331be5a5f42fc9212c8d49bc40a9652925d6ab4fd015f00771e33f813748

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4789376e130b7145a385ee2ae269e2ccea9c3731c3d1366b0b41312b61b8eb47
MD5 380730837165c50cd2f45ca735e2d448
BLAKE2b-256 39f5eef30ce8b1ac901121c6923e11c301b94383c71b4b8356a01f866b9d2a5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9ae6a69a3e0226f657993c087ed3684f3bf515b847056e142a7eb12b707ba094
MD5 24fee9227765d75697cd2fb7f0bc3fd4
BLAKE2b-256 147dac2961f0197916602ccdba4b7f46387ecfe4aa9d21836feae43c44c52a77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 1ef65e59dcc66893c3efeac2a7f469c72139990e4f558c91e74143495433299c
MD5 fa1b23cc505874ccfc1fce34c2f78ffa
BLAKE2b-256 e1d61730985c429cd72cad771ea4da7d0aae1a1cadf0661676c0220c9d33c612

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.12.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.12.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.12.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d24e9568f68a1b6702523b43b1807a94d606ecac41ec41cdd7bae55b8c068a03
MD5 0b6d04b08d3cf2f986502257db611af8
BLAKE2b-256 fa594fddb5381c19f0daeb1fb736b984c14c7eb20ad174d8c0b880dffc916093

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.12.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.12.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b44af9367c0d7dd91dc4f30f782f9567e5abc21e72db27155116eb5b3bfbdbb2
MD5 a43b815fe7dd038de71f6baf2ab29e3c
BLAKE2b-256 48de94eaf4cb1d088140d87e294f4194ac4657d6268c33bc958564a3a9147020

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27af7228de60e4ea41b7c94a5c7d5f475993429f4db02f570b9ecccaa384aeb6
MD5 d4126c08df7541e477211bb1ab8a9295
BLAKE2b-256 8671729a830b6349262b553055c98a18c159bf7f85f03f2823717277f1808816

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e07ce48a578fffeb12a7807d2b7941c75c0853583dc36208d0c644a214414c1d
MD5 5b62263e6f1e80969572316eb3996248
BLAKE2b-256 787830897a4ad16c811b4b86db33f25b8ca85fc0cbf2730d537139132539f08b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.12.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 e0cba155b0ba50591c2955c4d6b465023b5c540d93852dee4f3d68d27af96745
MD5 7c9146c167e2f20072a7ece2f835646d
BLAKE2b-256 a88de3d0d9b1ad472d94e20a54a12d282538f4d121e035379e01ef3e9733fd6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.12.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.12.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.12.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 883dc80bda9dc7cd1907771516c8badbcb14e30f01743fb566f2e7b6536febce
MD5 9fa20a670864b964480def19bbe1993a
BLAKE2b-256 89ddb6dc9a8bbc82e469d0dda34de03125ef2872c81e1959bf317aa8496877c7

See more details on using hashes here.

Provenance

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