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

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

pytket-0.13.0-cp39-cp39-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.9Windows x86-64

pytket-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pytket-0.13.0-cp39-cp39-macosx_10_14_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

pytket-0.13.0-cp38-cp38-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.8Windows x86-64

pytket-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pytket-0.13.0-cp38-cp38-macosx_10_14_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

pytket-0.13.0-cp37-cp37m-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.7mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.13.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.10

File hashes

Hashes for pytket-0.13.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6e67394dd91e8979ca31c180349ceb64110290a4ed10fb8001ca83e7f618026e
MD5 a8c1d8bba4505254a6029eeb270da8d0
BLAKE2b-256 fad118ba317abc3d87d27237c334af926278ebda6fe72aa7a84998c7baee41b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d84a2c930732ee3f3ff1c0bd809ba09cf11269fdec2383b2548d43a6bcdbaac
MD5 5811bf7585032281b506895d28fd4313
BLAKE2b-256 1794bf74f8966c18043a7dd27f601e02306fa68c49aba1aae333c99080236169

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.13.0-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.2 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.10

File hashes

Hashes for pytket-0.13.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 30975e540828666563cb60c72e34591bbd0da02cf39b8befec80c6ef7e7ce1b6
MD5 c58ad0d0437785adca1a8c2877e71815
BLAKE2b-256 89be540408f0178e383f0e26f5a6489b6b6b7a54093a22729649f8dcd67c1cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.13.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.6 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.10

File hashes

Hashes for pytket-0.13.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 44c9ae0211f005aa966306b175836360dab14046440524532cdac4bdd534e1f7
MD5 6f28d4822a6ebce2d4e56a2edc66ff5f
BLAKE2b-256 57710f16815642566d6826d086d89a0d560a8abe68cdcf6d905e9e52f7608104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f1e8f762702ed1f7ada3e93f2d08154c54c89939eb83d69e8e7e4046818e2574
MD5 c4f8a635805da265a5581c43f5ea4f50
BLAKE2b-256 1012a047b61ac5def21d3ed6277d181235b2a6b7b4167e44d2172f95342456d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.13.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.2 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.10

File hashes

Hashes for pytket-0.13.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 88bfe00cc3d78c875e8bcf4ab0c6eb20937538df0452e9cf73a5fd277b166313
MD5 c2873b200de7f3eb5e547fccd3a97ee6
BLAKE2b-256 5b9114fb6b18596acef470ffae98be0b3b5c62ba4a5d469587457750cd96ce33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.13.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.6 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.10

File hashes

Hashes for pytket-0.13.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c6ab77442537bc6f4c446cef6aa9fdc021e4d991d94b3a2a428720ac6adcc84a
MD5 e4bc84801f1fca1aa32e7216c76c309c
BLAKE2b-256 d3e143d186ee8245d578020fa6e36e33f974024c70c3b80f0b983ae8ff80c3bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a2569bce5d183c417b503f5cd06ba210dfcd74c933e3634065d2c705ce204cc
MD5 ffd83c5b05b89a470c3bc39cb6563608
BLAKE2b-256 08d98afdeb3d3809080787c556d87cdfe99072c9f1b3c3bba42bc6b7b29f171b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.13.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.10

File hashes

Hashes for pytket-0.13.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f3417cee9dadc4ccca0b17aeea4d2632af1a26b823097f6419f1aa531c4306e3
MD5 17ddfef5f0878db93a21e0a7098c2602
BLAKE2b-256 69cfc0e28433931b9210f1f03b6d55ca1c7876d6825090ac7ac960b1312b4fcb

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