Skip to main content

Python module for interfacing with the CQC tket library of quantum software

Project description

Pytket is a python module for interfacing with TKET, an optimising compiler for quantum circuits developed by Quantinuum. In addition to pytket there are several extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also provide integration with several widely used quantum software tools.

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://cqcl.github.io/tket/pytket/api/

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.

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

Uploaded CPython 3.12Windows x86-64

pytket-1.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.25.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.25.0-cp312-cp312-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

pytket-1.25.0-cp312-cp312-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

pytket-1.25.0-cp311-cp311-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.25.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.25.0-cp311-cp311-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

pytket-1.25.0-cp311-cp311-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

pytket-1.25.0-cp310-cp310-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.25.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.25.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.25.0-cp310-cp310-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

pytket-1.25.0-cp310-cp310-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.25.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pytket-1.25.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c73381645c1b27bb2946707d7b58cf780a04330fc557d089a9bca8c8f466f1ca
MD5 9e6e11572f3b2416e938969633565780
BLAKE2b-256 4990619a2d56e2adef19c2e1f38ce53d580edd6fb5da41005bf4e68eeb690b0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 83241ece02065600d68207bae2818fca680bc87eb26a1647cdad97cf29f82cca
MD5 c5104759d0fa1e4d40018146cf0048c2
BLAKE2b-256 abbcfa24f530f1edbf127dccaa737f84e4acb8151472d57429b5c796b31e8ced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 02f86826a41551d8471b01c5df2eb39ebec61f2296dffe2e4c9e6418aa2d1d9a
MD5 c4f4de223c9c81913698b9573e68c8d3
BLAKE2b-256 b80ccba9c629be065310d07ed37cffb14df5b7296f1124e3d5a1b4b73e9a0067

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 685475b7a2809c555167c7a20b7169f1fced26d8fb0a2658a407bd6bad6181ba
MD5 37281c31eb53c2836117d2f775419e39
BLAKE2b-256 55be8ef36fee25f7fe655014db4cd49c48b41922caabeca3216cf6c20003eac1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 8e8ab9f2bc25da5c9cf1ed5eac5e6303b9389a364ec8a0527e41110fb6b0d21e
MD5 7189396526274a3c77de949d28591e07
BLAKE2b-256 4574145760fe810b31a279433414ffbc079ed701b58ccfdec7f471d74675a544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.25.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pytket-1.25.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f20020bcb4f05e2c63cfddb3431cea7b431bebb8dd795caffd3dd6521c5a3a48
MD5 a22c1255a85fd06fcc8d1204bfb3f2b4
BLAKE2b-256 39c6c2da27afb3f725729fead43c9aedf3ba97f81216f27029085e4a63a1d2c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18c51955b11f262e015a7a27c05e7021fd9ea1dd55ad0853ecc8c353f48732ba
MD5 948c89644afc5d2ea7440ada8f1403e2
BLAKE2b-256 068d05ef213513094de96bfb83c92e571db46ac748e87406921678bba73370b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ea008380d28895dbb42efabff9533f1f4840becc812311c03f935a5da71f30ba
MD5 af34c6cc637e5174e2707acf55bb250e
BLAKE2b-256 3caa74243640901e068cb893b350d153cc0c7eb49312f25ecebe65640bc43a18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f1d265d05803d7ff51d03fc7bd3a42de66de22e9c9456ce0bdc622b5516122c3
MD5 62bcf9eb65a4802eb088e33f10abdfa8
BLAKE2b-256 0fd3621a4fa87d8618c949ac8edc1c6f2af3626f5612f8f84f4d2c0964760dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 55ccc9597c34bb03ab723de90ad5cd224a57214c9123bfb584ed8860d9c16ff1
MD5 833b33aea7e14e054691b8a09ef50f4d
BLAKE2b-256 dd100b9319fb8252ca95e3413da2e4eb1fc155b758571ccf86d93c87cba1abd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.25.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for pytket-1.25.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 340101ffafcabac43e7b2da2c9a0e389e6daf876c53552e3601a6d1e69758eed
MD5 6c23e278dc0a10115bac23b8333feed3
BLAKE2b-256 35f8d7452ed2e4f6ff6eaad5b17f7f6a627c133cfc87bf1e621ee9a8920e439b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 313565b91a079c05d25fb708caeb20aa6f077bf3988798f66edf19914802016e
MD5 96ffbdbac37035ba6ac0fe7373889b30
BLAKE2b-256 7b15f19a122956d7dbf26f9c0f68fe7bdb685efbea92fa2d8dbfc1f6d5644aef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48add5959e2bf1027de40515233d7ec001f745b703adb1aedd22ee0a3a6d29ac
MD5 5b3d802b850b22dea37aea44b284a32e
BLAKE2b-256 894957b883ce54d9a9f75e9d59c03bdd31dc4aee4509dd6ece2566d9c63cd25b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 c9705cf3cbfd6b5fc6b0ead9c34e7dfa0826b2a98a94ab7c83d383057fc748c2
MD5 3b0618a67f8db1b9c9b6060442ed5940
BLAKE2b-256 dbf84af54e44ddff1de3ece08ab10fcea81c31415a93019fd3193665980a3119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.25.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 3004271220655b6b29bbbfc2077288762da62355765402697f991e87edd8cf2e
MD5 6d94d2368403b47516e7f56c94dac540
BLAKE2b-256 e648e2c91d03c77308cf2cfb1678013e0319b36809f2584afacee1965dccb83f

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