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

Uploaded CPython 3.13Windows x86-64

pytket-1.37.0-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.0-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.0-cp313-cp313-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pytket-1.37.0-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.0-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.0-cp312-cp312-macosx_13_0_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-1.37.0-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.0-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.0-cp311-cp311-macosx_13_0_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.37.0-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.0-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.0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-1.37.0-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.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.37.0-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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9c723381d1856e7df763dff611a9a3909481a3072b6c7019b7147be602d953ca
MD5 08b4eaa35eed739f08bc7ec3c535fb62
BLAKE2b-256 a9cf34ffad7067711504c0b13ad7644bc35c6ce7bdbbe54a3ba6ad8899adf937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1be58da4cb449560db20606d1e431e2d4a1621fabd2578bc670cd35b1e5e3bd1
MD5 57d11fc79fe72f87c18a0306d00e4ca5
BLAKE2b-256 46364b844f1f8144b5fdf95acd57047e175eb2c36178f86d5b69e7dd115ec3fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d887bca4c40be9a0919fc1820cbf1f667d42a99d1cc149453793e4b9c034bab8
MD5 e23afdcbb9fbe567a1c44b42c331bd2d
BLAKE2b-256 7bcfb9c6e0d2235b20550cec983197fdaa3cbb1761ed35e154473aeefd5040b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6676535c4ff44e5da8b54f7237acdcb134f0c9f8f940d7e4d2a1028340138ace
MD5 52f9e03c9038a6749a6b6075309a1b6a
BLAKE2b-256 7f3a2435d259f6e3639db39767a33b6ded53731129f792e393f75346681f0d97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4ce560347411e69434b625a62d31f0fb20b8126ad7dabc03e8478f73b65490e1
MD5 053372ab31844efe665c31899fd7bb5e
BLAKE2b-256 3087905007496d1c536a890174a70cc9a47920dcd0013857a6e13febbc464c29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.37.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd33e86b003fd8583e1992f3a9983662a376affdba2f9ef5752bb88a3c0fdd03
MD5 151f66ddc999d5254efcf03eaba1b005
BLAKE2b-256 c7b4e6d73c523ab6d651337acdbf233e6400a375aabce56af31b0a3373503bd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6691f8df2de9432f70552f305f4136da694d71b648c0e5a2ccc435b02d19bd7d
MD5 eca7ce855cb4fb417ece30fe3d4521c1
BLAKE2b-256 3eb5afdf2f7717e9bab2f1d49b6f3fa4f32345821446be90fb1c0868eff849f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2c6682c2dac4ba361578377630d91ea0ec2f36864b19e94867fff84b6c0ddce0
MD5 bd8cc5082acfec9f08d6124534a66432
BLAKE2b-256 01dd6b91a5086e99c0eb040619b8ae2fda8a8d333f9d364c91f244590478a69a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 bb74db598281bcdb22f84dc35a73df0c0807e7aa01a5a4282d6433ffa7ef79fe
MD5 7ef7feac8e6f6b60a43b8ab065b1d335
BLAKE2b-256 ab6c669e5541da66cfe2e8b4b69d150b5a9fcba0cea69a443028394e18f49732

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f3bd9d42a6de858e35d082d1f9c5ac60f85cbe19e74668b97bd593fae2a8a1e5
MD5 8402408181361ee3c5d18be875b8ed0d
BLAKE2b-256 7b975cf6f71990a5d822c9c2afadbbcc343c6803689407b4d6d9ca9c80e65d8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.37.0-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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbc220761b8af4be93ed9618abf04be8a292faa8dbfb53c701ea952eb0bf1ee5
MD5 c5fa9367318edaaeebb7916b88f85e62
BLAKE2b-256 3cc04deb8ed700c7290baa22ff380072c83056d77956e9b908e805ea68402f36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a1425c5b6428e1d1a7907d2d7bc1c5c740a6640d467642d938414f20a745ec9
MD5 a8fd31a6c13a8a19574f1965c75c84a5
BLAKE2b-256 72e9fa7a0c66aa335d8f09228bbbee178cbaf13dde5153de41f2cbfb19b6d878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 71bea19332a9f3138a2331eb0be0a65a392f1b9be9ff8fc145380e8ad2213e61
MD5 df4e6f2be9f9e0d3b2ea0bc48a9d6f6b
BLAKE2b-256 4de4ae5916829232739cf8c034b117bcf165546e19d213af2f12e4b6a52f63ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ae72d7a93546f390a918a7442e76ccf91b66694ed279c9e1c93f5db82d3f76c6
MD5 9ada6d8ab2c0453b7e37a43bdaf18dad
BLAKE2b-256 3a63b54dcbbc54517c3d816d6e962e18b82ab364a36b886247ea077a48e9a155

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6683d2da32fd51cc6bf1ff0a1216665b7d1a4d34df733656e38aed235c2b0c6a
MD5 1aba5c69416833db65f617f874b33b8c
BLAKE2b-256 160430dd6a05705349937824f15a9d1295cdc5b6db3dde01cc5110480dd91971

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.37.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76b2ed871df97e51bcb96c08ab18329617fce4baa782bfad89e1c85b18d1b1e7
MD5 820c891da3f446af20df6f3e9b33ba8b
BLAKE2b-256 9f6476cb5a57328b171a7cea3a676a22da568e3e615059d8e821e017ae3fa8f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 794478b2d5a9d8c15805f66d0d866f4e804254f758db80e494d439f5f858bced
MD5 d2b3f31d47f2b2baf7ae4e58a08d5d70
BLAKE2b-256 71eb8966f36d06e781efeaba64d02977c3f878891ec331010c933613d0ad2130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4d4946f9c419107d5861ece3d0e4e390513e5e2a47a960ec1f657dcb53ebe88a
MD5 37f8c200bcbee47791d3dcd6463bf264
BLAKE2b-256 1d862c83107fed9f8f3ad657d849df392a9c10d82a39ada5532b6ad5f61a4984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 db7f30709e1e45ddf43e3d7b686f8606d899bce0846447d5680a61adf9bd1379
MD5 446efc4ef4eb5be38eb765d9c18b7e46
BLAKE2b-256 c6a7ff811f25428cf232e0d841e9db8376ed88786130d3300b862b7843682c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.37.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ab9fd0210250dbb37d4540e735eddf2f1e412f946720b7c2382ebfb41af53e11
MD5 1df82d47ff17b0c1b35778e3ffa4d3ea
BLAKE2b-256 02c4bc1a766912961d04de06c8973fc89531a1d1133ffdfa63b23c7b3505d20f

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