Before diving into the fascinating realm of quantum logic, mastering the fundamentals of classical logic and traditional logic gates is essential.
Logic gates are the foundational building blocks of digital electronics and modern computing. They manipulate binary signals—units of information represented by bits that take one of two distinct values: “0” (false, low, off) or “1” (true, high, on).
Throughout this blog, we will express all circuits in matrix form. So, we might as well get comfortable with this concept right from the start.
We define the logical states as: \[
\text{ZERO} = \begin{bmatrix} 1 & 0 \end{bmatrix}
\]
and \[
\text{ONE} = \begin{bmatrix} 0 & 1 \end{bmatrix}
\]
Logical Gates
Basic logic gates are the elementary building blocks of any digital system. These gates are: NOT, AND, OR, NAND, NOR, XOR, and XNOR. Each gate exhibits a specific behavior, formally defined by a truth table that maps its inputs to its output.
The NOT Gate (Inverter)
The NOT gate is the simplest of all logic gates. It takes a single input and returns its inverse.
Symbol :
Code
# Print in LaTex formatmerge.to_katex(row_labels=['a','b','c','d'])