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.9, 3.10 or 3.11.

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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.11Windows x86-64

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

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

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

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

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

Uploaded CPython 3.11macOS 12.0+ x86-64

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

Uploaded CPython 3.11macOS 12.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

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

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

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

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

Uploaded CPython 3.10macOS 12.0+ x86-64

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

Uploaded CPython 3.10macOS 12.0+ ARM64

pytket-1.23.0-cp39-cp39-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.9Windows x86-64

pytket-1.23.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.7 MB view details)

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

pytket-1.23.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.2 MB view details)

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

pytket-1.23.0-cp39-cp39-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

pytket-1.23.0-cp39-cp39-macosx_12_0_arm64.whl (5.7 MB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: pytket-1.23.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytket-1.23.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b9d0ea35be1fdfb8f855b68f102018f9cfa0178ba7556f69354eb4e384c0302
MD5 e524a79b8e18d3a44bfb15e2c03b4f70
BLAKE2b-256 904dcde5c004368cdc0ed8b8cb1053d710c9781f54ee8be69fdb8ef1ce77ed26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 20675e9a8391cc5636d94492157fbf8f39e42ea73ab0aafb3c898c2caeee717f
MD5 1948c5d5ea7a681c24437eef010160ea
BLAKE2b-256 d9cebcca78e5b5d837d76e60c2cc62140e7f7815d09347b4c3396555d172fc9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 70127e13b35d0021130fd2687554fc65b27a0f84ddabcc36bcf40e5da58f0b54
MD5 4e432f604cf3aefc752a3d836fd0e38a
BLAKE2b-256 08de697248004a1e3eaf010d4f629ecdbad4a32d2700eb0e7917260f526e123c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 fd66dd17551a3d8d809e984a851baa7e694ee02075ba9b619b15cddcd1c42c83
MD5 ed1f18a8d7de75fcda3ea4179fc1cce3
BLAKE2b-256 7fbb8177e8b3e016d44a8def8ce8d80d4914629e401d585893ce66b488fc274f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 500d32141bd65734c63212863cf320587473d43b454fb6260be0c953a1152cb4
MD5 52914476e627b176f354dcde8b502c32
BLAKE2b-256 038cbdca946e47e55c785d5911ebbf0cc83296c5275e9a06e4a6a74864a5cbca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.23.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytket-1.23.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aeedf646da58e555e95e632201980138a702546349577b3063d226ca16decfef
MD5 126dbf65e05a5736fdcd9c47df66b976
BLAKE2b-256 8745b8260899ba9b634bfe89351c8409404c13b2737c9f813fa549b46c7dde8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 faacf03b1e4eb33bb11d42e1efeb415679029f10d0a0bd1288a3bf5ccfa345c0
MD5 1c460e020bde727c444c478cb8260d41
BLAKE2b-256 d38900589a2328f71af57a88f7def6a2f5ef478e73dcc32ff893d0ddb593377a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eaeb02bb2b116176ff8abe894f8ef163240ebec74cecf236d7b2420b4123c143
MD5 ecfc07823bac7031c7b1a4abf0bf35c4
BLAKE2b-256 49e9fa97c0980dff2d6b08a736d3a07013b197011a5794d864cf7bdf56909ef2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 721074932f24ca956df2988bbba96fb60bd80312fcae3744c08c44d50cc7ef69
MD5 056bef34e96a05284505ec857cff36d7
BLAKE2b-256 5acbd5d30caf8c370b7862c346bdc63e7e9257c407ba7429e53d25b268d9abc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.23.0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 fc355d3a563c2bdf71406284c5223780ec577fca64bafb0a9d4970be8f295c76
MD5 e886184b77404bbeef2fb1a07b044d04
BLAKE2b-256 9811c30fff422dd50ce9c7b822c46662f935a4d53176f51e6bf9a63d02b0469b

See more details on using hashes here.

File details

Details for the file pytket-1.23.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pytket-1.23.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pytket-1.23.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e3d329a99d1080ace81a03be424eff91a07939111afcc2f26c919dc51bd2b8c9
MD5 4e4ce560f59cd920297090ac250bf1fd
BLAKE2b-256 e4a13a22f4d9f19080dd044a5857c7a6b5200d7d3b528945e10d3873060c4923

See more details on using hashes here.

File details

Details for the file pytket-1.23.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.23.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6d38a6fdadf8bcfd34f244d16c47fe6ae9b1f4951965a17b00838de00f838a3
MD5 2710e7b7aeb993d54030b9cb556e2dac
BLAKE2b-256 59fb0c57cb57c7b93bd4087d22461b9a0296b4e7e3ee453a4c3fdce52cc28229

See more details on using hashes here.

File details

Details for the file pytket-1.23.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.23.0-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b5a78b10ce72fd38ec403532a7d630636cc11b81bae75e985ccd3ccfc87cb6ea
MD5 0577dc2c930d0772e0e2e597de7979a3
BLAKE2b-256 6fe421e8bc59a059ac38ff238981e2f0c57185b64d813685f7c65b5b6071f246

See more details on using hashes here.

File details

Details for the file pytket-1.23.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.23.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 662b96e831a7459e87ff8cae04fa83cec9cde41c6aa4ad6e9207cc2b6fd2f413
MD5 f4bbdbb953f1ff98d86ff75ad96dcee6
BLAKE2b-256 9ff6bdbea4956f57b5008e1e5485301b6cfd6d48f39f8f25f95e53e40ee648ec

See more details on using hashes here.

File details

Details for the file pytket-1.23.0-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.23.0-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e2382a5355a9d691fa95d129025ab676059e786fc6cc28b99673fb905c799eab
MD5 2bd24de018731fb8bb6c2cbaa75ebd44
BLAKE2b-256 51f19e9266a56f106bbf7e9e990813f05543e4eaa60eff7fdaad27a397d31624

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