Skip to main content

Q# Libraries for interop with Python.

Project description

Q# Interoperability for Python

The qsharp package for Python provides interoperability with the Quantum Development Kit and with the Q# language, making it easy to simulate Q# operations and functions from within Python.

For details on how to get started with Python and Q#, please see the Getting Started with Python guide.

Installing with Anaconda

If you use Anaconda or Miniconda, installing the qsharp package will automatically include all dependencies:

conda install -c quantum-engineering qsharp

Installing from Source

If you'd like to contribute to or experiment with the Python interoperability feature, it may be useful to install from source rather than from the qsharp package on the Python Package Index (PyPI). To do so, make sure that you are in the Python/qsharp directory, and run setup.py with the install argument:

cd Python/qsharp
python setup.py install

Building the qsharp-chemistry Package

The Python interoperability feature uses a standard setuptools-based packaging strategy. To build a platform-independent wheel, run the setup script with bdist_wheel instead:

cd Python/qsharp
python setup.py bdist_wheel

By default, this will create a qsharp wheel in dist/ with the version number set to 0.0.0.1. To provide a more useful version number, set the PYTHON_VERSION environment variable before running setup.py.

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 Distribution

qsharp-0.12.2009.2803.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

qsharp-0.12.2009.2803-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file qsharp-0.12.2009.2803.tar.gz.

File metadata

  • Download URL: qsharp-0.12.2009.2803.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

File hashes

Hashes for qsharp-0.12.2009.2803.tar.gz
Algorithm Hash digest
SHA256 03e44a610277b8cc1bef2bf610a6aefac1408d06538d717d4fbbc9b456fa1238
MD5 598ae1e546dadb45317931314dbd9356
BLAKE2b-256 7aea84a0ab3a9330a95502e202fba52853e2527214f0e5936d9acb20268c3114

See more details on using hashes here.

File details

Details for the file qsharp-0.12.2009.2803-py3-none-any.whl.

File metadata

  • Download URL: qsharp-0.12.2009.2803-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

File hashes

Hashes for qsharp-0.12.2009.2803-py3-none-any.whl
Algorithm Hash digest
SHA256 5e129d2d122515efda513bf16037f0f5ead65063066f5916221adb2c305f7013
MD5 5134b29a15e113269c35f88313489923
BLAKE2b-256 38ddd33a95af86a242ae464aa29868624af75be4de569a629705929a3fd3c65a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page