This release is a pre-release and may not be stable for production use.
Python SDK for Azure Quantum
The azure-quantum package for Python provides functionality for interacting with Azure Quantum workspaces,
including creating jobs, listing jobs, and retrieving job results.
For details on how to get started with Azure Quantum, please visit https://azure.com/quantum.
You can also try our Quantum Computing Fundamentals learning path to get familiar with the basic concepts of quantum computing, build quantum programs, and identify the kind of problems that can be solved.
Installing with pip
pip install azure-quantum
Development
The best way to install all the Python pre-reqs packages is to create a new Conda environment.
Run at the root of the azure-quantum directory:
conda env create -f environment.yml -n azure-quantum
Then to activate the environment:
conda activate azure-quantum
Install the local development package
To install the package in development mode, run:
pip install -e .
Unit tests
To run the unit tests, simply run pytest from the root of the azure-quantum directory:
pytest
To run the a specific unit test class, run:
pytest ./tests/unit/test_job.py
To run the a specific unit test case, run:
pytest -k test_job_refresh
Building the azure-quantum Package
The Azure Quantum Python SDK uses a standard setuptools-based packaging strategy.
To build a platform-independent wheel, run the setup script with bdist_wheel instead:
cd src/Python/
python setup.py bdist_wheel
By default, this will create a azure-quantum 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.
Support and Q&A
If you have questions about the Quantum Development Kit and the Q# language, or if you encounter issues while using any of the components of the kit, you can reach out to the quantum team and the community of users in Stack Overflow and in Quantum Computing Stack Exchange tagging your questions with q#.
Release files for azure-quantum 0.16.2105.141895b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| azure-quantum-0.16.2105.141895b1.tar.gz | 32.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azure_quantum-0.16.2105.141895b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.5 kB
Release files / azure-quantum-0.16.2105.141895b1.tar.gz
| Download URL | azure-quantum-0.16.2105.141895b1.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a1b598e224966b401c8c1468a0c359a4acd20dc6f28927bd0c763804e6e1fe
|
|
BLAKE2b-256 checksum How to use checksums |
0c823ef78502aa14fe47d75060631e44d14e2fb34b67237883fcbf817033c71b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
|
Release files / azure_quantum-0.16.2105.141895b1-py3-none-any.whl
| Download URL | azure_quantum-0.16.2105.141895b1-py3-none-any.whl |
|---|---|
| Size | 58.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f298497d7d3ce5363a4dd8a937f719ad3b0ec40369aed8a497d95ee7961b375d
|
|
BLAKE2b-256 checksum How to use checksums |
95b44c011318df67c2b11aa489dac72df09fb053ec8c72e27c3bfcb9fdeb7c30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
|