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

Uploaded CPython 3.10+Windows ARM64

qsharp-1.27.2.dev0-cp310-abi3-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

qsharp-1.27.2.dev0-cp310-abi3-manylinux_2_35_x86_64.whl (5.8 MB view details)

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

qsharp-1.27.2.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.2.dev0-cp310-abi3-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.27.2.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.2.dev0-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 11cced92a444204b1883fad0830b141a267a4118b8ef103ffcff09def2d6d920
MD5 ff8e40ae65006c42147fd67a986fc330
BLAKE2b-256 0b01a83e465727caa8cefe7063101ea71bde80050ec53af96327f949e130668d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1478a060493b0258c76edffd525a1d309d98d3247c3572f7a1dd5fa368cfae0a
MD5 ae286b7fbe6b1da7e7b77d9a0b534dbe
BLAKE2b-256 125220aaa122123682c0deef91a7f28aea0a9645b600b3df9630f4e2f3620f60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1cea045dae7f7aafe9679ed225b1efabd888c641eadfca8ba7a16f1253d14ffb
MD5 908933c0c86acf5ff92d156c83882747
BLAKE2b-256 47bb2eb39fe6db2e135dec2bada037b9bc84703f01c6c7d3a0289fa96aff6afe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 b38cf923b7ee57d1b7eaa61c9a9236dff09703798062a9b4a1f20591303fb00f
MD5 1474e990830c51049f7703a6d9fc7b42
BLAKE2b-256 5f95d2d425a6d6e61c1ed9488668678b4eb3f57d00d2a07ad31213b49d8ef40e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46bf54f6e9f323d12112de56c996c121efd749dc87486239d7bf3e83316d2624
MD5 48ca8e5010976fb192ea5e26a0e57e91
BLAKE2b-256 8ceb9681e09041d7f13a8e76e2b89cd29aba0601905c2669d371e77026d2fec1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qsharp-1.27.2.dev0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f4f6dcd9b05a39ce93543621d9f7dd9cc53aaf27884e0ac081c027b6f53bb1b7
MD5 66de5bb6546c78bfaa8e3258209d3c10
BLAKE2b-256 8f7e2447a37ee2dce6494fdba2fb88300180e0834a007884045d40e3161b6e50

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