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

Uploaded CPython 3.12+Windows x86-64

pytket-2.13.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-2.13.0-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.13.0-cp312-abi3-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.12+macOS 15.0+ x86-64

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

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.13.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-2.13.0-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.13.0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.13.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-2.13.0-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.13.0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.13.0-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.13.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.13.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.13.7

File hashes

Hashes for pytket-2.13.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7c0eb4cdb875d8048946e287dde4f084014baef2e9e6303349f8c71117895df1
MD5 58da09720780a63851d4ed8210d2527f
BLAKE2b-256 dcd14b854de5b65453acc3643229b47f230e7ca828c1b24a03500941a51d8289

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.13.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14071e7ef7fda1752fae01b008b6102b05cc6500c7cf91c987b6698690c71831
MD5 2d2a9dbcca9491b14d50a6c44a7f7077
BLAKE2b-256 950fa07de114780c031e5a42fc8a5e32ca65bc68806cd27c9233d5936b3972d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4b9c38ab082071c99d4abe60de6557eee0b6813af973d09ad62913d1e6eb89ae
MD5 78d6df649b1d619329389a7d173e06a9
BLAKE2b-256 85945c1559474c557cdd5f592e2f84900c0fccbdd080671b4c9d4d39e7c21f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp312-abi3-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 534b11410d16243e7051b4cde29554eb6931c70b207b437560b8b3ca7ea3e934
MD5 365d66b2edeeedab7af947a452b39920
BLAKE2b-256 441789d3470a8eca96309c6b1f8df2c975bf6692d60b6dd65870113a63a94a37

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp312-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c62e4b6fbfad4e53ec85c03a6445a3e58bffaa7eeed73463ea19ad86e38d116a
MD5 796f0ca065f5559f45947ef8864292fc
BLAKE2b-256 f5f5c01dd1ab66186c178a2e5ac81750dc9b0ee53bc9940d6a902e5d1b20d133

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.13.0-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.13.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6472ea2e04bb89cbd08175e01e858f55a88a7607bfce87eef3b79693c15306b5
MD5 5e512687e45f9886307abafbadad77e5
BLAKE2b-256 b5c27c54b3d9791e86776d79b881f74f82a340e5737f3809087283241bd309bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.13.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 66c0f19576c6811adede5a1aa131f0911610142f2a3a8724f046cbf686e9f77c
MD5 c7a2c9f62be7d8a46556f9280423672e
BLAKE2b-256 96b14346184772f45edf14242f55df73d99b479d105271853c4a07167421e221

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5783ed03c23457ab22d9ad49053d77af8c81ea40fd707851fe2cad59323c981d
MD5 587d533092ec7f39a2b8873fd287adef
BLAKE2b-256 c71def6f8bbac10d7818cde55f8ac808260b0b38bee94d0c5a715da06f73ad11

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 3cdec1acbf91671916e86791ac28d246f409dd0139eb6ec85fbee7e6f42f7b6c
MD5 8f13e4441c162c2751f7c8654ba7604c
BLAKE2b-256 596e069df8fc5f8c4edc918200664d26db341b345ef904262400a4dfa6711431

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 48c33774f15d52be746810f2732ea33b8e9a9d50b689c9a988d0763bf1b663cd
MD5 7d30a9bd7733274a944b83b6e22553e1
BLAKE2b-256 f7183f5b49f7d5c4218f6321ea2e0a32cf5add2c90a610451d115eb039876021

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.13.0-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.13.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a51bb3b8b38f383bfee859dcea6f4ba37d9b0c47aa9c4684023ffd42bed1bc37
MD5 b9a42b3788bba0cb8bd1d974822bcf83
BLAKE2b-256 dee146dbe0a5421fee4198c0bb532926dcb7d9435427b5f0b45bcf9481e7606c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.13.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 61264990c1d9174804439ed74e610bd8981ad60525517d09d2258da4e56a08ec
MD5 d546af18eef47fcbf0747d800d8b06c4
BLAKE2b-256 37fe784155fd1d13a9bf853217240ad98adcc6f50cb711e8aae70511a7851ce9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 915a3f97e1a204954ac69c8dcddf135b80ad5ea5f6f2d7af2a8bcca6c62b3a78
MD5 29466bc616934d50a3278c027f9d55c7
BLAKE2b-256 b7c1e000dd83d730719a4c17d0347bbe52636e01961fac6430f676525c3fc033

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 96acb5d87b947bedca5616987ac9ba5f990baab0676e134c900418d19e1f203e
MD5 d64e645f09869f2b305e3b4fa0758bdb
BLAKE2b-256 a9613aebd4993d3a877cba8edba26b8a3d91cbdcd7e752e03648d06dcfe6e011

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.13.0-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.13.0-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-2.13.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 218e5796bee9c427458f4a23cb480cdfcbf8943a4338942a06617673b8403bc1
MD5 b7d675c3ed737647983cfa0af761b11e
BLAKE2b-256 95536063484aa4a71aaf0cb997c25d6b94d77b800a7c06311ca2af0091f88645

See more details on using hashes here.

Provenance

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