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

Uploaded CPython 3.12 Windows x86-64

pytket-1.31.1-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.31.1-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.31.1-cp312-cp312-macosx_12_0_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

Uploaded CPython 3.12 macOS 12.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.31.1-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.31.1-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.31.1-cp311-cp311-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

Uploaded CPython 3.11 macOS 12.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

pytket-1.31.1-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.31.1-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.31.1-cp310-cp310-macosx_12_0_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.31.1-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.31.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytket-1.31.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pytket-1.31.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33f8def6e563c854a46ca500a639211b7c4c965884d585543b4ae5a373c1d1c3
MD5 8cc3713145be2c94d16538d91025e7b5
BLAKE2b-256 1f511a7cd4bc7588ebaf1801f17709e245c9ec78988a3b684dc4c650d5312eb8

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82933fca9d659ebf544e8b0dc04b0b8c7333979dafeb88534f470104733c9152
MD5 776ee7e4c09acdf972c6e5deae44de1f
BLAKE2b-256 20503c00d529ef0626db45e9de4609c174558dde5c0bcbdf25a6e0b410fbae48

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6d67a365d3611bd0fce29e1c62501e4bdee5e27bb360004d0f146eb1adc4842c
MD5 a71681433a73ad7276b038dc29d9d809
BLAKE2b-256 fd4eb74eff63db42e241c0f2494cb54532911080cf30b4e7eca0f8f80c837999

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 50e309230b3cc77504bf6d06ab00d7e7e70d797464239c2f9f4e2390f236858c
MD5 7015d3b5d9be92f68839b8975301a7bc
BLAKE2b-256 37e6a68b4212513ecefcf9f07b3153a339c15fde5c7c8580b29c10c78692a4bd

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 0a7061da0d748d3c5bf48db1c28893e5a5cff53b6ad4f7ec6515ad934d8a479d
MD5 23dd8707c56a57a1efd562240644ad7a
BLAKE2b-256 e6ecbad8f31bb25af0d310981ca87ce8e11c2451b9961107d55a79e0008a5a0b

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytket-1.31.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pytket-1.31.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 88cafae024852d9999bfecd0eb54458aba7dbe9cae0334fce9594502b9046994
MD5 d456370d9b51d7d5e6928e1ff1e6c07c
BLAKE2b-256 979e538840c145cdfb347f18be945b5dae4125d95b16829accfd58112fd119ab

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e28e8dafe2d5e529ef27f9cc0e73930f97db4eb5cc4194f3918d094086d0be50
MD5 d5c247948400a7839dd4ee7b1ab0cf74
BLAKE2b-256 055b44074647b202c1730074de7672475d7ac5f67b9d2c8415cd7c89b2fa1856

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1321a2b101bf6c5c433a468c5a6ccbeae8e41e69e907704898c9c28c49f2e95f
MD5 cadfe3dec5224b8cb6a2550a8496a4dc
BLAKE2b-256 ead8dccaaa8c3a170daeb4a6a42265f186966e143d9b2a2202be174a66c3e528

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 a7da7122c0079f33ba8e810584ddf810e4cd1d1e39339ee636fca026f1cec771
MD5 5f7781fcd37cc374e66408a5a70d6eb1
BLAKE2b-256 ba901c7d442ca7e864b1ab5238d13a85032765656123102dfd25e0dd12f673de

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 27d5f2d6f4742503e5ccae90a13d3241b0b46791aa242cf3fde4a5c6ca2b0798
MD5 e5556a9d2986234dd7df6c375e70bac3
BLAKE2b-256 854115eafa1091d96aed3218d2ea7c512abeda30ca02ba67f5c7b6cf64042eb9

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytket-1.31.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pytket-1.31.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6dcb5c6536483a7815e25b6b5bdb3de37813eda7a1a140c6770054a58e186356
MD5 aba04c1d6ecbb0ff0ad704e0dcaae506
BLAKE2b-256 f3a68d6cf281d2a307ebfba526e3b2cb73d42757e66d305800fc96c242f889c1

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a070a2cb4fe006bd384365646ff8b2353765ed6b858fe665b98022f03520cbf0
MD5 ee131084b43582360cfb972203c89c4c
BLAKE2b-256 00db45d59d98afb19ebdd888617fd116b28558105a8124af5e8ae4c8eeded053

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 508fb391ae90e37519008a63bd7b5f13257ea9d2026100aaf27c81c433dfc9c6
MD5 095d84b2aa2c497159dea78a042da193
BLAKE2b-256 6780cd4837c11e0271b83b22af1473fc806d781b4b8ee5dc34466c1303bbe7dd

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 de9c3769b97c696da594a58292e0765839505d55c4d714e7cd00cebef35d7987
MD5 6ca28f1f190777c241df23b6935aef41
BLAKE2b-256 ed829c28d43a4ac22e78ea3ca991b06ffd699546b92fd8a73a7b5d7bbbaa61b7

See more details on using hashes here.

File details

Details for the file pytket-1.31.1-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.31.1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4a838f1c6a4b011e49e360fa6803f9a67e9dc94b3f6b4ee672455293f71930b8
MD5 63e37ef54c3369e18132ea028d3e1ff2
BLAKE2b-256 3329b54dde9c8cecbee5c4589607f3b71c8c2248427b021e363262babc94ec89

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