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, 3.12 or 3.13.

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://docs.quantinuum.com/tket/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://docs.quantinuum.com/tket/api-docs/

To get started using pytket see the user guide.

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.37.0rc0-cp313-cp313-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.13Windows x86-64

pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.37.0rc0-cp313-cp313-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

pytket-1.37.0rc0-cp313-cp313-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

pytket-1.37.0rc0-cp312-cp312-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.12Windows x86-64

pytket-1.37.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-1.37.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.37.0rc0-cp312-cp312-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

pytket-1.37.0rc0-cp312-cp312-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

pytket-1.37.0rc0-cp311-cp311-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.37.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-1.37.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.37.0rc0-cp311-cp311-macosx_13_0_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-1.37.0rc0-cp311-cp311-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-1.37.0rc0-cp310-cp310-win_amd64.whl (8.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.37.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-1.37.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.37.0rc0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-1.37.0rc0-cp310-cp310-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file pytket-1.37.0rc0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.37.0rc0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.37.0rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a9bb86a8ed4cacea6555fb98b116c09c0b11f24e10892b9b843cf6f540ed5820
MD5 370a14541be3c60575812b6e5e846308
BLAKE2b-256 66a0dffbadd9bca88bff5663a5d0a5a08b50ecf85db0b662f4cfb09c8c345333

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc0abe76cab39bbe5ba5a2569b7e65ce62e01fc0f9384ae14a65fe5d3cfac836
MD5 e1655ec1807f588c288868b7f1721ae2
BLAKE2b-256 42958d5bebeb36d8ec8005f703f5c8ed04f7493d40921897c1d56eff3bbf2fd3

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9960262b8d3ee848645a56aa4d605fcebf45fb535333374ea3e53bbcb6c48192
MD5 4f7902b71a37fdfbbd44c0389c28fa74
BLAKE2b-256 1c0c4c68a8bb43f504b9cdd3dab5e5b96337b495596b23dff97b13f87c4782cd

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a43e60360ee769bd95a33e738c5b184583b5f427c8881d1a6ec9ce4d44a0d2b4
MD5 fdf7d6137b4273b8b3bd3985f3384922
BLAKE2b-256 284e015425acca8661cf32db08e6ec70aa38f85dcc5b84c9c4b920c5dda818d9

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bf76f0d7d1ea780f046687c6c9ba2acd5972254982591c89219e5a53fbe7fd65
MD5 9a3e82c69890b162338be1fc6d514e32
BLAKE2b-256 882f33f6aa777fbe3d4819660108605203da2e1517b00490efbacaead93805df

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.37.0rc0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.37.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49add020d97466a06b9c5a33d0ba4201060c8f0366338b08320384cd6dc5ee02
MD5 4e93e6cb2f0cc4e83eb99d85a897e008
BLAKE2b-256 208fe0bbf14abd95f5e651f742cf3addfac265f05b694b1285c1f61f55b34b4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 80c15131b3152facf93e36ae3975e519dec2156d80cf3eabe57c619772b1f58e
MD5 c102796f787f9136bba694314ba0aac8
BLAKE2b-256 f91939d132c5d7decaec3256cb5e26ae1b6014881b8f19f78efacd7e5a14c3f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2bcbe52a942dd0db39c705a79f8219d63d7595944d0cf0f7c90d68465406062f
MD5 ad659c2d7d9bb0c7331dd6246a86cbdc
BLAKE2b-256 f90b25e94e138bd74cf29d1a061933bfa1cbec35051b3af8aefa3609c2bf0e48

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4b613481d2d79ae8d25fd69ab9998b7ffd8a74a80c085382d3acc830ccb69bfb
MD5 fbbb05b161378e874c687837d69eebbb
BLAKE2b-256 fdfb85ba0013cae4a7fe796941a5ce7eb6a52d4a760253e7d45092a39f1255ac

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 759d327cf77329e421a02719945542df90efd4b748f7cacd68846be8c41ab753
MD5 bfef5e9afdb261947ac5561b97363be8
BLAKE2b-256 8d140d5c2a1cee2ccac6698f77a8ec45bda38b5fbb2cb546e8e783824df95d68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.37.0rc0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.37.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c16dde0910b3f7de1b5fd7471cebd235bc6cda3c11041f003fd644a050b63ee3
MD5 04121cbf2e31318c1482026d1e9175d6
BLAKE2b-256 ae6729da25410538585025a732ddb2652bea56c827b142080b07053943288fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e4fd3b269f2abceb19ca54e0e45f100b58e625b88800e7a08002aae2f868cd2f
MD5 16b385259530e9356de991972d7f1e90
BLAKE2b-256 cd09b11cd19eff5ebe46fa00885986adc4430c3a061f4fd7b8f7573969ae8fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85f525f929c360dcbc87224e511bc45cff8450c0680772fd89c82c4b5050615b
MD5 c3bf3298deb7700679d916fa56511d3a
BLAKE2b-256 8347fc59120974464c566937913deb997b51adfffc095e546b567546765fba2f

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e25cda7c9af9b2b4ad5daba6eaff20100c4187d10a13a6e6776046ed7018eb84
MD5 750a0b09eb0d8ba9c0a455d7c72a0cc9
BLAKE2b-256 f17b1398af118f9886d5d3f5ac6d064c032fad13b0dda9b3e376064ab5c618cc

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e6f9036a6feb60932b0e345561b8bffa100b6b30decca182b00360a1d65a8417
MD5 fca3e23670781cf68391c225912a1580
BLAKE2b-256 07cad6490e3a41b9543b4ca629003aecc537b025b36ec5f761e5dc36ef6010e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.37.0rc0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pytket-1.37.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 42a8bd45bf0e29aef7bddeb615caaae6612a48fe79dfb71e567d6dae0953e5ae
MD5 01fbabd61be41cc201682ec9ed853578
BLAKE2b-256 7e64a0d0a9d989ccc3715d8d5ba165f4e2e9102f9e847409eeec4ba6268f1b09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc61457bd806fa0a1238f2f61050735c7e15eb106b39d74cff1dcde4f027893b
MD5 c41ed4589da9b8a7241a5d6bddd3855f
BLAKE2b-256 2110091216333885dfda1e2a0b82ccc5c6b1814cc3353568f6c3669fcd72d67e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 93383e1dbe0f897d57bdb101e318af050a1ae0baacc077357e356d6d3f037dd4
MD5 3828cb2f4315a136656f36bc7f78871b
BLAKE2b-256 3373430a9bac3aa095e1b83027ad29e6a6976248254d6bb8c75e5c20228748b2

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9a9aa42b9b6c5aefd0f81b622e827643763a0816301f9fb7b4721d1c71d20cb9
MD5 d22ea439e9bebbc8b664f6976db57964
BLAKE2b-256 e9f838548b6fbbd10a8c13be1ef66c626e934c83c07472a6ee2f3e5cf2b50269

See more details on using hashes here.

File details

Details for the file pytket-1.37.0rc0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.37.0rc0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a750e7e3149a98227c1be3b6577b2670dc0ed4d42b4293f2ba548f786db51c7f
MD5 6722fc9cfbcc66bfb8b32e1cf42fce4c
BLAKE2b-256 932dc13984fa228367d1cfe258ed917f4aa369935bc9d3acd075dffb8fd4e0ee

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