No project description provided
Project description
Q# Language Support for Python
Note: The
qsharppackage is deprecated. Please use theqdkpackage instead. This package is a thin compatibility shim that re-exports theqdkpublic API so that existing code continues to work.
Q# is an open-source, high-level programming language for developing and running quantum algorithms.
The qsharp package for Python provides interoperability with the Q# interpreter, making it easy
to simulate Q# programs within Python.
Installation
pip install qdk
For backward compatibility, pip install qsharp also works and will install qdk as a dependency.
Usage
from qdk import qsharp
Then, use the %%qsharp cell magic to run Q# directly in Jupyter notebook cells:
%%qsharp
import Std.Diagnostics.*;
@EntryPoint()
operation BellState() : Unit {
use qs = Qubit[2];
H(qs[0]);
CNOT(qs[0], qs[1]);
DumpMachine();
ResetAll(qs);
}
BellState()
Telemetry
This library sends telemetry. Minimal anonymous data is collected to help measure feature usage and performance. All telemetry events can be seen in the source file telemetry_events.py.
To disable sending telemetry from this package, set the environment variable QDK_PYTHON_TELEMETRY=none
Support
For more information about the Microsoft Quantum Development Kit, visit https://aka.ms/qdk.
Contributing
Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qdk] to find out more about the project.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qsharp-1.28.4.dev0-py3-none-any.whl.
File metadata
- Download URL: qsharp-1.28.4.dev0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b520dfd9c5de0c3e0ea6a2fb2478aaed8f18444405161c09a611a91fc4bd8df
|
|
| MD5 |
b0e19c5980e15ebdeb2743345c1f8f9a
|
|
| BLAKE2b-256 |
724291cabb988dd299209d0b127cbf993f89fe200f62d3f9424788ddc4cd59af
|