page_type | languages | products | description | urlFragment | jupyter | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
This sample demonstrates how to implement a custom modular addition operation in Q#. |
custom-modular-addition |
|
This sample demonstrates:
- How to implement a custom modular integer addition operation in Q#.
- The Microsoft Quantum Development Kit.
To run the sample, use the dotnet run
command from your terminal:
dotnet run
- CustomModAdd.qs: Q# code implementing a custom modular integer adder.
- Program.qs: A Q# standalone application that uses and tests the custom modular integer adder.
- CustomModAdd.csproj: Main Q# project for the sample.