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 or 3.12.

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://tket.quantinuum.com/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://tket.quantinuum.com/api-docs/

To get started using pytket see the user manual.

For worked examples using TKET see our notebook examples.

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

pytket-1.29.2-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.29.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.2-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.29.2-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.29.2-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.29.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.2-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.29.2-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.29.2-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.29.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.29.2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.29.2-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.29.2-cp310-cp310-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

Details for the file pytket-1.29.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.29.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8e9e31ed73a5fc8d0245efc2dd64eeb4045979768e1f186a4562eb3a821e5bc8
MD5 f0ba83a195a1814deb2d974e290c0892
BLAKE2b-256 467dfc7ce9ea2b7429ca4724e4b0e138e58d3f05f417ba46925d317e4a49bed9

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e16ace5576967ec2be72fe093a351c41be088eaf965faf5d0f2647421a4e815
MD5 a1d7b6a71a4e2a5f03231bc9728381e8
BLAKE2b-256 53652a236e9814c491f4018031df4136f1c0594ed3f19173f2b56022ff5fac5b

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a8df04e618635063cb11735c2af6cd9e13550dc397287a462cf1a27ffc8a4c4
MD5 ffc77a8ae6dfa5ff5b163df6169058b2
BLAKE2b-256 d63b16e734a6d6013a6360fa43f438d5b54f5be3be72b72c9daf27b15419d312

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b6963fa54b63330ddaa393741ca682d0814d168f1a4b4f23b2c7f6f2897e4ee7
MD5 dfabf6221326f3e84f18ebda29cfd0db
BLAKE2b-256 d953500367083aa46fc1608c5ae3d60fcac370e89e7708248e140990e2132a6d

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 42ae41912ef99ba6d9d786874803d0816be9917460064b39fe4c853303d8e32c
MD5 bcbb092535c0273b99c064ffd5d9512d
BLAKE2b-256 57bcfa8bd99790684f823309d3f6d598a893fdcc4ad4e6ba58cd983d5f9cd671

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.29.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63201b58e9a1f66840dd51a654a36b02b4e5f9a6db3d0eeaa485c2c2257d8245
MD5 22869041ec559355f7505fe715d467f9
BLAKE2b-256 a0829b27ae4f9c2ad07be2a6b4532ebae0fe1b7f02b1271bd1764adb25de897f

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c007013b67b92d3c85c34a0c6562917fb7fe335f92ae75ece4a8c0831abea044
MD5 bd74a9c96c47ffbd4e6a83b7fe0cf20c
BLAKE2b-256 70b3ec8132d5667d1c23063f6165a52776dee508be3596533850cc81c077c741

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dea1ab22f68f5c944ec266d4b3688bd6503f7d8b905c31a305f525416b0f01e9
MD5 97c19d4a7b57dec70422c31ee51564fd
BLAKE2b-256 3d5ea230b00afb65dc15cde525524eb0fb2dde34043f33e536f462ef6ce73fa7

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 fdcd3da867a6c1708d6161577a3d551cdd8d66130798fd00524230c81ee0c091
MD5 df8c0c8e4ef74fd5cb51e7c028b1cadb
BLAKE2b-256 569ebe864a62a723cb64b004deaa6fe3a6a0616c0fb27c019450330cab3349f7

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d52970e2a9f95fe4a75421130332eab11f5afdf24c0471736a7af3837ddd4c57
MD5 75e7dad83d42ba6118e604ea31750cf2
BLAKE2b-256 7b0ae305a26107c5b9ce02997a7d6ec3de4eba9b17a0550276817965f24a35ec

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-1.29.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7d8c0f4bdccf24ce594ee555262c31c08fb86a8ffef9a65d276c0f703ba4fc5d
MD5 d6a21030902dab3a3bf1390812fc6c05
BLAKE2b-256 fc36f66c65a1843531c8c64275376ee531436ade11b826b3a71ccbe4842b3f21

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4093484f9df8d4853772a2da81758ebe3bbe9026d3d2e9aab39e106a30d78ef5
MD5 5f80b0fe873a5d9083700ab3d87add75
BLAKE2b-256 2c5865eca8a9af1f4605dcd8f821eceaebffce1f526e419a6ebad9b83d703c52

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fb7eeea19aec9cda82946d6547c834f1289c42f8fcb1a86116e86efc28744ed9
MD5 ba4f448a81125c803a0b346425655080
BLAKE2b-256 25a76bc578be6f8a6b953b1290cc3f354332c5d538419bb2bb938f189e585272

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 4defbc66758eb8fa387fc0b132a638731c57c900fd7d1b5d36f89b56e9160c67
MD5 ef0bb58bd490e277b950d5653e5dbaa8
BLAKE2b-256 f45302b7a922b261a7ddbcc538d7062878965bf10f8a359f2301c98cdcebf3ba

See more details on using hashes here.

File details

Details for the file pytket-1.29.2-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.29.2-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 b69ae7f5625322396cd2d4016d9a91cc60c62fce66f0d5991c354a8890040128
MD5 fae13f7fa2195253cf2e9c8d0a211e93
BLAKE2b-256 2f708c5f4bc9ec89b9896daf456c17eac159d813625db4b94c1c052dd300c84b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page