Extension for pytket, providing simulators from Microsoft QDK
Project description
pytket-qsharp
pytket
is a Python module for interfacing
with CQC t|ket>, a set of quantum programming tools.
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 simulators and resource estimators from the Microsoft QDK.
Getting started
pytket-qsharp
is available for Python 3.6, 3.7 and 3.8, on Linux and MacOS. To
install, run:
pip install pytket-qsharp
In order to use pytket-qsharp
you will first need to install the dotnet
SDK
(3.1) 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
.
Backends provided in this module
This module provides three
backends, all deriving
from the pytket
Backend
class:
-
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.
LICENCE
Copyright 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 Distribution
File details
Details for the file pytket-qsharp-0.4.1.tar.gz
.
File metadata
- Download URL: pytket-qsharp-0.4.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71d6ba8ff662d5c378c5dfbab12e751699e901278b4b4014bc0ce01245aff67 |
|
MD5 | aa95f67040a5ad9a16f9ce1c3289ed2b |
|
BLAKE2b-256 | 8c95c404adbc02c678594f04976bfc62e3f9d037dc0f50cd11f6212739328618 |