microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
7c4c1b4c424591b52bf0c1009540c321c7756e69

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

samples/testing/README.md

15lines · modecode

1# Testing Q# Code
2
3The samples in this folder demonstrate different approaches to testing Q# code using AQDK built-in tools.
4
5## Installation
6- Install the `qsharp` Python package by following the instructions mentioned [here](https://learn.microsoft.com/azure/quantum/install-overview-qdk#add-support-for-python-and-jupyter-notebooks).
7- Install `pytest` Python package.
8
9## Running the samples
10Open the directory containing the test (for example, `samples/testing/operations`), and run `pytest` command.
11
12## Reference Links:
13- [Q# Testing guide](https://learn.microsoft.com/azure/quantum/user-guide/testing-debugging).
14- [Getting started with the QDK](https://learn.microsoft.com/azure/quantum/install-overview-qdk).
15- [Getting started with Pytest](https://docs.pytest.org/en/stable/getting-started.html).
16