Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
QuantumHGateWithOutReset
operation HGateWithOutReset (initial: Result) : (Result)
{
body
{
mutable res = Zero;
using (qubits = Qubit[2])
{
let qubit1 = qubits[0];
let qubit2 = qubits[1];
H(qubit1);
set res = M(qubit1);
}
return (res);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment