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

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.21.0-cp311-cp311-win_amd64.whl (8.0 MB view details)

Uploaded CPython 3.11Windows x86-64

pytket-1.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pytket-1.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pytket-1.21.0-cp311-cp311-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pytket-1.21.0-cp311-cp311-macosx_10_14_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

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

Uploaded CPython 3.10Windows x86-64

pytket-1.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pytket-1.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pytket-1.21.0-cp310-cp310-macosx_11_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pytket-1.21.0-cp310-cp310-macosx_10_14_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

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

Uploaded CPython 3.9Windows x86-64

pytket-1.21.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pytket-1.21.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pytket-1.21.0-cp39-cp39-macosx_11_0_arm64.whl (5.5 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

pytket-1.21.0-cp39-cp39-macosx_10_14_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-1.21.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.6

File hashes

Hashes for pytket-1.21.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bb47cbe505b88035246bef18c571f8592c10e4582c72d9f4b67886364fb7df88
MD5 c08607a3c5f3316465c717a478b3268e
BLAKE2b-256 4fd08c389f096f7b2b8436ef660860a1f8ab084de6cfe31723d50044bddf120b

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00ac3df11370acd0bedccb97a2260483fc99f9020fa28548ddb55bfa9c08e8ca
MD5 37512a73dff16021ffc9cd213587688a
BLAKE2b-256 8d4e1bc1d8e231d6c42bd32d6166e7d43a5d86bb591cc1f439c2ada1d357d6e6

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d2b6d81b550c728ac2d73c1cf0adc91ef092cdf1b10aa7e5039abd94711374b3
MD5 fe578f0552be59d3d9d4208c3d9be2f9
BLAKE2b-256 f23dd72d23d057eb487eac6dc2667795a1ece01386e3783bf1440c0b81071765

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5fffbc51bea4655a5c8c4e9898bd6ab60eb3e2ffe017dfad0622718ab036621
MD5 e18b6608428751a3106882d68fc50758
BLAKE2b-256 d2fd217ec8da2166e615a39b73e758f4703ec134b2dc29cd557c76c4c0bfeee8

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6d76d01cfacfd1622685aee6d258163b5efc002ee95aa0ddf25ed7c59adcba3c
MD5 10ff0afd78c319fa97c08e0b68e763b9
BLAKE2b-256 ddf814562573ebba0711c88ca8baad1548577fd7bc1a266640e755ec904bae23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.21.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.6

File hashes

Hashes for pytket-1.21.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b103ee6aa4dbe041edeed82b70df5e5b9ac31fdd284f06068b6bedaf52db4c9b
MD5 d380b8d3fb46d9f38c36329b93d69dc4
BLAKE2b-256 f7be5771a6b5ec7f6d14834f78819f6e1d92c27bdcac672bf0320c57da2abe39

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 17ccdd443bf2aee3d9eaeb1c64174acde72d430828ba09123a90ad3af458cdcf
MD5 2cdc70a2d0b4ef193e036ccd1462781b
BLAKE2b-256 10f8298186bb8f93077588b3d74338b617b5d643fbd9db6aa6848847a0251a15

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 166ace1a61c2b0f66ec6d538ac064676865ef8aa91e621f439afaa46af16cb9d
MD5 39035513deb814dda98ef453e0453dd1
BLAKE2b-256 2d2acc76fe06243de574f2a6d42df89730a38a555d8ae5e9e1f2faa92c94f932

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3987c23d8fbc5735dc57d0c19399c107ad318175e2d172f37a866be025d5fd6e
MD5 2a32aab539e13ad2f7d8ba64655336d4
BLAKE2b-256 0a6dd81ebbfc797f1f5ac6859e730c34edbefda290bc41a67c24d87bacd4ce1a

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 36b684fd48d4b142b08dc1722a5115c4f56f88951fefc84661a9370730acee68
MD5 2db37f304978b3210dfdef66edb1091c
BLAKE2b-256 0e908580020b2e6a0ee7c44cf232cc396312b45cc1347b4a3b3fca0144d41858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-1.21.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.6

File hashes

Hashes for pytket-1.21.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 53a4b2967d9f434fe400d8096b9eae19beb482de32f7509354116c06f904a8df
MD5 9c2acc2c44e00c0e142283dfc971ba11
BLAKE2b-256 a7280ab9c25b7a133db4c59a540a05b0363fba5305549c1d63d01aab58f16b7e

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 957e8558600a801de72911183c5fd15c6154736926dfa65b51b4664416c1ee7a
MD5 e4437f12395a9eae84a3a9d4e9513d8f
BLAKE2b-256 c489f2c2e886235265231afe720eae2185b309109c67fb6a8ce07faab3181542

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ef81b83c9d1de50e3bea44a0dea136833c2fe11bcbaf282bd6dbd754cab2589
MD5 4c2b2839e352725749e029ab85fefe43
BLAKE2b-256 dec9df77957261779a27d9c784f7e18fac39c5199cc2f9979f241791525c3f37

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4ce6c8a582e0d33cdd2ade1cafc94adccc27f2f60c4a495e3e7ec2a399ada1c
MD5 889ad035abe8d131b092baf511b68320
BLAKE2b-256 f4bd286590c339628ae29c87e27689b78296c4c5faf8abddb60db85f0939c428

See more details on using hashes here.

File details

Details for the file pytket-1.21.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.21.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 efa05518436e091c8bd2fc5ef5ed9cea86bf0c5a793138dff2674b8fe27e37bd
MD5 255dc90a295b7dd9d1d6138e586b34bf
BLAKE2b-256 73766bc7aa9570b6e2b0eef7d3b9761ad70ddab374b0f3a2e1dc1755c8309ad3

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