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

Uploaded CPython 3.11 Windows x86-64

pytket-1.20.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.20.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.20.1-cp311-cp311-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pytket-1.20.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.20.1-cp310-cp310-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.20.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.20.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.20.1-cp310-cp310-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pytket-1.20.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.20.1-cp39-cp39-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytket-1.20.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.20.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.20.1-cp39-cp39-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pytket-1.20.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.20.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.20.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 7.9 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.20.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 87b6976d90e957af8a0bfd30ce73a50902e052a1f4021997c03dbb2037c66d91
MD5 bdc1fd6e7062df49d380d7be1543862f
BLAKE2b-256 bb482e1c9a26f1de6d7c559a58b7c95406b8375c11ecce08b1189ed6469ce519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca7a7dd0cba1924538be84c89af0c48ce55f3a91391ae2ef2237e127b94d7d4b
MD5 891b8c5b0850db85ed58a220c1eb2c40
BLAKE2b-256 c6e9fe9e6aae9a53d0dc91faa1d6d5979de515fb6807e71740f49f2b3e41de65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a2825ea9c4cf1a2278318d7e5580b21fbc905287157c348bd6e10899d3af82d6
MD5 eb58188f39d7efa44abee98ef7deada6
BLAKE2b-256 5178cfc5a474aa82f7064c3cff8b398fffebf79754b75ac0a6c0d1e3c9671995

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c79a12273531915aaecacadbd96aa6439aae6acfe4004cfbf0fe376f89273fbb
MD5 e02e683d838f1500021ffed13671081a
BLAKE2b-256 940ab1566dfe2a49e3e938c6b322d8b5d7ec5d1d15b007e26ce967aed2f0dc50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 107454498914bd65993be59e561561e8ec9621c052538af3567aa25a511eaf94
MD5 260a227a6d65334886d996ec33f6ec00
BLAKE2b-256 9fee77376ebfceed279d848fedb9d1233520a2b55ec30b294b8be3bc7f94163d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.20.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 7.9 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.20.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 617b9c57e5371ea563ea0ff1328fd82f9bcaad6e0bd08753d2a7cbb8339d09c8
MD5 b9cba33e98cf070556a9e242312905a2
BLAKE2b-256 59f89108df64a58ea5feb089f8747671e56fdd746260e40b242b6ae754664030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e77b8f815e96d8245f93d25ae5010e865a654638461a0608ba0abaf831cc040
MD5 f69be6d08c5ea62d95bc8d653dfd8604
BLAKE2b-256 0ddee8dfca273ddddd4d5622653fa93eb92da6cf1c446df5925b13dfdf869ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6aea6b2326364ae9ce11fa89b1295bebc67d2f2b76013c3dcd277e82cc049c69
MD5 5c928bb821bcb5cd1d3781549e981e3e
BLAKE2b-256 8172067451e3129f61734414edd7b559fd930fd5880e12b385c2a97094b26328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 548b5eaf34a27dca7f8a67dbe0495a4cb5311140a4924d1d444c885c8c3a61e4
MD5 cb1be71db8d7e279c6e29a87041760e5
BLAKE2b-256 dee7fa4f54ec4828bfce62ffe958fa781c44be1189d28d4f126dfbd51a28a3ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 567e122a73df8c49726abdeb4a6fc2bcdcc88cc5519a9c98b96ad36b111bd817
MD5 ea45784308e2e591a72e54990e50d8f8
BLAKE2b-256 2d318ca453b5157833751a6016672f39515146f5efded911ddca7a2beb7fd6e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.20.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 7.9 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.20.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 974be026753e639c904dc99ad79b68422343cc66d5e4ac6b898cc2ecbb271822
MD5 d8ca7beb3400421e7c128ac7d017ff66
BLAKE2b-256 ff60056452e91663a20cd34008e393bd0355df0d5eb2ee359a06182efff97bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 db0f237b69844398f9a3e2beccd3f4483fd8cde211332d288e4706b072fe65d7
MD5 6c8c9c13c1375a658f97943e30d310f6
BLAKE2b-256 eaebc2eb404c8f84f1c56ec533145b9d35510020a3734e7a69c1f83cf1a02168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 770e873e97c4c311dedd186c5e872d361b1912d9348c38a20ab862d83cd3c1d9
MD5 c4a3d7f92ba8fae394cb18b4c9bc307c
BLAKE2b-256 c384c9a821de1789fbfc6505da7eed962e0ba8d0ecf1515f98031a861031b864

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5394a19fdd3ab10ccc101850e859d342cd399bb5079213cbde920574f9aae782
MD5 9425a7d2dc1ee80b93b90b5f65d2a22b
BLAKE2b-256 bcbc0a133af4674cb5aa479bf3217b8d2a5d7b4fef5eaeaac9bea89aa81140cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 93f5e90924fc2bc4b5389455ecee804c50594d7980f8b9e6415716eeb4f29b2e
MD5 fec66881fc61f467b6259a4367fea40e
BLAKE2b-256 7491beb560731d54912f35967dcf223dc431586112e8a70f0c4296f6cadc4871

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