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.3.dev0-cp310-abi3-win_arm64.whl (5.9 MB view details)

Uploaded CPython 3.10+Windows ARM64

qsharp-1.27.3.dev0-cp310-abi3-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

qsharp-1.27.3.dev0-cp310-abi3-manylinux_2_35_x86_64.whl (5.9 MB view details)

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

qsharp-1.27.3.dev0-cp310-abi3-manylinux_2_35_aarch64.whl (5.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.35+ ARM64

qsharp-1.27.3.dev0-cp310-abi3-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.27.3.dev0-cp310-abi3-macosx_10_12_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3d9de2af1b3bca9ce10f13c1be198c16d6e5e7e296ceafd2531abea2e925d0c6
MD5 7ebf9e951e5cc01101235239005d7b03
BLAKE2b-256 790d0edc4f7b576230447c0826dc6bfb6c226c108fb1a55bcdbf456ced415d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 75c1f65be3ab35a2ea2f1d30c1deb0db24490d13f6a3793d4739667377008387
MD5 a6c71928cedd34dffbec624e039ab43c
BLAKE2b-256 303a4b7b5d336bcbfb7d410957c9e6bd4f023eb36a59aee569ca08ffb6a2146d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 297f076bd17472ef8157dafd05edf02058520f326eaf4ebccb1fbec9a46e1606
MD5 4d467e90b13b0d56fb5ea0eda00302a0
BLAKE2b-256 ac8f2d571fd8985d8bfbef5b6d1f76598a9d6d152aaf22a27ef81be544f00143

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 79ab318ef57d7d5c6b19fad8ea5a321d4d1650f43e64d265ee8bacc6de7cb85a
MD5 8658fdc8a0f85bf95082946ec9a53f4e
BLAKE2b-256 bf38bac5af0f8a6b69e6131c1648357dff132d1bf0c5879f0fba66bf22a72b65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d61a23a33322cbdc6d742a959bc7bc7f168756867f3d1e13a1ed463da506eda5
MD5 5257740e7b0f370bdf1508456e9c0aea
BLAKE2b-256 19b308eabee2cb73cd88dafa96fd49f24c1ccea86ac9ca811ebb04d9c80f3119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.3.dev0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 824c8cff72e74f6b7b3b7c6221618b64c04e1aa89e9943ff25017531383b3ee6
MD5 81e0135fb55a244ab2a09193735cf2d3
BLAKE2b-256 95ace20b121f453edcc1feb74a02e2d3ab1d95c7aae0f125b43e0d9b878949a1

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