[−][src]Function quantum2::algorithms::deutsch::deutsch_gate
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}
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}