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

Uploaded CPython 3.12+Windows x86-64

pytket-2.15.0-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.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.15.0-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.0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 15.0+ x86-64

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

File metadata

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

File hashes

Hashes for pytket-2.15.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1afae2c1b08692c9ac04a4cc9421e3aa039cb7e468d4bd2011a802f67c88dfb1
MD5 555613cb2b34130e69175af9cef21ef4
BLAKE2b-256 a5dd68fdb8117de1d8684b3416a42611fb64e59f0d674500062e3fdc50dd78b7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7947db076949df22f3941cc90290afc470a73ade5d4dc1e6509d5fc58965ad5
MD5 29cf79c906cde34b4017b2f8c1d45eaa
BLAKE2b-256 56208e1599d5a7c9ce28cf78371f6b9d364f4d1739b682279aba352b9b8f5c6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fb12d0598ba47ef18c25544fcb83a063e7e67c9cce36de127ead507014c657c3
MD5 9e9c14fd76570d54e8d3c80986a57323
BLAKE2b-256 2ce6ef8ff958f7d03f48f6e22d23bb6a2ea15ad7c89c9d3de42bcc88b568b23a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 06672344186a51b97ff7b779e71585092e425475abbabf535a65c23786afb042
MD5 1b4ca4e217ab5fbba10aae4b351d5112
BLAKE2b-256 623511e65debec9d99286cc8ac84aa3f0404710a84852f318468bfc59e0ca205

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 035815cdf331e97c6c2cd56f60882b30f768721975d7c2f082f5d044237b503e
MD5 5c2e646737f0d0c813e6e8f0cef5f1d9
BLAKE2b-256 b6bf2e693cd9a80dd57f94cc10d5003622ce33dc824c88713c37760a9329a495

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.15.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 31893e38e1294fec67d81e9c4a85a137a5912136eaca0f6d61dd1ef358244214
MD5 441411e529045cda7f4a4f94576c4e44
BLAKE2b-256 e1c4cc295210bd8d9270d70d038fe4a8752fc0c9c38c49e20ca443843b4e5e24

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13ff34fdb516ebd3a203ff782b02680d9f3d5d5e04ee0c986aac3faab0f3bc98
MD5 83107145ec2f12e57d1d1fe5ee8a9d88
BLAKE2b-256 5a35b0a5f93b6715d6acac4860f00298eb38aba3bcb8c018a776d33603d58122

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 30c48893dee117d47771962833347225571fd87f3ef1807b5b3d18fcf06ef271
MD5 e00d2cdd2ed94dd8825b6e07586b4fba
BLAKE2b-256 d304fd10c47e1b3c20382fbe7fc33f8d3cd20463bbb55e5785ee5ef510663928

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 28aa4e25248123e5d67b1415e3d9d8ec384283ea88d577839f6d7659f5232579
MD5 526c36a5a294830ee63e311ca77307f5
BLAKE2b-256 a00e7cf5cc85d8bca150f25c4ca682abc6325cadd98154e798b5157fb98cb9a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c48e39632cb923df213e0c7b5d5890bb5b0595a753ba694c94a76c6b3975a88b
MD5 fc8f6444c1ba66f9261e0aec04d542a6
BLAKE2b-256 334b044fd8912071040a9f98f2fd85a506093c8387e964238b381114b679f81d

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for pytket-2.15.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a46998ceb0db73334dba8d9461cc9c74205a69d0352ff4cffc0882a26e174ab4
MD5 ba9757ffe1275146b37e58cb26fe42b0
BLAKE2b-256 99e2b35608917e91439345b0728aeb2fc4f936483934e05f17751871c701bb17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed39f31efc61c7300dc2fa9a9560a9308f52478df7a9a708e39985946ad58e9b
MD5 8b1f750ff2fb26b068007a4d73bfa02f
BLAKE2b-256 fa7a3c484d1e41c5b6546b541a2d2442c11e4ffbecdfe07e835660fe4e97f858

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6fffa0fd0342f6f40383bd63e3eba689fbea528a46355e327bcf340b4c88eb81
MD5 dc2e3f231d9a4a2e20bdf07b1649a7b9
BLAKE2b-256 095fd3c4e909443b3db4b28610b2b973c354d7ef84884f7dcdf3ddc4ddfca92d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 2bced5c39e0fe6f1ff0a49c535457c28d30223476bdf5167750ef33bfb01de80
MD5 b51f74b8f8c7de1bcd70c68ad2549511
BLAKE2b-256 9963accaa09e0c22e901d215a36bea06837d36526269575ed56e4929f5a6e9fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bc74b0f7c1d82ca78e8551898af4e495b85ad5cdd3555d2b440b8ba9b1b22996
MD5 0fff8bd170cf3e91e50f8c557d5d81d2
BLAKE2b-256 cafc29bb412acc4eddc0c239e72829841903a3c05aa8a697bcf09857e0bf3e08

See more details on using hashes here.

Provenance

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