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

Uploaded CPython 3.12+Windows x86-64

pytket-2.15.0rc0-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.0rc0-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.0rc0-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.0rc0-cp312-abi3-macosx_14_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.12+macOS 14.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pytket-2.15.0rc0-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.0rc0-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.0rc0-cp311-cp311-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pytket-2.15.0rc0-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.0rc0-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.0rc0-cp310-cp310-macosx_15_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

pytket-2.15.0rc0-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.0rc0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: pytket-2.15.0rc0-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.0rc0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 971d52eb62989857c4186d3bf34127ce8fecace68d804af13dd97882e3ac066e
MD5 a376237782f9f508fd4ecbd71bd3272c
BLAKE2b-256 58566e287d7bc6c02639d8a2f7b20c9ccf649ffc9c06cd98e9212d7e22d320f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6007e27345ce837963b3b4ec9465a92301b8ce631bb790d3f0639b3d037d5293
MD5 7dcf91a17cffe4f09cba19335acb0315
BLAKE2b-256 b9015719233aaa738de92ddcf21c1f8e625ee702cb2d92a5425352cda6deca46

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fe9f87327d99d487569b33e1984e62eb0fbce004e84afef7c8afef610a685196
MD5 c077f6c6ec5b5d6f309a07b827828324
BLAKE2b-256 79a77865117fa3514b852458b8dfede1c98a3bf7135fe930371c3d9049ed0299

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp312-abi3-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 16864dbe4fb672b71ce24376d7c1f5b801d9db8879748f5b4045f4f1227aa593
MD5 75b793bdca413633783637e95cb1ff9c
BLAKE2b-256 06bb222c32b4cb3d0476a0f49fb44e4485281c5fb391a38077b00a4b655dce36

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp312-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7d9055520b995cd0407a01d34c564a3a06b1c094b09f3e81c075f3b0436ed88a
MD5 82f8caee5a25b12202d1f1779fcb6ca5
BLAKE2b-256 559aa8e1d7a939dfa7c6a364fd8fb8431f3cae164e6a41c0128017cc40967904

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.15.0rc0-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.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a1d89cc5e264339f341db2c5e73c5bd326f1a7436eddc6936cbf4177c8fc71f5
MD5 1bf678bf789067244f15329f801fe6c9
BLAKE2b-256 0db80a39cc651d65de4772017819ea93faa091c461ec2ac46ebb285e397ece1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15753277b8ad2121769b33b36882c08523c5df54302ca0a1e974dcab6d26c908
MD5 381adcf3ba5072c02cdfb7774b2884a3
BLAKE2b-256 1c65d3291929c1048492867f1ce5ba412283b908544d4ecb34ada64e55b860c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e50b0d2b55a42ad79032bc547ae05ae40b9121049ebba4bb82dd2d2794bbba35
MD5 cb1333a4e92fcbc82ded60829b509ec6
BLAKE2b-256 a013baedf794f8842e8161dfe846328c6222130c99da0029ecd6e01e4d74e7ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 244cf4c3907f51ca2c1fc92c941c72644ac6e7f58a3dd78fd7503841c42d7b53
MD5 e7f59b26592db8c53f6b6dd21f15aa50
BLAKE2b-256 7e4b2ca890997aa917952edcc5ef311486c1d7d605741ce48ca01a155dda0c1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 19e54f1d4506ac0f7accf7f6ffc365cdebe4826e9ac5218ebd069be9bf0170b9
MD5 b22bd945e6b66e8836ef98a85cc950b0
BLAKE2b-256 6b1ff69b58c67581d2a51d110c245f04af7b9a7726df7f6fd39756f581f34df1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pytket-2.15.0rc0-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.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 302383b5f29aaa55820c0390e3bd3c7536c0d6db17af58060621ce990f814bba
MD5 357556a84f5a6fc3548f2d81021be18c
BLAKE2b-256 f64660829c82f6e98bbe727efde058e726fd3f53cbc18fc476276212a79ce711

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27c19edc097016bd99d5fba373ac44a57f2f8f627eca2520980fcf47d75d5b1c
MD5 b3eab3216f76dee1a4ad549baa915534
BLAKE2b-256 d2a7a4ccfeb813f0677f174cc2ee54ae15dd9a963fff07946bf68b090d282d23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2ea24d90a7a9edd41d85ed055b291790479a0743405992456b08abb98f3160db
MD5 4a118e5628691b822f0bd36ee7aca622
BLAKE2b-256 9c7da1e1432a093d0a0091e722e630dced3b45fd465fe640724d8dbfd19fed4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 96703a5b33ea0ff0305de6b7d21600480feb4d4debedda26909d28cd86663bc8
MD5 42f957d93b29e2be99e393e235dc61cf
BLAKE2b-256 ab1f90559bcc1b189ed635d79634c0e7354bbf01687912c9c26ecf0cc325b757

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pytket-2.15.0rc0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4a8b0a676820023311315708f2be9fd5a4601dc88b3c0656cb28bf2e77528f18
MD5 b05494c57db2125d4ea6995dac77ba0b
BLAKE2b-256 d2bd996ecafb7d9d7ff9140699345e4e88e576d0f523bf217324bc2af41f4685

See more details on using hashes here.

Provenance

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