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:

from qdk 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.28.1.dev0-cp310-abi3-win_arm64.whl (6.2 MB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

qsharp-1.28.1.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.28.1.dev0-cp310-abi3-manylinux_2_35_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.35+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.28.1.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.28.1.dev0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a6cef9575fe6f9b06b48c8068bec8159517bf4da914a2eb48419bfb0840a6525
MD5 61012c96ba68a4f9b3a298ee769f55a4
BLAKE2b-256 0e07dbcae03510b7ae3219b76ffdafba33792508ec448c7363ae02fc8092146d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4590cf234a3e45ca3e40c03d8ebf2c3a47844d803e67ef4002cc640008cbd4fa
MD5 e365c64d991b09255aba768821417bf3
BLAKE2b-256 556c08c30ce1dd7170819c9065f2708f4fcd687363e82143d96828245b2642fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 2331cf56b9fd00ddcc57e20b70b0a236503fe1ff65e767ef863056d1cf3d9621
MD5 2055fb0d78d3a899cd3dfa9f889e2d87
BLAKE2b-256 41c1c665d881f7915dcdb3812a5cea468b14b62185c9cd410d6993772d2ffd66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 7a7d54776cda20c802f2f89f56077eac88c48093429a0feb609f0e023cbf1e08
MD5 fad94912ba99f307781275719eb379ee
BLAKE2b-256 9557c02ad6dcdf2e62e6926dece65d39db915e0a830481f1200fccad22ec92cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8897a1c8f59ea05e33943ce538a82f87f94018aec6967055185d80e0d8176369
MD5 a425ffaac6e8b9fefa487fc296304fd4
BLAKE2b-256 0a5c25ca9ba59227d21037f00be7494977cac7d531fa782b8ac4844eb2b6895c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.28.1.dev0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 94defee3e99e999482481a8b8c2cc16370283e3fd85126a7be82a8f4a37f3bbf
MD5 50c9ef50b0cb9a8dda6b226e9f62c314
BLAKE2b-256 1e83a7bf525eeaa3d667c3024ded5ca7419fdd1e9042c5d116735d768e52bf23

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