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.
pip install azure-quantumThe 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-quantumThen to activate the environment:
conda activate azure-quantumTo install the package in development mode, run:
pip install -e .To run the unit tests, simply run pytest from the root of the azure-quantum directory:
pytestTo run the a specific unit test class, run:
pytest ./tests/unit/test_job.pyTo run the a specific unit test case, run:
pytest -k test_job_refreshThe 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_wheelBy 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.
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#.