Created
January 18, 2020 08:35
-
-
Save moinuddin14/d7010a747d20706b8b5cfe05d13eaf7a 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
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