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

Uploaded CPython 3.12+Windows x86-64

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

Uploaded CPython 3.12+macOS 15.0+ x86-64

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

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.15.0rc2-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.15.0rc2-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.15.0rc2-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.15.0rc2-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.15.0rc2-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.15.0rc2-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.15.0rc2-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.15.0rc2-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.15.0rc2-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.15.0rc2-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6b481f54455c2a870f1ad6e8fd797093e82a5914a9589d292653a2d78f0d3a4f
MD5 a45b6b368e134de9b764db7507189e5d
BLAKE2b-256 c07cc4daa3852bead23b9d54376693338f5512008b2ba81e0dc23a72e72a5555

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed7bc56c46af559c42a5fd91ccafe98782f97de2b8885f2e0d9d20f2f5320216
MD5 47a0f22b14a80b38a3afd8a2c634cf58
BLAKE2b-256 1b7a3cfb7e87ae082a167e5f14a7c1964afd47bac94bad1f32720e9261e89a36

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 45874c2adfe8482aae365cc589b2d519b6f952f0c82e87ac76ff6cd84d8a9c9a
MD5 0b5a6232a4adb846fb1742d333d3df14
BLAKE2b-256 f5eded8d101b9890cb479eee79434c9ab0562d09db62f98623392e98ad86e56a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 0df4d0dafa44461a3e78600b8623ec977f4d82221007c2397276ab2942f9f20d
MD5 1fd46c6d676d3545a1a49a2fe732c604
BLAKE2b-256 b26721d655ee0afffcba58208855c3e005dfbb2f30c8ec9f6546b62edb7f30fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ea338330ba8c85900a2bf47f091a9dc0e82e6f4c17f832f676254a4f3a4399f6
MD5 255ce18b6140247c4de4d02994a40b93
BLAKE2b-256 436365e8439fff050bc39913cd588becd52c7d7c733efa403e36b84a6abf3584

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.15.0rc2-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.15.0rc2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a8870519ad1feb4aced861d5aeae261477ed1cc1458bcdb4369d2de7b476a3b1
MD5 ec921bac9d0de1eeca1f0822648eb1b5
BLAKE2b-256 f9ee3d421cacc4b401289954245f50e417ff1b47c1e7bab5ee791cf303b8cd8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b4961f60a231a58b7277a2b9a6bac1b02a79409061c007447b31bdd617152b05
MD5 de2888cf422c4515fca3f75985912136
BLAKE2b-256 5a7f0b5955b83bf05b53fa703a3b97796095048667f5f29f411b2beffe9d2894

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4fa77f6209847839f09db6e1fe95e235e06596afa8f470b1aa9529ecff96bd62
MD5 58ec236d59f4b614f3e88ee620462a51
BLAKE2b-256 07f8ad4f5aae75578ff3861f2c6c1a3eecd25c5a2c4727d641dd42235ef456c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 9373238b51d21fc77e0396e1a725529ea884f7a3058515d6f9d5161d3ff97750
MD5 32601d369b0f80985bd8503df345f380
BLAKE2b-256 7920d00704902f4b9b0733e15df44eed6a316c9be018ed7d0b123d0451e91b20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8d386211fbd8919246184b69baa535434753c6a059c8786ae03aca4c846ea2db
MD5 7f05e3454680856be9ae242609b71ee7
BLAKE2b-256 c871bf6d1e12c8d1e62b5ef48262fbc6db981e38353817fdcac8f06fb2cfa6be

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.15.0rc2-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.15.0rc2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 70921f7c96c0b625612bef92ecd9781ac766cbfcccd6b44835abbcd9a74da304
MD5 39579959de9b2578dad3d258e7538dc9
BLAKE2b-256 e223757c10218039695af2d7505011fb76a2ae98fbadbb60b091d3837fa3068b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 166ec36acda7537b769bdf4f9866163e97af9849fbf681888a9f41ae20ad18c1
MD5 8db573ff693c492f8de8e2bfda40b80e
BLAKE2b-256 7804cd55de34face2e7f61338d7bc7cd1620723884bc567678dc139ce75daf47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bf90fac2954cbb920975cc59a0ff295667a8680801795e2ec0fe3d2854b19f12
MD5 bd4d5a8c9643a3d92998380d8d674286
BLAKE2b-256 5abae6addc1f2c79254db5a4adc3e429f6b8683f364add8abf1e52da2bec7488

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5391acd027672a14e1a3915d4d29176ed375d0aebe3c9e8bbb2271795d35f238
MD5 6f9a7aa4b8693cf4eaba66c7996da639
BLAKE2b-256 9f182afadaf28b669099c037833a2a31002b31a60ff33992b9b0340cb1dc546e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 16111ab4952c7f5b4759bc5884c3d3e4619745533a7d25979e54bacab9f1f92f
MD5 94fa506148614ecdbb633eb73524aecf
BLAKE2b-256 4d74cae5c6a4f916318a391dcc3798c34820450b17d334f8852a9cb7e86daaf5

See more details on using hashes here.

Provenance

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