Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Q# Language Support for Python

Q# is an open-source, high-level programming language for developing and running quantum algorithms. The qsharp-lang 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-lang

Usage

First, import the qsharp module:

import qsharp

Then, use the %%qsharp cell magic to run Q# directly in Jupyter notebook cells:

%%qsharp

open Microsoft.Quantum.Diagnostics;

@EntryPoint()
operation BellState() : Unit {
    use qs = Qubit[2];
    H(qs[0]);
    CNOT(qs[0], qs[1]);
    DumpMachine();
    ResetAll(qs);
}

BellState()

Support

For more documentation and to browse issues, please visit the Q# project wiki at [https://github.com/microsoft/qsharp/wiki].

Contributing

Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qsharp] to find out more about the project.

Metadata

Release files for qsharp-lang 1.0.29.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for qsharp-lang 1.0.29.dev0
File Actions
qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl CPython 3.7 abi3 Windows ARM64 Details for qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl
qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details for qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl
qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl CPython 3.7 abi3 Linux glibc 2.31+ x86-64 Details for qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl
qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl CPython 3.7 abi3 Linux glibc 2.31+ ARM64 Details for qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl
qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.7 abi3 macOS 10.9+ x86-64, macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64) Details for qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Total release size: 8.1 MB

Release files / qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl

Download URL qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl
Size 1.3 MB
Tags CPython 3.7 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
dc66f64a4b000dbd8fcd0cb7b0bfff02544196fcecdf1db990e9879639a1eb0b
BLAKE2b-256 checksum
How to use checksums
0fe7b484245637d986e011865be4a34914a92efae556c8d4237b01f880aae170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl

Download URL qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
88dd9493a7579ac225921d2f4cfeff8ce20e6dc058827ab338ac30390e713317
BLAKE2b-256 checksum
How to use checksums
e435bde56bc9f87db7c00d123f016fa94e047542f394730a69ad2f4aa042f51d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl

Download URL qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl
Size 1.4 MB
Tags CPython 3.7 Linux glibc 2.31+ x86-64 abi3
SHA-256 checksum
How to use checksums
1795b1cd1ff95513688bd3bf0d79407b3c93843738c5b4adb6fa3dd93b004c63
BLAKE2b-256 checksum
How to use checksums
c1a38e72a84800e5e05f81e9e6dd107da30205a318b57e9715a55203a74998e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl

Download URL qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl
Size 1.3 MB
Tags CPython 3.7 Linux glibc 2.31+ ARM64 abi3
SHA-256 checksum
How to use checksums
8fce61c8b4d807fc2dd6f27f59517c9aec9fd44a2441936e38eaad06e6e7cda4
BLAKE2b-256 checksum
How to use checksums
ca37d25d6efb5b13736bd9a86a1f891f4537b5738c9a2c52a8ba1bd0e1d80ec0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 2.6 MB
Tags CPython 3.7 abi3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ce5115e75046b2af3c4b69f4ca977c6b0bf991f94fbd10487b0efecce0d41563
BLAKE2b-256 checksum
How to use checksums
3287b905040c4c084a471174efbda063a3e5fd8eef068b0361df5f6c3bccc3ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for qsharp-lang 1.0.29.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page