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://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@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.26.0rc1-cp312-cp312-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

pytket-1.26.0rc1-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.26.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.3 MB view details)

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

pytket-1.26.0rc1-cp312-cp312-macosx_12_0_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pytket-1.26.0rc1-cp312-cp312-macosx_12_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.12 macOS 12.0+ ARM64

pytket-1.26.0rc1-cp311-cp311-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytket-1.26.0rc1-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.26.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (7.3 MB view details)

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

pytket-1.26.0rc1-cp311-cp311-macosx_12_0_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pytket-1.26.0rc1-cp311-cp311-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

pytket-1.26.0rc1-cp310-cp310-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.26.0rc1-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.26.0rc1-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.26.0rc1-cp310-cp310-macosx_12_0_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytket-1.26.0rc1-cp310-cp310-macosx_12_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

File details

Details for the file pytket-1.26.0rc1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2db05affc0aa3ba9cb4eff52eb1865a0f16610af5302f55f70126fe224b74c95
MD5 38ccfb938418ac02921feb2e5f3c300e
BLAKE2b-256 4d8d29b90cdf708cb86859b439c372a9d4fcb52f9b7e4bfc20075796b3450c19

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6bb14b824f626489938e57275032123f21d84de6bf10ea38c717ab249a8e3043
MD5 5c9defcb66a88e50ad11076689175f11
BLAKE2b-256 612738d174e4b9963486763b5260c1caeaf6976a52fe6d494dfaf903509ad758

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a360376ed19c3619a7879248ed495341dec07de0835b23a74712f2741261335
MD5 36eb48bd533730b38234476fa0446dc0
BLAKE2b-256 c675420e05ea68401b1997a022f4f0db953bd18e758e69c706cedbffaecd459e

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 6f7a4e053b93aa6a96924f4cc59f6efb9c4a93576d155f8ada6d2949ef7efee8
MD5 e321ab3c437a394a0e861c88f59416d0
BLAKE2b-256 1d2668504b40a4f7eea8304cd5af1f12d91004e4a98c9d45e6b6c91f1d72c4b9

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 fb83dd9b0725da47dac113ee06470702548487ec5c39613f7365d761118bbdbc
MD5 c602f27dfbf65d6762e6ec98c9f38a27
BLAKE2b-256 bad5c325b8f169da8b2a9bc70c266dd606a1095ab9e2cfb8bd76130fe4d25e10

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33ea5af51d694959128e061671a78087fc992d959b9c0c120db46298caf76fc7
MD5 ca989f3396aed3f2fcba5868014791ee
BLAKE2b-256 8a9ab26533add68d09333db58f9669f444c4ba6c659436bcd46f9a65e5f9fcd2

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3a53592d54c7e1f56d7690efafaf5b3dc18ce54c8039b15664e4d0cce97a4a3a
MD5 d77078672dcf61b1f7b69677908a8776
BLAKE2b-256 b751333e5a83d87ff8747d8e87837ab43b715c6ad5509cd515fd2c99235b1e23

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ed30c9788a4036009b0e8216d19cec96fb983082807271c34e4baad75c8c383d
MD5 1dd912e2c03495d4c1fd0664867804c6
BLAKE2b-256 6ca615e3486008ba456927425e0286c0749fb75824a88c3ab494f612401cc37c

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 1d927c6c910d4945099dd9055cbebff396bdae53e6d60d2c17cb135012be3490
MD5 4723a49ed4b5f466878e2257111b3d25
BLAKE2b-256 34bb200d6c9f67f9527a13b9d61d98e003f31d973f9d7bcddc835c781de4b4dd

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 b9da25e6a647b5a113e7a5fd88626710bbd3b51faa0a098a8450a3035320ebd9
MD5 9b377184d3c9fc4da49e5d5bed931c6a
BLAKE2b-256 8164f2b8a4c551120b9d8cbae676aa614e8891d44ceb82657739f760575d90a3

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ed1c66c707eee081d7ca1b21a34fb2c33468c2c1f0fb4e091ec72e1a216e3ff7
MD5 02d77f4bbc84ba88951ffc8620736e4a
BLAKE2b-256 4a1eacd170793c12aec4b1b7659ef5cdbbdb8458bf1fd79ecae4fecdbc9cbc85

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7be847a915deaeedf34c2bab885801cc6651b0a4376a2cbec06b55a8ad25f9bc
MD5 bec8e053b66534cb42548866797745b8
BLAKE2b-256 650a705cdd7597767c6d7735a29b879d61bc0b747c8ccb9080afa29450054c1b

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a698ba15bd1a43908e61191556972ce15caed8f1f2745f1164de255f4dbf5651
MD5 d596b2380e1578a4aceeebf5ee469b5b
BLAKE2b-256 dbf701178e999997cc5a9349a42c57329fcb511a68fbf0bed803a2f249e2c9de

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 578a204487f0f5d82c7512ee33eb5ae544d39e04be8e96c2ecb2d7326e7749f8
MD5 9e935c47185f24f31464d8d0731953c7
BLAKE2b-256 95e7b2c143e7c938d45530ecffb60332e0764342b52f9df3f8eb1b6e569caade

See more details on using hashes here.

File details

Details for the file pytket-1.26.0rc1-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for pytket-1.26.0rc1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c4611df767f29c6a06fe31c5c72fe50f715467b901feeecdb9bc64496e364a5a
MD5 19acdba5d43aebc3ce842c6fcbe72427
BLAKE2b-256 ff06b80d1943003b2af0194559f1876457a90414574a2a4b32ee3584842f8419

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