Skip to main content

Quantum computing toolkit and interface to the TKET compiler

Project description

Pytket is a python module for interfacing with TKET, a quantum computing toolkit and optimising compiler developed by Quantinuum. In addition to pytket there are several pytket extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also allow circuit conversion between several widely used quantum software tools including qiskit, cirq and pennylane.

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.

There is also a pytket tag on quantum computing stack exchange.

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.27.0-cp312-cp312-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.27.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.8 MB view details)

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

pytket-1.27.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.27.0-cp312-cp312-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.27.0-cp312-cp312-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.27.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.8 MB view details)

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

pytket-1.27.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.27.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.27.0-cp311-cp311-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

pytket-1.27.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.8 MB view details)

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

pytket-1.27.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.3 MB view details)

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

pytket-1.27.0-cp310-cp310-macosx_12_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.27.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.27.0-cp312-cp312-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-1.27.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ef23ae37c134290ec110100a329dbe2d63f26286a6e37ed75c831adbb3ef9132
MD5 adacb2e36e23825c98a4e726be274ba8
BLAKE2b-256 ff1dc28b4b68fc6468072a824092807299aee40eb0ca2666cd74540154d5771f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e604bc7700a9d26c2c2fb3ed9efcae3a6c7d21cc0f9622231ad0906ee70a388
MD5 44f889cf8d367b153c19d94709e7bd9b
BLAKE2b-256 09371204ea9585787cc363decd070f978de5ec25591159a7e58645d938bb6168

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b9359f760b1e9d5f4f8d13185d44fe4358a5e46046eca26af28f5b512b480a01
MD5 cd64ca7ed873975e619bed99ea3f9edd
BLAKE2b-256 1418f7c58b3e71039428a6ed5965f10df3b776ff7d56737659fa589c986120dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7f4460b8d5f738f748518200822149ed373d2ff6cafbddc96b4ec368fe017ff2
MD5 fc2a8d1c2ce02c1544b127bd99498e8f
BLAKE2b-256 afe9b2ff5fbf39c02915907b40cda1cd04c9999b3cb416670822e9cef4fecf71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 86b1c42d5415c736ed172327ca18a314257ab3d925271d81c191521a72ce3ffb
MD5 9ac31368d98a2c56a9c5a039d6420298
BLAKE2b-256 5c48269fbf0a167207804c8fb776735a1e681f5f16efe0ce9f9bd36e59e4ace4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.27.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3077eaa28307740188182af20ab42ecfec812b85a3b7d302367b9435f7f49a19
MD5 69d03f90c4f92b759abb383d3fcda326
BLAKE2b-256 088ced64f5b0ab74f25c4fc312f0ad446564a4f253e82c840757fb14f5d12599

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07064aaef484e6f45d2429fef314c32e874b9201513eb3cd42dd0dc3c64cc236
MD5 3644cdccc3cf17c4e51fea80820302ca
BLAKE2b-256 19263da3c9dac02a8a932d2143dea7d69c5e1100546832f457321ef25648a69e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 759153b2cac05e7255662e0c83ac1d64223e183af4839806d8f31c8d0c9c00bd
MD5 925d8b0c146dd659c1c0f7efa9a2c6b9
BLAKE2b-256 fd06b1ad43fb52b8177cd3bf860cfdea48aae12d8bc074ffcae9eceed7682972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 a42ac781e154a0308af8faa7ab271406a40518cf24a9779a628849c1fac7a2b5
MD5 af246dcb48e0e943e11a4791e7a6cde5
BLAKE2b-256 b2af064e00c29e0fb52761be97560acbae31d3756366e1eb3acf67dbfe41a2eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 955c3bb4c83ae2fcf8da62d2f2c2e1348f8631070d6dc800c09df9cf13adb9f4
MD5 2a81713152ab00d642b37bf0892d8c1e
BLAKE2b-256 8508e25fc8882061ba2cd679dada6349bcb84eaee136ccf7852bb5135b826a67

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.27.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e0416874ad371db38a9da6b3bcbc7eb09ed90f353486c40d25098a93ac2fbcc3
MD5 19cb7390255a8a80b455b870d468977a
BLAKE2b-256 1604ecd6f4289905e5326aee2bd6291d1c1e8d4a63d9da284cda039fe3a4365f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45c8bdf5f5f79fefbb6331a0febcd938dd297d103b62ccc8c9099a3799c0e846
MD5 393544a05a121e67a1e10d792022649b
BLAKE2b-256 bdf1fc4df6415f1cee259ba7b76d4e3496d07b33052ab1e088c452373576bfd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 497886d748884252a59a8173c213472967fefbca5ef05d97372394e95d9b078e
MD5 52ad0cabfbb749589b757753eae69407
BLAKE2b-256 c81bee82907e494209b8f250763d08d7a44ee90e1e53ea0ece0211034935be69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 36d93839b20dd0738dc92032d9c42cd74ad226089b9a835ee64ec98b6d0cfeb2
MD5 c96052a74f76e3296a76b7cdfacf26a0
BLAKE2b-256 e8e12dc09ce3af9ed6bf248e62232b8e27c7902221f4275b3f27a980edb9208e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.27.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 2252a1dfd3b425d536480e8a17593c88c116511bd8749f0216ffb4087a94ecca
MD5 a7625d686df41b45913efad294f0d8f8
BLAKE2b-256 3d0563032cfe3caa60869b3608c9acef66fc466e1fe321c8b296f9b08d0746ac

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