
Learn Quantum Computing with Python and IBM Quantum
By :

This section will serve as a refresher for classical logic gates such as AND, OR, NOR, and so on. If you are familiar with this subject, you can either skim through it to refresh your memory or skip it entirely and jump to the next section. Otherwise, let’s get logical!
Logic gates are defined as a device, electronic or otherwise, that implements a logical (usually Boolean) operation. Single-bit and two-bit gates have one or two inputs, respectively. Each input bit value is a state value of either 0 or 1. The operation carried out on the input varies by the type of gate. Each gate operation is usually described using logic truth tables, as illustrated in the following table:
Gate |
Operation |
Input A B |
Output Y |
Graphical Representation ... |