Skip to main content

Python module for interfacing with the CQC tket library of quantum software

Project description

Pytket is a python module for interfacing with TKET, an optimising compiler for quantum circuits developed by Cambridge Quantum. In addition to pytket there are several extension modules for accessing a range of quantum hardware and classical simulators. The extension modules also provide integration with several widely used quantum software tools.

The source code for the TKET compiler can be found in this github repository.

Installation

Installation is supported for Linux, MacOS and Windows. Installation requires python 3.8, 3.9 or 3.10.

To install run the pip command:

pip install pytket

See Installation troubleshooting for help with installation.

To install the pytket extension modules add a hyphen and the extension name to the command:

pip install pytket-quantinuum

For a list of pytket extensions see this page: https://cqcl.github.io/pytket-extensions/api/index.html.

Documentation and Examples

API reference: https://cqcl.github.io/tket/pytket/api/

To get started using pytket see the user manual.

For worked examples using TKET see our examples repository.

Support and Discussion

For bugs and feature requests we recommend creating an issue on the github repository.

User support: tket-support@cambridgequantum.com

For discussion, join the public slack channel here.

Mailing list: join here.

Citation

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:

  • "On the qubit routing problem" for qubit placement (a.k.a. allocation) and routing (a.k.a. swap network insertion, connectivity solving). https://arxiv.org/abs/1902.08091 .
  • "Phase Gadget Synthesis for Shallow Circuits" for representing exponentiated Pauli operators in the ZX calculus and their circuit decompositions. https://arxiv.org/abs/1906.01734 .
  • "A Generic Compilation Strategy for the Unitary Coupled Cluster Ansatz" for sequencing of terms in Trotterisation and Pauli diagonalisation. https://arxiv.org/abs/2007.10515 .

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-1.11.0-cp311-cp311-win_amd64.whl (10.6 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pytket-1.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pytket-1.11.0-cp311-cp311-macosx_13_0_arm64.whl (9.1 MB view hashes)

Uploaded CPython 3.11 macOS 13.0+ ARM64

pytket-1.11.0-cp311-cp311-macosx_10_14_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.11 macOS 10.14+ x86-64

pytket-1.11.0-cp310-cp310-win_amd64.whl (10.6 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pytket-1.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pytket-1.11.0-cp310-cp310-macosx_13_0_arm64.whl (9.1 MB view hashes)

Uploaded CPython 3.10 macOS 13.0+ ARM64

pytket-1.11.0-cp310-cp310-macosx_10_14_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.10 macOS 10.14+ x86-64

pytket-1.11.0-cp39-cp39-win_amd64.whl (10.6 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pytket-1.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pytket-1.11.0-cp39-cp39-macosx_13_0_arm64.whl (9.1 MB view hashes)

Uploaded CPython 3.9 macOS 13.0+ ARM64

pytket-1.11.0-cp39-cp39-macosx_10_14_x86_64.whl (10.0 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

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