iqsharp/tests.live
Mathias Soeken 6d97c4f75f
RE batching (#769)
* Initial version.

* Support for batching jobs.

* Add length and indexed data access.

* Fix bounds and add item access.

* Result object and e2e testing.

* Adjust timeout for RE, make result based on Dict.

* Error handling.
2023-02-16 10:23:16 -08:00
..
Notebooks Use bitwidth as input argument. (#756) 2023-01-25 02:48:23 -08:00
Python RE batching (#769) 2023-02-16 10:23:16 -08:00
All.Tests.ps1 Fixing tests results file 2022-11-03 11:13:59 -07:00
Install-Artifacts.ps1 Update Python to 3.9 (#685) 2022-09-10 16:24:09 -07:00
README.md Remove Honeywell provider and update tests to use Quantinuum 2022-10-13 14:23:18 -07:00
Run.ps1 Control the list of Live tests to run based on AZURE_QUANTUM_CAPABILITIES (#534) 2021-10-09 00:13:38 +00:00

README.md

IQ# Live tests

This folder contains Live tests for IQ#. Live tests are end-to-end tests that require an actual connection with Azure Quantum to complete successfully.

Notice these tests are currently not part of IQ#'s CI pipeline. Please run them manually if making Azure Quantum related changes.

Running locally

To run these tests:

  1. Use Install-Artifacts.ps1 to install IQ#, either from from the local /src folder, or from build artifacts by specifying the following environment variables:
    • NUGET_OUTDIR: with the location of the build's NuGet packages
    • NUGET_VERSION: with the packages' NuGet version.
    • PYTHON_OUTDIR: with the location of the build's Python wheels
  2. Set up the following environment variables pointing to an Azure Quantum Workspace that has the Microsoft, IonQ and Quantinuum providers enabled:
    • $Env:AZURE_QUANTUM_SUBSCRIPTION_ID=""
    • $Env:AZURE_QUANTUM_WORKSPACE_RG=""
    • $Env:AZURE_QUANTUM_WORKSPACE_LOCATION=""
    • $Env:AZURE_QUANTUM_WORKSPACE_NAME=""
    • $Env:AZURE_TENANT_ID=""
    • $Env:AZURE_CLIENT_ID=""
    • $Env:AZURE_CLIENT_SECRET=""
  3. Use .\Run.ps1 -SkipInstall to run all the tests.

Optionally, instead of providing AZURE_CLIENT_ID AND AZURE_CLIENT_SECRET as environment variables, you can login to Azure using either: * the Azure Account extension in VS Code * az login from the Azure CLI and change the value of the credential= parameter in the tests to the corresponding value.