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

Uploaded CPython 3.9 Windows x86-64

pytket-0.10.1-cp39-cp39-manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.9

pytket-0.10.1-cp39-cp39-macosx_10_14_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pytket-0.10.1-cp38-cp38-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

pytket-0.10.1-cp38-cp38-manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8

pytket-0.10.1-cp38-cp38-macosx_10_14_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pytket-0.10.1-cp37-cp37m-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.7m Windows x86-64

pytket-0.10.1-cp37-cp37m-manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.7m

pytket-0.10.1-cp37-cp37m-macosx_10_14_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0505f33c683fb274cf02800cb5632da81d29f96c805568b1c50605b13056381c
MD5 82def78149fdd3222a22dbd1bbb5e8e9
BLAKE2b-256 38518df71fe0a3543c2753a27c005e227542720210d662e395b4cbf1f093bac0

See more details on using hashes here.

File details

Details for the file pytket-0.10.1-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pytket-0.10.1-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be947f4d2cfacc33b01c58de29619455253feb194ee317abbd7ea4bd53205777
MD5 6ba0a6b6c54ffc181b9d05e9a30de33c
BLAKE2b-256 6fa5696251a958b09374852bcd46a4405d21ab2d03bb8f5524e814acde80b89a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 92f55da552eb6ae3095fe2fe2258eef73a8ffe4b50bf9fdd59950d1b5ba8310b
MD5 f3a213b62c6b83a556b91a3717d9da76
BLAKE2b-256 8c44c2fbcb73ccafc3a11d51046e4a0a3c12781737205d58c8d8bf1ca88e1fbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a186418bac11dcaafcadd4600c9ddd7aeb5d7d07ec8bc834aaea026ff9dd233d
MD5 ffd68306141c5621b0d54740eee1ecdc
BLAKE2b-256 0a77e5bd5d6085fb09185789c8f83205da92d51d92ad638c27a9a0b7062ab969

See more details on using hashes here.

File details

Details for the file pytket-0.10.1-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pytket-0.10.1-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfd6dabdef4ade56d31ddca5a451c1eb7ade3568e1e47dc226b849dc0bc14c4e
MD5 ef2a149cb3376f118650dc0f867ba902
BLAKE2b-256 a1f4d2d3e105ac957961afa7d9aa9e3315d34a4eac2fb1b1c2949a05d0a7d36d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f53bd2748ec218534935ef459c49ad74f5259dc5e67334c9d8260e3b4c99127c
MD5 98a727b61d3f9a5a35cd85816b3e9bb8
BLAKE2b-256 9817b4d6335cfe0963b0aa9d8035bf511a6f0b3d5cb8f8c7c3fba4add5ee9f11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c2a83600e5d9b063169304310f291ac83999e72fc3159e486e18ea95f0d61138
MD5 00f380254c4c0469f7922e0fc00726ee
BLAKE2b-256 da86461a6a8f36653fdbf46172648a570befcdd54ad54e6b5c8ae3e8450c772c

See more details on using hashes here.

File details

Details for the file pytket-0.10.1-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pytket-0.10.1-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8c1d7d1d5b8960a1af73648c3cda869ca20ccec696cc188288da4a872b69686
MD5 ae2be6caae3ccbdb2cab25cf387064da
BLAKE2b-256 4ea5a8db1ddb7fff489d07aba46051a2e8c51d1c9dc18cb85e126bf614230a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.10.1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pytket-0.10.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0b2aca22c1b8c1406a0dff01f087ed6b909dfd668fb63f287bfb9c325ce795e5
MD5 d013839ea5eed73a937bf77c8b80cbe1
BLAKE2b-256 3d4d44ffac432f6360874846ae9d560dd7f43979bb748341440f746bf261f7ae

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