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 notebook examples.

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

Uploaded CPython 3.11Windows x86-64

pytket-1.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pytket-1.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pytket-1.22.0-cp311-cp311-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

pytket-1.22.0-cp311-cp311-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

pytket-1.22.0-cp310-cp310-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pytket-1.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pytket-1.22.0-cp310-cp310-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

pytket-1.22.0-cp310-cp310-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

pytket-1.22.0-cp39-cp39-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.9Windows x86-64

pytket-1.22.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pytket-1.22.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pytket-1.22.0-cp39-cp39-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

pytket-1.22.0-cp39-cp39-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pytket-1.22.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d93658ac66e633049caf34656f8bb236ba13adc18106643701321bf4524cfd01
MD5 c790210d092d13737896c0add58dcb0c
BLAKE2b-256 eb94517136c5003e00de4c34d20067478aaa29bcb66d65086549598506a7518a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 029accf719f7430f36ba57df42775a8de8dabebe58cda1e96f9b4a57a0ea0591
MD5 f06bccfe397ee142d4657afc77daa2f0
BLAKE2b-256 327bc8b5e7aa681ef958b68d2a97462f01c1dc5634ccddbef80c868cc009b558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3f1e43ba9b67dc493070a191e5a90c4b8c3bc8f3a1aeefdf6af4c0dbac213abf
MD5 6e1f2db2b148e79ff3c632f1641eb950
BLAKE2b-256 109920efb45c6079f3c0b876658cf251756a9413a3101960092b1c08d646f8f5

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 66235f562f1125bb44517b67eb6a06a2b5c44f72097a7ba11960d3e8736255f1
MD5 25078b786d0016dcb92ce54cacab8e31
BLAKE2b-256 89217ad71698cd1789f970876f7098ab3218a7108339234bffd67128be4d4d09

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a1eea150c63682fa1dac8ce2bf53fcdd680f748677d3df944ee18867f723c073
MD5 b3eb2cbf38390c1801b72308da13e5b0
BLAKE2b-256 816984d4b6bc30258ed121bf523ca793ccfc74641fd0b483d53df866859882eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.22.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4ff50e5f207767d0e3a98620e087a12dca3fad135183b50e925d4fd9af8f4a7d
MD5 d63fe699c0b0b46a945063c21defba9a
BLAKE2b-256 2c167901726921a25ddbd2e0a72cd568e06de2443e38b9b5409c1d9216113a96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61e6847c57eb3c606de87f15dcc5d68c188f6ec4c5567a2e059be97f822f0a59
MD5 89de29dae32cb4c57d41535a5d2c0290
BLAKE2b-256 a87ea4c3e9a1477468ef465470149ee4b46d45b187301a09b9b0d40a331de392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 89c58ed8985ba0974a6a2fcdf518b9497be150a39ea2e4b1ba1ccef7ebc20887
MD5 0516cf87a67b5363fe3fa6023622dcde
BLAKE2b-256 5185cdb860dd0dc0cb561d029d53385693ba49b4eb55b2379f6d43eb548666f8

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 c8d2ae4ca61e98f05d8d8e9ee4e5c24ca2588348e82445e3fe145d940679d42d
MD5 25a822d79b5940287914e2484e56e2e2
BLAKE2b-256 2d88fe2bb66e1ffebff3905f7e3c67f624932366f70f5c45374fe44fe35c12e4

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d498ada226067aaa06372794d7888d3568b29b36375eb14d690d11cf27575474
MD5 5155e8d8223597e1e09d8b400e8e7622
BLAKE2b-256 85b82c3b741f6487c561dc2abb56885695f831f0cdae876d30aeb15e95104b53

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.22.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bdedb515b5775b98f0d4d96b8c5bb7cab904e43423438d5da5cb005e14f8a2ee
MD5 258c2ef7c49bcf0a8f94f1329a44de40
BLAKE2b-256 a4f8bfe6bb44f86fe01571089c0ef045ead2690fbfb793e477c24c085bd80a91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 148a3cbe13dc03080d09f113f2d4a01c6b8ac5ab09187f03bfa4ff7a91b3a636
MD5 06066e6fc472d297b984da107a44b730
BLAKE2b-256 7c4a0c7eb45f0b79721473611338804efd1190256f85520c5b31f77396ed4488

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.22.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5a0935f27b6bc9278751125ece2da758938a3d2d2a4fd627dcd4b46f33f5f105
MD5 68ac0bbc1ab913ff0f5b387c8c351f14
BLAKE2b-256 617e500f9c4d1414758fdcb278b9343ee9b0b405b1b636b866e1bd40420071ef

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 342e75c962573e6bf673323d50bc501268cd35c4da8ea25aa3a03f0a4aa918d6
MD5 adf2d8ed8833d201c7b629d30599c214
BLAKE2b-256 ed3bebdaed3fb02f03dc12f0c365a0fc0e75aaa4866ea2d5269ac6e951b5760b

See more details on using hashes here.

File details

Details for the file pytket-1.22.0-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.22.0-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e0210b85931b258c16f8b1c3a8c7ffae2bdc4d7856e0fd75c6d9cfa179537c3c
MD5 7a595d0c776b42f86924ac64aac63ebe
BLAKE2b-256 5d3df4596c1c1badfd8cfc8ba16c2448de999a3ac6d2f2914eeea3f91cc5f9ae

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