Created
December 19, 2017 03:29
-
-
Save elbruno/84a5cce67e20d71b1ad752aee9da7c4b to your computer and use it in GitHub Desktop.
QuantumDevKitHgateUsingMResetZSample
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
operation HGateUsingMResetZ (initial: Result) : (Result) | |
{ | |
body | |
{ | |
mutable res = Zero; | |
using (qubits = Qubit[1]) | |
{ | |
let qubit = qubits[0]; | |
H(qubit); | |
set res = MResetZ(qubit); | |
} | |
return (res); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment