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

Uploaded CPython 3.12+Windows x86-64

pytket-2.14.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.14.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.14.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.14.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.14.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.14.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.14.0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.14.0-cp311-cp311-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.14.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.14.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.14.0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.14.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.14.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.14.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.14.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a5d22799c83a68ad885e4e5c1f4f81f8aae46959c1d35dab5de018a2e01c657f
MD5 dd2b66b721f26251e20807671bca3653
BLAKE2b-256 22efc4c3b5b62ebddfb5e5e26dd7ce03d9a631a7ca43ee4e4abd5b8da9c934e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.14.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bcf70d1516da11fe4a294b85c2608bc0ba6be661e44074bfaafe16dfb2f423a5
MD5 5935d2f46219a547ecd24f966691ab9f
BLAKE2b-256 bbb3d6e71fc69d358e757bd63d1dc34e2297a3b2dd02842109670dd31cbbdf9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2fa7daacbb687465cebd1ad2628334460e8e788a9174c6b889768e8092b6dc55
MD5 c46507e852824d5e0bed7051b585a09e
BLAKE2b-256 334e525d2c2e30033b93da80c0121b663c8a30957cc8c8c3235c10b6a2a269c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5d2d663be23e5401cf6db061b09a34ca4bb5ca2296c2ffda730e1b5062670c91
MD5 940d4b884dccb6525bed0d87dcc08dbd
BLAKE2b-256 577a5cc0f80f1747f981405a58806b19ed59eeb0b396bd5d0c025f622cbabbc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 af9eba3997b464461b924e1c897be12de0172c963a5ef31e3a5bfc65cfba7887
MD5 d62e98021fbc71c10291b09c58f9c168
BLAKE2b-256 519d1c96b6f0602dc01f21bafe299ee1be41032001a56d111981748ad386915a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.14.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.14.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d07392a787e9b9545ad5f78641e46d2e898b6b34da2a5e5658ad7cc9137a8aee
MD5 1d4cc3e5e79d3a208dc9079af48ea4de
BLAKE2b-256 f3fb8f8312504b883dcc5ec187278ca923c6f16a9c40c22f592c363485f70d5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.14.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb9ca1d0558e4c97b0d1220bdae8c12fe592a38def9d1844cd9867c087d10ce8
MD5 4a05a7f0ab97a03a5471bec6ca49b6b3
BLAKE2b-256 5c94109adcee2fb67ae31b8295a36ae355d6cd6baeabc7dd9815a5e47e506d93

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d2b986c8624430d8c97127884dd6fba29ec0388cabebe278ba867437d68ac26
MD5 43f25ea21014bc6d7f518ba48b997269
BLAKE2b-256 2fde1f071d02c52d54e73cdc20379e9457f5ec29cebcf2b8e3a6704f4f6d69f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 f0c9e2bedd44808a5b81eb6ebf2a2f8cfdaf7ce09348e58bc99f5f1510d9f0f5
MD5 581d767f4166811633eed12b9ffed2a7
BLAKE2b-256 8cbcec3a97d23d8c07e0b78263befa594f33924bcee4f57ffd9ad3e0ebb5db3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c79e982acefae4d397c4aa9a5eeea6eca0725ef6c2e452d6e78fad29ce456ccd
MD5 b023caf770be661a6171b242e80e17d3
BLAKE2b-256 b76137706d1131f626530da38422d8bbc97036c9d4d95077bc6c114a87f376f3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.14.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.14.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95a2bdd6753401df38c67d55e491302902d368564a53f041ce1ef6b67124d26c
MD5 0c24936527cce52d85a6b85ca20e4e4e
BLAKE2b-256 e10c5ef6c9589c8901b2041806b0f7620ba90604759b1b92760490b6ef0526d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.14.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1af1e6c7b39e68cefbfd16547defebe576ff431f6572fcccf0c2e8d0719fe1c4
MD5 1e710217b4b6888c96efddb3a6799ffe
BLAKE2b-256 545feda97a61c96529b4a9d365d002dfcfbf01f43b81b067501a2228b436316e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4212505e1ab25c573cbb35185daa3424945b963e4e58d915e86a94ecff14c04e
MD5 4f96c4e16a2b9ac9e0a317946a3bcae5
BLAKE2b-256 31feed6043b72c4a8b8104c15d9ee262b0cd8194c755ee30bc9021fb2b23188d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 8fda7e0bf472851d00cdfde844ba9996c9c0b9ed44636e2fded5814379584744
MD5 e4f46049ab5429315fe1c1c6342d0aca
BLAKE2b-256 842502cafe1970f35c8af136affc840ca20f46402a2a8141ba02eda7e6326abf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.14.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.14.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.14.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f3be067307f4cfdd90b6e905ed5f32448c587cda5e8ff38de9e8de8d57b1fdaf
MD5 6e54a7f756fbf74e09443d107af085ae
BLAKE2b-256 371b779450c623c33d5cdb278988500b9f36fde74c4e64c6f039a235673ad469

See more details on using hashes here.

Provenance

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