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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.14+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.14+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.9macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-1.19.0-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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c522d10572cd9124f735eca30c9d6b60bf29b2bcfbec1b5cf5d3bd2577a0d0f
MD5 946bd524803225e127cf46b496a912a4
BLAKE2b-256 b13d1eef6cdab90230c1959b9709f22d80fa65285ffb1d049c428a1d12dba566

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2c14d5b24299e22f35541b02308f8ec3b2d28e91fca6de9f388e518c306624d7
MD5 f2c6bb0438b515b0ca8cf8b218cda193
BLAKE2b-256 42a2c827694155bad4a9046175221d73f5476a083c55cf41448a133e056a661c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f2771cedf507fb48b30b05900508eda738be49163db400ab644665fa15833eca
MD5 8307222f425c38fc0d6fe5828dd710a0
BLAKE2b-256 820e0b51f2e9347c879a396bb76b94dbd9b1f25d5202c08ccb8e86ad10bf504a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec45d84b0f80348c33998394c4bead89e3f5ec76082d1dd6ab9bc4bcbea7a5fb
MD5 f77d236d6a258b7b93d58d5cbb821e67
BLAKE2b-256 911199504982e35a73438bda450193c407cd7671a456c47aef58732022caf2cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b936f2eaaca28bada954bb287ffede5fc61a7685d64c6870968003e692d872df
MD5 50e395f3ce98a17ba9ea705bbf0fce38
BLAKE2b-256 9f7ea2a30cf47b32e686d50bb255f4e5802948b08f998031089a724714362bf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.19.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa0128de5c3d31299fe598f4c31e3705503e6da33f4fb7897fe8cee60a9261bc
MD5 2ab604e82475ed9b11cf6f7d76053e8f
BLAKE2b-256 41037ecf3f6b5312ac85a43dce4288f3adb5bca64e7a57307fcab3f7ac31c60e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dddf86b43cfc11228b3a37b517c863cb4b1d76c851fb81862f20f4bf24750a4
MD5 4ca213f2d5bda9ceba1961028dd81faa
BLAKE2b-256 28d90c4581515f35af366965ee6855b52d7e7e79afac8b8b853623ffa0d51f74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a51a68cda48feb2c8f658506a2f2d0f073e92e5d1429c8119abeabe8c1613250
MD5 c5aa9656c97f9e03d0dbb005c3f959b7
BLAKE2b-256 cfe280a896243b6bfea8aa6eed04b34f853df8bf911c3c3f343630371b894d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d2223cbf70b638a7de585cc33cc96af6ddbc2262ce06e85ce8c8e5cf2f705db
MD5 1f4937ce8b5b44597e0cf6eef4e0480c
BLAKE2b-256 55c1cd8b096a42838b793335455011fe150b8b499964d5a9399681ea96d1a49a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 111aa862e3715011e9895888978ef56b23f1cd35373f0d4a2829a4eee2026768
MD5 2e069437cd6eb9c74defcfb429f99ba6
BLAKE2b-256 49480ec2341fb514045dbe548255b5330e323153a456520e3f4f90565e8b7862

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.19.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ed75464f4b39ad733b1c460223f6de14d4cb99d1c7ca97b9ad2c408d2e2665dd
MD5 049abc8479551b9578eb310bd76f0187
BLAKE2b-256 44b693b81cb00d9200ac284f03e813481850d50922d88fb0611b09de06e74a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bb7dff68c827830daced5d4e3f91620abd005bac1b211f9e642463176ce60f6
MD5 bf0e02db18d2696cacef0099887dcda4
BLAKE2b-256 3366cf65fc5bfa698d0bbc03c6b40e572477a238c91ac96608fbe648119773ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e68613e05efe9b1bdbc1d7a08f042650b6712e7225282dfb74e221c3565815e
MD5 2daae93de0fc3104538f53ceeabd2695
BLAKE2b-256 b7009bdcad2b4a59c3015ec0b629e7da9f4afc663c42f8fa185b2151deb87a5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7da72c81fd8afd2783e19826b2938b10b9b824f8168d1776a092b7b3f157743f
MD5 37559b94ea40d686bd1587d78a945881
BLAKE2b-256 8c16be3680c486e28b05e2d40788152d118e3d22eb344b9d29e615df3d31f933

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.19.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dd856a7471163f5cfdc7c5f6982592f09e67fb6a6d24779a17aec48d0726efc8
MD5 77faab121500e454e8376c1703a790ea
BLAKE2b-256 74b9c1ea858b6b54e08ac698735d566e6c75be71ac5822ded5201d9c06b07bed

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