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.

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

Uploaded CPython 3.12+Windows x86-64

pytket-2.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

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

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

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

pytket-2.4.0-cp312-abi3-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

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

Uploaded CPython 3.12+macOS 13.0+ ARM64

pytket-2.4.0-cp311-cp311-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.4.0-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.4.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.4.0-cp311-cp311-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-2.4.0-cp311-cp311-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-2.4.0-cp310-cp310-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.4.0-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.4.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.4.0-cp310-cp310-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.4.0-cp310-cp310-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-2.4.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.7 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.4.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9a2d7d51d5ab117015add44e5dcf405b2f5876de3c2b871a0355d7f90ec779ac
MD5 296545863fa02275b4f9b1ce6e0b52f7
BLAKE2b-256 d48f460669722d4c607ac544170edee469f186911252a8209e6795a0aef69773

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7085777fac15abec8cbf2a2a62469622d15617e0c08333babc10f63e889e6677
MD5 102c3a476cfa03167650ebd13f09e55e
BLAKE2b-256 4e03b1a52bac1b6a6118fe1be1573818507f29925bb2a1a7ad221c3bd4484905

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 51756666e33f16cb646134a9d1c139af8e5eaa9f5cbba7d6c6d154750edfdf41
MD5 2e50f9b9c9edb13d84830bd07c137cf5
BLAKE2b-256 0c88abf861e3248b9b76c0f9b2a3518295e64cf8a04923c32c2dd54f5cbadae4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-cp312-abi3-manylinux_2_27_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.4.0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bf26dc25c2b26242acc7664cc3d1e127e85887c127c0e610245e38ec8221866e
MD5 445910669769bf2ca0fbd4d11067b201
BLAKE2b-256 ba3cbc3a8c5ad7ce35d0002c6745435cb2aecf35b2592c9d5c8818735a85fd3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 29c3ad2cbcee7ee4992f25a4bca0cc84ab1718206351d1579f7443b9bf9854d0
MD5 438aefbef967642e2cea36b228bb00d4
BLAKE2b-256 6e24bc71ce375022c457d70063903e10046b77f6f67a780dc18434442f19d96e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 9.7 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.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d1e5e53aa608c65e49e3090a0bb90183e55a26cdecfba6f80958964c54ac0742
MD5 448434af97d64e6bcb4c1575768d12a0
BLAKE2b-256 6d0e9fc5f8689507f6be7535f1ab027ba027ed3b74cf299a4989e4fc903373b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b26ec82755be212aee4fe44cdf23ab7d18a7b3601a6c0bdaf8ab233cc2ddf46c
MD5 aa1b07eaf238b3141a894b6daec82c05
BLAKE2b-256 9a94bf756cab8478f8f4cf5537a78a834e74451fa8fde97484c68f9b08e45fa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 840d78c32e8e282917cddac4c157aaddc6f3989025805f932dee02f22ff698e6
MD5 67f8bbf1d689a77c3707693f3433469b
BLAKE2b-256 3787a9290b9303d2d450c1f66194714ab9ac24479233613416f727369bc1d5a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-cp311-cp311-manylinux_2_27_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.4.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b27e637b47f076d0e7c25f5014857b1d581142de0c701f53b011e14032a2b422
MD5 a1ebd8ef3167f07e000aaf027ce9473e
BLAKE2b-256 54c1157a25a74673b0d404da096d67fa6091d15da65eb0e26ae9679a6223e2a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8a15f765e10b79e681216d0cc52fafa861a8e655681bdb0f8aa720a6cd2e8cab
MD5 139a8594cbc98a8b7245d415fb0fb962
BLAKE2b-256 c4b286e0d459c0965053e58ff67132b3f0ffbe999d6605bf1ff4ce2896bfb866

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.7 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.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0c737674c5e4d5801623fb1427aa49aee89edb4a15103ba0fa3b4003c8c57ca4
MD5 43dc482a2b6751b67be8e6b9bea29fe4
BLAKE2b-256 51958478230a91c001201cb5c3bffe264f97553fe44672dfcaa4cf6c939f1250

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f50b53a287267c2d8f5534939877ae62ed267ae94ec1db17b76895608998e683
MD5 713e6e21c1ead070c2009664fca5f534
BLAKE2b-256 c235dd373e458376454ec05d86fd7247cc47110a0872494c37fc5e498920522d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 92f126ffcd2c6c0e9d2df208878bd6af6a4ab524ebd2255d6408a5555c46b5cc
MD5 0a35aebf92fb8622615b65831a1def5a
BLAKE2b-256 730923f554a2dcf866efd8737ae4f04167d947b7a41b60bdb056325d589c097a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-cp310-cp310-manylinux_2_27_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.4.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a465447b84bb5eafc3c3ba9b9654b0265139fc4483a9bcab996626c8a43c3dda
MD5 3498b17b8676083496802b6eaa287437
BLAKE2b-256 6db27b7e7110219b6f97ee079e1c8c28094302bf512d0731d45cb22a5f1246f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0-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.4.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7cf60e5f618f09c6773ddf34391f8dacdec73206c1a3a7398509d8a467d8adda
MD5 3bb0b733d25d755b086a833eddd25742
BLAKE2b-256 a1e662811eaa50d164336b2f68e768d1b1d34ec5cad0d9d475b588fa742b356b

See more details on using hashes here.

Provenance

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