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

Uploaded CPython 3.12+Windows x86-64

pytket-2.10.1-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.10.1-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.10.1-cp312-abi3-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.10.1-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.10.1-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.10.1-cp311-cp311-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.10.1-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.10.1-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.10.1-cp310-cp310-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pytket-2.10.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ecf77f1d6f79e6595183c02fbb23a4fcb45a7fbb82c3c81d41d593a06e6ea4f1
MD5 0861331ccb4b3f3b9036f758280a7d2b
BLAKE2b-256 eea189988fb36e066d78c8457a20a45ff5d7f954c22f40f80685738e8860a5f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7b98ac9119729931025952ec121652da336cb59b2f18d60f04fcdfbc9edd0fb
MD5 ebb3213e5feb58d61088c033dd4f4ee0
BLAKE2b-256 931e7bcef18b060f2a9858016e7d874e466cf458b3ae6469d357e3bae313849c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eead5714a9abde29f784f0938b9939f822426bae5b54263f9196004185fe604c
MD5 ccfad990b584c51f4bff87b11ccc2768
BLAKE2b-256 c2dcc733449e8909b08b34317b2cca8c84efc616ee2cdd29a7060c6ec0323c3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 60967bbf797be6c708cf6b983af889546f0d9e0818868ec7484a13e0f6b36986
MD5 7952a4fc2fcbb87142b7d8dc15176271
BLAKE2b-256 575367f176f4b1872f5632f47cbe1ee5a25034b9162a40b289d946fa03eab756

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.10.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ddee0ac566f90029e60b87fd35a0a92216c754e5d0866a777fb825588330f823
MD5 6946549cdec721d8bda07464fe775594
BLAKE2b-256 46f1a633e1bcb9e529fbfe088c99aaed7e427b4378da78eaa994fe9c212c8364

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eac7050143c1282c1d7d74c4b4c2132cdfde6feac5b3c407aac41862aa87db4a
MD5 2bc801dfea540fb5d68a44d5591d3ccb
BLAKE2b-256 091231e5bfcb03eefc63e2360497d2730cc86b508a0077f9baf4507132511470

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 161004140cba462720f6526461b4bcfe08ea141f662a515e31df336e0391bfb3
MD5 4180e7051871315a0604279fad2d81f8
BLAKE2b-256 a8395bff9e0f141782d401090b8fd91419716b83df1de37959cc3ebb28365336

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d67aebe95157ba48fe8d56ebb6c97977a346b31d2ec54e736d45a9708d9790bf
MD5 a09c2503800da3d10ef54d0022bec014
BLAKE2b-256 15d642191bb48ebb0f6b2ad13ddf41a6e989451f44f27d1a6e689f266ff11cf6

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.10.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d2f8a0e73cdbe2f3a1cb0cec56b5f76ae862316660710a6909eae76d407bc8d1
MD5 b8964d15b99a02a39b8f75163e847ce0
BLAKE2b-256 f445be3a32da08f04d88d3477c199df11927e5a17c8d9534ed31df3702609179

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 badae62e2881d9e45ac36f9c4c6ac664b2fac930088956b38e78f1806ca2b726
MD5 9a8162fb0b8ebf473ddb503a4c1a1fca
BLAKE2b-256 3647add68e81df404bdbfb6d822cdc52355f9dd56861cea767107ccbe96faa83

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a4b078d44e255680952e785689966a6d114d9de12f7f27f3cf68f9ebbf0246e0
MD5 3018624a63601dd8a580c0b43c5b5827
BLAKE2b-256 054a71000c2e14626e085e051988222324da4ed56867474dbf5a044e712540e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.1-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fd43e415fd4a2a00ec3d39351664b2312a5c904d9ee83ba56162fb813041584a
MD5 2cf2b2fb001a0f263561ff5afff534d7
BLAKE2b-256 8958892282cb048feaca6a237aa2bf93fb86d1c40cf456841b4656e281433591

See more details on using hashes here.

Provenance

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