page_type | languages | products | description | urlFragment | ||
---|---|---|---|---|---|---|
sample |
|
|
This sample describes three simple quantum algorithms. |
simple-quantum-algorithms |
This sample describes three simple quantum algorithms: the Bernstein–Vazirani quantum algorithm to learn a parity function, the Deutsch–Jozsa quantum algorithm to distinguish constant Boolean functions from balanced ones, and the hidden shift quantum algorithm that identifies a shift pattern between so-called bent functions.
- The Microsoft Quantum Development Kit.
To run the sample, use the dotnet run
command from your terminal.
- SimpleAlgorithms.qs: Q# code implementing quantum operations for this sample.
- Program.qs: Q# entry point to interact with and print out results of the Q# operations for this sample.
- SimpleAlgorithms.csproj: Main Q# project for the sample.