Skip to content

Instantly share code, notes, and snippets.

@friguzzi
Created April 22, 2019 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save friguzzi/3c7b836d572c26450efbdc2380cbc97e to your computer and use it in GitHub Desktop.
Save friguzzi/3c7b836d572c26450efbdc2380cbc97e to your computer and use it in GitHub Desktop.
using System;
using Microsoft.Quantum.Simulation.Core;
using Microsoft.Quantum.Simulation.Simulators;
namespace Quantum.Sample
{
class Driver
{
static void Main(string[] args)
{
using (var qsim = new QuantumSimulator())
{
for (int i = 0; i < 100; i++)
{
var res = QPE.Run(qsim).Result;
System.Console.WriteLine($"Res:{res}");
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment