Skip to content

CQCL/pytket-docs

Repository files navigation

pytket

Slack PyPI version Binder

Pytket is a python module for interfacing with tket, a quantum computing toolkit and optimising compiler developed by Quantinuum.

This repository contains the user manual and example notebooks to get you started using pytket. It does not contain source code. The source code is maintained on the tket repository.

The notebook examples are built with jupyterbook and can be viewed at https://tket.quantinuum.com/examples.

Instructions for how to add jupyter notebooks to the examples repository can be fond here.

For more on how the user manual is built and deployed see the manual README.

Getting started

Pytket is available for Python 3.10, 3.11 and 3.12 on Linux, MacOS and Windows. To install, run:

pip install pytket

See the Getting Started page for a quick introduction to using pytket.

API documentation can be found at https://tket.quantinuum.com/api-docs.

To get more in depth on features, see the manual and examples.

Extensions

It is easy to use pytket as a front-end for interacting with third-party devices and software.

We maintain a large and growing number of pytket extensions. These extensions provide access to a range of quantum devices and simulators and enable joint functionality between pytket and other quantum software libraries.

These are simple to install with pip.

Maintenance and support

If you think you've found a bug or have an idea for a feature then please raise an issue here.

There is also a slack channel for discussion and support. click here to join.

Pytket 0.x.y

Pytket underwent rapid development from 2018 to 2022, with frequent changes of API. Our policy has been to maintain only the latest 0.x relase, and not to port bugfixes to older releases. Since version 0.7 (February 2021) we have been releasing new versions (0.x.0) on a 4-week cycle, with occasional patch releases (0.x.y) for important hotfixes.

Pytket 1.x.y

With the release of pytket 1.0 in early 2022, we are moving to a different process, to facilitate long-term stability. Following the semver conventions, we will not introduce incompatible API changes in the 1.x.y series; the minor version (x) will be incremented whenever new functionality is introduced; and the patch version (y) will be incremented for bug fixes.

Pytket 1 will be maintained according to this policy for at least a year following the release of pytket 2.0. There will be no further maintenance of 0.x.y versions.

Pytket 2.x.y

Development work on pytket 2 will begin soon after the release of pytket 1.0. This will have a different API. Only pre-release versions will be uploaded to pypi until the API has stabilized enough to make a 2.0 release. Thereafter we will continue according to the same policy as for pytket 1.x.y.

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.