Skip to main content

No project description provided

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()

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qsharp-1.27.5.dev0-cp310-abi3-win_arm64.whl (6.2 MB view details)

Uploaded CPython 3.10+Windows ARM64

qsharp-1.27.5.dev0-cp310-abi3-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.35+ x86-64

qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.35+ ARM64

qsharp-1.27.5.dev0-cp310-abi3-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.27.5.dev0-cp310-abi3-macosx_10_12_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 000b3f2943cfa98ae18348701b2914db69587f37197a0326087336c0c7efa5e6
MD5 75abf649b2f7187ecac3ec4b09e6fb5b
BLAKE2b-256 5060ca13eef3e7e17b95b6078c9e198e3677e9ba71bef5b7587ec715b84c9cb8

See more details on using hashes here.

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bb528f235b27c57bdc347f2bea43a2baccd341de2bd3336c54cfb890b7707ed6
MD5 9f31e5a42cfa8fcf9b2ea1f0c10cd5a3
BLAKE2b-256 d6b8f513969f55f0c3e80c17929b265ddc8710db8eb94bd376bfec1bfe20065c

See more details on using hashes here.

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 020f596fedbb811cb8f1c89f4f66920988dbbcf60e0672a3c6780d5f4ee36c65
MD5 1ef3258d1c66cea3608ad7fc3310c42a
BLAKE2b-256 8fef113d6e9d3abb866a3f08f301a8d401ba18ac66d7c31192fdeccb1b29efa5

See more details on using hashes here.

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 e67f11f5e0fc9897e7816cc9dd21b6d243beeda3b844139428b578d4763c5559
MD5 9becab3b3e82404d5b611ce28480de0b
BLAKE2b-256 662b724e07c44e585544666ad883b4ec5694b189972f0d522bc4d4656bb539a6

See more details on using hashes here.

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d6764e053ebdfa104d8cb8cc9ca91693524e2fe4f2727d5f854d816882d0604
MD5 d19bd0b8c1808f7ffad80e9a13f485d7
BLAKE2b-256 b9e3ded5072c91f2b720b85641fb58b015891e115d65a7467dc2f3dad2a2de65

See more details on using hashes here.

File details

Details for the file qsharp-1.27.5.dev0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.5.dev0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 953c5947c31c0bd794c5fa7700786509aacddb790f3cf84a73a272a25137f55d
MD5 ebb513675ab9e38abd9bfbc5b91abb49
BLAKE2b-256 6166c30485579221e423d2b8721dd84e174d60f22db5f1010ba50b0a0a02d028

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page