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

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

Uploaded CPython 3.12 Windows x86-64

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

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

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

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

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

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

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

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

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

pytket-1.29.0-cp311-cp311-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

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

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

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

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

Uploaded CPython 3.10 macOS 12.0+ x86-64

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

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.29.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.0.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fbde04d2e6cb4b73f080699c628b673dd4e544fb84bf2f2a3ea43fac0416ff5b
MD5 095d63e4543e63f434914a485381154e
BLAKE2b-256 21b62878050bae2488a531a918758887bc7cc07b900e9163364cc316ebe0ff94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41ff0fefc5c47b397243d10d7f467a7dbad575f1b2883a7596f279a969d9dc9a
MD5 92647b8e42f83af355f5cf689db47a35
BLAKE2b-256 609001d6cd09482303b36feddf4283a9305b93f944aecb7e0aafa935e49c88ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 294d5c4fcfd2b13b9953e93cec0633d030c507cd93849dc6b16fa551648ed1ef
MD5 60d283b3dc6e3cd9f7b8210bc7867fd5
BLAKE2b-256 3fce18d16f019a94964b56569e3d270c75a85b6d52c4434718d620bb2eb56b79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 6d69881de51396ebd0169276444fb28ac822c5bf1b6f32e47ed24db30b64a2dd
MD5 614e47515b871b38ea28732d0a8eabf5
BLAKE2b-256 050664cfa4679371b9429e39a849699f5cc3875a918ccf1fa8ef24c64a026aca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a5e6d8744451dc538cfbfc556f72da47aae196c868945752427c7a1ba0fa5086
MD5 f58257c473e2760935f5197258ca67e8
BLAKE2b-256 76d8ddc0dea19ff19a9521c30e048c46bb01f1f736768778b6f3ee35e6817d41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.29.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.0.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7a5bf082a43a594cc183466e6ffed1f558d88f060d210b8e8c2f98ac8011b967
MD5 22362ca1a372065bd70afa983574484c
BLAKE2b-256 171cb4b701962120dc19ea9bbb5a5f2b365296576ebf3bb3a5f8daf038fac138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fed6a906296e43d48a9a8398f72c7ee14badd4a215e7236f0d59f2d8885f0889
MD5 ecf40aff6d39afa0d0e37cc989df26fe
BLAKE2b-256 166c8e1cc82d472a8bec88e1784864c9ed95b79ae13cabb889fbeffd5a1437c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dd99397faa50c0636f1e7c448e6877e1226b62fb0bf431150702da1a8e768391
MD5 a5a3265c6b2afcae83a722c05dfda449
BLAKE2b-256 80b73a2cec7e9aa3ff4781e44ae9572f65b39e11c20797959075614c0fb8152b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 da08fd6a648fb0ad60eb24e08f36f9b3467909d860fd75f44135e1876ae9a02e
MD5 76ae7e4787e875a6e4e7478a1b0b50c9
BLAKE2b-256 7f89bb8c4669e8b0bd89edac5b982c253da202e9c7ff7174d7b73e299b64a94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 1d537cd10820468df645bd35c183bc48310caccb7e47ba00a18c2cd4c87d3d28
MD5 aa389e0e674a9965419406d0210327b1
BLAKE2b-256 24b8b48a7681d3aad571bb959774f110779e9cf3758d00ba1a41765241c5c702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.29.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.0.0 CPython/3.12.4

File hashes

Hashes for pytket-1.29.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 61b3c9a968018a744ceb39f97b58e7576774511fc80999a13ed6b980d3f5583e
MD5 2ecf79d658db95e6d9f6d85f9d24835e
BLAKE2b-256 b7febe17ee215a64d374490cfd5c4d9c4acce92b389dcdac0063bb84e9fc168d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8c69ce7d004fee5210532d980c503ab7500116f01820aaf27bd17105a455cce9
MD5 b4793300964613c5a81b426b16ec69f2
BLAKE2b-256 8d5eee1e08e162c057afecc4a05f6d2e5fc2e86b1201cba49c8f35969e2b66ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ff0f8f6d0da04ffd764e8f13359a7f8a752539d6897ac301a5ef4f11183dcb57
MD5 5a79884ee06840c6e54893dc6f20be5e
BLAKE2b-256 651b392b160f8e5358e7801ed0fdf9c8fa5b69d42e16253104e6e9cc94824d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 4b0574e02860cf3a699c7212522796f6c1574e9155993c485b279fef6fe40a85
MD5 41b7ef3979cb0f94ae1691c4583a3878
BLAKE2b-256 3f1cb9a1bf6dda1d9eae14b21eeee452f0ba8eafd3d8caeeffca462fb8f54870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.29.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 56d58e89cb219b420451c57aa882e380e74148b1ca705339922605cfcc33305b
MD5 f10ecbf3bc49526b746ecf5939a63382
BLAKE2b-256 8677c204f833cc38e887c1c3a276e3e5e3103bcfc8ac5fd9635b0a22354d75ef

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