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

This version

2.6.0

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

Uploaded CPython 3.12+Windows x86-64

pytket-2.6.0-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.6.0-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.6.0-cp312-abi3-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

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

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.6.0-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.6.0-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.6.0-cp311-cp311-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.6.0-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.6.0-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.6.0-cp310-cp310-macosx_13_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.6.0-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.6.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.6.0-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.6.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e1567aba40de39b919c3036b6988870d6d2a8504c9383605e5cb14966baa277b
MD5 5d59b490f0807d311395ad16d4699821
BLAKE2b-256 25dda850b89934afbe487ed35e69d73b2134f0aba788c24690b98e76fcde1a9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a63c222741644727ffeb1d3696d29c11a27a16849114d12c2e1b2672ab42eefd
MD5 e38b538698f8e6cf0a640eb5a1a80720
BLAKE2b-256 82628fa63935965624be638584a9371a50c68992f116fc17df121d3e5ccd1f57

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0459896701256cba342d333cfa9101fa31a1d0b11723092e4b444f7a8c2fac6b
MD5 c5523f9ba1728689682d7d83bb194930
BLAKE2b-256 16168a52a674e22a2f5b6063712369086fa76e728ef430d4e9819dd5eb1cd9a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 284c6608feeb7e7d867113d626631b2c9bfc2eb76386ffdf9eee2ccaea63cc0c
MD5 1f537e7a242f328b50550639c5f5902f
BLAKE2b-256 cd9684321f8de81c9c392a59e921d6814bd29a22b33c5bca7d111887017ca1ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 65e8291653bb443fc32d4113f92854da43b4b586f282020e6c92b7e39d70241b
MD5 c276b27ebc975237cbe85ac553063aec
BLAKE2b-256 839a72134f974191bc2335b5d36b811fa0baba272d4c5fb837eea1d4aac71a84

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-2.6.0-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.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45dd69df5bb53bfa7ac2afde01558f25d3d3cc969c342c45aeccc8ce3a470c82
MD5 6a6122dcd916fa5ca428de4c3ec42d18
BLAKE2b-256 153865a214e1e98bcedc3e15d513bfa1d969b21dabf0299126b599edee906b8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 54835d247ffc55770f85c511e44fdcc7891717af32d1ee351417a25eba83086f
MD5 d8c2f70840d4f3f66450be5e925e2570
BLAKE2b-256 edea3cbc54c89f90d1a2dbcae2e5ac6a5aae9c84dac1a9d0e62cfd04a7e78ba8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7a6dc868a2297b2fef208ee3d1ac842d339672cf5919cbe2b1c851a6b2aa22e4
MD5 d0fcfdb1cd8509aaf6a5d0e414f701fa
BLAKE2b-256 8c313712643e52408a7970f6f8d63e2fd850a7402f9e8746f22de6629c710f60

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 09206723c59b171d11a6ff4ab0eca4c6f5c4622c863749a675730ba170f1fd9d
MD5 b3678fabb6c04a7be155625951f713b9
BLAKE2b-256 0381e166a1de2092965e51b03768574a6ed91f9ca47cdc8b08b381d8aa9f3c06

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 65f12f2c10666e2fd78e62a96f2b4e9facff358c83a821568e29e01a40ee9f52
MD5 68bf2ad127f1bc07dd4c8159d7b35e96
BLAKE2b-256 74caf306e6f8f638a9c23d0e0e7fff5790087514151c7e61dc255c24d9d2403b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-2.6.0-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.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 488ab02daad7e39bd613c101643be3c2d60279a89c146f43099228cdb10eef10
MD5 a2f28b45de5e41abdee147de45e5b436
BLAKE2b-256 60dbd1266c2fdfabefad8e108d02d54c97545be1859bbd13c043b0520432bcff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e469707608eba32d08898e3cf27ef5a20fe027807c9cb1e90289f57c573f82e
MD5 c335b69bdff76bf3fb959bac86974c81
BLAKE2b-256 e7bf7d7a6f55cb5754e59fba67f775c69df9fa9986b025c80adea9d53bc84215

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cfd1ff5cff29c79856c87cfae3f48b35c18f7196b4c67963ea8b0599cb4701ac
MD5 0c0f1ed64a5612a1b21c11c5fc656b67
BLAKE2b-256 776437a6ea4bd2b177e8bb019ad0d66d2757f47c3969bd55dd468f830cdcee70

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 02a9fa873c1300a8b0a86088ebd3cc1162d08d9e7fd27e6a6daae05feb2c98c5
MD5 8af4702d7216090674641b2f562a458e
BLAKE2b-256 322b82cbc623bfdf7c226a30a958ae384c4c2f31bb9d8b6ffdfdc033e22bb14b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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.6.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.6.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 639bbf68e09232f833efce3a01e85a9783166f7d70cc399fd8ada122f089f0e3
MD5 55927cae16423f464d65fb178b237a5f
BLAKE2b-256 29e83d7be9e8f253776125cd63bd54344984065c6836e2a24ff06a6930fafbff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.6.0-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