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

Uploaded CPython 3.12+Windows x86-64

pytket-2.18.1-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.18.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.18.1-cp312-abi3-macosx_15_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.18.1-cp312-abi3-macosx_14_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.18.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-2.18.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-2.18.1-cp311-cp311-macosx_15_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.18.1-cp311-cp311-macosx_14_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.18.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.4 MB view details)

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

pytket-2.18.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-2.18.1-cp310-cp310-macosx_15_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.18.1-cp310-cp310-macosx_14_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-2.18.1-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.12

File hashes

Hashes for pytket-2.18.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0535b605db1b853ca18a2b6903ae59f46a68f9c7a338f468d57c1a1eea46b3b1
MD5 9b60aa43a4027457ebe1ecb3a2fd7f67
BLAKE2b-256 61cad466db761f3e074a5972f71071879f2c592cd789e3c987b657b4439f3519

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e95f16fa90bc7aee1e07f8468f56353a594eb5ada004c5ddf11a88365a0c3c13
MD5 2922c0c0bff75cb734a46b3ad813694e
BLAKE2b-256 d3f7a84f0ed901e53d31e347327fc969cc6a7efffff27ad0543fec4be3978576

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 17992fa713b0d9c10217b00b347a4d6328423c6223bff5a5d7a38f556266ceef
MD5 060e1a9cb0f704efd7ba1480d9263739
BLAKE2b-256 41286812c998d104f00d1478e5ecbb5c9722426ca70c51b1f7b6ad70a089b815

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 4a9f7de0570cc62cf97cae36b6b5874d7043fce1cf1966c96ac8ae3de2482b42
MD5 25c53ef2aaceadb7cbb05d1b44a9a60d
BLAKE2b-256 60de2a6d239556cca21dc0d156c66c57c7f224691696fdca9fa66b6de5694187

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d3a93af7ab5ceffcabc3fd49423bbe323c90b5da41c6b9b4b50301b505629420
MD5 fad8c36fd00a87b088c6886c29512518
BLAKE2b-256 dcd6907df4e3bf1380440807a1df42223b7ce5cf0053061bbd620b2baae9a60e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.18.1-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.12

File hashes

Hashes for pytket-2.18.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 576aae081e70166c2ab5aad890ab9cb2ced97a91d3ddfb539fb48aaf5a0a83ec
MD5 624a3e299951c122f79c8703a7150724
BLAKE2b-256 47bfe8dd5f18705601b6a4a66e5880e2a48849180fda963f8242b324a50be838

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a79a4bd24752332139267dd517c46148589dcd967ce3153b105390ed0a69d39
MD5 57a788b8947c4a463e7fe4acd1262cf2
BLAKE2b-256 06fb770fdd734fb9e50e52103aaf30ef0127014e4c8c32983ff3f3e6593c63d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0124d1bb71af7c7e2b1dae4ff7f8a7f3c90064900b4327506e4e4cd2c78b9187
MD5 0d97fb74802ccddb42994a63b3eb8935
BLAKE2b-256 9a06ff64acbe2337232e04bfdc2219c629e69987a8230cd7dba2ab2f2d35d8fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 19096539b8b365e8e47ba3081a49ce28c829f2209f2e0c769b5f2dac6a774c2c
MD5 d5f7c0db12c714103cdea1d01b268899
BLAKE2b-256 243990f1fe3c1cb8db215bc8a25bf77133fde424c101aa267006f47de59b859b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 269c04b6dea1257d4e07f86f5c2bfc63aa63413f0278018900f6de9f2a0d576a
MD5 fe8680da536faa4c3da49752b53c2723
BLAKE2b-256 06f703eafcc4d7700bb518b25c6d67b4ba94314c26e007a8302f489caeff7e83

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.18.1-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.12

File hashes

Hashes for pytket-2.18.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d97dde1f27999bc4fd9dc585d6a4730a05e7cc4f2886ffb8b5d6329a079cca9d
MD5 3746788c8bbfef54a75dcfecec95dd1e
BLAKE2b-256 9b0345a82a91a5371a6e94b1af96af61e28a06db95b2bf7f2f8dd724f3a5dcd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5fbffbc74f60c6043f2635cf1057f136dff0d82ac8ac85898785e52a1087186c
MD5 feb36a5d63375ab05fbb697e7b46d018
BLAKE2b-256 f61fbd62913bcbef08502d7afb8205a0a5827416c113fe3cf4af29bf1d8e3665

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8601a4aeada9118e03f1b2f72661722f88f93e6ea5982a3d0a6c28b6f05e3e75
MD5 72d2581f64d1100ab2b3704892cd76fc
BLAKE2b-256 62213d716f0e0d8876311579f7e752dd0ec649cc2023cf85e4c4037cb2a81bcc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 9939b47ac28d8bcbc4f528cae9b8a94419047a94407b425702b9e64ffd5e6a1e
MD5 39b42249f740da4eed4c3f6aceafa5c3
BLAKE2b-256 8a074c0715024961627830759e065752ec0813956061327aa03bb94a9d68cce5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.18.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a173d23adb8bb2577462195422dd3523244d710d50e7b3aaa53ac98f9cac9a23
MD5 57de23f55d5ec6c75ff88736a61f7392
BLAKE2b-256 79f45963a25b8fdccc839841db75a14707b49760c04888d030ef6e499607e6b9

See more details on using hashes here.

Provenance

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