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

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://tket.quantinuum.com/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://tket.quantinuum.com/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

pytket-1.33.0rc1-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc1-cp312-cp312-macosx_12_0_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.33.0rc1-cp312-cp312-macosx_12_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.33.0rc1-cp311-cp311-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc1-cp311-cp311-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.33.0rc1-cp311-cp311-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.33.0rc1-cp310-cp310-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (8.0 MB view details)

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

pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.5 MB view details)

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

pytket-1.33.0rc1-cp310-cp310-macosx_12_0_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.33.0rc1-cp310-cp310-macosx_12_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

Details for the file pytket-1.33.0rc1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ac4b234d7d7a155d90266ecab481a3b0a5d80af39ad89ef822bcac414f82e06
MD5 648bd8e07284131194e5a6feede5e164
BLAKE2b-256 43c81415be3afcf3d43066513f57595215ca5ac82af5d69e4bec176fca195413

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5a089af6edb07bcb54a9ee85e42b14ac6251c6a589b24583984b5f7d9b24e6ee
MD5 592728e25da6df569184a8116c2d5adf
BLAKE2b-256 a52548cca2a28ea618fd038f97543c26e1a836fe059de698f3d93c3e168d5ae7

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2a5928a88791cbdce87975bdd52aaf7829865beeb0b7854e2025ab5f38f1d7d6
MD5 5a6613a505b9f19a213ef1f0fc7f0705
BLAKE2b-256 491eabe5c6c4f7674bf310fe981026654d7e0be6e6c01d350f8e1ae025ee7d9f

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 f33891b6b2224412147cd4a126cccfe7b596b276db9a2be640f502e42b77b823
MD5 45440395a7027bfd6804aefbac51d588
BLAKE2b-256 a2722e984b651bec6e12a1fb822b98214ebc5371e08a59f0c5c4d13e291c8887

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 5a9e625b0168bc86032c3467ad333e546c95e02195d033e44c5ead4cfb6a3063
MD5 bb8b281ac97c4ceab8b61ee6050f1712
BLAKE2b-256 8b1062a118257150787f7abcc224af170f9aafa52fb6f3744a0bc6fb3e18caa1

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33c4d3b0b8a462acf80731cad7b8e69f968877bb40f07dd70897a89192b1f9cd
MD5 3d46b405314c53979f10fa083cc12b64
BLAKE2b-256 0588ceb53978c17809eeefd9cbd48bc96e062490463d59212a18f0422e60fc93

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14bfa0256f6dabc72437359dd65b5c3fac2df9d5a81bbda45b1df7bc46a4e005
MD5 96f236fd3609c09e472e1a09ef4ceb8e
BLAKE2b-256 19d368b196cd2da94826a8b7d082749a7cb3ac6ff1f86e5e9c187b3a81989b72

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d124c560130ed4b8bd491e8390f3f76577466cdc45dd63db8a46999856d330d7
MD5 86c30319ed23694c0d8da2e8756c84f0
BLAKE2b-256 d0cad01fe3c3e8016e89655cdbb3462e6ffefaa65fd4ed43d0f4ad7037e66746

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 12e99b536dfc837ed18ba024d2a21a1f820a7da316faafc8182e7250b30894e7
MD5 b8a305130f9b87db1c20ee747d9c04d4
BLAKE2b-256 b0c7a66494b03fa79239b4ce47026db6a37031c3b916a4ebf9ba81132d280a4b

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 950eadeec8bb4faa805b6f716e05266a01d64f8c30eb2aada5bf42b9692715b2
MD5 fd7686591a91f43cda887ee3771b65b0
BLAKE2b-256 6b74b31eb2a4ddca8359dcdea25f95ed36bf7b4cd7365771b291bda929524128

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f892f4595bdf15b5756e83be8d9e4ca12f4693d38e9415254ea5916462b717ea
MD5 a6fc1eb083b17645b4689a11179c840b
BLAKE2b-256 77528a53116fbf9a351f6978355a46a21d1accdb1c36e47cec4572a3bfc7ddba

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58086450fad1ceefd0921f760fdda09555102d49c76e39ffd23c06713d7ccd2a
MD5 01f6b2690c9caa9bba765f211cce780a
BLAKE2b-256 55134c37b24a4d188d0a99605b12cc1c685b8a5138295e6bc9d677645569a91c

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 848ff4151dd9a771e1f6a822fe0f2e2c88099058c14312c27648ed21f7598831
MD5 9a11e652101ebefc654aeda4851cec39
BLAKE2b-256 e0529edbe78fab03b2f1585555caa13b3e1adac4204b1c3d42d241e24a3d94ff

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0b5d6d2174edb84d8b8c6a08ced33827e2a6922a299cd53b23844b043f904f1c
MD5 9fa34f6e7842c349132706dc8af797b9
BLAKE2b-256 554d53288f29ba16fbe827def93fbf76d6a53cde662f4d0686964d4fe55c8e4a

See more details on using hashes here.

File details

Details for the file pytket-1.33.0rc1-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.33.0rc1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 50bec51bff033270f7752e71b5a5499a88726ff3a7ffecb22ddf6f1e5af6a3f2
MD5 ad6594d93791b10058355f11f9b9ecea
BLAKE2b-256 1feff52e22f1c3943419f5e6357bbd0f1f71da9c5383fada893a109438b9b6cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page