Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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