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

Uploaded CPython 3.12Windows x86-64

pytket-1.32.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.32.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.32.0-cp312-cp312-macosx_12_0_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

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

Uploaded CPython 3.12macOS 12.0+ ARM64

pytket-1.32.0-cp311-cp311-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.32.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.32.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.32.0-cp311-cp311-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

pytket-1.32.0-cp311-cp311-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.32.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.32.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.32.0-cp310-cp310-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

pytket-1.32.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.32.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.32.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pytket-1.32.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a4654cd9de73292f6733c51cf8338088d56ee09f0cb28a2b1e270c909afcd3bf
MD5 e35f867570d5287def9e8ddc66cb0947
BLAKE2b-256 1bf156471cdf53e12400f4b975a3efadc8ed71e1409d2a7b0399ac769b6b4aae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 51c67d92e16a4f49f0a5ee3b3b4688086b83ef64c201341092cfcb7b52ef87d5
MD5 b1a36f9b2e1fea114f35c89836f7a57a
BLAKE2b-256 17370795a45b164d0ec07837bbdd1622de2a1d88e380ed7046bacbbb3e7eb199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 479798006542809686b91e2bf148317c2b2a0f2994c5710465deb0cf958fe505
MD5 e0a06d2380cb71dd1429267dbf726e34
BLAKE2b-256 30c36071db660104fc3fd30b1467303b446668f9184f279c3878e157a1dfe3bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2f7b4efb66da70c4ba07bca3fab0dc1e864dc9d2f6b72997f352e32bc6c16423
MD5 cfd46862223694b529dee28587967d4d
BLAKE2b-256 e10fed14a762f50490ddee042ee7339b4c0b5c0329d282826cd45e971ebe3d40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f18e623fca0bbbe7235ab03f93122c7d4143e270ece4c4e98d43407c23d28dab
MD5 e0b3de2e71fb90d043e1b34615cef840
BLAKE2b-256 c73106792c5ecfa7662dbf5d405c8d6d7db6be51867bcae787dc950b462b26e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.32.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pytket-1.32.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1050c64eea69b381f24a1624db52dac91d09080b0ae64f37ee4fbe8467264a27
MD5 c47b1577b9d6cda62caa6df95c4f9ae9
BLAKE2b-256 e251855d19fbac92239e147171ce90162c722f83965e623ce2ddef5d33fe69d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fad351335df546d53b19fbfa9b439b6206a88d0ea4a780e09a9fc7efa7a6e5d7
MD5 7540c21888d427f34880a1c27a33e8d8
BLAKE2b-256 d9b34c5d8149ffbc4219c623b82d6e67257d0766e6f9b185f5bd5eff255e201a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a9f3a9e6409603b3df634889e7fbd100594eebce5a168e7ae18aa5a1298e55b
MD5 b114f0b2110050ce273acf024af05c95
BLAKE2b-256 dd59d1dccafd7cd93f93285ae4828ebbe3f8fd41af5829ba212acd1a6b3bcaef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 fc007c6df26e3654190f7e680bccad492672d940ff570ae8c672ac2f25498033
MD5 d7d73612ec59786ad6e120c2447729ff
BLAKE2b-256 dbd45ef00e0ac0866a817f44de761b4529056036f32921505aac3640d12ee286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a0d57132b8f1e47c4b3229e23c0494ad6319ced3eb6ae0b868c8b7906c7402ad
MD5 00d239ac850add16ed7d127f4a48a6cd
BLAKE2b-256 791e734dc6ca41ddcc314eed2537ce412ef7c06d93ebb539a2a320aed9700dcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.32.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.1 CPython/3.12.5

File hashes

Hashes for pytket-1.32.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b02a0c74f2c7dad60a4ddbbf9f75ece3331438e59a1df6c8d1b557084f75f757
MD5 d31f099e3592183fd17191b1408714b4
BLAKE2b-256 0abcd4350d9326aa5ee1245fdc0b310c414593e77f422e2ec086dae6ba9bb93b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f0a6c3d539eafd6c56ad313a522d7601dae6690d0188b36d6ad9c7a6ddd2e14
MD5 26deaa96757456ab546cf19127e73cde
BLAKE2b-256 63237a941ea9a09c2f90488be22322e1816c3c404f9ae0de23597422ef90cfb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0cfbdb4abf96900962fdedab4d6299f7908aa70c50b02be59a710aa569377bf7
MD5 82a40089c6a4f5d8cafdc33f73f1f921
BLAKE2b-256 51a8dc76307bea3cc761945292d0203fe4fcc6bb69d3fc6370daabe33a68c8f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 8eecb0987e4abb4c48c8fbb708dba38ddab88e9103b9400194aefdb2efe91579
MD5 00830ff08fb88acd3b783d8d69efcb16
BLAKE2b-256 3080ac6ceaf76cfc2172a3b210216d7ca752457e8044571e386e7c3f84d2fbea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.32.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3e15f0569c955fecf220b04ab882be1db43c8e29dd214681faf65e76c8f7c7ff
MD5 bafc4c30a652c5890271142348f3016f
BLAKE2b-256 4e5ca600a9b6c8a36d4780b87cf9323db68f695eadd5429721f94590bd4d250c

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