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

Uploaded CPython 3.12+Windows x86-64

pytket-2.10.3rc0-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.3rc0-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.3rc0-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.10.3rc0-cp312-abi3-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.10.3rc0-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.3rc0-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.3rc0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.10.3rc0-cp311-cp311-macosx_13_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.10.3rc0-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.3rc0-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.3rc0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.10.3rc0-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.3rc0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.10.3rc0-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.3rc0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4f96127c6ee95b06a6ad40b9f9a7fa84afb2eb73006c616e957e1f4e88d3b0d3
MD5 49c9b85a44241a620d59a6a49b2845ab
BLAKE2b-256 660acb72920ce8b5b1b96cf2f60278d09762ce3baca84c95ea3b961f8861bb90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb5de0df7d0bef88a82ba6fc39cc638492db6c91b86ddf47d06ba7875f919f84
MD5 06e5c6bfe3d861701f6e547d55cf4598
BLAKE2b-256 da39b0ecd54bfade7199a3ed5a07d8937ee5f09814bcfe035c789cdabacfd700

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bc816c835168db353bbc0804b41b11d7dc52796a84892621cb5f66402e3fcaca
MD5 8990a663d5aea383326a05f01b3ed7cf
BLAKE2b-256 0d28a36d4866734baef47a575f5cab45adcf1e7017511cb106d1fdd0a78570fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 65e0c7f0f828517697cbb7192e0ffd8ad639886a98400562748c87d29fd46323
MD5 59f22a28e4949f3860c377282da8293d
BLAKE2b-256 a8d9affa5051bb2e6b125d003219839f328be05a433fa1e5663c53a5aaa39436

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3rc0-cp312-abi3-macosx_15_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.10.3rc0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a0f231c1da912b7817a7baae4d0a9c6f5fcac2dac69b39a42d58dbbda803a4f4
MD5 53f346b57959e0c6a5f931f9fefc50ad
BLAKE2b-256 53afa27c89750684f3c00bda6142ce11fda6e3e3e4d4ea8687f1b85247abd001

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.10.3rc0-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.3rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d7d68242acbb14fdc39fcb882fc70b4c0d364ce6a423c46de8d48626b5f8fc4b
MD5 c1350d4a97b24848a49756c8f14d8990
BLAKE2b-256 30835439e1755c6763b644cad6510d3b109d61920b42ee1f423d0432ef7172f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23b362945d9541023a40cc89d9d9e4bf920f85c942c554ffdc7a76bc066497db
MD5 a18ae22e031a111dfde4aee7c707df0d
BLAKE2b-256 4478d08eb9d34198731d94e20c0c9fa2cee8b222e7d11047caaaefe61fd5d3ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0afda940cb9dac31f392fe96aea1131922de04b911ee0f83c88f8985440f43ae
MD5 78c21299dffbf700bbb340736ba511fd
BLAKE2b-256 1d9641886d3cb56762fb38d172c2051ceef0ba8414013231b6ada504e5e62e21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 25d97f285895a8128790a9625493dea02bbb87323af6b9d9a539d3aa39d5897d
MD5 729e31dcb95cc04f4d6c0a90afb6c228
BLAKE2b-256 4b47daca03a81c438d4e6203175f7f97c0081678c7b28b1bd14bbfd7ee0ddfd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3rc0-cp311-cp311-macosx_15_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.10.3rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c0f3748d6fa5bfbd7f21273d27fd011b9560e84da2d74aa024b8e354abc1dd71
MD5 4fd9c486c7678216608c96d1f1b49773
BLAKE2b-256 f03631071b728dcb471f35e63d7bf4d86217c771f92df429be2361d525611741

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.10.3rc0-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.3rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 086d94aa70fccb3608d7fc2de58e949f1538d927faaf08ce8b14413b87157256
MD5 b71c34e89aad19c5efc61a876057af9a
BLAKE2b-256 04b78f2faf1fee8519e90c82f7959f818ad8bee96129e84832320225be70d179

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13a36bb2b1333a7c0970dde8050d6302c1d7eee5cb30ebad712fb714b42dcdb0
MD5 c8d71bec1a20e9b75ca0e541ee70ebbe
BLAKE2b-256 887537e38561559f5379a9c8389d117eff530e693a1920d3a5fa1412569fc043

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 49164737f7725fbb9f55c2b1ee2daf333dd120d902f1c15579d39767b4a17397
MD5 21014563c82f1fa0b4e2002aaabb25e4
BLAKE2b-256 4ae6db75b0b4c6dfca7369bd026f1483883056e4604ea462ff1b66c9af0c0840

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 0d89b95fe6bc36500a70d4159cde8be3b65f49762bf5fc9d56c1c9574fc2e085
MD5 2cc01f089417e6a3bb926249b4aaca2b
BLAKE2b-256 37866ffc04b70c283daa7866fa1dd69fdbee7a7016c9606e13b41335266c7582

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.10.3rc0-cp310-cp310-macosx_15_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.10.3rc0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.10.3rc0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b7ec6739afb5e386eb390ebab63f298956dd051436971e9c1496976648dff3cc
MD5 a537c1e3de2cc8976b2c7068d720c260
BLAKE2b-256 f4db3e3741b1dec7186c78a8365672cd780b412ba238dcb1469bdb741daa8b56

See more details on using hashes here.

Provenance

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