Skip to content

Instantly share code, notes, and snippets.

View yasgun's full-sized avatar

Yasas Gunarathne yasgun

View GitHub Profile
@yasgun
yasgun / Driver.cs
Last active April 12, 2020 15:30
Q# Superposition Driver Code
using System;
using Microsoft.Quantum.Simulation.Simulators;
using Microsoft.Quantum.Simulation.Core;
namespace Superposition
{
class Driver
{
static void Main(string[] args)
@yasgun
yasgun / Program.qs
Created April 12, 2020 14:42
Q# Superposition Code
namespace Superposition {
open Microsoft.Quantum.Canon;
open Microsoft.Quantum.Intrinsic;
operation Superposition() : Result {
mutable state = Zero;
using (qubit = Qubit()) {
H(qubit);
@yasgun
yasgun / Driver.cs
Created April 12, 2020 14:18
Q# HelloWorld Driver Code
using System.Threading.Tasks;
using Microsoft.Quantum.Simulation.Simulators;
namespace HelloWorld
{
class Driver
{
static async Task Main(string[] args)
{
using var qsim = new QuantumSimulator();
@yasgun
yasgun / Program.qs
Created April 12, 2020 14:15
Q# HelloWorld Code
namespace HelloWorld {
open Microsoft.Quantum.Canon;
open Microsoft.Quantum.Intrinsic;
operation HelloQ() : Unit {
Message("Hello quantum world!");
}
}

Keybase proof

I hereby claim:

To claim this, I am signing this object: