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-1.35.0rc0-cp313-cp313-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.13Windows x86-64

pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.35.0rc0-cp313-cp313-macosx_13_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

pytket-1.35.0rc0-cp313-cp313-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

pytket-1.35.0rc0-cp312-cp312-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.12Windows x86-64

pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.2 MB view details)

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

pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.35.0rc0-cp312-cp312-macosx_13_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

pytket-1.35.0rc0-cp312-cp312-macosx_13_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

pytket-1.35.0rc0-cp311-cp311-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.35.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-1.35.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.7 MB view details)

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

pytket-1.35.0rc0-cp311-cp311-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pytket-1.35.0rc0-cp311-cp311-macosx_13_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pytket-1.35.0rc0-cp310-cp310-win_amd64.whl (8.5 MB view details)

Uploaded CPython 3.10Windows x86-64

pytket-1.35.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-1.35.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.6 MB view details)

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

pytket-1.35.0rc0-cp310-cp310-macosx_13_0_x86_64.whl (6.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pytket-1.35.0rc0-cp310-cp310-macosx_13_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file pytket-1.35.0rc0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0rc0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0rc0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dbed26b3072986c072b70e0cdf8f73cbe636bc0049ee76d23598b7d4ced60798
MD5 bba451f3ec8c421c68f76fa84407b9a0
BLAKE2b-256 e2ab9da37ad1a0d2035c25d1b5f35f8b4d5973113d49b3139769606fa32d5350

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2f517b17f853ef844dc1c078f04fffe37b1f387eac6884548dfece15b099280e
MD5 3ebc20d0ce71b5f9676471f514213e1f
BLAKE2b-256 90f81b02325ee6d82b7e56cd55855477222333e7f8f1d69c6885688ae914f0f7

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ab4156e5308a343cfb49d5236757d53cce6e65bde050880336f07bc0c3a38810
MD5 751a18c12078f3a6fbafe5b7cf8c2e1c
BLAKE2b-256 78002908dbcf4cb2f61239a90d4163027bb07600d3acff2d24070ada7af8fddc

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b82ccb872e0f16a27a7022ce2351316ac4c0856ecb9bc03f532a4f2e10ce95ed
MD5 6e00400c7b3b4620ca8df7c923c05aef
BLAKE2b-256 b5a7fe03f62be02c6860b957d599a14c8bb511e7b0382ac41e9e4b2e7f7e98d8

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3210a8267f140f2b9e6ebbd92d454526bdbc46bd921c4c0cb866d753978085ae
MD5 3e47625b34dd7314c708fe44af61c99c
BLAKE2b-256 dd51f85fd2ea0f461dad90ea7761641882fa5f5f28dbd13dbd3d757ba4d5f1ab

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0rc0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cbaeb670b8a70b75f9f88d2c3e88400b0d59b149a226b8821e3f1c73231dcb73
MD5 e72e02f5b04eb8e7219760d9d084aed4
BLAKE2b-256 04a7ae9b379a46c7248466495ca8205c830dba89c28473e97c03c041bf6b39cb

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d93e75dbefb35afd0ab2bcaf5e54e9f8bf77c7ebc16d9fb78ba04bb2434316d
MD5 f1017f38f0f9f04d0a7847d22b800fde
BLAKE2b-256 142ebc6eca78673b94d99f9b2daed8509a19729ba4542d07d9824582c969845d

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3f3fc7ab8f4eed2e66f142a47a57ab369261e93e7ed946c1bb38327dd9553192
MD5 81bd8fcfbbc9728351089d97827f8a87
BLAKE2b-256 99496ed44af163a199fb2c533fc942812c4babc3a0963ebaec07e9376cde51c7

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cb3411dc56e9f343e9ec94148c3a9132f40c4910d6c17bcfdbb6cdbe8bfee804
MD5 3f8652301d2c9ec0091289ecf5cfc992
BLAKE2b-256 dd9540623c09323177a8c62f623a721a3184f1bde260295f1f5c991b78168c4b

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 916f93e5126ab48452e85ba1ce02f1c7601c40c01441d360109f8a42925e130a
MD5 f8d13e04022cc50e4d8d654e8d3b18de
BLAKE2b-256 72d90aa036e624e0b5a37d4507902ec0b24beb4c64b715384836c05137ef391d

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0rc0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c20f3367b742019110faea864e51f5d52e6977a9d4c8c0429fb24847da07d8d2
MD5 29613720af1a6c95e39fce281635f9b8
BLAKE2b-256 4b5aad23bf07df0bb8304eff7b2df56d222bd78adedb71c796585972543afd79

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 029f88b0a5c27c5d7c9a4aff883205b2869a927db6562cd54c0d2396904d73ae
MD5 d518970dab9bf6f6a76e347464ec61f9
BLAKE2b-256 a886e29f09d9da9633672c003f7f6a4f232b6344ce26d643cc27806ebf28b282

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3cc2b7e5d4054946f7c349f4cf97503e29375bf1e97b1fd17bc284c74129d6bf
MD5 1fb0e28cdc2b3b9893d8717d11725b92
BLAKE2b-256 1155ecc020e87fc703fb7c702e8943294721dc8809ec0a68e3e6322883bd193d

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5300e9081657ed6804bf6152690af1a484d87ed92b7f6738df26fd6c96ea419c
MD5 d5832d3b7ea6f44cb161580b37b891b0
BLAKE2b-256 d97f5fa6c507d264c50e242e20555d1312635e7641abd95d758b9fbb355b5210

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 44dd9efc907595797469a454d3317ca9ac5623bb15cf7d00c0279efae8be6029
MD5 7c7e4a6dfdcee83e6ef1d63b785dafd8
BLAKE2b-256 a4fc8accdf913162d94e9b9dac19fc19960de3b83d88fc38a7d23a082b2b6004

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-1.35.0rc0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.5 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pytket-1.35.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ef3ae881401b0a785f23c263a353b45ef9d329fec9885c7426823c247a66362
MD5 8d79a986b2630a7abe076854c12350f7
BLAKE2b-256 b9157d5464857f78a20f15d07eef2d520b1cf1f377b985ffe0a6e015d00b9321

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13cc2ababc1f388e6947456fd2f8d671288b02bea31e9682ffcc8f0711b94ebe
MD5 eb1adb547d0220a648a2428e87590d46
BLAKE2b-256 1cee1b97baabef94c269bcfc9403dd29586b1cd8e891623f807c419735c8c48a

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 84da808c84ad01d591940e6f2187f68a0cc16f8fecd78aee6c92c0fbca61a26e
MD5 154bdf014d46cd0268055b67f22de678
BLAKE2b-256 5b453207a40f6e0d31ccf7595668784c072b2cf1636208a202889991376c0c10

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ff4bbf2ef835c971f6b171779f1a1236ea4710e7d684b428f306531cb13779b6
MD5 9a7520513dc8f2958eb125b0a83bce03
BLAKE2b-256 ba32a45bdf0aa2d3eb7e1f462368b52ff462541b4b88209ca71839a8c79259a2

See more details on using hashes here.

File details

Details for the file pytket-1.35.0rc0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.35.0rc0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 36a9f8ff5f19a178eee09fb0adad9b8b1d74e781ddc0496a7ebd8c9040c474d4
MD5 41a3400f9ae41032d801d75256467c5f
BLAKE2b-256 cd7b3ab47fbd3d5056cb4c06d3c00740c67b53823122cf4d9551ed7dce6c5812

See more details on using hashes here.

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