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@quantinuum.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

If you're not sure about the file name format, learn more about wheel file names.

pytket-1.30.0-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12Windows x86-64

pytket-1.30.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.0-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

pytket-1.30.0-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

pytket-1.30.0-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.30.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.0-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

pytket-1.30.0-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

pytket-1.30.0-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.30.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.0-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

pytket-1.30.0-cp310-cp310-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.30.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.30.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95bc56d7e8570af43df2b86ac7501623dba9dbd725df353de02daef3c7d29f8d
MD5 ffbce620146d8643dfd7d4f5745fed3c
BLAKE2b-256 a1092f0176dad8954fded0690965ba4b26ac8cda1e116460b994eb3c2006cc72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eebdb1879bc8fd57d2267b704902d37ba7403119e3aa80cbe2e99897f8a91576
MD5 3a98f6bb6cb28aa0cfde433ca19ca426
BLAKE2b-256 2b801759bb7f48afda271e9ec1676d98cd34a8f9e1ff4d96c4661adca32fd5b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 97cdb52d1fb440da2452c8a295aa67d44e5e70e2ed9113d48f34b3c948dbcc69
MD5 16bd121a5c7cac3d4bc848c486ae24fb
BLAKE2b-256 f92b205a6f86bc81de6afc661f67238d0d2864fbc88f76f91eb7dd7cb5fa3b20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2eeff1016a667a69997af2904ae35c74a6954dea6b0e840f2087e806e3fd9801
MD5 17ca301cedec6be459c9c68a124436c9
BLAKE2b-256 9597ba972cd198a5972456eb5f7a29c6cb254e7c8d654dbd808f5aba1af78ef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4010feed278ec363c1a06d462c3e547fc991de85954af9a083ca0b925bc48054
MD5 df281bcbee79a9e2be355261045a8a65
BLAKE2b-256 cbc612958fe73fb1f2b60121cfd8a8c034cefda4f32d031216e7df2fee292578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.30.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.30.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4267c45e8d21655d47dbf2e85f56bde03ff00e402bb97a356e208073cbc5b929
MD5 822f9a87e1981b47f85a8df54d336b47
BLAKE2b-256 13a8b1a31cd470ea7a5050be1b7560d3f0900d460e0a3d7b6d728d57b3d00afb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 06d308ef53121afc89f7111748f2776bd6161e1a4f7b3febea9949d058f4e5da
MD5 8f7509f653cff649b1378ad7c54fe1eb
BLAKE2b-256 80805217fba12f405e0aead773e58a00371245a7084b5eed98f795f60f1256ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f845ab325f3747776a080a1addc3236c00f6099c1d0de1b0f21af98e4d059aed
MD5 e1f39b2b0e33114af5c806c041b5f315
BLAKE2b-256 19a2aa4a78aea7e661234d7b172c900d5f054dea3d75c651fd5042e26c7d49b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 c78076b66d4b8102ac7538a227415f75639b0445e629de82a5d451b52658ef6d
MD5 9c1ba9860396f5f1512980e5313804a1
BLAKE2b-256 386f2b1fda7e17982eb48e49e4d9a6f39d0c4bcaf60aa8c426b51ca0f988bff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 87cc5f77f189f39f354f2df31061e1f58b949a514c6c90bad80044f4c0e37410
MD5 133f5e242158d01ab0c8afcb1bb160be
BLAKE2b-256 bbe6918f6af78e0d1367cce8ccf13bffe3867324ab1fc17710fc2fc866e0df5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.30.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pytket-1.30.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 977b17c573ab5f3f0771448e42415f16595331699d63eeabaf17b72e6ddc06c6
MD5 39deefddd5accac9d9d1cd089dfa00c6
BLAKE2b-256 fd7a82a7abd85c2d43e2c9a28040f60df2e39ef4121fc0e98ce0bdc1060b870c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ce598114ff9674503b61a15b2dd42dd74068ed74e662492256ad78a425f9a569
MD5 f789a044b3481cbcc501c235786d92f4
BLAKE2b-256 118ba10d91b6c6fe22f19b7fcedca21dd9f27fc0659389fe7bb70ba2e370aea8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 19bb8268dc7d28bc33482750330549f7f7ebe546abcfc22170fa6f299241d918
MD5 a6e76ba26780c8e16d551416ba5cbcba
BLAKE2b-256 c89cde39dd19e3cd0cb1e03c15de723e6c9ae4d2d6da6d5d5b81c42050825e4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 85d99f81b955573c13fe1e166400e9553549f6a38151a3097c4143d9883f9d5c
MD5 56bac190ef2ae307dd6f46a6157fc234
BLAKE2b-256 63bd261793542ebf545690fd6d50e900279960cbda32491b5522773e73112ae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d111e978f027c65363d019408d76f69ea584e8fc878d2302d5f867091e769327
MD5 78db815c16f313c7e34e18322bf557b0
BLAKE2b-256 8983d9c413c5a8d2c606be35b3068104fa7c6ef85477ec38f83d932881b3cd0f

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