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

Uploaded CPython 3.12+Windows x86-64

pytket-2.4.1-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.1-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.1-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.1-cp312-abi3-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.4.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.4.1-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.1-cp311-cp311-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.4.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.4.1-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.1-cp310-cp310-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.4.1-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.1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.4.1-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.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 225f7097059ce37593859145d29876a7d89529a0ae2a0e9a13c5142bd39fa93b
MD5 2c353986a7453fd17ae74e3768039078
BLAKE2b-256 66c0c4b57fc74703ca285688f2dfada4d16d10c91dc617adc64abe7564fe3334

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 902045b3daffbaf3495b1f125317a0372c7927646c846b5c8e0020cdaaf88281
MD5 e56fddadc99bad82f0901c7e6b585192
BLAKE2b-256 e7c66e74bd4fcb9aa16fdb47f70081561f397de817dc6ae216c9e72a3e6343b8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f073fbd8b9500d3871ba7cb8ecce41753b8d679598ced894fd9d266f9cb11fe6
MD5 920d9c0cea3fb0e0d5fa43755b054841
BLAKE2b-256 a0bf687a7e9af5f3c3c8c56d9f6942a92a5429ff16df79e9577f7201ae648458

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0efb7cbaea5c34b368b8b6d545a3f4aea2b604db4fd276a1f7826588f0e24591
MD5 3e2abce56e756f2ea5748f36165bcad4
BLAKE2b-256 10f3bb6fb0c79700750057f87f208c7c7eaf632bfe0f368a405bd3ce132cba4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 271ec84b5def78628cddfac489b3aef7bffcb2ce9c8231d90b8a3fd15bc20e91
MD5 f768e970407963f4db5259a34058f6ad
BLAKE2b-256 3cd86365b30014a3fb84634e2f0015275dc82b275603c753e9f7aa5b29f666d0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.4.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8f7a6ba79782362e0ba0bd7bec34eba4837c02cb0da03a60e9d658aeb6df5a3
MD5 f3955275882afe30f45b20a9ad835616
BLAKE2b-256 631b64142586d9678f342f5d59f54697a3434fb41c9d65da81c5b4d384968c35

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51ea2435baff7cef4f1b6e5168ce1bd77325d4409e3aac9b8a209c52e7d4755e
MD5 9e6bce0394376ed4741185459440dd3d
BLAKE2b-256 200c75c718b55f95555de28b8bca3fdb79ecefff1dadef9ae2559a99816e454b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7368fd93fc181786a9845382b5270f50d05f7069073f921795b8adb21b9e764a
MD5 59716d862af493b61467a26d5c8548d8
BLAKE2b-256 06696ca4c787cf2d0d7beebe2a93bf6e6b852e54bdcec57b11b6297e420aee39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2a173a2a157b9a398c2e3a4485b0ccd30ad11ca4cb949d2f315584bf212dd2da
MD5 8f7a50e048fab26bcc9a528f5b2cbd5c
BLAKE2b-256 d40b4ed19a5886b62236b6f08a18bba56ecae610362afc4f9af301779e8a7172

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e87cfe6190d30528d5444d0bd7cf13d8833063ecb45e4bea43de5970b9d70842
MD5 30efad16333e8ffd0cca5deb9fcade5d
BLAKE2b-256 3e400ac8dd778aca20ba8de753b4c9e2e4405b579b04359836175dd86236ece2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.4.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8281fb2b2bba12aed1cad60a7e616671384a0330f65d3e0bc6412f15c1a05c3d
MD5 03b301f447d55f5c476140dc67cc6e22
BLAKE2b-256 033c6fb850302d9c5602028365844ab9cf89a9af7236c957311c880b060aafd2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ecb56f86954c08042ef38a9c5d893e69e8c465e28b252fc7c8b170e02fc399c7
MD5 5cfdddb8ace9586d13c2bc5349c9b02a
BLAKE2b-256 d0cba01e9544950c6e7240faabc061b976e998d09833b1b875c4206614969a33

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 150bbee7b193aa4e4708835e11366afe6a040b97cbf17f7f4c4f94cbcde59157
MD5 a28f29ec6599ecfa04a1a17d2e68c86c
BLAKE2b-256 e6006afc095f91f307a49cdf4034885637c2b5e50760cba64bfcccac659e8c11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f77196234a00ebf46434ef80dfcd561207b5c6effaa5cba2cad9172f2f607557
MD5 16bc070bbbf1839899b456db6b39c724
BLAKE2b-256 2b368d5d8623ac5f57bfb5ab2e37adf516966591765d83af1754a26b849c5557

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.4.1-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5d3504bb5352998638ee73c355becd53c784edaa7fbe108821d65dcfcea8e5c7
MD5 77002d2c2f53b6a2269f0a10875f530c
BLAKE2b-256 0f98b1873b20d3f9bb8435d619b828c61be8739b75a693df3e9198305880b4b8

See more details on using hashes here.

Provenance

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