Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.85 KB

File metadata and controls

42 lines (29 loc) · 1.85 KB
page_type languages products urlFragment description
sample
qsharp
csharp
qdk
simulator-with-overrides
This sample demonstrates using Quantum Development Kit to create a quantum simulator that relies on full state simulator and redefines some of the built-in operations (measurements).

Defining a Simulator with Built-in Operation Overrides

This sample demonstrates using Q# to create a quantum simulator that relies on full state simulator and redefines some of the built-in operations (using measurements as an example).

Prerequisites

Running the Sample

This sample can be run in a number of different ways, depending on your preferred environment.

C# in Visual Studio Code or the Command Line

At a terminal, run the following command:

dotnet run

C# in Visual Studio 2019

Open the folder containing this sample in Visual Studio ("Open a local folder" from the Getting Started screen or "File → Open → Folder..." from the menu bar) and set SimulatorWithOverrides.csproj as the startup project. Press Start in Visual Studio to run the sample.

Manifest