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 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

pytket-1.33.1-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.33.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

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

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

pytket-1.33.1-cp312-cp312-macosx_12_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.33.1-cp312-cp312-macosx_12_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.33.1-cp311-cp311-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.33.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

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

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

pytket-1.33.1-cp311-cp311-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.33.1-cp311-cp311-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.33.1-cp310-cp310-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.33.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

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

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

pytket-1.33.1-cp310-cp310-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.33.1-cp310-cp310-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.33.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.33.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d747c89a1fb80c9e220f286e11918faef1959cf2c0916f16a7805097c5c333f
MD5 1c1f863c6493ef6ba03dfa556adae315
BLAKE2b-256 6708ed30840a6282ec61ec8b8ef2b7abe6ee86a0553a0d1069c469fe46b11922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dda311008b097d196379a69fd13fef52cce9c8c674336c5bf053575327aa8095
MD5 59c7fb6f6ac3ff26dfa68b836677ce96
BLAKE2b-256 f01638fd1df87831e5a4ac9733c1b274176bb8633774f989f787b5f4185f9603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7bcfdebcd98e5515f07cd48da1fd5600230212686a6eafedd7c99ca8c7e4d84c
MD5 3f5124fe3e70bed818180127e36a910f
BLAKE2b-256 a1e195751edde64b151d5e9442e8d627f4ac543d78effe22ff6ebe960898704d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 89ec919f23288695fff0a242b6a2bf66b15655e2782af9aab644329c5c9a7850
MD5 8cb5c078e00941d0691045009cc52866
BLAKE2b-256 4324021c31baa743434d857dcf221a18aa5737212925c0324280bea16488ba92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c160041a5d1c481b266cfa82f9c471f32bd42ecb4df79b868f0895df75e023b4
MD5 0928d1166525e19bd3cb08d25c0d12ca
BLAKE2b-256 8c05f47ccb69bccdf5265d07ac53f30d72b0434882e1a680da9da8a54f8b47fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.33.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.33.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 68751c1aae8b90a82c103a28dababd6a356661d4edf958d5ca55798c07c5d5e0
MD5 d27db832dab75799aae31e35fc45c5d6
BLAKE2b-256 9bdbbe40b1fdc548e824fc0141ca2f4d815b6d5950560808edceffd063d3b272

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7dc223e157e6be5d7703e4200294f42084568a05f878b10031050f89d07ea86
MD5 691a2af27b486e6fcee5aad8ded6fcd1
BLAKE2b-256 d84a75db0bab751211c912e2c99a64fe20490970b834fd1b68162b9da47efed6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c56f4fa68c9daa5ebb748d980e74e829155a6fb7c581e9f56ca86ea46bf91828
MD5 b8da1b88f321c51f2a550f8f6a4cb2ec
BLAKE2b-256 e5705fa957fe040a5a8066da1703b2ecafedfc6b6868cc4ecbb2843d80b86da5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 438fa614c55adf34cd989c06a796bcd7a239664dc803fee86617fce0c086c1e4
MD5 d787f2c7c197d207b8a45e8d6ade2ee7
BLAKE2b-256 b0b41ab579804bab75a3f95b7380618826db1f416971365f578596025407a605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 06793b1880060069dfe902a37a6a7c1004915cab6de545a0b8fd885d8c80f24d
MD5 75d1553c3d524e4faa086c10312e3df7
BLAKE2b-256 d9d4bcefeecc4bc012a154c2c9efb670d4026bd97fce63f3e6d44fa411c31ebc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.33.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.33.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d0b2ee459bbedf176390c3fb8545f525713a9ef3a7f610f8e8b446f5c446166
MD5 9bba82911a29ff7e4c354eb7b58ebf81
BLAKE2b-256 4711abfe0d7316e6dff21668a4a8176d54f525a94074669ed0caa37c9cb1d7d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7438461cd6cdd0537a40bcf57474f750f0599464f460b888202b466111181675
MD5 7d46aba7898da940a2202eb4b44b4bf0
BLAKE2b-256 f853a664e8252bc52735b6b116658555408bbfcbd6d6722aba8be6ee4ad76bda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 96d58c7c7891290509e96c428765a41e89b2eb6669ce457b890d579ae62b3175
MD5 7f57e8322754db28b2145681aa42fe89
BLAKE2b-256 7fdb5d41eec307bf70c8ab600d3e321705a72a05357718943214372f5a6d98bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 018939ce79d44fe902a422a058fbdf1063bec4522f29b838183543042bf2cc7a
MD5 a9813c861257d26a854c6fd19d02de3b
BLAKE2b-256 96717ccddde46adfdb96184c16478f905e63068e73a8d7b44ede50d1e6d97913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 ff146d534ee2cb1cb09182fe7a16a55c49d687ad885e2ce0abd82a8880dd0679
MD5 9afb6a8e0dd06a15c0c9733f0c7ccb88
BLAKE2b-256 7960cdec2dbc750f3c03629dd28a202c3b306fbc2c45ac30b5ea6c01c301abe5

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