Skip to main content

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

Project description

PyPI version Binder

pytket is a python module for interfacing with CQC tket, a set of quantum programming tools.

This repo contains API documentation and example notebooks to get you started using pytket. It does not contain source code.

Getting Started

pytket is available for python3.7 or higher, on Linux, MacOS and Windows. To install, ensure that you have pip version 19 or above, and run

pip install pytket

Note: attempting to install from source will not set up the required binaries for the tket compiler, so we recommend the PyPI installation.

See the Getting Started page for a quick introduction to using pytket.

Documentation can be found at cqcl.github.io/pytket

To get more in depth on features, see the examples.

Interfaces

We currently support circuits and device architectures from Google Cirq, IBM Qiskit, Pyzx, ProjectQ, Rigetti pyQuil, AQT, Honeywell, Microsoft QDK, Amazon Braket, and Qulacs, allowing the tket tools to be used in conjunction with projects on these platforms.

To use pytket in conjunction with other platforms you must download an additional separate module for each. This can be done from pip.

For each subpackage:

  • Qiskit: pip install pytket-qiskit
  • Cirq: pip install pytket-cirq
  • PyQuil: pip install pytket-pyquil
  • ProjectQ: pip install pytket-projectq
  • PyZX: pip install pytket-pyzx
  • AQT: pip install pytket-aqt
  • Honeywell: pip install pytket-honeywell
  • Q#: pip install pytket-qsharp
  • Braket: pip install pytket-braket
  • Qulacs: pip install pytket-qulacs

LICENCE

Copyright 2019-2021 Cambridge Quantum Computing

You may not use this product except in compliance with the Licence. You may obtain a copy of the Licence in the LICENCE file accompanying these documents or view them here.

How To Cite

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:

We are also keen for others to benchmark their compilation techniques against us. We recommend checking our benchmark repository for examples on how to run basic benchmarks with the latest version of pytket. Please list the release version of pytket with any benchmarks you give, and feel free to get in touch for any assistance needed in setting up fair and representative tests.

Telemetry

pytket features a telemetry module which can be used to keep track of pyktet usage and will provide usage analytics and error reporting at a later date. Telemetry is disabled by default, but may be enabled either through function calls or in the pytket configuration file.

In order to opt in to telemetry a helper function is provided in the pytket.telemetry module that need only be run once.

from pytket import telemetry
telemetry.opt_in()

Similarly the opt_out function will allow a user to opt out.

Alternatively the config file located either at $HOME/.config/pytket/config.json or $XDG_CONFIG_HOME/pytket/config.json if $XDG_CONFIG_HOME is set can be edited manually.

Once a user has opted in to telemetry they will be assigned a telemetry ID by making an HTTP request to a CQC server with some information about their system.

Telemetry Data Policy

Our telemetry data policy can be viewed here.

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-0.14.0-cp39-cp39-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytket-0.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytket-0.14.0-cp39-cp39-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pytket-0.14.0-cp39-cp39-macosx_10_14_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pytket-0.14.0-cp38-cp38-win_amd64.whl (4.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

pytket-0.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pytket-0.14.0-cp38-cp38-macosx_11_0_arm64.whl (5.2 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pytket-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pytket-0.14.0-cp37-cp37m-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

pytket-0.14.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pytket-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.14.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96c94c1a88c7eb25d909b16ac858eeda1436ec28735522977e63f297a3dd543f
MD5 8720032e3c3f0e91c0f07d4eaef5676d
BLAKE2b-256 5792eeb036364cdbcb16cc367932e361e624238997f30d102e32eb9856ef7fbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.14.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f7097a389448fcf7bc5229529dd79a30db13114f4f33d85942352f4fd4e5f012
MD5 3a40b14b678435590ac22adf2d5b1f95
BLAKE2b-256 4e8e4e8ee7fc0615180f2aedd3de2c720dce97a728dc6dd6aa731fdbfca92f1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.14.0-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8682cf083758d80e39dcad1e28f5859978157bf69c5587a7266447c24abb077
MD5 d821fc4ff714fa620e8d43980f69f46e
BLAKE2b-256 6ea9d65f4525d421d0eea731a2456c306d48b347b313a73ba50c88bbd8354e30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.14.0-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3351cc611c4dec0655d569c3b0c39faf771e3e8a5e92f919143329a20166944f
MD5 80ec98fbc111c60097515bfa9dcb37e5
BLAKE2b-256 c520bbafee3090f92856a54f65200076082745099120080802c2bb2b35ed81fc

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pytket-0.14.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b09116c56931a079650630652500138e626a1138691b73bb2e0c1e5f14d90725
MD5 69314ba0477376479d1ca3f6a777a9de
BLAKE2b-256 6cd94e863da57c08a64f1223dca0631dcb152b744b65708f8787a4ec740f6ec7

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-0.14.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd55afba8093686d33c1013b3309e06ac320b9f6f7c61c5a5b831cca404ba95e
MD5 e9307d7e2e35ad75a0e9ca722efbdca9
BLAKE2b-256 05b1a1c30ad0ff36bae54b841d2cbdf4b754756ef3183ed8465186e073373231

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pytket-0.14.0-cp38-cp38-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.8, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 059d5dfdcdc36df8002c9ad0256afe58293f517f0329c67fb70b779bcffa0704
MD5 46e6ff4fa6ffd4fec82ef2c23853e3e2
BLAKE2b-256 d989be754794cd15c365a1f53a645957793563e7444cd8c622be158725484150

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pytket-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f8dda29f89ee0130d47b42bd8a3683e610b6045ad439404ec4f874115e919b8a
MD5 8f2f204bad60fcc5971ceb3c6ade7b9a
BLAKE2b-256 06d872e19a71e3f31025a405ec1cfa7c14a973eaf0c4d0f7f0ad9bf6e74604e1

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pytket-0.14.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a576e23a670897f47a3dbbddff20de6e3a90c2617b98ba3e15da83efa8acba56
MD5 490e1674eafabd08f3eb2b674f8ed883
BLAKE2b-256 4408f89ccac3eed8451bf0ef3bba1d1af30d9d7413ba26fcb5c3eea2a690f6ec

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pytket-0.14.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 48a2c04fbce689d9bf01a441b426b1fb25e16f0c9205d6ed1cf8547efe494fb3
MD5 2e9969da58b95fe0622d8638e89a628b
BLAKE2b-256 fc8f0b1dba5962e38b9eaeb64a469567256021a247b930fcb161b82d27b95417

See more details on using hashes here.

File details

Details for the file pytket-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pytket-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pytket-0.14.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 79c2f68931a2c78924a5824698d8444340c348b94df7305a3e2052e6b0e644f3
MD5 9dbf4f4ca8f7231d8caeb0bbdfec7237
BLAKE2b-256 a26f611f6ba54756f6e9750b03ba941d653d189473a2d9b6666ae01aeb163c77

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