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.6 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.7.2-cp39-cp39-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytket-0.7.2-cp39-cp39-manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9

pytket-0.7.2-cp39-cp39-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

pytket-0.7.2-cp38-cp38-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

pytket-0.7.2-cp38-cp38-manylinux2014_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.8

pytket-0.7.2-cp38-cp38-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pytket-0.7.2-cp37-cp37m-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

pytket-0.7.2-cp37-cp37m-manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.7m

pytket-0.7.2-cp37-cp37m-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3db6c55667650f870d06a8a49089ff69915d72709fa7454170919b18a637ad49
MD5 d2d4d77d2c6560d591e4a7d38e61c9ae
BLAKE2b-256 fd8b6d1833f56e2e0578dae0eb79fad4055f8b1a84c622573492e5cbae398033

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11f460557317bc981eafbbf454812e849fb68e649b5334cbc9b2eb371848d8c5
MD5 13474522c6c8ad28c6c72e6e532f1cb6
BLAKE2b-256 da0b3e1fb9a334d1a373f37efeb8122daf39f5db3fa80f778ac38c5cfdd76a91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7289ef48237286b7e361d033a300279a8e3fa43da38b678ed95c8b1ef0095565
MD5 8131f6fcab54c607c056662cf86a7cb2
BLAKE2b-256 bbc13a257db471924af67bbbc8f1f0f453b89138bff2a7c4b7e0b3e3a225432c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 799c9b02e928ae742a01408055d179a0afba5507d5b5756018d6e08c7fb514a2
MD5 e88cbea6e1d58af703008a78b957c579
BLAKE2b-256 d7e5e74ba062d69a46d17e0ac3b8c92af02185b0694603b1fbc8209a654ecb31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 caf272b14be2a6c1e01d2fd5d448c59bedeef1632beee15aeb8b601c946f5d35
MD5 eb578fcb884994d3ecaa16d16ba2bfaa
BLAKE2b-256 9f043728ca01adb5c347dba746fab9980e6ff24fde16bced4431c7fc9b10d17b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3daea6309e521d2821618cd54bb8c92b7764692180915fe78ca7d7148c130160
MD5 5346ea4733dd2705b5202ed216cd691b
BLAKE2b-256 a1f0f08fd0178ccc7c8400a9de0ff5b0fe65e2dada41b9362b8261693e7ab9e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 cf7030a5593cf707b107ea53f39fad812779d94687d5fe6676083f1a6ec9f035
MD5 43dd1e80ee47bc7339bd97a41e4bca65
BLAKE2b-256 23dc100c78ac6ff5612cf6451d48a84e7cf3775023750366a97eff846532a739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb8671ba6a10494ffca6d0d66c589dd46668fb45a5686119ef749e5548d5f8b2
MD5 108626c6ce63f61c8cd1afc7cde84c53
BLAKE2b-256 a7748536ba3c8e11ab6413cdad58fcd6c9da29f058e2398266fcbb452c54a841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.2-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.7.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f808c957da8348eaf6cb6795ca27d55983fbf805a7814c8fb45d2c128269bf62
MD5 2b72f0f25469a6b13784df0f1ac1d8bf
BLAKE2b-256 732ba9613b83f786171dee79565107db547eb2fa6b8ed78d2164726df6d44909

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