Skip to main content

Python module for interfacing with the CQC tket library of quantum software

Project description

Pytket is a python module for interfacing with TKET, an optimising compiler for quantum circuits developed by Quantinuum. In addition to pytket there are several extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also provide integration with several widely used quantum software tools.

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://cqcl.github.io/tket/pytket/api/

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@cambridgequantum.com

For discussion, join the public slack channel here.

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

Uploaded CPython 3.12 Windows x86-64

pytket-1.24.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.24.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.24.0rc0-cp312-cp312-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.24.0rc0-cp312-cp312-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.24.0rc0-cp311-cp311-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.24.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.24.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.24.0rc0-cp311-cp311-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.24.0rc0-cp311-cp311-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.24.0rc0-cp310-cp310-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.24.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.24.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.24.0rc0-cp310-cp310-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.24.0rc0-cp310-cp310-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd95578ca1b9be08d8fd50e128af1677b811b3094c8f878023979f295edb917e
MD5 98c8199d5dcdea1e7de08330718605d4
BLAKE2b-256 2b83fba1bd66b66f80c3342cd389a6a934abca9beb2f7a9d94093d783b185bc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d6e7a9a7be6e9070cdf58cd64beccc795ab60a20e122953204ca78bcae65010
MD5 a04c5566b9b8d1ac7de6ff2cb1dd9f9e
BLAKE2b-256 73e94d0d4585d63b254f9a073221dbee13fbd9fdb4d493adf38e6015bc29ab99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 062d6990c75a66c53fa5930eaa5f1fbe4a2e07f5248295e5ee7ecbea2c6c5d93
MD5 ef76354769a72d6cf29e33d8eb6e6a65
BLAKE2b-256 017807c76a409459d0778d1e6652ba6b0eedb2c48d20703220f37fd8e4db1288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 0908a0a7b3aeefa5ac46f448b987dfd077f973079098555ba3f37c47468b322d
MD5 c8d18849db6a6f84c4b0cacc14629a76
BLAKE2b-256 51bf6f79aff510f40f51872724a875794ab2210ff6fff77ded87440f425a684b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 770e1d4727360763c53a48cbd6b1b89bde85391285dbf0548365d4110f2897cf
MD5 0df21e15cf2bf961665d80400508e430
BLAKE2b-256 8e9637f6adf1c90b99e95ecce4c2038b8a3b4abe62fc84fb13c3d2b378c3f102

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b6e77a2257c2c6b0432c09505868f11acb77e36d2d71821c502e7c03023392a
MD5 ccb38ad819084b8edc4a03fc7e09f82f
BLAKE2b-256 cec4466d303b6ddae07b130e4d2e37a63d4e6a4866e0e01917708964f5885b9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 348a94e99cd1721c51113cedb09d2e3618a9039e68987357846059872bf85149
MD5 5dbf4fef92fe9281c81fb684a8524f45
BLAKE2b-256 5efdbb0f104625b02569b06b36b6480d9466c64c1067c03f30505343ccf9e942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c9defcb288c3177c5abed0eccb93951df72422d609c72d1faf158cba4930f12b
MD5 2a6f475e6006de4741bbbd15a9294502
BLAKE2b-256 843c9e0e1a3587463bfbe522a99b5184673848fd10429e3d7d630c0d79febe68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 bb3c0ab4670f1437a7ae3a9da8c59f9a13443cd2daf5fc9ab8e0093883892931
MD5 8676ab5f7962b1673d3f1b217add1310
BLAKE2b-256 6355befd6674c8cdb22b3f3dd5158629217362708dd684a7a3621846cf739431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 9a998ae90ba380638d93917a843776286b47040c43fbd7c63e8e264d27690324
MD5 b2eda3795621f52a5a0d28c7f8277fbd
BLAKE2b-256 577067758610749d8f22d39e2a92e4cbcbe2c3ad5d1e71bbca4cd84eea3735ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31156d5a1c8b8f2839b20a0d98e622d453b8354cea89f71a101fce5b0668970a
MD5 9542e4c500b8ee4020f5695902fe5cbd
BLAKE2b-256 4b76fe14a3ec07c48e3f3a3cb50c63d42e8c5641e9ab56e089bb9dfab544a836

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3f10fabc2bfd05b7fecaf7f0b357f25480b2351e3f45c24e6e87d0b5278f162
MD5 f5f3041b25bdf8dc16ade3622fe9b8bd
BLAKE2b-256 0fa7a3094b1ab36f1381966859bb5c5122dc2f19f961054f9b9f4e7ae4c96d13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9d77b1eaee393baa9d64f4f6e7d3ad9fd9251e816bfbaa6397c48335f176981d
MD5 1ff69625f9b84233d413250f6d9f0f7f
BLAKE2b-256 a283c2206dbe3441cf4cdb5b94635f3ddd332a806827c51c5c93d91d29dee9f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 cd0faafec4ae6d42fb6c080ee4259a066c3ab2b6f7b78f8f6b63b77acb5c5028
MD5 c92351e948627a3f0d2e0505a8d6f173
BLAKE2b-256 084cedaca6b311943c7261ebd4ea4e3fd041f4cfa7569f86aceb3bbdfe2d7791

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.24.0rc0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6895060151a1edf8db82014282a0293a309229ad1aa079662137f8e3ed66009a
MD5 d49bdc33554967055cda058f6318b40a
BLAKE2b-256 b6df06f2e2b0e7247ef38f1eb66f56b0c83464a6ee93456b7f3b13aa7fba14a9

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