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 or 3.12.

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://tket.quantinuum.com/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://tket.quantinuum.com/api-docs/

To get started using pytket see the user manual.

For worked examples using TKET see our notebook examples.

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.31.0-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12Windows x86-64

pytket-1.31.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.31.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.31.0-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

pytket-1.31.0-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

pytket-1.31.0-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.31.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.31.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.31.0-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

pytket-1.31.0-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

pytket-1.31.0-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.31.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.31.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.31.0-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

pytket-1.31.0-cp310-cp310-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.31.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.31.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c414598ea4a66a8075943cdee067911af597ca9dc0a22e9ffa4596c8e995abe2
MD5 1890b813e65cf6222468586e8c246b78
BLAKE2b-256 bc8bd1171a905054ac1059d6e169a6d363f7f1900d77ae6674d15726339f9aac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4fa61c7a629402fb260a71c6425466ad205ef148463959f1b29717fd66a79681
MD5 f4a283b41ef1213b89f5283d1a9537cf
BLAKE2b-256 5f341ae85f4fe6555cdf5916284f6662bd5aca2c2ce485c46f4cb3abdf3ffee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f674664465c04336f7d85b6f0aafdd28f5437acd647c9083df1433a90d10a98d
MD5 456f8f6e3f36f51e6e37ed939a166ca1
BLAKE2b-256 ef9abc464c7a789dafdbe2a3f49effa7ef2024cabd75be2e524c980b252fc485

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 88957b28fec827a55eceac7d4c70e29ddf89531cb62c325585cab7600a4c55b9
MD5 849b858ee2b3043c3f7eed2c60750281
BLAKE2b-256 aa8c9d4873eae5c0707f5b26aeafe4f693512a4c151bcd09367daf212de8f9af

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 848350011e8f04f59ec43deb79b1fd1ff00382f71fd208adfa972c0b74efa09d
MD5 b9c28eb67a0e18df6d6d6aecdc0fb278
BLAKE2b-256 22b127f5880ef8e24d1c0dfe2c7e7be03ae5c3215bf82656fc8dc2c50a08519e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.31.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.31.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4e361269f611869495ac34aaa68a07994f76bd35d21962629d2aa54a62d5726
MD5 e390a66fbfd0c03bcf3bba25def66b1b
BLAKE2b-256 d1c4f46748d0199c8c6b202b4d71d729b43139912570b6f7422fad99d8f7baf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5069fd53997ae93826df24ff7e2b5309d4d0ae645b6c10d3ac62725688b2556f
MD5 6c7610bc8dd11219ef8d101e46f14303
BLAKE2b-256 93730c6ff9ad5ae0364af003abc9b3d7e4da3cccc71816d39f7d8d1e3d456231

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6a2f7ff90a2d73447d1e45c2f56ce08116634a4c2986312fc88a7903a328b4b5
MD5 afa1c1d9cb3adf48be6748530097b238
BLAKE2b-256 0af79f95a18183f709067c1b11a0a7881e8cd32e38a34d968b2fb153b54da7a0

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 258ee145704e040d352c164e11d794bf612d26cc37c1f585a5453397a86f7113
MD5 ac35b2b6ae4c307f47a1a0c90492f36f
BLAKE2b-256 25278b9f23ed71f30733ab749ca2b93f4af03bb25d5040c8ca5de8b4fd430a48

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 be5fab98fcc14860ee4effe0a7657b39c2487a29c048e0ab228b7be3ec80e049
MD5 eeef4c5a957a38842a3500f350d5d3ca
BLAKE2b-256 7b2dc3487ae6ef8ec06b36534c1b965c1741642ed97be620f04b85d886c7c347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.31.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.31.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8cc42819d6ca0e4c2587235fc78ec6ae2b75610190f0a0ab369911043e6a7dc0
MD5 58fd878811805388f99af2c83b6c8b13
BLAKE2b-256 2d63d69e7a883bb169fa16cf8d15ff254a4bf3db443099bce246c674361d2e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9878468c7fda0eb8ca3f0b9c349f811a1e7a7c896463892bfea9b66f88c99447
MD5 d89fe1b819c5b1e56d6822f429f49f5b
BLAKE2b-256 ad11dec8c525d55a9ce648560d1c79abd61851d557c478d9cb04a6f201a19ec0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.31.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 33762b67a39fe0052afa39a21e6b0f9c045d7c5639a7571ece4cf1bcb0b68e3f
MD5 c372c6230b482885817f819dc5e814a8
BLAKE2b-256 404661128904bfb3467e17d5d3aa221b526e37a136a5d5d634556c8e5c7b59a7

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 625fa01d930cafb99538fe9d6134039d25feb27bba528f32a78e1679d4103d0f
MD5 32ed56429ff3fcfd07bf0d41d6c99362
BLAKE2b-256 b1870536c58e909587031ae0525a283b1f75aac681e1de9497bc50404688f4a9

See more details on using hashes here.

File details

Details for the file pytket-1.31.0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6a1981f2e8fcfa4bfa2bf7c2732f7062646415d2846a717d9542f44fb2c506a7
MD5 7d6d7854379dd0e1c6df337873fc572d
BLAKE2b-256 678d03312d58f310dad185d03ae9c75dbf44816d4a971ca09f4fa624d4147fac

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