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.

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

pytket-1.35.0-cp313-cp313-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.13 Windows x86-64

pytket-1.35.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-1.35.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.35.0-cp313-cp313-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13 macOS 13.0+ x86-64

pytket-1.35.0-cp313-cp313-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.13 macOS 13.0+ ARM64

pytket-1.35.0-cp312-cp312-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.35.0-cp312-cp312-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-64 manylinux: glibc 2.28+ x86-64

pytket-1.35.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.35.0-cp312-cp312-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

pytket-1.35.0-cp312-cp312-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

pytket-1.35.0-cp311-cp311-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.35.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-1.35.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.35.0-cp311-cp311-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

pytket-1.35.0-cp311-cp311-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

pytket-1.35.0-cp310-cp310-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.35.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-1.35.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.35.0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

pytket-1.35.0-cp310-cp310-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

File details

Details for the file pytket-1.35.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 777e50fbedad96734499d00216c1ef88fabb8302d0f3742434e27772a4ac5e87
MD5 9831fa489f5d3d10489e0e2f33bc7fc6
BLAKE2b-256 39c146ea7670be2d55e2f67df175f0d019215e0bd79fd3460db37791a237ac6a

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 facc040cc184305266ba3c1459775f616ec4451ee65d74c9fde12b9fe7fe0ac6
MD5 b9f7998d2d2ef59aa2bd3bf4e91c6a3c
BLAKE2b-256 4585cdaee0f026dfeb4f56930cce64b6b286ba64a2d3d683cfa72a964ebd5dec

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a1bc6908779ea466fb4e244c60751ec47c59601ebc7abe463a4824502e22581e
MD5 753a8e2b0044366483604e174fe46cd8
BLAKE2b-256 2a6d02d1cb6dbbcb0d119c9fec3d79d78d7a55196dae1e86c4f65431ede74689

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9f6cd1606517801a12805386480fe42443324955402b1d848d88c8001d1bf8b4
MD5 7614f47c4f2fbae0b6e21627a0405da5
BLAKE2b-256 58d0dffef75cef1ba014cd89ce0a587f5b86b126867086100d7ee14a6f9e9a3c

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 cf20e4a33a8a2c3a0e1c3f0903446cfccf9796faace9fac9f1fbabcad936628e
MD5 556a2b05d8de0528142ae2076016bac3
BLAKE2b-256 52c311373b299383eecc4805d5da4f34404a89cdd2c8ab25a3971460fa300c58

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3d2fc69153f80e9ab6ca8559647842a2b0b66a5ba6d3a1f25cff32b8381b9408
MD5 3104aaca7db22aff3ee72cb5bc724d26
BLAKE2b-256 2879ad1d69818c67c4550d426575a73132a5f08c95258a7066b100e4399fb728

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15f4bd39e9d0d0095c881721450b58805be36ba4f983e3edd5180217329bb157
MD5 78c8e12463a2fae7f7874f649b90de44
BLAKE2b-256 4192e97972057e5bb036e00962f22ecb17836a352f5adfc4cb4e4ac612a0dabd

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5be1f597129bbe602076f12ba95f395afb881d1f7687b3db126ffcb8b8c71650
MD5 a858dcf231b5cdef9104afe6472b251b
BLAKE2b-256 a340dd15c177b4f8220db89ed552eeefe7a0041dd232477cbaa96ece9fae02c3

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9d3c4868fce5de63042c37867c1a795b345a528a20beae469dd540a4e89fc837
MD5 6247447504275e3be3bf7e4efec29003
BLAKE2b-256 d066cc1e82d1e16a539905a76638b735c457d0fe2dc05f4191c1907ce570e904

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1d6267ecab64c905d1c7e4bf9f8d9b446616f4fe69270fe546fe5ecd5ed9bab8
MD5 28b51f3488cb8c3b64736625ab10025e
BLAKE2b-256 2e5fa223ac622f0b6218029ebe9e2d3da50d56ea79a668db5b6311a452ba07ec

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e73751def3604458c2fb3e3c112d90adbc1df9aaaa9564ba21df6d7562ef5590
MD5 256503c8ac722a267cd597bd96510b8b
BLAKE2b-256 ea970e96465fe0d0a58e16d85a0a5e6d71cf50f8de4f32e808074a70550d9f9e

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b86eb9c0df6b96adcbe426a1da0785ff36a7e0546a27105f0a8f1156bd71bf1b
MD5 8e1caa38b983db06a8bcf095f4481ea7
BLAKE2b-256 ea4a189aabefe386817ef9a93faf8ca8416e19db572cc3b9a962b4b744339a1d

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4fbdbbf53dcf20adbb5c188bdbe36f85527f618f056bd8f3602d5cc5403c1b23
MD5 694299a6da885217d2de228f8a858549
BLAKE2b-256 1a383e05aacdf2410ba452ce2a561264c75cbe6b626c1dac20dbd7ce90c63ef5

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c36c51c9dd83243eac945b088ecfcab7dc7d6d8efc82f2d699bd6cf38ffa9206
MD5 01333f28adb074fa7ad53e80b73f7d15
BLAKE2b-256 a76e6a75d531667426f6e1bb52fd21705b24e81880bb472da789657921efa0d7

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0b04631aa6d819452b297cd7bdc7dacde0874e252085b09d7a30ccd82f985186
MD5 705c480abac49b2119bf1c9136b67425
BLAKE2b-256 dae1d34e532d7c90b0d07457c8b09186d501dbfdcadc0d5e547d7265db73f15c

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1ce99c0a7765a5072795796cf7e8fc6e411dfe720e10a86ec580de69ae8231b7
MD5 77f8851bc0b5055fdcca9e60eebd067f
BLAKE2b-256 7c2cccb3ec1b579ea3f35c111bad3867a5bb4d0b2fd8d127ec1635080dd39db4

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1be4baf928e7a5ab022feb4f054609cc70f2a26bd8f8128cff5014dcfe39f7b5
MD5 6efec28f282ac8cd597f7a32847050f8
BLAKE2b-256 8846c5b360275c09817398c28a9c9da90157c779e7a6d82739597b4b5a5be262

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 637607a958c8769041640ec14c62707bce58553fef6b2aa7684cbd864f844730
MD5 13754dafb6bcc69d12a29110c04ee8c5
BLAKE2b-256 820e90d80ad95cce02041b5c51f7d24f0d8662537680b2f9477592449e277ee8

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 eab27bf6873cf436807d0739e86a9c9870ab224ba0b495ef681a576881e493b6
MD5 d68394074ebbb2a2be1069b20c8ac794
BLAKE2b-256 7a4f69ea585e7594ad23d537d7e62c24c2f91e1864928afa45cb6fed6be14d59

See more details on using hashes here.

File details

Details for the file pytket-1.35.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c8a03070c5adc151995b6f38f87dc9c0b14ede2892d9349a1acca0a29c11e54b
MD5 89e5532c8d9f92593771a6db46cfcfe4
BLAKE2b-256 ebcf49b5ff20cd4b84348224884112802b85e5d4255fa8d085956fd4efd0ca2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page