Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 1.33 KB

File metadata and controls

40 lines (27 loc) · 1.33 KB
page_type languages products urlFragment description
sample
qsharp
qdk
h2-command-line
This sample demonstrates using Quantum Development Kit to estimate ground state energies of molecular hydrogen.

H₂ Simulation Sample (Command Line)

This sample demonstrates using Q# to estimate the ground state energy of molecular hydrogen (H₂), outputting the results to the command line.

Prerequisites

Running the Sample

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

Visual Studio Code or the Command Line

At a terminal, run the following command:

dotnet run

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 H2SimulationSampleCmdLine.csproj as the startup project. Press Start in Visual Studio to run the sample.

Manifest