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://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.24.0-cp312-cp312-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.12Windows x86-64

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

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

pytket-1.24.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

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

Uploaded CPython 3.12macOS 12.0+ x86-64

pytket-1.24.0-cp312-cp312-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

pytket-1.24.0-cp311-cp311-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.11Windows x86-64

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

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

pytket-1.24.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

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

Uploaded CPython 3.11macOS 12.0+ x86-64

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

Uploaded CPython 3.11macOS 12.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

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

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

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

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

Uploaded CPython 3.10macOS 12.0+ x86-64

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

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.24.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytket-1.24.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c0f6c004555d7382cb5ded7d17f1229609f51b5121ee733e3a43d42f320d6f8
MD5 d3fad6f74a3073b67044b8d245b1df39
BLAKE2b-256 5280011dd6c7dc87c1885676719bb5fb38d5b2ffc0956d1e53726cc68712f38f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1128bef5ac24c645eaa4f59e8122460b3f76ca6be2645d6ddf9a430f75789b2c
MD5 47651c5acdbf9474625fded9567ef842
BLAKE2b-256 0847695ca48bc76de2f90dc32203d9faff6394a19f1e8a85eacca92deb73739d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ddd897e497dc003b8adbc7da5a3ab8c5692df2be01ed049bb47e0c58558dbed6
MD5 3f7b9f7f33a6c69668cda0de4ff72ddf
BLAKE2b-256 60130030250aedafc9157067c80db901d995451a71c11637cad02ac9761871ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f62099e52c37db0d76979cffa533e308703757f5c5b41cde28551b44195b823f
MD5 8dcb078f91737c1e14bd2b02cd13df66
BLAKE2b-256 017e6f12a47254c089428f54ae5594e8e9656d673b14c01f194dac3d1da0831c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c89c82cf5ab4e4613d9b46fce62325833bf3e1aad505a643227c93ad642e1cea
MD5 76e807bdc218301dd8b6998ffcfe1c0c
BLAKE2b-256 f4fc02a308318fa5bdacd0694e3de7dee853de90ecfb2bb7953f718690e17ff0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.24.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.7

File hashes

Hashes for pytket-1.24.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f5b6b661594c8cba84d1d47c18f3f36a5f70471f435c92336c301e1115eaa81
MD5 1e3e79fe78d542e707473ca44d224522
BLAKE2b-256 dcb3c7854180dba0cb96fdf909c8ba0232ad26c787f653bfb03eb8faf7186ac6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c35a36b5bc3454adce92a9e82ad602d83c52b077f165f120c7a225267d54e0d2
MD5 987e42cf8b96d077190bf5274ff6e330
BLAKE2b-256 a98ea3a06d0e84ea24b8b980cea74bd8d94fd614363ea98181d5c20138ee435f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c154a85086a0bd2db3f0e101e83ccd2acfeebae97068c0154fe9b6aae9ac5eda
MD5 734857105be97f58973afff4ece242c8
BLAKE2b-256 1fb33837d6a552af3df893c4fa0d33475cc4196a641f7361c20ee28a1535232b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0534698819ccb947641591bed4dcffe5b5d641458fad8a9e16992ec484d03662
MD5 cc46e2319e4a74fd4e66440d83484f27
BLAKE2b-256 760b2106c107cc5ba139bcc7e4d8fad1e6b13da0fc2fd3beda8cd8cbfa79fa68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 bdf90720ead3456b4dd0d4f95a069b74be6cd156d6c6fce6a9317793f9045d1f
MD5 dde84a6f98a40a4313f55e45d3be75f8
BLAKE2b-256 965b2a08cea20fbd6df5abb471966c19125cf1e464e1e0fcb16272b9f7b4ff69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.24.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.7

File hashes

Hashes for pytket-1.24.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 97fb160ab904085f26ba11ae6279380f3a365894ff5a80a47c3487cb77c6e9ec
MD5 c18d6e388dd3b19c085f85466def9cce
BLAKE2b-256 643f16156d3c6d72871557a17fd5544a296b89e29faac40e2eb0572d14628ae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 54ea48387e924bd0699d092a83045781ba10fe97f7935a0577a67fc665cbc5c0
MD5 de3d0500a73960bda8638fcd76886189
BLAKE2b-256 475c4a9e76ba4e247c04aa6de8aea63e84f1bc73e2124cdcd8a019b5dedb2130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b112f493f62fa40ef70a00c033994909d7d70e1d5e70d90590415fb412c9c275
MD5 fb1a3a4309a06b46728fdce5b256f2ef
BLAKE2b-256 5b1c8ed66b4ce2ec520f59e5c4c4f7c4fefc8497949dbab328d99f5eea675c5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 44439f4005dc369f6980098262addff09d7732dcd76e7673f01e65778590313d
MD5 544ff11340c24b80e1a0b611ace8f67e
BLAKE2b-256 aa8732a164ed20f017259e2a161c5f7b769cb814bac115b3d4f1889625e5d376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 70f203d2efbf07f8d9857dd92aac7bf3b79bcf121ac2a23a92ac5e1dd3c7ea98
MD5 37f36654ae6b963c5048412083f2634c
BLAKE2b-256 3c99798d5baaf6d692d82496d16920aca81f970dce7522376b205c5f251c520e

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