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.6.9.dev0-cp38-abi3-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e02b69285dcbc8964c93700146bf83a8d21319d6c39da007a75c02c7ede4075 |
|
MD5 | aa8e3a6eb4c1412bfad67618d310956e |
|
BLAKE2b-256 | 3fc5b14284c6dd6724cdc6a13be94b50bd83c05013d95e9ce9703c7473502770 |
Hashes for qsharp-1.6.9.dev0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d241d1783526a172226d673e2d67eee1cd02488437753791faec819d21c99f |
|
MD5 | eef15c445329cd6623842720785e8b9b |
|
BLAKE2b-256 | cf4ba3ce4b69aa26d0f78665c21b4df948d8d70e3b073263d963f7b50ec1fe4e |
Hashes for qsharp-1.6.9.dev0-cp38-abi3-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 661e60864921785710797becabc1527f72ca0e0d40d36e617f9e3ca94c486d46 |
|
MD5 | d5894b872547600df52c35d7959c72c6 |
|
BLAKE2b-256 | 3deb9261bdd95b855df239ffcea768ec0e4fff22fcfa726323fce5acddeae73e |
Hashes for qsharp-1.6.9.dev0-cp38-abi3-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfae01db8fbd683eb8306a21b2871684ed3bf5e15fe3abe8a8827e94fb2a603e |
|
MD5 | ba0418ffaf8281dd4bff6e15eb6c974b |
|
BLAKE2b-256 | 8da62ac63a8387f20e79c0f5782967ebb86b7aaaccb9b28c118f62c3acda7476 |
Hashes for qsharp-1.6.9.dev0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cf9c275223a8ef400dea2d38254274ccec22568ccc9a3a41abc2dd471a8ae4 |
|
MD5 | 0d4f17b9336d9a9bcef31c6ea5dcee7a |
|
BLAKE2b-256 | 7230bc8675851274666153a574603de920eab154f595daebfd18754d065573ab |