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
import Std.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.9.2.dev0-cp38-abi3-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4761f8a1291610dc0f7f1c54b5e02277a4cec978ff6fb79fbc77ffd64f209417 |
|
MD5 | 1fa4107ae9bf20ff8f349abf9067d35a |
|
BLAKE2b-256 | 5ff4aa0058c05bacde955a251f5ebf988b6d53f437c77387fafaa4d538d42d49 |
Hashes for qsharp-1.9.2.dev0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c145e125867cb870eec18778396412dac888e2e3d3baa5455b7d7c2fa9a6c08e |
|
MD5 | 917c69ab1c9f2329f6d187ed67fe594c |
|
BLAKE2b-256 | 49792cc08910b267b23eadb992413c6ab4fb1f65cef8654eb135efaf2f4aaa19 |
Hashes for qsharp-1.9.2.dev0-cp38-abi3-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e065be6286dc61dd3529cc9bf1120c161ae0bbb99f7b73bfcf3441adce63d334 |
|
MD5 | fe02b19dc82b29b9ae1d613e60892289 |
|
BLAKE2b-256 | 303448901ac50a787a7ae94dd12a4d623c6d1c661f9b3618d4705645564d439a |
Hashes for qsharp-1.9.2.dev0-cp38-abi3-manylinux_2_31_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dfe7fbe2980ef4b86cfd063b828161d979316dbe7afa0a716c5ec86d1f48aab |
|
MD5 | 98b5188ec705b813e5742fe704442978 |
|
BLAKE2b-256 | e8bf319fdfb127bd8b6269e5f6d28ce995ae84fbaa35d33245ade46a8407d1a0 |
Hashes for qsharp-1.9.2.dev0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7592dcd0007ab6755a2dbd8b901a9805c2dc4b45746179128cb49d80c262fb4 |
|
MD5 | d5119be6bd17b3111a8c15342d927d0f |
|
BLAKE2b-256 | 9e001809c727c0bf293b00d93fe3460317ed8f6ddd5074784546a22b7e50f7d2 |