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 examples repository.

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

Uploaded CPython 3.11 Windows x86-64

pytket-1.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pytket-1.20.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

pytket-1.20.0-cp311-cp311-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

pytket-1.20.0-cp310-cp310-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytket-1.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pytket-1.20.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pytket-1.20.0-cp310-cp310-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pytket-1.20.0-cp310-cp310-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

pytket-1.20.0-cp39-cp39-win_amd64.whl (7.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytket-1.20.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytket-1.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pytket-1.20.0-cp39-cp39-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pytket-1.20.0-cp39-cp39-macosx_10_14_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pytket-1.20.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a507e343c67d779c23515d777ca7e217f43a8d2bc0e1315551d9d06dbbcacac
MD5 5a44098e4cc206cf636e72639b2d1cce
BLAKE2b-256 b6937836dec9cfd4c74f0edbd8808a2cd49f4a6e6f0d7b20df4a30ae3073fddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 829a3a21a108cad83de5270f2a9180212cb454ebb86ad8d925b7269ff68a69fc
MD5 3860d83aca6ab1c39cdd962a918cada2
BLAKE2b-256 99f8641449abd4e814487555f7329370ca7f9661e5316ae0559f88159e1753eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1240389521d994f655f1bd88e75afc52011471c4b1fa88abc69ff646825d56ee
MD5 d6642c0cca8fd2b0be29823b2371825d
BLAKE2b-256 9ceb0c5d68620b29c45d6ccab7b05e7903142ae98235a6fad1feac29d63789c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28d28955bed5e396ba663d1e1840f1e566eb23e24e6c988a036b2b12495ee813
MD5 d45c51b7a486eea86bf12939c51df29f
BLAKE2b-256 3e2e1c25ddb317fabbd8dd929396e4d66b93d97c1726573b4ecfc3c141b96aa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 574671ceb83f8210d6552a7aafb914129db5ca6c59f66a464b144694200511c6
MD5 6e5d8aac685c544ab6cb561abc96d84e
BLAKE2b-256 8c7b6b0e884fd5e70f24857164caa0197b583fe7ca669f81147370eae5ce875a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.20.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b5869db28aafc79d8b9e781511ca969321f1d42dbee893c11500ee949cac8bec
MD5 fd8aa0b680e602312757f5830775aed1
BLAKE2b-256 b4eb21fb5f4a5043f5d37bdcd60011c26edceb1dd66ddbfb986911da45a1c5f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96dee0afd18bf368d9b48d8f22d2c7f10a8be3e1cd69cafd9966fdcaac972a79
MD5 47d6a594a95b88c1c60116bde970aa7c
BLAKE2b-256 5e3b3585e50598d2ff138b0b505767781efd072007be6cdeb00aec3d6fb2f3f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2e4236bc97bb4f36229c835e5bee09675a0e733e0e3c59b81240255031f1b7f4
MD5 676ea3464ed53313abd4b62bc743f22b
BLAKE2b-256 971aa500d77ed698244bea4f66ff44cb3a97aec25c229b7d5df2ed055b0f66d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c40201f329ecea196ccda19b75da2ac82e7bba45e9457345802fa406d4c470e2
MD5 cc872c6622c1fd8fa8d0e1ad8f7bfb14
BLAKE2b-256 b0441b0fab8d93ac3e760f012199c264a21780e5216028e6ba80a407774f2da8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6d04e4dd6311776bfd2d5989a61773d55e2cf026e8eccee5760c6311b95db547
MD5 8772e484646fe59b34ec4957e0892bd5
BLAKE2b-256 3c56f1e7f42340fa7e3f38c9e67ea426cf7e7556ebd4d1ebed9da6da5087b310

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-1.20.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 03c57f0648b971cf5116876b25907eecdb2a69e06db38fbc6841807fec3a6bbf
MD5 7615aceba018d2104937a693471aa9e0
BLAKE2b-256 01c260af4fe6cca312f03b52cad852b7eb119ee0f53744e7a49d882dbce5a0de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bb5b7dc26cc812f60f82d9755221f530a8d228356d688676480bdb93c54c5e0
MD5 042093f777f72050935659280dbb6add
BLAKE2b-256 7e7bcf3d3522ed381eff6a6a46036ee653583da0a28888bdd12befa0aa2597a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 74eca28bff421fdcd1ab2ff594a12958fb958898173a5e7e31396c8187279cc8
MD5 f4ee62f8089977ecd63f7df07a9f06ab
BLAKE2b-256 8c1667402eed753ed9aedffbddd6a6be3a9264397f8f9fd902002d08f8a57c1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05c8717c7a9b0603325cd6405be8cc9a3b853ce3fa485fdc78696af82f1645c9
MD5 3f5ad391e2c3f1bacd6fd07711a70068
BLAKE2b-256 9b712ed040d837e439ab1e03e82998244e16bbee619db81c44b268eb924a8aa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-1.20.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 61a3c9780eef1c59dbcfd4cc4772af44174a2ba23e3ebf809a62f51c047a31e4
MD5 d1e7752d4c584cf3da26980790a77f19
BLAKE2b-256 c3708ca5fb6aa019681c30326d29add1d8587cb0d808f4739cd8c534b5706516

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