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

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

pytket-1.18.0-cp311-cp311-win_amd64.whl (7.2 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pytket-1.18.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pytket-1.18.0-cp311-cp311-macosx_11_0_arm64.whl (5.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pytket-1.18.0-cp311-cp311-macosx_10_14_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

pytket-1.18.0-cp310-cp310-win_amd64.whl (7.2 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pytket-1.18.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pytket-1.18.0-cp310-cp310-macosx_11_0_arm64.whl (5.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pytket-1.18.0-cp310-cp310-macosx_10_14_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

pytket-1.18.0-cp39-cp39-win_amd64.whl (7.2 MB view details)

Uploaded CPython 3.9Windows x86-64

pytket-1.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pytket-1.18.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pytket-1.18.0-cp39-cp39-macosx_11_0_arm64.whl (5.4 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pytket-1.18.0-cp39-cp39-macosx_10_14_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pytket-1.18.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cbed58790af43a72742f45c8f8af4325adf67741105bcbe9d697da261cf7632a
MD5 002ef3b245b236d2dda5be26c58cc22d
BLAKE2b-256 e87fa839291effa030940e37e680287a841ec9134eb7c702e979716996d7ed5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d482a87282ad0a6e00d2928eb8cc15327736d0a59b485d2b138bc95c4b754522
MD5 b994df02533367c90b6a5cc0734d2f77
BLAKE2b-256 ea5d28c4e8ebb191449d59fe2cd079dd1c244c80ee310456e63e6b13aa5d4e34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 333ae09f67b151ebd3eaa92adeb72e06a3155bc152e52ed1eea1d43c7014af69
MD5 982ddcac53d59b5c0296f0e2416dd135
BLAKE2b-256 3d182ce306b55a80001be611c06a03a49357ff7fce4a15ab261dd212ffdb1600

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b89fb39bcce9bb366a022bb85ce7f7e12441a2b82732a751b039b99fd2c5d2cb
MD5 0ec4a2340adf100ce54706bf9c92c88d
BLAKE2b-256 a299bfc7864b9efa8a4279f235717cb73067804031b02c54fb330f823aebeab8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 26089c58a39a4affeaec8f2e8fa62f94dd62ec2aa3d8a5458a186947c544f9a1
MD5 9f9dedd13d99582bc0297f58a1f8854d
BLAKE2b-256 bf016af4e9a9658825d258e52ecef99df1956a4b7f1eddb919b3c7f95a311456

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.18.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7c7c7c60538f60e57fd7f42f455b6e7b37ce5bc8e89a1b1187e77a24fb8fa958
MD5 72d664de17264d7ef35842b2c6e8a6ee
BLAKE2b-256 83db27f7b1d23ea84b2b05694d0b4d1ee92e60bdef1ec01fbd6da3703d67965b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9fde69a4fca94d24a814ff4077a443989990fd92d41c3071f8f03373d6a54c13
MD5 45d367187fa2636075400a8ec3029296
BLAKE2b-256 c584d7ae365d7104b50b8396f42441914fd3ad5a45d2458eca353b793ae5728b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5da651852286752a7b6366122a6ab58ea8ba68eaac06856778100a48ed5c9aa3
MD5 a47db6b8802bd98999df3b6dcfdcf7c0
BLAKE2b-256 3a5d1b599995acee5b774b9c1ad82840b9845be753a9a2cfcc192485c393d466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe3f3bbcea2c46bbe924520e4dcfaf73634e9438637e9da552f10110dfb81b5e
MD5 ed6f74fcb5b40d0f8a58f3d9b260abc4
BLAKE2b-256 eaf69c649c2c3d04ca7ec5841276e2d1aae0ab5b618b432768ad0b60f0e521ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0a82a57dc7b1a3e9f51ff6011abc535f8d9505388e92e13faf897264aef5d705
MD5 5be3674d78dbf052198b20b9882a29b9
BLAKE2b-256 16775bcd75dbda872fa7121c69e85e89fff4f9b6b9d751d6445fa61fb753027b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.18.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0416acb66f824bc4a70485d58773b820d51f2d48381850444538590c4e5c7d1
MD5 eeda1747571a513bb41eb8ff176bbc61
BLAKE2b-256 bcd4d8caff3f8a5af9d4f8dc2b4c3a6f770c2a09ee11ff45ab5745aaa4789d83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc5097882175cdc327eb85037885fff97c8173664334429e55129f37a9ffba26
MD5 9f091de6afdc92b91f6a24bc83e43508
BLAKE2b-256 b357116affaf6d2d44af084c3f85222ce421d9893129ce1f14c2242b46a1e410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 362194781fe33abaa470c8bbc3a967d238c0afffd58a6cbf60ea2aab58a00ca1
MD5 395ae7ef79d9556816f5255ff4496d69
BLAKE2b-256 86c3d1de0d4081eba181702b21efcb920f4370b2a818471a270f4fd5b5c8b99f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40902b298c31d935bd6e650efeffcf2d4b600b0110117c513da8520efa9531b1
MD5 6e47f83e4cbf7fbb4b3e53a641e6dcde
BLAKE2b-256 9ce04bb2d2a28dc9991b5068d730cc45f6e6cc5a214bb8e4803c55eaca4f2763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.18.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5d5ea7aed925d32f2b881437ac0845c97a956853b686969578c6f40951680970
MD5 004b57b9023902dd9bcf95ecf15ddf9f
BLAKE2b-256 46daf4b4e9ff465a62a3e4299ca77e1593a4ffbef81c28381a28954053ed7d81

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