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

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+manylinux: glibc 2.35+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

qsharp-1.28.0-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.0-cp310-abi3-win_arm64.whl.

File metadata

  • Download URL: qsharp-1.28.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 3506bce25f394b9e6e48c54983171f2c2aec97973eae8f08fd2f93bd666e80e3
MD5 60bf7fb8c31de3d84da72318ea753aaf
BLAKE2b-256 5fcc49103b024e65eb14055babafd4aacdf9d6e0a646a2eb740b10c53d6add3d

See more details on using hashes here.

File details

Details for the file qsharp-1.28.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: qsharp-1.28.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 aa0394988dfbac4071353c33a04377e58c7e6d983dd56749f2905534b59ab2e4
MD5 6e4ae7612fce5ebf0b12e5d358568809
BLAKE2b-256 fbc936580e6ddfca3db30f59e20ea87eca2b049044f09304758c89661256e33a

See more details on using hashes here.

File details

Details for the file qsharp-1.28.0-cp310-abi3-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e6cf6eb94eab533506cf7455741978a6b2c549c5e167aa9ac99411125d73b520
MD5 0f262e55cfa7f3db09f82cb03d03f69e
BLAKE2b-256 4e13bf165a2230b6dea4fbe60cc53f206c3e80342be84e5014c0006e8df2ec0c

See more details on using hashes here.

File details

Details for the file qsharp-1.28.0-cp310-abi3-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 7d60ccef395fa68e1a02379ae013ba7d34d569d21c324e72c84d0e324ba43971
MD5 7e4680795b11b8a96d9a210daf2354e5
BLAKE2b-256 2e409c136b2a988be5f8530c9781e3e3715639232c04ac6a367803da4dbef490

See more details on using hashes here.

File details

Details for the file qsharp-1.28.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64c3b1b1767d72622b914fc2a1f8f7fb637069f2a8c0707d6f38c694ad232cf4
MD5 46efd3fc97b0c5cb7b3d3dc5423a24dc
BLAKE2b-256 983f93f86c1ced8f86dd12f6c68db9f447c6e1226eceaf00849621ce77ae967e

See more details on using hashes here.

File details

Details for the file qsharp-1.28.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for qsharp-1.28.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 157c04cf8ee84e3eff51496a306e0af16004443e047396f3393558a6e0a5cfe3
MD5 ccebfb60ca0dd7b4196676ff49c91a8c
BLAKE2b-256 432e6b5f749708c3b98b5c3598f9ed6e37dbfc16f5ae5c1f8645904384bf7137

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