Skip to main content

Python module for interfacing with the CQC tket library of quantum software

Project description

Pytket is a python module for interfacing with TKET, an optimising compiler for quantum circuits developed by Quantinuum. In addition to pytket there are several extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also provide integration with several widely used quantum software tools.

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.9, 3.10 or 3.11.

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://cqcl.github.io/pytket-extensions/api/index.html.

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://cqcl.github.io/tket/pytket/api/

To get started using pytket see the user manual.

For worked examples using TKET see our examples repository.

Support and Discussion

For bugs and feature requests we recommend creating an issue on the github repository.

User support: tket-support@cambridgequantum.com

For discussion, join the public slack channel here.

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.19.1-cp311-cp311-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.19.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pytket-1.19.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pytket-1.19.1-cp311-cp311-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pytket-1.19.1-cp311-cp311-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

pytket-1.19.1-cp310-cp310-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pytket-1.19.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pytket-1.19.1-cp310-cp310-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pytket-1.19.1-cp310-cp310-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

pytket-1.19.1-cp39-cp39-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytket-1.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytket-1.19.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pytket-1.19.1-cp39-cp39-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pytket-1.19.1-cp39-cp39-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-1.19.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytket-1.19.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 162ba602b9af2e1713df4480fc21573f621f187fbd735dda25e9b49190534e21
MD5 27e04c5bfc5c8d18d065d06477e162fa
BLAKE2b-256 f1ab422895dd25cd2ff5dc0497e714b0b4205b4fca4b3bd5dfec8ed32464ef33

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96dad7b7e094ba13427458d2f0873ca66dd1ad47db4b8f457f47561cfbd34c15
MD5 d6f179b5241d55d165b7bc1e3027419d
BLAKE2b-256 48941b30c31172b875ec1caec03d24f1b8b38532d23ed7569107edee79a75138

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4ebe225bec0062fc29ce6f77f856d43f1d41dc8289e8265ca0cc44453d7873f6
MD5 c597f9e391ab98731ba2aff21a7fd602
BLAKE2b-256 ea6297491dd43733042d28a1f26dec299701266d2f7ca1ed34adc9fe0119452f

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cccb1674b4cc7f4a1b87d8cd158660620dd9970c3730e2c6e923cc7e1b8162f6
MD5 ce1f2f10d2d80fbd0e98fb99124827c0
BLAKE2b-256 5dbec4cef063baee992b7e185dfe5923a9b7a148b5a880dc384229a268e81799

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 287e9475e74ffd6ed73b7a517ef23232c7f8adf3fb7553fe74669c7edd183c21
MD5 525c6f0aa7bac9e7e2285e291e3802a7
BLAKE2b-256 bba45df3a0edc8f22f9dc4280c032a1ea4b07c62671f4647c9a6610e87a63cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.19.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytket-1.19.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9bdd21bb03910ba16bbdf8c955ebf3d9234e560985f61734e16e34d359ac5a5c
MD5 bbf70c5688191616ecae6c2d66b1d426
BLAKE2b-256 7ccd8ed9104cc1091cf06e5cb6fecc1da4670a7aedaa9c54a63544d0c513c687

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01e2e1cd7d1dd831e97d65211c9aca3cc8f6a5b44d581578ce46fb33fab3c373
MD5 f045e70bead5c8f806e9ad68c1ea0b4c
BLAKE2b-256 14a605f0bd472340809bb3e2037531a073627f81e295e595982543fdf197f370

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7c186dccdf7c588aab4ae4d4353b4a659665f727ca28c427de322fa16a51185a
MD5 dd78e8c9c844d3fff8531bd8b3a850fd
BLAKE2b-256 c4c1df1f1a528be77089b097d77679f99df1ffbb60d58b5ea10572282bc839a7

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d7f38fe3c957b3be1ebc95a626644a1cba5bb905746fd4a6be63f2cb2ba15ea
MD5 ebe0129ac9aed65988566f684bee9ab9
BLAKE2b-256 a263783f55ebd5e514f42052e9cf5aa60f6d1c72b295044158dc54c729e0ad70

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7787cc85d6fc7ba88b86fe5f65e5f23b3ab63829c54d90b07d43017ee141978f
MD5 d4be916a47e583e8a630ff0a24eefb2f
BLAKE2b-256 711da889e9f66907b9ade4711c87cf0692a6957ec2ed91ffc5ff480279ad5e92

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pytket-1.19.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pytket-1.19.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bba34efa934b5ef1f530c3dd8d0e22d9387df01ef9daeff8d986ea711e5eb71d
MD5 e41f4b644519652a1478effa0e647226
BLAKE2b-256 d6cc5285574b2730f5f702caa808f9a28212ac40578670e970e18aa54821ab06

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8728a4f9f58722ea643c73a40c5e1f0087d039a9ec7a5ae12bafcfac38d65217
MD5 9c6ae6f0a6e21c1a1cdfd05347ec305a
BLAKE2b-256 0b4ae6d82a576283a2c6c3ce0676ebfb67fd92520321887798798b30b6b4334e

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a6b45d26334b6aec8a1b860ce43e5839d2d465fc8248682268af0100ec6ab068
MD5 ea0dc7e79126e6bf55cf39b68f1486b1
BLAKE2b-256 d3daf88f3e0c023975843a7fe1f254e2e9ca71e8927c7b9a562d97cd3fc01ad9

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb136e1a2c71ba9accac9542be79cfa58548984723a62ce06e75bb38af6d1201
MD5 7543529c693c32a26414399af5fef08d
BLAKE2b-256 2f3db6ad9de015282962844bfa1e9a67993cdfea2968efc4398b463e142f35b1

See more details on using hashes here.

File details

Details for the file pytket-1.19.1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.19.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 99db01033ff5d180a602b42aa5c9bd670ae0282f16dad72b9c37cd443a38ad23
MD5 1deb23b51c9a0952c3f229aa77f40c73
BLAKE2b-256 ed1a07e347842e37ed61b78776ae2acfa7ac2e48e6b7da53907c517b0ef70e81

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