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.0-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.33.0-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.0-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.0-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.0-cp312-cp312-macosx_12_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.33.0-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.0-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.0-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.0-cp311-cp311-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

pytket-1.33.0-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.0-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.0-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.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.33.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9efb58592f333080c646dde154725f679eec673efb857e5250f526d4127c0bb7
MD5 0d15679067305df7c9c6b3928733fa6a
BLAKE2b-256 d613b1a1d68fcb0d2284616df140a510ce16b37eb01c65102941747d80effcfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 600522feaabe2954ddcdf399b74f4ae69ab09c9d354bdabd04fb83e51e5c9fdf
MD5 65132661ca58003a6d1cf9fd6b22a961
BLAKE2b-256 8bbacc80fccace04b1078fdb297965992753c9f9dc551b4b92ce5e54f09b32ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 004ce588d43109610232309248413f336a285332b8b9b77956b8bd7ba81f77bb
MD5 bb6f071713b4fb9e92651ecc83808b9a
BLAKE2b-256 3d2969d5acfff8d4b42a39af21a326734502abc073cb807c2cdc427edb8ccfc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f97c194bf7b3f904885cb685da5afa5b588418cb7bd4055967fe52a9772c4530
MD5 7579f4b718388ccd8e52fc5d750c13e8
BLAKE2b-256 f675d25a44a59f82429d9594fd46f26f26b54ab2c268d3f4546001cae56f5ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 04f66af73bcb6c7d369f42273d281deb12d60e628cc7099e6529c941d4a1ac2e
MD5 8664ee3fec69dac92d511ead0446bcb7
BLAKE2b-256 c8554f9e4296f976f4373e7c7314af898ad7061158319c1602f29d3aa9793374

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.33.0-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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f7a022041a84b5548ff67080bce40367ade5670b5d695386770156ae27f67901
MD5 6b7fe92f3d00085474b3d4a45d9a6d98
BLAKE2b-256 acb1f1d14ba056b2f90500291047650f7961b8c27fdbe89e02d3a03240f3bb37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ac86a589261e67e9528fd69efb8aa0de461dfef51327ed51b58bb47626bbbd8
MD5 a3cbebd22e77112c06eb608c7dc0b561
BLAKE2b-256 3a968fb5126fa21c59fede00958711bfc3dac7b75dcae8b9317cac78a4980c20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 58983e4eb0377a361122a621b1077b00285f30f5e0d90e783a1dff3eb852fceb
MD5 aaa89eb9f2dddabb52f651e3cb75ec77
BLAKE2b-256 680e48e40752aaeb471d9c746b6b5681562d5aae3d25cbf72d31def8361d6aa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 a6f331d3b4660844d1c689bb950bb19cf278e52691b73ba657024baab98b42ce
MD5 17790e98b289334b77e36bb8208afe2d
BLAKE2b-256 cf1782ca054c545c99f38e19cfff0296623759b0a47e71bac028f85011ee0755

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d63423505608b2801219a648e2cc080d82f9924bb85dc83ea38dfe6249460270
MD5 bf013d8c878a2c814651cd6f84663b71
BLAKE2b-256 ea5670b39f3a63437819a083ce52f3ca654367d6053a21c9a2b711dbbc64a8f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.33.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 03e42008c6f2317874cf198f00228d6ea8d38a45ce063dfc30a2886b572c5a13
MD5 8ede488045a03304a98c80ac82776bfa
BLAKE2b-256 d2d4822ccb5edd4b709be1d0a3299ece3378305251d02525096725be0f784aed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d270c43a379613649f9d6d73d47d1585d6828ed246c44f1298ee2812b6682cc
MD5 6613318fbaab0390e0e1c47aedc182b7
BLAKE2b-256 d847c1133af61cbdda7c81fe5173cc4eb6037dd7537b52b7f7af407291929ef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 18edcc0071e42bd7457bb268c6debee2f00f4790b69971c2770b62de0573a704
MD5 1fa3255587c8ef6066cf222ed1b4ff00
BLAKE2b-256 a5b72193ffb85af8fa3620a7e774fae703c3a94a07ae510b0a725d83a00c47c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3e09dccdf17804d860b6db978d9734ec3e91eb1fd8a38a38dbc3496cab22a8b2
MD5 5a0a5f545dad825fd0081d8f580f9d5e
BLAKE2b-256 02b3d70c27f024af2a37b90f58cede5401b29efa0c4089ed386bc175a8f1b3f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.33.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 1e73cd5875c9f2c5f3542a6e7200d2dda7855a5b1499e3bd09b2211139b84b79
MD5 562fce1f4ac70966a468bb234570de8f
BLAKE2b-256 b8a80c6aaac2abc168797a06d7320d076e7ddd46cc02280077ddfeedb88555f0

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