Implementing Function Evaluation with Simple Quantum Gates
Learn how to implement function evaluation with simple quantum gates.
This section is not directly needed for what follows, but we think it will help you realize that the function box could be constructed directly from just a few of the quantum gates we described earlier.
In the second function circuit, the lower register state is subject to a controlled- () gate, drawn as a controlled gate, with the upper register state acting as the control state. In that case, if the upper register state is , then the lower register state output is the same as the lower register state input. If the upper register state is , the lower register state is “flipped.” For example, becomes . That set of operations is just what is needed to implement function from
Get hands-on with 1400+ tech skills courses.