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+.

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.html.

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-2.15.0rc1-cp312-abi3-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.12+Windows x86-64

pytket-2.15.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.3 MB view details)

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

pytket-2.15.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.15.0rc1-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

pytket-2.15.0rc1-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

pytket-2.15.0rc1-cp311-cp311-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.15.0rc1-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-2.15.0rc1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.15.0rc1-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

pytket-2.15.0rc1-cp311-cp311-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

pytket-2.15.0rc1-cp310-cp310-win_amd64.whl (9.8 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.15.0rc1-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-2.15.0rc1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-2.15.0rc1-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.15.0rc1-cp310-cp310-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file pytket-2.15.0rc1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.15.0rc1-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytket-2.15.0rc1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4142f057cc243290e758f9d44989a72762c5d71ce1bebfb5c3be149178130571
MD5 d96c30d73aaf44f091be5aee77aa1de8
BLAKE2b-256 d63764465486c1f74490016fa7e7443912c3bfc10b21ab2a595e6f5a9f2969de

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp312-abi3-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 228efea126f243d2c96c0aad54ce2d454a0c91a6b6c625b46751fec35d4b8978
MD5 93513d6e7ff80eae4af47362caeacf2b
BLAKE2b-256 985c85b9b22d0ac6eebbdf3f4f240ea9401997d4576a1eea7620eee8da175dd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9aebe058e5a77297bd67c7997b8df109bf964b715878e031cd5627e565d4ed96
MD5 9b85304f30ec2e0bfc4dc9cc7aa5d0a3
BLAKE2b-256 ccfe1fd667af3b0bef2f3e65d63d33d7bb71cc3cf726e5ebcb24c8929b449424

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 4a29ae5812573f28986e4a8ccee0909bf70e0e111e416aac556f1cbb1edbf803
MD5 c0b44e0013add2f0783d4fba02f8ca4e
BLAKE2b-256 e5b7745eb0a0224b6509f880671ad7e7cb5f3e5aa0505a077fd83e8b895a1b66

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp312-abi3-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9b0bc97ed0b92a2eca2d45d14a104f3fc5ae4829091a9f7542250f3b95429576
MD5 82e6d2d8f6a9f9a86ebc371d412fb6bd
BLAKE2b-256 82c74427b6df84e57a8e16fe984f11a9cf7955d9fd74c9d231447e335f6b6378

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp312-abi3-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-2.15.0rc1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytket-2.15.0rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ecc0e66c91edfc25565e04d07d2f96d16d5b59a12e9e9c1107c144accece22d
MD5 113000ff224db79b1dd57f3e4193317d
BLAKE2b-256 7bf9db01d747e84f0a53ca24aed5ae6d17c1dfba4b39d5dfe0018bf50800233d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp311-cp311-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2cc1cb645c9adb80d27c749992130a3e9ec41917d24d714d914c01c79d31e4ac
MD5 eae72248989170e4498a3c719b9affc9
BLAKE2b-256 5b8844e52a9249b5396b46954d3a9dd6795a8bcf323e36b0307b6e60cdc410d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ec3c058558aeff890bf8f625b082c6d46993c5bd53278c305709d1d85163cd6c
MD5 08c56d7aa29effb16e5abda527f32357
BLAKE2b-256 2612b7b0c9fcbc2ac7a9bbda44ee615b08cfb7458aee2380493c5f0b03a191c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 9a14b48a7b5d201097f92fa6819da8d0c243ae8d2d7aaf62c17e4620c524f2ba
MD5 72e10c8c100474615cc054d5bde10fe4
BLAKE2b-256 29ca41b5fca242bb81a34f0bb954cc0b067fce5d0e0059c1422048915418e27f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp311-cp311-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1443a28c4714d705109cac1005617d928f1c904bf4270b937eb7af2284ed0bc6
MD5 0573a9b1c7693f8d19ef19dc4393675b
BLAKE2b-256 54bb96e0fb720fc606a3d154e14d21fd4026d4b27d0d7429245a806f9ae6e075

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-2.15.0rc1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytket-2.15.0rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d4dcabe4cee797cb81c93a3faea286b754db706054eab1c1a7872a584422b702
MD5 9baff4b790db69d227b21032723b9408
BLAKE2b-256 e80b2d19759f2f8c2f100ce31dc9f90f9f0b6e68455824d235e4fe70e51c33fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp310-cp310-win_amd64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 908069a8db4ebb3c9537f0c4161ca65c499eb14d858e4ecb331f0dc69c71c235
MD5 7888e9d0af8a56b686b68eb54e916bac
BLAKE2b-256 153337efe01264bafb151a473b9be7e3154e22e1e524e58157d7f740c0bd0e19

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3070f56e3232f3b121e0b33b80c26c6cd17dde2ba51a45e427d27569aeb78da8
MD5 0e3566feca89c93ade8f2aac8d56d67d
BLAKE2b-256 ec3de3a4c834aca738b312481f3054c05a5d804852bbccbd0f9c4dfcbba6b1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 5649f4024768e10b732d0b2dc90678a0255040ecd626e089cab7bdafc9020983
MD5 ae26323cc2c5a5f5f8170feaa7715a07
BLAKE2b-256 f4e3bd89664c0372592cbf99a7e1bebb5df4f2aa10467c771a857d1a0d693e79

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp310-cp310-macosx_15_0_x86_64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytket-2.15.0rc1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.15.0rc1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4a352d4770336d5bed288cb2e0d350371557ba567f639eee2f7500d900e83f3d
MD5 b805b18cf0250031def13ef4b125b7ed
BLAKE2b-256 3c3abaed294e3ae0a9748befb0df854d86ad738b757b5a7741f93549072eefae

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.15.0rc1-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: release.yml on Quantinuum/tket

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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