Skip to content

Instantly share code, notes, and snippets.

@moinuddin14
Created January 18, 2020 08:35
Show Gist options
  • Save moinuddin14/d7010a747d20706b8b5cfe05d13eaf7a to your computer and use it in GitHub Desktop.
Save moinuddin14/d7010a747d20706b8b5cfe05d13eaf7a to your computer and use it in GitHub Desktop.
namespace quantum_console_demo
{
open Microsoft.Quantum.Canon;
open Microsoft.Quantum.Intrinsic;
operation HelloQ () : Unit {
Message("Hello quantum world!");
mutable zeroCount = 0;
mutable oneCount = 0;
using(qubits = Qubit[1])
{
let r = M(qubits[0]);
Message($"Before {r} ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment