Logic Expressions to Quantum Circuit

So far, we’ve talked about quantum gates operating one at a time for the most part. Now, we’re ready to put our knowledge of them to use by seeing how quantum gates can represent logic equations, a crucial first step to ultimately searching for a valid solution to them.

To keep things simple, we’ll work with just the logic equations for slotting the talk show hosts, Kimmel and Maher, at the Bellagio, described in Writing a System of Boolean Logic Expressions. Since we’ll be using quantum bits to model the binary variables, we use images/_pragprog/svg-33.png and , instead of k and m, to express the logic expression, namely:

and ...

Get Quantum Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.