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 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.33.0rc2-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc2-cp312-cp312-macosx_12_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.33.0rc2-cp312-cp312-macosx_12_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.33.0rc2-cp311-cp311-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc2-cp311-cp311-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.33.0rc2-cp311-cp311-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.33.0rc2-cp310-cp310-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc2-cp310-cp310-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.33.0rc2-cp310-cp310-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

Details for the file pytket-1.33.0rc2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30d47a330d651db1d66d0195cf1675ae479df7711bdb2857d0e1d4468140f638
MD5 0103a3fc16c7fa44918aba7549ad0ef4
BLAKE2b-256 3ce7947f7fbe22105cbedfc9d462daaf546a50effc480824e1e4b788ec977df1

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4c8b2a669901e505ce6633fb0f49ae4864850723407413e5c11521c974ed5fa0
MD5 ac90f7beb5e1c5dbbbb0b5cf7e8812f9
BLAKE2b-256 2e8ddccca19a4be71f0309eab3d9500334bec4515342545b3e1f0b51bd9bea85

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0e767004bbe268ec6c2b537c1b9e3ae5f57a8f76cae559095a005a415ff1b6f3
MD5 2d1c065018a411f93896ab3a63ffd85a
BLAKE2b-256 118b1e247dfdeaa844069aed00b6d928baaccc89c3c31091146bb6787dba88df

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 4efc4d0bf7b44981184ba6b9aadfd66343def2db651e3b71fef6d1785043d699
MD5 d76f171f4ee112a45bfec326972a39c4
BLAKE2b-256 4cc5141c9999386fcc47c7001ec87ec9d34a78a3401807415524406007e64401

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 fc5cd6f4e879b0aeb8a9816cb7ae918f151821e69fd0c300c1c49964fb279889
MD5 83761fd3021c257f531d4af943f6f85e
BLAKE2b-256 91b1ec20377a4eb80983a08b8f3d6ba74f99c13a5040a3b7e27f3a97b10dc14f

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b79a17d091fec442f84e9925ed8f4e37298035b1f6ba6aa42aa67c1f2b920759
MD5 8a785a712a009a6fa4c7d20cc1bf33c1
BLAKE2b-256 b6e04c5ba445b642d0a9701fa60e69728bea8fa44dd9db58b191352b9b3392fe

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ddf85cc95e196bb104c4dfc2150cedb6caf6443deffbad22a23fdba506f8c9cb
MD5 d9556d11e1f7dce7bb0742e436fbd6c3
BLAKE2b-256 fc616c36dc24687150a43834e768c2badbe597a393a321830d86e3959cf6a655

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1ba53842eaa1b05b2a050b6e17f6a22f3d1664f1604c86c95db06df8b24d23f9
MD5 d5a61669479d35fd72a312e2b609d510
BLAKE2b-256 e47276ba9e117e47942b543ac52628d06e34f5429bfc917f469a6cf4bc9ebd6f

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2bcfdec93ea05bae25c2e1c4a6005430571342259ec2931f12679e3731403154
MD5 239d0275fac3e8e955a80642f7f222f8
BLAKE2b-256 01f622b4eed03a5455d8c6ddf5630066754de86713c10a652053d9c83bcf8c34

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 bb9107eea74a06d0e2040115652701b25161b737385d3a24d9b6966ce07d62dc
MD5 290f14e6c7e10689a1eb3db9261ba460
BLAKE2b-256 8dcc1390d196eef9f6e51494eb0ff136c49e1eb3a433537a43dec0af9659bfc4

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b74dcdeeae2bc324fecbb0e3e054f59c9eec6e59960f187c46680d7272ac842
MD5 c31520d271b1ece2de28f463c9d24ab0
BLAKE2b-256 9646c0f7e01fcc7bb11d1d3a3dd6e80037a91bb0ead4cbf8a8e69982bcb1216e

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f027a542f01719769eca47b4221a6b11b9e6a1787b7c4ca8e3c9d2447cdda7b6
MD5 39bcde307b69a1fabffab324e2083aec
BLAKE2b-256 053a0d3859b2896e8b8b4493488daef3ce9a8335b8fcd7a97b7214886dc2fb96

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc1aaf4ecdd29d01e822123d595316d6738bc726697d3ce9b26a7ef8a5c71b9e
MD5 452e551354623c55c1d0048dec5db00c
BLAKE2b-256 328771f97fb668af31d1c456f61fc3a472e4f49640d1580b8bd93a3a42cab2ea

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2d00259b267e0bb3c62cca8b16573993d11c9b948aacca2079a817dd085633ee
MD5 fe36cd08e18e900112a68a0ca08f086f
BLAKE2b-256 63b978e68ce190359761dd69c7c62171a4054287d8ebbc23b9542fc309f18a04

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc2-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc2-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f99ec279569c078bd7a6c41c78f1e6fdd439d3412d181bf9de631d8b2a2d06c9
MD5 aa953b7979dbf4091ffc08aaf1f079c2
BLAKE2b-256 2077c4e333cee98b54abfc7a7f16f11cfa23e2298b3a118fce31d8d379a8f9da

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