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-2.4.0rc0-cp312-abi3-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

pytket-2.4.0rc0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.1 MB view details)

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

pytket-2.4.0rc0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.4.0rc0-cp312-abi3-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

pytket-2.4.0rc0-cp312-abi3-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

pytket-2.4.0rc0-cp311-cp311-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.4.0rc0-cp311-cp311-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-2.4.0rc0-cp311-cp311-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-2.4.0rc0-cp310-cp310-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-2.4.0rc0-cp310-cp310-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.4.0rc0-cp310-cp310-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file pytket-2.4.0rc0-cp312-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for pytket-2.4.0rc0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6ce1e5d1d0630a5dc68ebb947c8b3ce0850c2d5286b54193d26a4cc5e5f0f8fc
MD5 f5e200aa85b12ab86695c65d7dc35482
BLAKE2b-256 fb8254e8be9073694c02686324b0a3ae6f59b9a8a1a4c38471bea64fabd48d15

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp312-abi3-win_amd64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a49fd686a7ca48e7c8e5b0d8f2982cb02ed918b31ea61c6aaf95f74247a16506
MD5 3fea480f735dcb27fa44a3f181794d80
BLAKE2b-256 8fec3c0a11e5b7dde19bdd0912f8db6e4f3d60ce9c15935db5cb0fdd5af1f9fc

See more details on using hashes here.

Provenance

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

Publisher: release.yml on CQCL/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.4.0rc0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 918ebe1195ffbeffda8e6c5c8bbb637471d7c4b8bd1c2060a4d157bed32fa363
MD5 aab48e6e4a7fe3f69d6caa5e60beeee3
BLAKE2b-256 7f86b830975f8afddc278020b0bef2a7772ee1a8572bf4382318d058f8c9a227

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 17b1cca8a98f9cb6a219843df0afb8bba51bce747b58d101f61e69a5f65af283
MD5 d3ac270a599ad7477097269398ac24c2
BLAKE2b-256 2e6fe1d2eca270123f9c04a882616fba23aafdd628bf66f0cd4c0bc70f1c5ad3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp312-abi3-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d37d3ac3bf42e26e070f191b6701ee1a86dee16b7f0aa4d3e18dfe9db1d19b01
MD5 403cabae3e97b37168317381c97e3651
BLAKE2b-256 14205b7502c5b084058e31f74443b87008621c85fddcc4685c0cf8a1150a10bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp312-abi3-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-2.4.0rc0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytket-2.4.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a08e5b4b1bb073fe1d049ec6161328aa7eba6d01452825808f3a3e70c154ce93
MD5 d98294d475476b3f31e7b4aeedaca05a
BLAKE2b-256 8ab2d620d1ba43d6d6463b8b48e31489f3ef15c8df675f5bf771247460efc321

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 70113d14a951f0d2464e15e93a54cd8c81b8510052e88dd81f95d3e1e62d672e
MD5 3100734d81fd78646b19a2e8e564d2e9
BLAKE2b-256 5d925626c23435e7553eeb79478d63e65ea13884134af2930265c76166817ca2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 41a1258e5d4122337095436456dfe635468edb70cbbf2364e93fd49587be13a2
MD5 2f7f0226dbb2cd6e758a2d115d7eb406
BLAKE2b-256 b96e0cb63325b960e0a5f11376aa26c4f51719c74ce6a63bf8af8627ba88313a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 404c15eaf6666965ddd8b7ba3c9cbcf27ef706e98744fc270c3207e89eda5c65
MD5 8bdaf849cf50ff17daef0f7596673046
BLAKE2b-256 bf32d9d805df399c416cc1a23adc8ef2cbd7a47fb9bb9ed6b1bcdc9001573c26

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp311-cp311-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a1125a146c88f45e8b12360bb8b2a2091923abd2c8e31b8d8bde28e041b0315e
MD5 0e9b5389239ad8c0026bd5f4ad90e7a5
BLAKE2b-256 feb9e49aa2ef977bbf184368c7bcbe12d59520261d5a7dc8ccaba9567af996b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-2.4.0rc0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytket-2.4.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6687f08d161065af079acb35a2526502acb610dba52dec6ece0c8fc951346ce2
MD5 d669255e137b1d98073016122282cd60
BLAKE2b-256 7dd4f94af2367e04557813ba5c7709c34d3c91cca324f8e095b637bd12fa1b75

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89f4d426377eab779b0265bf02de396c4f6ba8cae19c76af57a089647790f857
MD5 abed8e526103245b1b3e8a36957b8f68
BLAKE2b-256 270b56d228f4228bc507191b8740366942d63c7a7a7e8e1beb447f526be8dc77

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2960b4f9dc383806f3f7af4f654f86931f0272422df8c997ed8e2a4d812bd2c1
MD5 7d6631af5e6aadae3943d014fc3fe800
BLAKE2b-256 de4678d494fb5762a26858cc63734ea8007d36c03e5a144dd71bc49e0d8e4a38

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1e7241ec8c7db7164ff03984250a041425ea7938dd80fd7d92412d766f5f9e24
MD5 54b223e76cc6547f863497331233273e
BLAKE2b-256 05fe1dcb6993aef01ba1084d04b19588bc069f191dc787059da0abf3f9e198e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp310-cp310-macosx_13_0_x86_64.whl:

Publisher: release.yml on CQCL/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.4.0rc0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.4.0rc0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8266152c4c676532bab74350b0f6cc944f3d582d1ee0d8b4c56984f9bfc3f5b3
MD5 5d9043fa239973af60c568a56fb741d9
BLAKE2b-256 6383f4492f2fc7ce98e7f6cda8ad22d3afec25b6eb0de28d8d9645b43ab6c792

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.4.0rc0-cp310-cp310-macosx_13_0_arm64.whl:

Publisher: release.yml on CQCL/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