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
and Rigetti pyQuil, allowing the t|ket> tools to be used in
conjunction with projects on these platforms.
pytket is available for
python3.6 or higher, on Linux and MacOS.
To install, 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
To get more in depth on features, see the examples.
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 they binaries are included with the core
For each subpackage:
pip install pytket-qiskit
pip install pytket-cirq
pip install pytket-pyquil
pip install pytket-projectq
pip install pytket-pyzx
Note:this will need a separate install of
pyzx from source.
Copyright 2019 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 view a copy of the Licence on the LICENCE page.
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.