Created
April 22, 2019 10:14
-
-
Save friguzzi/3c7b836d572c26450efbdc2380cbc97e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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