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

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

Uploaded CPython 3.12+Windows x86-64

pytket-2.9.1-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.9.1-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.9.1-cp312-abi3-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

pytket-2.9.1-cp312-abi3-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.9.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.9.1-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.9.1-cp311-cp311-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-2.9.1-cp311-cp311-macosx_13_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.9.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.9.1-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.9.1-cp310-cp310-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.9.1-cp310-cp310-macosx_13_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file pytket-2.9.1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.9.1-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.12.9

File hashes

Hashes for pytket-2.9.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1eaaf2514ce1d48e7f8298d3ab234305c0c149ad8dc5da0511b9e0ac00c91303
MD5 77d1edcb6425524a2382b0e4eaf2f5e9
BLAKE2b-256 e07d2c27e765c28c661b18356b6effc64b4aafd5941378644dacffa73ccab84c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp312-abi3-win_amd64.whl:

Publisher: release.yml on CQCL/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.9.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27bf0e775a4faddb0a3978955885e4a277c62216c577ec7ca32028416e76c1ac
MD5 bc1e75ca5e0bd6e626295b8d021a1059
BLAKE2b-256 3136e46f78352449292cd0825e9a70a3b85c94d2392550e2ae7c8aaa8a1ce410

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4a6a9095d6f6a53bab0f1f9e783e8eb3f9de6f4666d193e69f9c7535daaefdcc
MD5 140c7bb0bd139e3d257f54a580e52cdc
BLAKE2b-256 251d29af4a9844ee5f3995e8db29a46e0a1e6dc7e5809791cd07c52f99ff2a1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.9.1-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0faa56d8d068bca7c55b8fc5c6273567a44c13ff00cd86ea50024d519ccfa3ee
MD5 38aee210c2da552ab1a83e578d9a77f9
BLAKE2b-256 45e943f41aa7b8e92075cb58ee1fc1bcddde5ec27289cad81787674f33ebf9b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp312-abi3-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f7cf92a13515554bd246cac796ac84b25187ff39d27bd4c63910ac9a1ffa27c5
MD5 b1dce055362e389032a99dd05ee76c28
BLAKE2b-256 fad305f3e5faa244f0c5e292da3954b8ffc01546cc19ce61cbdc5c58828ebc9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp312-abi3-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.9.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-2.9.1-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.12.9

File hashes

Hashes for pytket-2.9.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a298a35afa95285692cb683fdf1cd53e70d81ba701d3eb4e4bbf81485aa092c
MD5 7bebe35f26012d40508ae8068fb77f00
BLAKE2b-256 8d2e16a05d9e5f049da8fa11acc7b64e2484462a079c8d1d56f9799457b433e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp311-cp311-win_amd64.whl:

Publisher: release.yml on CQCL/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.9.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f738e84958249fb81f9ca83d5b5a8951932bcc8539ca154394a4f1e8fa55eb19
MD5 a11489dcb95fe6436431ce403a9455c2
BLAKE2b-256 576e32f99c4f2764891e361e53ce6fd61e876cf7e0dd28ef68f812c0b21a6fa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ade490e812eb4691d44c9684051b0e1816daf4f0ee49320a21ecddc3b079ecc
MD5 26b82bdfc132aa13a58ca39d50667f05
BLAKE2b-256 4655eef56bb6de1813d56b49c7c97edc0716e9bc02d8216c137c89b7a8a5766f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.9.1-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8ed0b8256e9c1b385b7e37e1313f8a13a7c619b45e439fd81a6be44288eb1f3d
MD5 405c8badc9aae2a604bc26a9e27aae77
BLAKE2b-256 d70ca284e1fa83e69472b8ae2673dc16093454ee87f3b3f0ed49841e36309149

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp311-cp311-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 353628979f6504ea2406b4b6ec8032e70dda6b3b3c14ee72d5363c365603deb5
MD5 3587bb9f60a376eb4b32129386ab7935
BLAKE2b-256 6251dfd090bef3dbf67cbd15243672bb363eebc7312310fa8b9714189c2d3bf8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.9.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-2.9.1-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.12.9

File hashes

Hashes for pytket-2.9.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 81766a6b2f00933f2ecd147d3eb73c4301838728290dfa0c9a2d630827a7b29f
MD5 5a91c1ce2114f916cd208b1090e84246
BLAKE2b-256 3648385aea3ef1d8f6c752369f4ee08bd555abcde3140d66a034db73bb9fc049

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp310-cp310-win_amd64.whl:

Publisher: release.yml on CQCL/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.9.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 500fd340f1ee81e791f69e16d7b652eb7f1f9f98da76cfd73480ec0b4b5b25f6
MD5 3a4bbd5af54d57b6995e15266e2383b4
BLAKE2b-256 7cae9bf29bdc3a9baf808206c97c66018e40ab517f5b980c7592fc02664afe1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eab4f6a1744dd532f3d16f48e7305aa9fc92811e66424f0d1e37382cfe7f584c
MD5 f7dd41ea8e667f699d21f45e5cc6c255
BLAKE2b-256 cff42cde44982626c8cc8c4664185bff24ba8cd6c43e5e3f538e6dd578977839

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.9.1-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b9b28602be573df96207fa18ec54f7815e0ad7e19247194c3ac39806ecffb99a
MD5 ef844400b61348d7820babf3f95dab57
BLAKE2b-256 a4c867028a83b593892c43e61240551e8984f594009e3a35eaaeadc30050f7a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp310-cp310-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.9.1-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.9.1-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 24bbf1f51a25e45c96818677341458b63d445045dbf3c00c9218cc43bc8966c8
MD5 bc24506badf7eed7add95245ec1eb7ae
BLAKE2b-256 1c682beb9c83842da1c7a3e795c0bf627ba7f738cb59cb7a8d49cb29b3c8955b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.9.1-cp310-cp310-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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