We can represent the effect of the oracle as

$$U_f |x\rangle = (-1)^{1-x} |x\rangle = (-1) \cdot (-1)^x |x\rangle$$

This effect can be achieved as a combination of two oracles we've seen earlier, for functions $f(x) = 1$ and $f(x) = x$, applied consecutively.

@[solution]({
    "id": "deutsch_algo__one_minus_x_oracle_solution",
    "codePath": "./Solution.qs"
})
