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

Uploaded CPython 3.12+Windows x86-64

pytket-2.18.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.18.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.18.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.18.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

pytket-2.18.0-cp311-cp311-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.18.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.18.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

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

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.18.0-cp311-cp311-macosx_14_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

pytket-2.18.0-cp310-cp310-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.18.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.18.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

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

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.18.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.18.0-cp312-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-2.18.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9557d36cfe4b4376c36c071b0ac792038314ebec396df8252143ac4a1972a7b3
MD5 014b9752c515c9cff48b54ca39f77118
BLAKE2b-256 6ece87fe3c1d0cb981f076d0cccde68043734ec57587a3f8049a675aae0e29e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0ca100f33ca3b56f8fe9f1d72c904067789cfc58bc084439f9aa409ec6621fc3
MD5 c1086a0e083a1bd61c89d78e0eee5ea0
BLAKE2b-256 0100b50f3b11b92d5c74713d37ddb57e310a0fcc63eb13549007167985801286

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c805946d49d93d13bb3b4fe21f69e89be38f9b1d5739aea8f64cd1e70c85da4d
MD5 d0134785f902b54442fa5886f8084221
BLAKE2b-256 a4e59886826e5ccb5639e493567073e04dc2911972dd8ea095367305f546df13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c819bae62bd96020053ad872a7e85150509781c2a83d7a66a69b9c6b5f6329cb
MD5 55a9672ab92c69daf9dc0af778bb1edd
BLAKE2b-256 b73303df743d1349f649a96e26eab7726288b03e9a84d2ecaf6eb9f6e25760e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9673824105eb781ae05c4c80d3cd6786f4ab58c5a5def5b9ca7ae890dce9fd2d
MD5 f3ac09e4431728c52087352f5f2521d0
BLAKE2b-256 153928cd32ee7606b1b252b29464ba9afaa2c59cfa4a21fea715c9ed150dfe4e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.18.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60d95245695257642853ff9b0dec31fd520c9c07cdba4d4fb429a861914b97fe
MD5 dbad00adc0b0fc0510fb9c7cec601097
BLAKE2b-256 fd7b7dbbd09d136084cb07f4aff4fc8cae03791e16c026713e6a72b9b170c601

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4817d27ff0ebb5481b64b86eb3ec759b619354c0dff5e4f1a4cfc6e4b888cf78
MD5 3095b68a2eb265008e7c91c7df1828bd
BLAKE2b-256 6cef9047f68f21a12f14ca0c1a4fde2e618935afc79f061e2288ded62c468dbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7b3af39d4f3ae3297de8d75773b940800820192e12392071dab7eb3b4c761857
MD5 c91c052d778cc547d2b3bd8c3108ba0a
BLAKE2b-256 37e16d75b33869b710699e939ab0b5193477d5e0f2d825613b07febf3c16c020

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 9349e1f6faddbe315fe32dd42da8609899b923b607034ff97ae40cb7f5a3d40c
MD5 88dede9cdcc860feab1025765f7456e1
BLAKE2b-256 277869295578749e0724647d3ba927f4d5466c48dc89218019e3298acb36842d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f700a97c4caf2ac98c47a2c8e37b71b28b9b35ca9218bbb0357bba499b23eeaa
MD5 e9c058f1e924a154500718f50b5b2fc1
BLAKE2b-256 47cccfcc64549767dee84172ebb5904e1b69d6246099d6ae170b2c91e0e0002c

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.18.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6d29b2d1b5277e47ad149b28d5bf13706dd2d3d0502ec577ca21cac4353cc499
MD5 0298278a752feb50e3cfa58259feed1a
BLAKE2b-256 c44187498ac87aa2b5e330b188f6b4614466b451ca64012c7586c5411adcc354

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e50c5368516649e42723256a0b610112f688824fef9535e9adb31d83c1ac359
MD5 da587c9ba7b9f2e2f8201b1a372112ec
BLAKE2b-256 5c800c66b92d7b14c990e90f9d226d69cc1a9d59816b515795ffe63f43045ca3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ada57f98fde63a43db5d49407cfda06b70c792c93c018bfee9fb1dd336e07eb6
MD5 cd5f5996d542bb5a20fb04738b73f3f3
BLAKE2b-256 750fec940c12f8376686d24d0d7d51674a71e45d0441b50bdfada7260e65b6c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 392384e74f2df432428c12020eb358474cee201b0387eeddac51cace3b2bfd2f
MD5 629e717243a7ee995f9d1f46b72e364c
BLAKE2b-256 d4cb5a2ca0e39fa3ffed7460ce446fd843824c82dc501966d067b8ab2e0e9988

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ab80518ee545bc44dff7f40fb68d46cfa946a0d86cbe47227e0c704c57819391
MD5 97d46cba9c689a66f472fe135ffe2258
BLAKE2b-256 c08d7b860651db750067666a74400812b7610847ecd604636574b980a4400b9a

See more details on using hashes here.

Provenance

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