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

pytket-1.28.0-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12 Windows x86-64

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

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

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

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

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

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

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

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

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

pytket-1.28.0-cp311-cp311-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

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

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

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

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

Uploaded CPython 3.10 macOS 12.0+ x86-64

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

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.28.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.0.0 CPython/3.12.3

File hashes

Hashes for pytket-1.28.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cbe60b5affc5a9fba82639956c465073ccd56e1358fb33a44d195002b9c1975
MD5 8d7b4ebefbd0de65585bbdea05ef728a
BLAKE2b-256 7dc9c87c091f11f0e332a12c5af66071017c0b0c543abcfd71509d32a26595fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e02fc7362f6ce7aba7a1d94dcc6d89071ce891c0598eec01892352d3046e33f2
MD5 6a09b9e5e05996b87336b7039b2023c3
BLAKE2b-256 a5a319912034406c173fca9fd2c342b14b71f8053a8c7aea2f639dd2d7a96789

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4628753dacc5e0aa948900510c58c82e50d3efdc59772debc7dcf08e873385b0
MD5 addfc5035678437c6205a85cc7a42b2e
BLAKE2b-256 97dd2e43cb8ce52e96b8b29193864f6986985e541a1eb834cb11b575e0af12fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ba0c03a2294c38ed2e75d036f9885755725f0ecc8aa0f285ce9cf3e092414c22
MD5 44f8c2000b5a42b4e119ba7a59cd69b1
BLAKE2b-256 53552fbd452d81e38b0145ff147252adc96db5234f2d8cb7a9d1813273377ee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 9b1458433fc3c94ae20ae845ab501ddb692044e1d6d06e05ef0e614e99deff89
MD5 f3e95210c6cfeb35035a3467ad0d4b83
BLAKE2b-256 cce59e40ddcdf8dc6391a6b1ab3e10567e536cecc4f96dc39c246a61ca8d9e6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.28.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.0.0 CPython/3.12.3

File hashes

Hashes for pytket-1.28.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4052e83e252875a1b49a07c59acc61cb3d8e89cc06f9d43ffbbd2d5055455a61
MD5 38bd23c949da1d363962b779b23feeb0
BLAKE2b-256 37de822a7e44153221272dfebcb9d7df8002338de125d1995321c7b6fd772673

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e12c24030ee1e94c1f68bed4abbb5ae474a7cdbbe4af7defe2bac0b270e45727
MD5 c64d44643b4cd7a43ffaf346206c10fc
BLAKE2b-256 e9b814e90890c7dfedc107d2b592f152fdd7671cc85820aad39ccefc2a8d726b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 99c2ef5b42a8ab8a11235821b23c98b59fb3dee389f8f26ac9f93977d3cd958d
MD5 3bc72de847ee312dfc034fb9a3e58cfe
BLAKE2b-256 4546cb994cb514b41e5814b11efa84a21b4eb0ae784c4ef4b4b1a6dd807f3b55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ef49b12a3bdb5b276da501b70854f0dea26125dfdfe74ad6bdeb041df736f421
MD5 5d01d0c7742c54d3af8c2670f3d49925
BLAKE2b-256 c1c6bde2a20667c8e77563df7375ec85889074020c9eab07737081871a7cc5c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 01d029c3d6168fea9b2d1c83f346461b393798745b9f6ca6aa05dc59913f21f2
MD5 e65e925b05b6449504617e9145a8b7bf
BLAKE2b-256 cefc9cc72558150c53eae8056e148639fb2e34e4cf8def6de7d830b942af79e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.28.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.0.0 CPython/3.12.3

File hashes

Hashes for pytket-1.28.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 acad2ddb5f6787e4ad2430c728a30cb77f30c37401c0ca9fea241e3b695241cb
MD5 994244ad0f3a7d6a82638da4a5e0e9c9
BLAKE2b-256 2c9fda31821215fb3df58f0a4f9e1e27dee2ed1e8a2abf888dd423aa04490efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6276b5735f0c266d18daa7d212dca2cae3fd8cd0697009cd577d01b6fbd2ad35
MD5 1b1c74805d93fc2600f628273cd76596
BLAKE2b-256 908663d8ea50f944523a655f14d75e0d77245560e2a5680f51e5b28b36e1efa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91b993a9991050fc8e47279e229cd35fd77acce53f720e8e465a9616ff1727aa
MD5 84a1325b5d393617dca00984539f9b7f
BLAKE2b-256 86f2df14e194871eeea10d67925515522ed4658e6238abcbe32467e2d2ba78d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 1d5c5ab5f3dff39f048cacdc494aa7eea6099d96b0d7455ba411c0f630a46dbe
MD5 0c6d246e0769eb16505052d2229375af
BLAKE2b-256 8fad6bd2f7801b390bf568b24535073b0fe90cbb9d6365b1a8e2df6cba8dfca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.28.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 5cea8b772c51d3189c353d027b4d2c3dc2f265cca39345fdfaaea2dd6f8c4970
MD5 55cde54d14608df4b822be19017e917c
BLAKE2b-256 acd1804eee86e39e7bde24363c53525a87e756e24f4162d8047fde74ae95b5e8

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