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

Uploaded CPython 3.12+Windows x86-64

pytket-2.8.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.8.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.8.0-cp312-abi3-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

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

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.8.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.8.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.8.0-cp311-cp311-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-2.8.0-cp311-cp311-macosx_13_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.8.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.8.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.8.0-cp310-cp310-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.8.0-cp310-cp310-macosx_13_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-2.8.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.12.9

File hashes

Hashes for pytket-2.8.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 12972a1e24ef6095ba89c65ce105c8c6d5bad359fcce3e17d33e45bcde5279ed
MD5 d21e955482edeebea9ad6b7e479f1415
BLAKE2b-256 2883373ddb60b5663e38ffeb8c1cacb81392ca1de7c655c9c5d1d60684be3bec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a559f079595ea84b74d7ca9382cc0736912d7d9a569f07ae2bb33e5ed1e79dd3
MD5 9901c94fc6fd6922c04adfc002e00ecc
BLAKE2b-256 a621063e99b211e1507af7e9b7fe1f98339c181fda84c74c7fa42932b1f12edf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cb300c3b85fac7146e4f8e3ecb60b25c1e26f595efca47ebae6f9c090e65c1a
MD5 cc451b19a879d2f02201da6ae672ac6a
BLAKE2b-256 599ca7fbda6f23ad9f97ce94e2e5ceed89b31adebbc928f88dbef654bbd59ac2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ec38d74cb19eed1896020f7f07f4b644de7e1e104aff25114dd492ad067425bb
MD5 40e6c3f44e40afc226aa3d64fa4b63cf
BLAKE2b-256 44ebd488cf6b2ab61df1196242c404bd58daf12eca8093d4b87f8f8213ca765b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 61000a908fab1483453f10903a142cafe4ad5388cc77972d849414ed28c84b9d
MD5 fbe5f751d4b515d7e31c6f652d1afce1
BLAKE2b-256 08e580910c9047b8dd6405a75bf4af9782cd71cee608de4a9b9e30a55369215a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.8.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.12.9

File hashes

Hashes for pytket-2.8.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6a810861cb34d38ddcfe7f78c99e35e4309ce8c72521c2983a6f4c88d29b320c
MD5 0444881664f338db4bf9dd404bae983f
BLAKE2b-256 3dfc2e982fcf0403fb010c75b9a36846721d1e32e8ec2fd326b854f94daf823e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fbcad959c478fbcf544ed48977ec9b270098641920c7c837c30d985cce5c45dd
MD5 5cbff08f38cb22f5ed27d7509f0141e9
BLAKE2b-256 34da816ec1ced5f933b8fc09cf3118d60108374d020eaf2e484b8cfbcf47613c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 17af3f2dc8240fea8fc96f799b869a7cace76406a11a99555fa06dfad86f5808
MD5 b9fd39dfc9922ca672eaebe2552314fc
BLAKE2b-256 87390b1c34d61f4b365a7ea807ed2ead51b6f568aaff220ec1113daa0b0714ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e9e9def628b90a9e18d0b07db7cf971f150cb4a3b105d2c1f76e31858ebb05b8
MD5 3ae2ab176cef487555e37b9f3f141e9e
BLAKE2b-256 afb37b1fd67d7a491a82fcad0576a61db88fc4b491cc58c1d63c16df8c749e8a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7853d937415842d715c01ddf8c95aa137f760bdbad712613bb0af06b4f4dba0b
MD5 76a1457ae0205571ce940683abf36c9b
BLAKE2b-256 b98e62729dc39ad1a121985277da7c2cc619f88059e505feece6af58d14e483e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.8.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.12.9

File hashes

Hashes for pytket-2.8.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 defccf40a9cc6a60543aad72b4658849f4a17400336b227d0232b23aaf89e2fd
MD5 6432cbf24781e9e5772c9b168e2cd8ce
BLAKE2b-256 6c363f5dba926d05d6bd079a0b2fc5642a5ed0ca0dbea702369c50718365a43e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c05a381bd15482d69fb75fbc19482ce7f1d88de32b69e437fc5c6cdc73418718
MD5 d92f5a51158be972e3542d987bcd9fe8
BLAKE2b-256 67f8ae25277044f44ee08df5c721d673db9339f15e3a544e3a5854bb438ed913

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8597a07feb3e8a29108ec66311261ad5f8f0398f10cdd0ee30e34240d095a29
MD5 1e84a9c05f2106ae06e1bc3ce6d155cf
BLAKE2b-256 75f1fe7f97e244bb38a77490d0517af051700b78be2dce6c15701f04611b5215

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 92140736edde3316c731cd57f941f69cb1f49942a63292ee1765d9ee2e65492b
MD5 bec41e212281d45418a1692140dbd5c1
BLAKE2b-256 94e9b94bfce9b70493a31cd6a5c860f09c8dff8ce2e30cc1ee1a1fb101b2104d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.8.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c0f1f61e1f4b0863744548985c7306833db31a7204379d0b1dc5aebe2dee75f2
MD5 5394b844a5fcca9efae6c7a7070fc642
BLAKE2b-256 1515515928ac92ca504cfc0f8479d299efc82b6da2e88248fb43283eb494feaa

See more details on using hashes here.

Provenance

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