Function quantum::algorithms::deutsch::deutsch_gate
[−]
[src]
pub fn deutsch_gate(f: fn(i32) -> i32) -> Gate
Takes |a, b> to |a, b+f(a)>
f must be a function from {0, 1} to {0, 1}