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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.13Windows x86-64

pytket-1.36.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

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

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

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

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pytket-1.36.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

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

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

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

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-1.36.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-1.36.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

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

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.36.0-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-1.36.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

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

Uploaded CPython 3.10macOS 13.0+ x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.36.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.36.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1f477d408e6a5684aabd9cd0e3f80fedcbcfb30ceb2af6f66bff6fcac54d0294
MD5 1a9c1a7b6219a9e74a427edebf71e1ab
BLAKE2b-256 88ef23d46c11d05e143b1f26b723839580d682358b471f840da546086fa88d8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f20619e577eb0ba6ac6b132dd070f7b9f29b71fb9dbc05ce4bc0bf1b2698372c
MD5 cce4caaded844081232fce78470e2ea2
BLAKE2b-256 facb9a11af0518aad69aefb4692311f1215d7ce903f7d07d024a7a7fe61d652a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f9404eecd9aa112d7ef5781bcc30167bf6e1760805877caf21380fed3c2f17cb
MD5 66273e101333913372345d99d964e736
BLAKE2b-256 fcba588396b555a0fed5e2386e99aed028c0440302b421ab00b1d3c50d300d31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 551d736054357a64f9da405d89e62dd33cdbd679ecae94556de120063ea08d3c
MD5 4d0fc4f4e2c26e1c4ce870f4192d7ecd
BLAKE2b-256 085d774cb5a3cf1b0e29de9fc772ef0670ee7814eb981ba4dd9be063f2f31266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2bd76470aa3c0249141f0a24492f04e5910c3b1fede2eb4a78c0e312ee5aa7d7
MD5 3eae7cb40382e019f796b48f18beaaad
BLAKE2b-256 b9e0fea7f5cab10360063d2c1e091c497af62dd4746b5c690455729d27e47255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.36.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.36.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 90cdbc7cceefee213d38d839de497786a5e70c71dc3c4f93f9e09c18e8316557
MD5 46507ab57edab100f5256d5fb0f89672
BLAKE2b-256 804102f6f284ad6a4e596ad330016a13d8f75e9b7e36f5439bd0a013c66321c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a238300db1a27da8bb15aea1c334b7fe9bbc96c89f95a586bbe349d2771b652
MD5 3b754cc1abeb956508d9f08baddb6fe0
BLAKE2b-256 ae1634849e87fe850740dc41d7f270cbb34e997947a13f1a6f1ebe7bb05e4445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f8b8497067a092c8d6a7e3af86a3a78e7881d0ae45ea0f2904e45fe58d66719e
MD5 d670fee9e220415841b716830d857117
BLAKE2b-256 135ad202f5302246502da64a75c57dcb27553a71f0e5f56efe47055767fd1b60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 982fbf203bc04266825680404e697ff38e1c1743b6d0305fda4b5d289ac4921a
MD5 746a06a5fd526237d5e001d21f193282
BLAKE2b-256 863fa7703bff05514fd0248c06b46fba732bf2a5dcaba417a1c8ac6962d834e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f9176f7fa8a42d75a43caec2634e19f854f527947fe2b76c06b8ca4a61084028
MD5 f721f1040df80b2d548f2c07cb49c3fc
BLAKE2b-256 65fb32659600031d389b9f26b549748a2353027b5ef2fe675a2b26d64bab5156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.36.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.36.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 419a95ce931d8f98abfb0339e8cdc7cce46d7453c1874d8e42df0e2617be5538
MD5 4449ab6d4782596280fbc65824d64460
BLAKE2b-256 a2d10a4067470c2370192829a8bed33bdc9c75eab2c15e87ad6075bddfb269af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 37b00e8aefc57802619e33582405d88fb0b9f372263d57217fd35e94f4fd92c5
MD5 b5ee2c36e2f96d230d59223f805c8ed2
BLAKE2b-256 9e32f7e448222e1c5160d17c646e6622a64e5c3d2e7eded8b3be12c3e407a95f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dcfff1fde6c8018c8c58428cf33dbce10dccdfb19ef658ef77d930af0cf32ae0
MD5 a0566d09e6fe923debe4044c00d8f6a6
BLAKE2b-256 431e43bdffae68fd4f4484b78fe9b0136083b8811dac7b30a8819b6deecf4237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2127df6cb5d1e72680eecba8e4535140214315b53d3d9fd98fef9158e7e4f320
MD5 bf9c72f9f5e6d444172ec83dc0509a34
BLAKE2b-256 0521eb2ed5aaa7ed385b5262016c00bbbb82c5e53d3aae24afe76ae430980864

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a7eb6f1baf1f239726484e97a39568710ae7f82f7185fa65e4aba8c9555d915a
MD5 072d35a77750f949c276046dedefd057
BLAKE2b-256 b68656f6f3db522e5326f35ad172b17aa8c22d88cdf2a36fe3fe107907bb3e09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.36.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.36.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ffd37116afe4fa48910b8011458a05bde4eb82bb528fd7b5b60ffb2f5ec84efa
MD5 42386c0de250ad88fe37029d669b6738
BLAKE2b-256 26e5853b120ae712bd9b8c34bf16ad2082b695fd68f0efa72dbe26a7dfec9ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8563d94c927cadac076eef6667721899a6f103e6b8cdc9d7b104624ab4b1cbc6
MD5 21060d44372ff4a9ef1dc2fa899a8f9f
BLAKE2b-256 85a1e3f15499218ede27220e749f984fe0d5cfc0e24411948eacf22271a2f825

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2dc9be3b03670343d2af5e171ef8a13450a39a48dc5ffb7098afa721256aea03
MD5 d7e329293eab889b55bee97fe87d5f1b
BLAKE2b-256 8fb796f4a58dfee9131948e6f673a98e9313038b089e85d756b91db1be593192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 aacf6ca5565b0e8d73f06462600d4f66179b0a0ea7110ca3c496f5b1f27c2aa9
MD5 39c5ae84eb41846ddc3401b73ec5131e
BLAKE2b-256 675bac78651c112e8a2565ea457f9ed18fbb42cd4d3aa6796a7e4e9e3823ad6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.36.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4b360ba2362cc9ae75929a9c3e9b5259fe82214ca21aaf9e892811d5cc205bc1
MD5 e293ddf01192438b6579f2875e1958b6
BLAKE2b-256 d8671ef1fd1195157185893bad9f2cc41de8bb4329e5cfc2a720d6d1fda59771

See more details on using hashes here.

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