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

Uploaded CPython 3.11Windows x86-64

pytket-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

pytket-1.17.1-cp311-cp311-macosx_10_14_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

pytket-1.17.1-cp310-cp310-macosx_10_14_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pytket-1.17.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

pytket-1.17.1-cp39-cp39-macosx_10_14_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-1.17.1-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.17.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6e8865220b6ad6a632e2e5ce911fd3a5546148e022e84164368c822147264e2b
MD5 4f1a67595e7abe6292c479bb45d8bbc6
BLAKE2b-256 53c4b27575d952dd4a9f87dbb2e6099250af3fa4a349995211b1452e1d27e347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b8b263fd0f903b1209ac38512a6ac4ef0ab3b12e1750985c56ec768cf04500f
MD5 a55d1209da5d40736e16a36df8c3a728
BLAKE2b-256 6f7e3607f9de020def01f1228e672845249f3ef05278b744dd507628f4b34aaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1451e56e8d40aa3efe782f36943f3c1b7dd2b09e831b3f275f01752150577bd4
MD5 c64f16086d51ac471a5bb61db2ec7a4a
BLAKE2b-256 23c3a452bc39348e12a12fac97e35e2259ff3e94225e18865201144002cf0152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f64b15c55db68689671284954cbb1ab8f1588f399058e1e847b6f4552891a167
MD5 9b49c07a07ef4e4f181d91553a68c8e7
BLAKE2b-256 8a814b4c4b221263d33a6bc5197d80a450a38a8b049cd8261fab82f90bc66b73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0fe659e953c79de66b46b6acec2aa2b16b3303f68bc262ad75a4d2d308b19467
MD5 1360621aa58175d3af5af8adb1fe3c98
BLAKE2b-256 19e051fc27cf4546af21c226a35c90e5aaf63d8d0946b6784442cb579a0ea2f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.17.1-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.17.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fae3cb86cb2ea36ea496db4d7fc89e09d8f6a41936d19eace01d8d99a53e5ac1
MD5 535c1fbbfe2b35f5a0e553616b75ab1e
BLAKE2b-256 d2282f959523034e09bf20ba29a82e7b1999a47e76959afb36172a9fa243790b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7e7ddbc82b9b4dbe847ac1828fb3ea1916e9ba580b6edd70557ddbd3554e7bd
MD5 9e31e27c371906ab0559b0e36f418770
BLAKE2b-256 5c53391e2da6851f3f91c90d5b356b83e8b40b2dff12cc2bda39e84b039ca7ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 636820e49366e7dd5d441f953b43223dfafea18af6183ece1abbe229de6ba90d
MD5 710dc4a636df236fcae75aaa66803190
BLAKE2b-256 aafcef1a6ceb7632361bec0488169a76563d51aacf6a5158970202e9ac7aa872

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0a0c2f35e4c5510e95c081ab89a581722ee2dee15b99f0f64e118324ec2de89
MD5 35c067b8e57eb2c1f880fdf439dc37cc
BLAKE2b-256 bbc206607a74c4c3068c4b5c8a8ecca5f7f4c514e8b8ec7471a185acdfd215be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 347549f3837103f64aa881986b2be9932bb44cb04bf602aa4839b3dde4f81e36
MD5 f781cb87614daba0fd4dd96816fa7b39
BLAKE2b-256 41b21b1ac2be06169620e5879dfd45f1782c667953d5b31ea02c03a821e70f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.17.1-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.17.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b924a9d81eee6d5e45397df13f64881b12f07378fe6579cfe4ea542b9bb686f0
MD5 79989fb4d2e3f21ca98544c30e8c2ba8
BLAKE2b-256 f9d776e27a893aa0150cc490b9a803369d6d14d10de2a9e5924e3d02e2cb7050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c761251829146f8d596fd4ca7ab2d2d76616f259244e1a0dfc4c1c3dbfd4196b
MD5 e9bf3eb53ee7bab7b0845266f586228b
BLAKE2b-256 979aacc6621b09057821110c8a692c5e0fd9c65d18f99c680ea9a975cc1f67e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ee4b838267c74789e95b1ad56025a020722aa1bb19914ca8ef25241f660766d5
MD5 8586e36e62cad151c1bd3ef381a7d046
BLAKE2b-256 e6e06c04ad928e4567d525b67134816e01638479766be6ba40b6ed133ea4d7ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5c751ad395bb08e6a97c59de040308622d44d2a5bd024a32c6f840b339b7e1a
MD5 93c1708061482e2c631958325dda2fe6
BLAKE2b-256 733881f08d1e2d459aae1b5c89f2b2130300a612443a3f8a588c0221b3e43bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.17.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6809ba8530486a7c0accf0874bde5f2c5a3308d9c3c39481370909126fce4f08
MD5 d34b607acd45e294211970edb7109641
BLAKE2b-256 5ccb50fe2bcbd3c20e901dcf8543b690fb5fdde19afb48b627d79c9488acc213

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