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

This version

2.9.3

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

Uploaded CPython 3.12+Windows x86-64

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

Uploaded CPython 3.12+macOS 13.0+ x86-64

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

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.9.3-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.9.3-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.9.3-cp311-cp311-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.9.3-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.9.3-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.9.3-cp310-cp310-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.9.3-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.9.3-cp312-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-2.9.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2758bbdbd5c8528c9302b85c251b60f070c0ce5bf15bbf842623be0537e86f4c
MD5 0206b74e7ef25ffae2c33b565098dd2c
BLAKE2b-256 13506f6e7157af670f2d6a80e7b4568f639dcef5942a03c426c0c15a5ab99ad2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e4f4a590057c0fd8b924bc23306c7e3c25cdbd02306f44bbe0034385241eac4
MD5 7ae76628b53040b9409ce7a1b01b09cf
BLAKE2b-256 73aa18ff145338cf2f745e9481a3037652b33e73a2ef2656ee2b102a9921f674

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c8306f771883a4efaad35103a4bc139b387a5eb514177abf4cb7470212f461ff
MD5 b3f03146fd045c489feb48b87942998c
BLAKE2b-256 aeb983d81d991a7d0766de97d3281f8e81121ef994b6d8efaf164d9a79220542

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 83a69d88c33eb2af12b1a220bb37dd91568279078dde8fc2b7717b097cc707b4
MD5 bddf2508c120965d21d7a36672be3522
BLAKE2b-256 573ad1c8b94609dbd59793a5683d8bce192cbe1357aef19fee64560ab15b6277

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8f34a9e86229fe9ae809fb93179ceafe095d72765a8db2ae33f5daacc0343ef3
MD5 d49ac69db9049601346d22abfde5b3dd
BLAKE2b-256 7f6e8b9b062afba1a5cff7ad8f746f2e5f05c127be9eae076fdd7b7d8307e6e2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.9.3-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.9.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8e0e7548c90643adaacff3daad7052afb9aebbe987f60799373e9c7a61adb4c
MD5 31b792f1c762bea62f497348d013ef46
BLAKE2b-256 cd4fa0e4d501f6b1dcd63e47e23870ad9bfdcf420aa0f6b403e51f0a19c55b39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4040c1c8b9f5a6915e65991d1145dc87ce65d7bfa03663fad4dd1f24eaa0932b
MD5 0097b27f310577f5bb17113ac4d28bf7
BLAKE2b-256 36d631c394990479a12132cd77272a78dc4daaee05a8e9f4d23d9849a437bfcf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f1d782706f70bcec38cc0575c70a8fe7cde5a50e03a0151f5696fb1bf784a01f
MD5 c1e9b62fbf0eb6e4284d5b6add0dcabb
BLAKE2b-256 7f6be4e83778d4e716f65fd292fad32b4d3ddd3b60055d554968e0d03eb445ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 70d8d133e71e7591432921b691e9b34fa8a08235ae3be094ea0f9fff6cf3f70c
MD5 4009d431458bc30d19a3592dde53dbb0
BLAKE2b-256 2073bed5ba8ad66f4add82cd74fb4de66be90a85fa157add0a2e856cad7c520f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4e4838847e879395c0dcd20be5dbbf8142e91c9cf50fc35da3b354bce200e814
MD5 09b2464f56a016f23027813efc274f5c
BLAKE2b-256 a6467550f642aa0b64380a050223cc188ee6cc15b4e9d2290baf31d249c421db

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.9.3-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.9.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cebb9fdcde6fc68a14313c27da930df43c1b06b5d1a18eaa0ed64fa6fbbbef00
MD5 057a6377c39fcc9860766b6a85826884
BLAKE2b-256 da52a156a15e056232491faccccf90a0638273fbbda9cea4a73e3b215dc7bdbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bbb567f54073d8536ba3e41c39ee37a7842accfd17dfc4b1ad26ab0f573e47d5
MD5 3929a542e3d8648806a2fffdb8ce1a6f
BLAKE2b-256 0d3f26a12f74c3a6670bd6095c75f445743c5f0c594c02b327a0a3afbdd5c152

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6f957083dbea07440de7c81911c801ba38e5c4fc774f6b889343f31487b77281
MD5 b36dc847369241b2606552d347705689
BLAKE2b-256 9a4ffbca25ca4033379f859d1168b9c252c2480ed9527809f56bd6ade4d2228d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 106a70298ef5efc7234009dd999fab0cf6b8e030fff2b5c215e330ebfd956386
MD5 f9d58d15c1ce8baf0b8e2b99f0df2f75
BLAKE2b-256 e8019e5cabe1002febee01a44787a1dc818f960833e02f62fb71b565dd226793

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.9.3-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ed9cc3d709325c61d1062841916cd9664db73f9cf7b1dd3018c7112e5abe7839
MD5 a9affe64ef0a644b9607d8eb724af5fa
BLAKE2b-256 dcea1dc111b6314e9675113dd0b651d888e27612ae91fc5b930c4b57b30258db

See more details on using hashes here.

Provenance

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