Skip to main content

Python module for interfacing with the CQC t|ket> library of quantum software

Project description

PyPI version

pytket is a python module for interfacing with CQC t|ket>, a set of quantum programming tools. We currently support circuits and device architectures from Google Cirq, IBM Qiskit, Pyzx, ProjectQ, Rigetti pyQuil, AQT, Honeywell and Microsoft QDK, allowing the t|ket> tools to be used in conjunction with projects on these platforms.

Getting Started

pytket is available for python3.6 or higher, on Linux and MacOS. 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 t|ket> 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

To use pytket in conjunction with other platforms you must download an additional separate module for each. This can be done from pip, or from source, as the binaries are included with the core pytket package.

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

A command-line interface tket is also included in this repo, enabling basic compilation and running of circuits on any installed backends. Type tket -h for help.

LICENCE

Copyright 2019-2020 Cambridge Quantum Computing

Licensed under a Non-Commercial Use Software Licence (the "Licence"); 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.

Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence, but note it is strictly for non-commercial use.

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.5.2-cp38-cp38-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.8

pytket-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

pytket-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.7m

pytket-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

pytket-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.6m

pytket-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28c9cf139318234e4472c8367c0c620939e53726fafe96192efb3fdd84642905
MD5 5b4f35369fed953d02452dc75b5d4cdf
BLAKE2b-256 d745f5dc0bfaa91909f05aefdd7c693c98354fac449eb8553e8c1ab56f670dfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 483a567bcf42cb046bd02f3396f0d79a97d85f88e202b6a022f8a754b25c1306
MD5 a4b8248a2924d6dd3a5e90488830ac3a
BLAKE2b-256 042bda5d832b61c55e96e4bd83dc83940f151a4298c195e87af24769b120db60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c435be7fe0180e564440baa1f5d46d55515067502c2853d24da55e8dfdb13e5d
MD5 a505efc33a62cfc2735c752205ac918c
BLAKE2b-256 343112da79c98741150a89316850ab3639b4511e21c5941342d76ee4fc6f6634

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3b7e4299316f024d5769ab37f6d62612da2aaeca9d5d8c7351b468927b89140b
MD5 cfec4de2e29580c5d6a1803146fcccd4
BLAKE2b-256 88e48f40360d67fcb375952619b585efa2f05f2ac8ea3e284fa08e618037054c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e27fc5df4136e909afe520e75a5d5fc717060b432ab199250db3db07934bdf36
MD5 83ca0922e1a6d3ee80894bc4514656a9
BLAKE2b-256 12217286e23114a7b905d360011a389badaff050189bb94464c86ffd4b43a7ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytket-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for pytket-0.5.2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 09336c55bf307f4612c2d07e57a5ee45ea51353ac4fe0d0a657611b2899039d9
MD5 c00bb9f286397a08276b3a6473c02b17
BLAKE2b-256 95e0bdd67694ae85c78b808e595860e24d9c121279e319f5e28dafb746cbf6e3

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