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

This version

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

pytket-2.7.0-cp312-abi3-win_amd64.whl (9.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

pytket-2.7.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.7.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.7.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.7.0-cp312-abi3-macosx_13_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.7.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.7.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.7.0-cp311-cp311-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.7.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.7.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.7.0-cp310-cp310-macosx_13_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-2.7.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.7.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.7.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.7.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4123aa8c861bfb3eb417612635c0b2b7721ffbe817781a79ef6e4af5dda4821e
MD5 68fc8d4e10e4afafe329c00eb50ea404
BLAKE2b-256 7d99a37c8c3a35574028fd7ff27f9841cdcb451a7fde1c5290a30932cd2f73d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b44721b4a2d6b300faf091317cd64c9f0b7d1f7b887c0d10c0b6f7c7d80422a
MD5 03cb36c9e9d22f8e25d3de4a8773a3d3
BLAKE2b-256 aad887c69ecd7862fe49c75d14ca5c2122a99876ec84b295693bdfcddb558a7c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 095ba0ab099959625aef488b82486e455689d93c79655069395af5b10aef583a
MD5 2aa1a05e0e49f9de9831cdcb32ab4d26
BLAKE2b-256 f7bbe2e20b8466cf012bb8bccbf872224c681a0cebfe8bf4172f3640679c3b6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b96e722c0585b3e66c705e9763529e544f4cde5fad7a403936b864cc31ac96e0
MD5 6a06b092cefd8250e9c2b2ef5cb84aad
BLAKE2b-256 1a2d6e8a1f6593c9cdbcaa5fbd28138bb13f1933b9300ca690a644f16356e863

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0287d86a4d1a7ec069a481fc0ae57839a137b030dfae4d381dc2ea966790a720
MD5 19b0f6dd70aa2b71318d4f65b013e517
BLAKE2b-256 8ed4abd0f2e897863c95b2bb0e70514f7e247bbca48ceb8fca2833904edee2f3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.7.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.7.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80266d433eb7ef8a5282bbf8263c54b0aea2b77c9cf80df3305bc139f24ee193
MD5 4e185684e0875dcf158933041c91fc61
BLAKE2b-256 460711a730f0861f15583ae44e555d41466af3e16c41e79b4e2ecd733c5ca429

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 023711c0a3dae6e1932b915bb73be12bda2df04e46d0a69e2ebedb271dd944b9
MD5 1d584ee14e9b06bd2ed82e83cb310d6d
BLAKE2b-256 f1c3a1118d6e212d695251d580c41a54ff358c1da28d99f801d1cc1a68a82075

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 33470d04afdecba12ea5fe36e72c98e7da7341ce6896e64dc1e53db3fe59f753
MD5 5bfa4a6f40b4b0dcec0dee26b0f72215
BLAKE2b-256 edfdebebe94dc9600540e0cb2e48848bff5ce2d095ccead8c3cfc935966f3a4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f058e26df3e0e497640257f8f9f0e67af415e8eb709a44457dbddaf4fdd763e2
MD5 6761c4351a674ede43f6efb6debd51a4
BLAKE2b-256 243efb9cd13d5c7d418b89a79791e337ccd0d0a5808a32578d95a44b2e9f1df6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 32b731e31a9f097d3f4243a89180001604ed0265956274d78e87915618992cd8
MD5 cd0b54dd32788cedc24964ab7d8814f1
BLAKE2b-256 edb5aa9db151834c21331b9f7b1424d78a0276f7f270c81008cd2a1cdece6060

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.7.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.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6a83f86a160119194a79d0c334c3b2b2f228858e7556c409f9bbfbb6d7320192
MD5 8e783a03ddb479c292e37965665a7893
BLAKE2b-256 99f51e7fd80041945245fe5467cabd10cdff8f94ae0921757feb136d94a613de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4784287a0ae33a428aa3598c5386b3c96ac9629cc84b5fd58022ed8a578ad132
MD5 808c3177900071597c6b11e88de3acc6
BLAKE2b-256 a375947d2ead70bf4d08ddeffb29c1ee9eceaf05d4662db2ed4839c602e2cdd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 35ad4d6ee4d824b47cc87381039e97f41547cbee301ff5cfb7a398544a8a3057
MD5 e34ec91c99eab9ca6602f8e955d67874
BLAKE2b-256 76b4b15289c798bb100bc997db20bac9f5b8eb52ba4ae3a17815936f6ba9b60c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ef9679d3010be27e7901b2d0c1615d4e6edd681b4730ab0c7f974d0fcb58a275
MD5 3c9d1d1c1e948e1fa1f55d999f129a90
BLAKE2b-256 1ad63945911cb96f7170a6de333c327d357119cff0b0ea3f1f2a376a53482854

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.7.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bf993678abb107257d93104022f52993502a769583ead523967ab27263950b6d
MD5 5e4ce4b4039ed8b00351533878b34cc2
BLAKE2b-256 b2bbc63863bcfb11339a8d685c24f4e73aa87038242cea9239408580f44d6d96

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytket-2.7.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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page