Extension for pytket, providing access to Azure devices and simulators via Microsoft QDK
Project description
pytket-qsharp
Pytket is a Python module for interfacing with CQC tket, a set of quantum programming tools.
Azure Quantum is a portal for accessing quantum computers via Microsoft Azure.
Microsoft's QDK is a language and associated toolkit for quantum programming.
pytket-qsharp
is an extension to pytket
that allows pytket
circuits to be
executed on remote devices and simulators via Azure Quantum,
as well as local simulators and resource estimators from the Microsoft QDK.
Getting started
pytket-qsharp
is available for Python 3.8, 3.9 and 3.10, on Linux, MacOS and
Windows (except for Windows with 3.10). To install, run:
pip install pytket-qsharp
In order to use pytket-qsharp
you will first need to install the dotnet
SDK
(6.0) and the iqsharp
tool. On some Linux systems it is also necessary to
modify your PATH
:
-
See this page for instructions on installing the SDK on your operating system.
-
On Linux, ensure that the
dotnet
tools directory is on your path. Typically this will be~/.dotnet/tools
. -
Run
dotnet tool install -g Microsoft.Quantum.IQSharp
. -
Run
dotnet iqsharp install --user
.
Alternatively, you can set up an environment with all the required packages using conda:
conda create -n qsharp-env -c quantum-engineering qsharp notebook
conda activate qsharp-env
Backends provided in this module
This module provides four
backends, all deriving
from the pytket
Backend
class:
-
AzureBackend
, for executing pytket circuits on targets the user has access to on Azure Quantum; -
QsharpSimulatorBackend
, for simulating a general pure-quantum circuit using the QDK; -
QsharpToffoliSimulatorBackend
, for simulating a Toffoli circuit using the QDK; -
QsharpEstimatorBackend
, for estimating various quantum resources of a circuit using the QDK. This provides aget_resources
method, which returns a dictionary.
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
Built Distribution
File details
Details for the file pytket_qsharp-0.26.0-py3-none-any.whl
.
File metadata
- Download URL: pytket_qsharp-0.26.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b9688d6b66d71ef23f938a00b64c2b29c2c64a6bfd559ff8e33e1007098ce9 |
|
MD5 | 292f87e3965655915d8c4245ff69e873 |
|
BLAKE2b-256 | 13c87b7c5ad335a66c0a85cb7116b6469707041bd855fc74d5cd17e3014a1a2e |