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.30.0rc0-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.30.0rc0-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.30.0rc0-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.30.0rc0-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.30.0rc0-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.30.0rc0-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.30.0rc0-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

pytket-1.30.0rc0-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.30.0rc0-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.30.0rc0-cp310-cp310-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.30.0rc0-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.30.0rc0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4ccdd91c0142d3ba78f0af4b856b9c37f9eca098da26d7fa767118ae743c01c6
MD5 8f9102a6563e1f32b151310a680aef90
BLAKE2b-256 cd6833b6e3aaab4108dce7d681a155053f717ef887e05d96369380a74ede03e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fe67c8f7914c9e045d0ab4f1d4e4ff92091fad09d90f64bef056b02b3b8e5f3e
MD5 bf9071c52a017e58c3c2921452e58da0
BLAKE2b-256 04f3e664640105f36d97614fbe9e45e64b3822bf361407fc0ce3c9f0e49c5518

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ee4dc1cd0bd30e2cfec4f731cbf3fbeffd626e4846d383e8d27bfff57636ab2e
MD5 74fffbb24d7e9cf2f6a8e5dcd1b89987
BLAKE2b-256 55d01d78ab8bdec062de205c870957456e2190a9745b61946886eba327ce27d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3f8c3364dfab269f2f1ab4e0fb8775ce35c42ac9e9ba9e4f17af8f91954c01ed
MD5 9a3adda1022adb4f734896bb100aba12
BLAKE2b-256 d34ac88185a5a58f117b097b00a77f5236d7274dd6ec5225b7f247c2fbae86e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6e10ca19d9eee1bf7f629834754e5087ff0b265f6d581ad769ce2e950f13bcba
MD5 511cd947a2f8bf8c214d0cc128f4ab95
BLAKE2b-256 365dbf9cfac43891d86573c629cb9a683401bbe7135bd9cd8e21ca416552fe88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ad100eee91140cea6a0459b68a4125b0a28905d00f62a7dd75050d1e1c7146dc
MD5 f70c92d9ba6c29ff8be57422cffbcd55
BLAKE2b-256 cd47e5bf50968d7f4ee9073c908c3b099a352005a2f8541522d5bad7b1346079

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf1c7646970eb588d5e20eaec4e0da4c780214143c20fe6fb2b3f23dca5202fe
MD5 40b91f94362b4954d425df44bd417f00
BLAKE2b-256 02046606aae877794c85ff2b38f759a4aac7b3ee8dd53433dbf643324104693b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8fe2101290b91d5896ee61e5a54467a4b03b823ef278848e0b6b16ddbc07c2b4
MD5 7395336e4e4d6e1961910133e9f51733
BLAKE2b-256 ddc77cd5d6888016245722cd7a13d6d54dc58b3169e03d6c6e9c2c9f18dd3e63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 10b880df466fb915bc8a9df160af0ed0d4e431f0f4c48513d31f533dff59e2a2
MD5 31b1712e5647bf056782ca8e51492093
BLAKE2b-256 d0c7e982e6c6abc7198f2f585314b0ae994e49dfb1c646d1fe9b6d0ec1b60798

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 945385e21c35d843df38265a9f26ba8fd99b5423395973f9a3d15ea20a1ec52c
MD5 f2aebf475052ecf06b9115ef309d2449
BLAKE2b-256 e7791e4533f86cf2fcef24965206b09296926092a20ffd7141e69032a58c852c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ca30ff9f2a2b6eab854137be4b60327867b829d2ab76ce3abf03359a44c3f2f7
MD5 d22d0ac294ae033d79420b1d5f5e2908
BLAKE2b-256 876081796310c6bb96a78ec1c03e66bdd2b5c5b668aee3e10ee9b3ac5a96493f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f3d445cc0ce86516d9782410e072119eb7f6b8b8b8196c11e55810c01bf89b6a
MD5 3e4677400a9567f6a49fa05bfe5afea0
BLAKE2b-256 7685c3c722f0a2d17771e1459c790373df7a08fa98b35a8e982af393e03f8259

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85a2f6ee75bf0e2a3cedb400d5fdf5968c81637fe274418cc77f166566a943b4
MD5 1e695f3fc6dff9cb774cad97acf2b236
BLAKE2b-256 b573ea9840f4ea9e80ed726b9398d031402b19e80fe49df7c7518affa53160d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f2fb8bda02eb135bce8e3ee8d800628d1e2e3f36f88f4b3bbc7b0cf0d5f2e2c3
MD5 f582cff0d5d1dda2f90d94ab9ea74b52
BLAKE2b-256 bc90ad35e456891b577ac41e710bbd298f603a8a5059898b11fe82d41b6ee9e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.0rc0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 66cc0bf20010424ba87cb5e0b0a5ff9bcac958997cafaf6ea1747ef0903c6130
MD5 8e221dfd1552cde7f4cce4dfa60f8a98
BLAKE2b-256 fda5fbe3e56584fc9d32097c7271d0a396b5c33df5baaf0bda09aa2a99322a3b

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