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.10, 3.11 or 3.12.

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://tket.quantinuum.com/api-docs/extensions.

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://tket.quantinuum.com/api-docs/

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

pytket-1.26.0-cp312-cp312-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.26.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.26.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.3 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.26.0-cp312-cp312-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.26.0-cp312-cp312-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.26.0-cp311-cp311-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.26.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.26.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.3 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

pytket-1.26.0-cp311-cp311-macosx_12_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.26.0-cp311-cp311-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.26.0-cp310-cp310-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.26.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pytket-1.26.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ ARM64 manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.26.0-cp310-cp310-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

Details for the file pytket-1.26.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.26.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pytket-1.26.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fa306cfafe294e829f7be57fe2bee91b94c995a295b8c1c267ed23964b5bab10
MD5 ddf4f86c9e04510d18f2dd480cfef6eb
BLAKE2b-256 9e67908e8b515a5a39de1e476ae9601d6ee70f4265b778938434b9140373a0c0

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 873bd961e89dd641ba023cf4f3f2dc0bcc956f417b01b16f8c29ced8953c588a
MD5 e33800901730fd89800ad9f05e82627b
BLAKE2b-256 07f8dba0e64c0cf18cc5d2b88895cd4e9c86a3638988e33aa2c8af5d21faa7e1

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 293f4e2799d68eb4e858ec6a4441bb5909eb76e6d131032140a6151df6ae5544
MD5 b798cd5df136effdae6a66c1d543ee34
BLAKE2b-256 62b8ba2d61359bcd19d01a15efaa02b22f2a29fa1925f73fa933cd6a64fb616d

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2999dc92e2fa8a7587e4d29e1150227c83b36ea528cdf5187de59ea3b68f53af
MD5 10f53bacafb53984a04f3e9896457565
BLAKE2b-256 63062673e2695cfd39b6707c54ebf241d504cbb9f21557d3d9e5cec3abaa9979

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 62ee4d4dc642857c24daefc67712ebde86a7bfb1a848411130b390837e626b82
MD5 5e1c67243e15d7fc739bf0f112a78f82
BLAKE2b-256 021513d345793461e3bf28783058ce1d53f9c839f368e719ae2518b272e0deb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.26.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pytket-1.26.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60048f32a3dc2123346b97227b931c87e4ad2e2d75d13362f83f97de65d62ef8
MD5 6166f69622a3d0a8fed129ec58018fbb
BLAKE2b-256 e742945d14efdbd0b32502cdc69e9b148aef6783b73825c9fffa19da58667860

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b6e5190e067a8179d4f88612f273b0969a83c997eb09dbaeab59d118de43def6
MD5 8394a4ca837862e1d11fb83a80b8605c
BLAKE2b-256 aa780fb8414fdce6dd947864bd06ef3cf45234fd5ae1085fc01edcba50185bc7

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d5fc8d2b292a9384bb1cfe9f285d4a15d2cbf593437e235bce01d02647f51db4
MD5 b8b6adb55dd9eb0ebce66f9f3d4c6a88
BLAKE2b-256 571f73b0765ec39d725b8beb63ad20f98b9bf418cf4e5752d43f37495ecb6420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.26.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 235f30ef0ece889f66edebe3c9a7daf146f6ebdb6e704f41d32908b9eb3c53f9
MD5 be80cf0d206f182fcfe369c06bce7ae1
BLAKE2b-256 197e6bcfe4fe1325310d5213645aef1c3e0c54115ff8d8e440f4bc81b2b6e725

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.26.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f68a6f6217429a3653ce5e29021c983742f2256af446d82b3092966c9ea9d153
MD5 dba15c5b9d3c0ee98fa8ec1557e1c0d7
BLAKE2b-256 9b95eb081bc5ac30f43d216124b8ba186941da731e95c6f531640edf4038ee7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.26.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pytket-1.26.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 003585360ef17ad21b8e4a41baa221e618561d20eb5d26140895054c2f4ec839
MD5 4961aa0c7ca4b07951cb470a407ff045
BLAKE2b-256 1b144bc53c2d95e5880e3b71470fa90c1c26e132b8759100df4a622c514f0bce

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cee9e279bc68ab67a46d34ceaed562ad4378b1ae917a3c6d16a7dbdec2d1e264
MD5 727e879fabf7f66d2bd3d8c37009c485
BLAKE2b-256 0c248c4e3c31d6b7f17ab8e6956a393da6f6015cd2fac2385541d493fcc3efdb

See more details on using hashes here.

File details

Details for the file pytket-1.26.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 37ce4f703d706b317abebb777ee6acba34389d0aa6d167db2dfe9912d015c8f4
MD5 f8189e1ac4fc92dc41347f9680937b66
BLAKE2b-256 c343db730d4da216fc768d531eb06333259f986ea19987c689a37568c097acf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.26.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7b617593acba4861fbbc4dbbae35630706e11c2e5c76061bb5beca746aebf710
MD5 11fb8ec1c9c0297002b2fac2f74e74bd
BLAKE2b-256 422b64a63ea415b933abf293c3809ce97b4f048f6863a543b65d2f27d86646c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.26.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3ae0763e7de87c40318901cf261ab227ce914755d285ea271328ca0767540347
MD5 d62648473722b7ef3f3dff41ef41cbd0
BLAKE2b-256 b0213f7f182e4c7134775e7a316c8f8a2f6b9248c693a9dd75c388c92212e1a3

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