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

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

Uploaded CPython 3.12+Windows x86-64

pytket-2.16.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.16.0-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.16.0-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.16.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.16.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.16.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.16.0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.16.0-cp311-cp311-macosx_14_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.16.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.16.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.16.0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.16.0-cp310-cp310-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-2.16.0-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.13.7

File hashes

Hashes for pytket-2.16.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b00f7eb42a84bb77d1b33a460e78392f51026724a1ec7e090a1f018db51c566e
MD5 7d2e5cc9bebacc056667f043127f5bbc
BLAKE2b-256 c823d856913e5c5501e82890791ec9934add317e6f344a7d495e5dac141cc9a0

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc0a6be06dc03c38423775cdd5bd9e6df81518f9e78128d9deaca20663eff358
MD5 74a88dbbc3ecf92b56831da45e010686
BLAKE2b-256 29e56891f73f189065a8616c44473748eb2c3e4feb8ce4ec85bfa50fb031bb7e

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 58fce2fb058dace4c0335ce83a49dc8061f78c9c363fb5439706435cb9be1797
MD5 669af3806704d0800aea62ddac0b7e82
BLAKE2b-256 d17f68d933790e9a9353a07147744336468e61df57dd28976665c071ec6ec9e1

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Quantinuum/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.16.0-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 581d3de487a6098c95b695947104e9ab1a934b5081fa5cf17d78a97ff8b8b701
MD5 a3621c96339092f417b511b2708fc753
BLAKE2b-256 1200387750d1fcf08fc2935b566c71bf7556b810072c28c3415cf495e9b3f625

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp312-abi3-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/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.16.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 30e918546c5c9a64157eb59fdbc64a436517ef23b52d0c4ccf04e1707709ae80
MD5 44a41c9fe57ba07b2fdb6560f06e7db7
BLAKE2b-256 7bc0e5fa70ba5d6fcc58ef009938c2037022830ab16d71eba2564abdeff5c40c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp312-abi3-macosx_14_0_arm64.whl:

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

File metadata

  • Download URL: pytket-2.16.0-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.13.7

File hashes

Hashes for pytket-2.16.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5db78f3600c9626ea050c3a35267097950bfd4e0b002469c066d2a5ffbbca8ab
MD5 3e9f3d2581981afa9ea3e16c4044739e
BLAKE2b-256 c2ea4b2561423c24212d96d63b1655fdcf86c5d9803455b42b5cfe1f96e4c705

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e55a82f066a31015f4223bc556aefb06c38eedab01d91030af0b4e7c8fffebf2
MD5 283a47a3c68a9b1f124b4ea02cbb2f44
BLAKE2b-256 582863e7429910065a107bc651fe7cf83581ea3c292560c7a2d5ea20591aa582

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 825c7b8f98f69e0a9e73008131ad53a0e7eb786e373d4f7d4b5b0865b7a4fd5a
MD5 82422457a633a1c36cd8d19cc126cace
BLAKE2b-256 7c84a7dd8e96c8ebfa2b5a8fcfb31cb7619685cd4bb40363edaf301f20dda2fc

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Quantinuum/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.16.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c005ca4b76b1c896110e6ab810a9c466140f66c11b74dcf36f8695b4a4a3c28e
MD5 823d1af2e8e4c139d63afb2f9ce357c8
BLAKE2b-256 22d985e3754d84c90c3fc80a9aa728f2a1335de0c60c6f210449651b6dd80687

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp311-cp311-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/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.16.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e069de503b6fc86d3a46ff4c17ab60374215c3713b0659d0a07eb88b9aee6716
MD5 ee2956ff51e9c1cc1461e0b5e67b0ea2
BLAKE2b-256 9b745c28d78be92d9b464908793d950f00125d08ac1f36683803fbdabdd9a80e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp311-cp311-macosx_14_0_arm64.whl:

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

File metadata

  • Download URL: pytket-2.16.0-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.13.7

File hashes

Hashes for pytket-2.16.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1e548c94443a934ecd318609988535a3b2741443b12716955328263ee69811f8
MD5 f283605b82a352813a9ee2421d8eb94e
BLAKE2b-256 17df291ac431bbe8f0249171e4014e7f1dc9c4b63d961a1b09404ea8d986bb85

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e6b87e9810e80ab57539619ddf6f9d4639cd2aea1a01fb58433e48677aadb00c
MD5 36075b2f117ae002829bc05744050022
BLAKE2b-256 f8e4f47935bbf44a5c68b4f3dee51b4d97ef6417b07b7c34f6401297beaed21e

See more details on using hashes here.

Provenance

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

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

File metadata

File hashes

Hashes for pytket-2.16.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f25a60846202a1e9c5f165fb4112503b96638361f5a7d619f854676045dd7494
MD5 1c4787315ed48ac736d12bd8f658690a
BLAKE2b-256 0251daa28cff7c720cbed715f84c5ea843c571285af33e285afea2a776fedb52

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Quantinuum/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.16.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 859597eaf8c50b0dc4ed3c6f5bba01bfaa020995bd84bf9503650f3cb30e9be3
MD5 27cbfc1cf5b90a1793b3044d56739f42
BLAKE2b-256 afc666ebf277713d915e902b6de0a3e57105874af72e6dc869692229247cb8c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp310-cp310-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/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.16.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.16.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ea53862f3f8ee2b48b564048d0d6684285abe96aedffbc9f387ead78540648a8
MD5 e21a5a9c269eb4cae82abe0b94240ce4
BLAKE2b-256 d93cea309a72e0c1ca8e51f66ee6adb28887bc50af0864192fa1dfbb260a6aba

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.16.0-cp310-cp310-macosx_14_0_arm64.whl:

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