forked from microsoft/Quantum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDriver.cs
32 lines (29 loc) · 1.05 KB
/
Driver.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.Quantum.Simulation.Core;
using Microsoft.Quantum.Simulation.Simulators;
using System;
using Microsoft.Quantum.Samples.Measurement;
namespace Microsoft.Quantum.Samples.OpenQasm
{
class Driver
{
/// <summary>
/// Sample to show that one can substitue the operation factory
/// to run on different types of machines.
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
var factory = new ConsoleDriver(); //Using different Factory
Console.WriteLine("Hadamard to Qasm");
MeasurementOneQubit.Run(factory).Wait();
Console.WriteLine("Press Enter to continue...");
Console.ReadLine();
Console.WriteLine("Measurement bell curve to Qasm");
MeasurementBellBasis.Run(factory).Wait();
Console.WriteLine("Press Enter to continue...");
Console.ReadLine();
}
}
}