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

For worked examples using TKET see our notebook examples.

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.30.1rc0-cp312-cp312-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.30.1rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.1rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.1rc0-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.30.1rc0-cp312-cp312-macosx_12_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.30.1rc0-cp311-cp311-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.30.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.1rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.1rc0-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.30.1rc0-cp311-cp311-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.30.1rc0-cp310-cp310-win_amd64.whl (8.3 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.30.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

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

pytket-1.30.1rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.4 MB view details)

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

pytket-1.30.1rc0-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.30.1rc0-cp310-cp310-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c9d23746ec777009baddad1ff3d36320380bf1cb77ae8f531558254524f63a3
MD5 f86944a8942b1700b0ae71e69984a3ab
BLAKE2b-256 46eddea4fe0ffd12615c8a497016b16197baf1cb8aab308d84978363395b5707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7f0dbd1a5dc09fb630305e06111dd9c6c554308a455dd9c0db5861ba70f61dae
MD5 d615911e29d001f0cebd9b51f711908b
BLAKE2b-256 d65fa24e71d4c83423911873947478da09e20c175068c96d7b24cb19b45f744c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dcb02429c9a3050b2f9a94697681cd1bd9dd22fbb0b517eb0242fd5a63491573
MD5 1dbcae56e447bcb3e2bed5cd556a49e7
BLAKE2b-256 b8916e1b23f9961ff7b2ff0737ccc20dbeb236f3053126b9668c486fe9d48f0e

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 bf47041de6511cc54afff9554fb41b01f80140c0e57d2cf0777ee3c2b56cd619
MD5 7a6316f0ad406ad7b552eb88aa5fe35c
BLAKE2b-256 e8f37a4fa20eea70db0661297d19959f4d5e07c3a6d04e3d84d4aca97f763675

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 457c26ef7b3d1d350d00005c6a3a48949fe96e8317ccccbb941cf4ee093d8650
MD5 a8a93c997e00ae040b173ade00d767f5
BLAKE2b-256 826d3cd364f6e8769e19c257df4686af20352eb9435e72e307c937f465f1162f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7bd54fadc3a240802671742393c2cd7badd950bb56cc22753edb021966b8992b
MD5 98199fa7416f16ae66069aa6848d9890
BLAKE2b-256 5c96662a5874d256c8ff8f504debb73fe7780b439e872941382e5fd2e74d195c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 670b23addd0d4861fb67d38a4772ff58ede2a52d6a37d15619f7ebf1e42dc9be
MD5 fe3e82c79e0ff6f500152a0b123f1e7f
BLAKE2b-256 acc3fb42b1f0d8c0cbc51c038b7caec6ed645ec8f131664fe29a28af5a0ee41d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c33c37a10e376951607beeb4dfd081c9ac8ab67f5f49080d27f36507070b3b33
MD5 f8d8d9b4436c023683e1c5a02c493162
BLAKE2b-256 cd7c9e7b49d4fdae3c2b6909a0fa86017a749114db11b4575b461a213f5ba42e

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2ad094babb0b0bca213b0de65767f74bba8ca21ad18ca6c03844bbf3f973012d
MD5 dc14beee768df409d2a0c7eecc0fb5da
BLAKE2b-256 b7058fb1c5a4495c6fa43a4c9aa42a779a70711a735709499a91ebc6b90decd9

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 62334eb3ad1d7aa41ccfeee07f39c5f6291f577324464af405684a021a09e98f
MD5 b77e46723c217e443004bfcee61d003d
BLAKE2b-256 666fb66c3569b7b2d45d404c234d37c90459e6b3d74724014c42f8c027c0a0cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 28f1da285138b8fb77cf0acc24f9bc55c35b580672c46f0b415bf938c3572840
MD5 a82e9c8905aefe1e40dcec1ea5121437
BLAKE2b-256 ba265b4ec622ff0e2eb7434d2ee6466d01e108f01929be9f0cff7878394378c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c2e11bc0fade2fb9ab6f4863eec134e4f6d806c540a20dfad1f18ea4c8cff460
MD5 c67b2f0035a6f691e80980623fd84d8e
BLAKE2b-256 82fac81c1645f5a32447cd7f0f12865d52759bbda71ac15f36f0a756e601c185

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c0d86faf907ba26ac8a2cd876876b2b7e583ee9c0d8dfd57ca3dfc1dd17b6e36
MD5 83482220a698a6652eae8a7dfae1b4f9
BLAKE2b-256 35d868bd70f0f7fe1f519a09d62f75c10a4c8d22783370d4353bb0e75b30c34d

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3d385c1e2245d94b23a5452740f1a03f20974c2d811f5679e300092e22c9a2f9
MD5 c2826135b40d639826c2d42c9ab17440
BLAKE2b-256 d21b3054d434066d8ff9a4ffbb1a3574b8660b79da0b3bcf98fbb6a48c006c88

See more details on using hashes here.

File details

Details for the file pytket-1.30.1rc0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.30.1rc0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 1fa8f15ec8738c7b955c3855dd6a6865c0fb8448360085226e22ca372060b388
MD5 592558dfc224a9d686811371765e9932
BLAKE2b-256 68376eb420d938f2e6a0b20e4c1ba42c09296c8bc29d6af965a896a704f5e81f

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