page_type | languages | products | description | urlFragment | jupyter | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
This sample demonstrates counting the resources required to run quantum numerics applications. |
resource-counting-numerics |
|
This sample demonstrates:
- How to extend QCTraceSimulator in a Q# standalone applications to estimate the quantum resources required to run a Q# operation.
- The Microsoft Quantum Development Kit.
To run the sample, use the dotnet run
command from your terminal:
dotnet run
- ResourceCounting.qs: Q# code implementing polynomial function evaluation.
- Program.qs: A Q# application that provides a specific polinomial for evaluation.
- Program.cs: C# driver to run Q# code with custom startup and shutdown.
- ResourcesEstimator.cs: C# Resources Estimator that aggregates and prints data collected by QCTraceSimulator.
- ResourceCounting.csproj: Main Q# project for the sample.