💼 Case: lets define a function Boolean function $f: \{ 0,1 \} \to \{ 0,1\}$ which takes and outputs bits


We can generalise this to $n$ bits of input

🗒️ Note: bared line with $n$ means $n$ lines

image.png

💎 Conclusion: again all the $2^n$ values of $f$ are computed in one step

However extracting useful information in the collapse here is complicated

Deutsch’s algorithm

Here we consider our previous $U_f$


1️⃣ Setup:


2️⃣ Algorithm: