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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

qsharp-1.27.4.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.4.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.4.dev0-cp310-abi3-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.27.4.dev0-cp310-abi3-macosx_10_12_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 274376544dd9775f8523585f799a29ca8f90bca7cf37ee0183a598435676498d
MD5 3a22fcbd770e6274992398c91fdffebb
BLAKE2b-256 e84d11669f717f35d5199161c8d71ccd1e06ce36467b8a9c04f9155cc4776f85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c37338676911aaa17c6405142a20a612d7b4c5547fdf26642ba96be03d877642
MD5 13dbdc6ca1f0c8e1830ecbf501f9c84f
BLAKE2b-256 1200ca6bb7678b26404a06c2260f433cc6b10df48ba0129ff2ab554576a213d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 34097f6e88d1f08f4ed510ba8016238a735eb57583f59701865b54dc6f6491f9
MD5 7cfc685b8e036b028ba36c43ca4dce8f
BLAKE2b-256 375c01032642d76e45b98e18a3b7423a1c7c9057b78af1469a12e6c1ce77d7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 2609e440e36c2ba1c467375d759c96ff4d417e43961279579e5769cc49bb84fb
MD5 126c1bf3e9d161725ae45732fdc30ea6
BLAKE2b-256 9f4b2e0751e8e3f3617e38c0f8ba27b26d89cdb7a9f9b285a8342ff8c5bcad99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb044966118a51a8726c49559e1d3749ee5fc2eae7a80ccbefb2f29a587236c1
MD5 6e1e0d9a96477780330bd2571ea2475a
BLAKE2b-256 7029df8bc3281ecafe4c08f37050173aba3f1a9e31d944755dd36388593085ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.4.dev0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 814191e6a14713e61c40559a578db45b5f6ae8e608354690415f6d13d2f8cb57
MD5 6f39b8040d25c2e8d7418b7e0f9f36f7
BLAKE2b-256 de2c8c9745589da8c644dfbfb8aa4ad4ef8ab1f947f03284d85056740c7e2598

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