Scratch

Denote the function that is listed as f(x).

|ψ0⟩=|0⟩|1⟩|ψ1⟩=H|0⟩⊗H|1⟩=(12(|0⟩+|1⟩))⊗(12(|0⟩−|1⟩))=12(|00⟩−|01⟩+|10⟩−|11⟩)

For the oracle stage, we pass through |x⟩=12(|0⟩+|1⟩). For |y⟩=12(|0⟩−|1⟩) it becomes:

|y⊕f(x)⟩=12(|0⟩−|1⟩)⊕|f(x)⟩=12(|0⊕f(x)⟩−|1⊕f(x)⟩)=12(|f(x)⟩−|1⊕f(x)⟩)=12(|1⟩−|0⟩)=12(−|0⟩+|1⟩)|ψ2⟩=12(|0⟩+|1⟩)⊗12(−|0⟩+|1⟩)=12(−|00⟩+|01⟩−|10⟩+|11⟩)

Last step:

|ψ3⟩=H12(|0⟩+|1⟩)⊗12(−|0⟩+|1⟩)=|0⟩⊗12(−|0⟩+|1⟩)=12(−|00⟩+|01⟩)

Then measure and you always get |0⟩ thus the function is a constant function.