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.7.1.1-cp38-cp38-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.8Windows x86-64

pytket-0.7.1.1-cp38-cp38-manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.8macOS 10.14+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.14+ x86-64

pytket-0.7.1.1-cp36-cp36m-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

pytket-0.7.1.1-cp36-cp36m-manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.6m

pytket-0.7.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-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.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6e338a7f0d32d7ee02230cc6ec6b541b7b43b69bc41bee0e7c628ece5b8dc5b4
MD5 780579070a558b779c7dc5b8fbeecdb3
BLAKE2b-256 72d5696d38b22b444df8eab6de66db3adb2c86e0fa59f6aae7778fccd9a8795d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62c64d66f076d6e1a9eed29830d84f0a3ebd3c021b3bd045df85c7e2043d5173
MD5 bf271c32c09b7d8d018617e88380c490
BLAKE2b-256 bbaf9c3f98852177a539d5bbfe8a0b4c7bc72804334ea3f8fd0bec471db60b9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-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.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e4d81ec4ed9c8eaf12f67b6d9c152ef38df0b2827fcc0ef1602bcef46d34d58d
MD5 97ff9ce17a5629104e830283e604467b
BLAKE2b-256 b78545893531a460f1a84bcb961d8e916537955ae97b3e84696d1c30685edd06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-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.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7e16955de75df7f4c97fe972c3a5a6349dd7caff27b04209e0520f2aed4b0f37
MD5 780c7b24669599e44b642cca77ef5504
BLAKE2b-256 6f02ff69aa5a32f161fc134e9d9c30883eebff1c0f2cc7fba1c3aef612e29bc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-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.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a68adbff6cf47755e00226831c46d7d43bedde64ececc52d400e9a1161259411
MD5 dece65fcbb8cc247c36c1c7ce63b3f39
BLAKE2b-256 1267a3179a36aa4a376a9d5b86322cb17170d0702f193dcc0fa959424df95592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.7.1.1-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.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4e84af2b5cb4f7f2ef414d75aaa6ec13463d06390134f459cdb43cc1beee1473
MD5 d62a469a7ab3f56b18ddd73f3c82a173
BLAKE2b-256 6929bf40d336116ef59746677f7a18a36b82b386b016254963440d880014c4a6

See more details on using hashes here.

File details

Details for the file pytket-0.7.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pytket-0.7.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 71f1ec051806d0c7d5a9de1d43e3a9eefc2b887a6816b323ae629e7c8fc616e5
MD5 f9eefe4c8844c456fcf458a85847a1b2
BLAKE2b-256 20653432cd3824e3ae71421fd44e319eab95f40483e000c2d9073ac5d297227c

See more details on using hashes here.

File details

Details for the file pytket-0.7.1.1-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pytket-0.7.1.1-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a8719cda6ec6fa2a94c7be9aafaab5260e79ddb897b5f85093984514744ee1c6
MD5 9fef8f4a5c0b198d818cc35b51938f42
BLAKE2b-256 97048e2876a2ffe45e09f1cd629026822c142e59e678b363f04dd0156b9a8684

See more details on using hashes here.

File details

Details for the file pytket-0.7.1.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: pytket-0.7.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for pytket-0.7.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7ac5f39e987502e0ca0c44f9d12523db44e40efe0500adff680e65417fe9a0f8
MD5 3c5a33b5b2353d629bb1392e50df2ba6
BLAKE2b-256 c9374f119be6b63f9bdfd93da651f8bdcae9d463aea669bc334b043a7fa7bc75

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