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

Uploaded CPython 3.9 Windows x86-64

pytket-0.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytket-0.11.0-cp39-cp39-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pytket-0.11.0-cp38-cp38-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.8 Windows x86-64

pytket-0.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pytket-0.11.0-cp38-cp38-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pytket-0.11.0-cp37-cp37m-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.7m Windows x86-64

pytket-0.11.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB view details)

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

pytket-0.11.0-cp37-cp37m-macosx_10_14_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.6 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.11.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4e4c8e5f49ad855af021de882486e336ab2e9198c86714a6cc620118efa96da3
MD5 2d8d713840b910d30717ee48ce5960de
BLAKE2b-256 e120e653874f22e6900096eaed87e3ee6dfe2ad5f898a553b52d60be0fb318d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00b80cadb7875572310f77b81e1415b552a17f07f0a0a278461a940b447cb880
MD5 72acdee97116b550a1510b2e80032bee
BLAKE2b-256 f370159b6455f6d17012bdf585ef4f9403682b125c316494b93f93dee3c3415e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.11.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 178d3709ca739489f843a30cfafca135cb09f8d7d80c2970cb30594a58f74e64
MD5 ad8530c990f6107edbb889a6ccf91a3b
BLAKE2b-256 31958d35669479e380367ec70f2dae30575099b2b29898f7cd4a53c323463a48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.7 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.11.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24e9f53c69de235cad6aa849fb51989213935c4cfc66d6cb700cd69a002ab719
MD5 68f5cb299fca6a389fa1a042cbec8239
BLAKE2b-256 56252b665a15763642c527b0fae2b2b516f3044dbfdc0d232840369414e470e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 441f9e9ac050f5eda6acb31bd3a49bc1b752113426c8970f604dec631ddebd74
MD5 3fbb7352479ef38c3b89ec3638e20430
BLAKE2b-256 7af044cb4f1c0382f6ed33e12a47a170c8618182d00fd877b67f8103dc73f3bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.11.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 159e64469e3209474985542dad79c5329776763eb578245d0a92b96278291f8c
MD5 32fdd66c4e94ce0a6321c01aa202e9b1
BLAKE2b-256 c2f351c821250a411a2e4fec1524fb7851fd907f95d2e9cee9491068469f9147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.7 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.11.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fceff3f253b0fab50986c6738c38baa542d3c70b8992cc43cd52b4c94572bf80
MD5 721d88c2137e0562cb6f9734a6896443
BLAKE2b-256 4b86cb8ab94fe74260c424c9c26a1f580e11953be2caeb9bc13cb8527363bb7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.11.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee178b09e89c098cd0905daed56e2545a931f003e453a4b4b2b36f48740591c1
MD5 b39ca6886b5531fc4650473d8aae1010
BLAKE2b-256 481a50cb4b2254688c6fdb9d673a53b91f8216e2cad2d3483093070303823918

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.11.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.2 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.11.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 9b3f9f3d1ba95de0d60b1b48622cff1f067074aea668bfe6bc3c5377981d3a5e
MD5 dc087a5ff821225111824d17ad5bb115
BLAKE2b-256 9cade75b0fd9b0abf759e22ac93538835e67ce2054e483105e394f1bb33bb17b

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