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.3.3.dev0-cp37-abi3-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc8a3fa48c1e5b56bfb17c76f329ed71670cdf9aa4f487a8444f6efe0a13d96a |
|
MD5 | 1b1ef51490adad4aa0a182073a423ada |
|
BLAKE2b-256 | 3b3fbc4aae90d2c02b8d63ffab930f9e8058a3e900056093922df6b612dcc6f8 |
Hashes for qsharp-1.3.3.dev0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2e7db2b1b281c428445e2a07b5f6cb83335052a6fcb87d49c1b650f91babd3 |
|
MD5 | 2531eb4f35390866deed1e37194ba3a5 |
|
BLAKE2b-256 | c908f4c93aaf26c5bb89972fabef967e57f87b16cb6b9d4bd459dbd7494c83d2 |
Hashes for qsharp-1.3.3.dev0-cp37-abi3-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41f71bb968827f5f6865848b4fd1467ba9cf4498588ecd90be1bc642ced6f18 |
|
MD5 | 5f10c230ea0c59573499c193322f940f |
|
BLAKE2b-256 | b2381958a2830a889eaec05c12bfaf1e42581dd38073e6a873a7f9b0722b2890 |
Hashes for qsharp-1.3.3.dev0-cp37-abi3-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2286df6f42a987fc5820e81bcecbbd4b77de609b89cf5824c78ad7e8d554191b |
|
MD5 | 62b7c99fe830638450761a17e2a9adb7 |
|
BLAKE2b-256 | a3c05ae71be678710e84484503fdff578379a00aa3ffa9949829fc8310d3d69d |
Hashes for qsharp-1.3.3.dev0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73bd19a49b50f51eb5b49ae31b4b679e24c79d9e485111c234a722491cd3b100 |
|
MD5 | 8b6f96b52c878d85ac70582c6f2eb962 |
|
BLAKE2b-256 | 9c9e1708dc53603976c9f02c8379d9ecc7b702a89e71d02e5b3b70e4945034d8 |