Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created December 19, 2017 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/84a5cce67e20d71b1ad752aee9da7c4b to your computer and use it in GitHub Desktop.
Save elbruno/84a5cce67e20d71b1ad752aee9da7c4b to your computer and use it in GitHub Desktop.
QuantumDevKitHgateUsingMResetZSample
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