Q# Python Bindings
Project description
Q# Language Support for Python
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
To install the Q# language package, run:
pip install qsharp
Usage
First, import the qsharp
module:
import qsharp
Then, use the %%qsharp
cell magic to run Q# directly in Jupyter notebook cells:
%%qsharp
open Microsoft.Quantum.Diagnostics;
@EntryPoint()
operation BellState() : Unit {
use qs = Qubit[2];
H(qs[0]);
CNOT(qs[0], qs[1]);
DumpMachine();
ResetAll(qs);
}
BellState()
Support
For more information about the Azure Quantum Development Kit, visit https://aka.ms/AQ/Documentation.
Contributing
Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qsharp] 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 Distributions
Hashes for qsharp-1.1.5.dev0-cp37-abi3-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294e2a5a675bcf187229891a40bc88328b921c3c40cf988928f749538b1500df |
|
MD5 | b245776bd5c396f5d5b621ac23ff40c3 |
|
BLAKE2b-256 | 649b46b77a4af9b9d12f814fc3052c02f1c573395b62ca7eb76c781ecf8ea79d |
Hashes for qsharp-1.1.5.dev0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089fe2812a399683bd0f73c3a43c8e40587b4f1ea9371694218e1f946be8f9d7 |
|
MD5 | c0256c6369c9b4c433667f6c4701e8cc |
|
BLAKE2b-256 | 074fd5f32c63fc9dd6292cfc7013a3b9c2a752b96779237dfdb9383094b6f628 |
Hashes for qsharp-1.1.5.dev0-cp37-abi3-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72042590fd78085799c6ba7dcebaa7e37b45769f937a698c2ab475883af42921 |
|
MD5 | 788ca194a765633176415ed75350b66c |
|
BLAKE2b-256 | b9df25779a9c611c130da3edba74b295e816dd64a016b9ed891817bbb94ee7c7 |
Hashes for qsharp-1.1.5.dev0-cp37-abi3-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9465c686c47ce473ef844e2f5c0f2a17da084625c1d6b2a8925a4862569bfe55 |
|
MD5 | 936002749d5e3a484c9635a5309b6ee9 |
|
BLAKE2b-256 | 6a1ad1ecde18512c1d996dc9ef62579d7cdc530577b2c22b5a9014c9de39805b |
Hashes for qsharp-1.1.5.dev0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f8db02f564b81a9acfd57fd6b858db1a51857d7f75c4339b82f3c8281c3b6c |
|
MD5 | 7128aee31ffdccf675adbe182487e86e |
|
BLAKE2b-256 | a421f903fd0dc33cc601700133e81493df48195a13d8de4df9793c86483378aa |