Skip to content

Instantly share code, notes, and snippets.

@NatuMyers
Created April 18, 2018 21:03
Show Gist options
  • Save NatuMyers/94674e5be509b00130b4e21d3a7f41ee to your computer and use it in GitHub Desktop.
Save NatuMyers/94674e5be509b00130b4e21d3a7f41ee to your computer and use it in GitHub Desktop.
using System;
using Microsoft.Quantum.Simulation.Core;
using Microsoft.Quantum.Simulation.Simulators;
namespace Quantum.HelloQ
{
    class Driver
    {
        static void Main(string[] args)
        {
            using (var sim = new QuantumSimulator())
            {
                var res = Add.Run(sim, 20, 10).Result;
                Console.WriteLine(res);
            }
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment