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

If you're not sure about the file name format, learn more about wheel file names.

pytket-0.9.0-cp39-cp39-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.9Windows x86-64

pytket-0.9.0-cp39-cp39-manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.9

pytket-0.9.0-cp39-cp39-macosx_10_14_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

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

Uploaded CPython 3.8Windows x86-64

pytket-0.9.0-cp38-cp38-manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.8

pytket-0.9.0-cp38-cp38-macosx_10_14_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

pytket-0.9.0-cp37-cp37m-manylinux2014_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.7m

pytket-0.9.0-cp37-cp37m-macosx_10_14_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.9.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.2 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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 27f1cd76628c71913d3021de0e28b0da4e4b12fd59c5159207a25b4c6bd6c06d
MD5 652a9068fb4a420f45daae19fc31a041
BLAKE2b-256 4f42b3760957cccf2e12388007c60876f27a789f5e3f7cbf606c5dc1f9735849

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-0.9.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b11a518ef2f4e3e7c65b8661c1bb5ea375790faefc9217a3a3acd39155d1d427
MD5 1b19db90d340ea39920c5c83723779de
BLAKE2b-256 7f0dfbde5d8c4b5063c1c93a1aca531ebd11c70ca41e58b7340fa983158c6063

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.9.0-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.8 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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 12a032eea25a2b8edc5aa6b0d6d607080bffc568e2145aff001d8ab6989408e2
MD5 603a6d09e079e2b4c4ae7de8981d80a3
BLAKE2b-256 cdf85b2abbb6329bdb52ff3f8b2d72c6286ab0820e10c51e3742d7d59633fcd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.9.0-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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ba4d25311d429cbd2440365ea82f8010b780143e708c4101f1751b3258bc51f2
MD5 2e67aa4396a978045956c4d533bff78b
BLAKE2b-256 114a36251d588a796352d56d7faab2d9298beb073ff33e2b69ed960cf6aac5e3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-0.9.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a433d859edf568db8414c121f4f0087df2d52376e1f7a24200dbd3c050ddb455
MD5 e3b660e2f0be6f6bab06e163e8730212
BLAKE2b-256 ef4d224709d9d47328368ccbefefa9918659485a6e84e5e79c7e64fc2f7f20dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.9.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.8 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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 538f30d4e8e286437c4315232b60b473dbf8192e1cf76e0d8fcaf94caa62825e
MD5 2d97cccd4e8ce0a96bd554501c892675
BLAKE2b-256 2a85994e5799110a6ffd8d9e259d2fc5456c79ac8978c546709761fe9cd98df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.9.0-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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0a9bf78c0c0f7c90dc8d5e6c8ba7be8773d5eb3384b9b4ef5ea0639fd24a3bfa
MD5 67e618730d5ac4df24cc937bad52e1a1
BLAKE2b-256 b4001ab88fe5cc8e760f9235822301462aae90a2a31b5b0f6d79688408f82a69

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytket-0.9.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 718c818a5512f336841601968e239f628e4985ac224babc0d0d5265e5b7a8bae
MD5 8e001b035aec4ade1ca18b08e65dc53e
BLAKE2b-256 397939d4dcab1a9b734df37e7339a4c0d1a26a66efac758ace2163bd775198f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.9.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.8 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.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for pytket-0.9.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fdc393a6d6ad1863b0677c4039f7660242297e70806c60f740bcb8dede5be13b
MD5 7545a4c732c0d6d601a6cb0b2165ca1e
BLAKE2b-256 18d82ee14e82e8cc22e6697de6315142498178d5c487839ce91db53861c37a67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page