logo

Exclusive Disjuction, XOR Gate

Exclusive Disjuction, XOR Gate

양자정보이론
[ 펼치기 · 접기 ]

Definition1

The following Boolean function is referred to as a XOR\text{XOR} gate or exclusive disjunction and is denoted as follows:

:{0,1}2{0,1} \oplus : \left\{ 0, 1 \right\}^{2} \to \left\{ 0, 1 \right\}

00=0,01=1,10=1,11=0 0\oplus 0 = 0,\quad 0\oplus 1 = 1,\quad 1\oplus 0 = 1,\quad 1\oplus 1 = 0

Explanation

The XOR\text{XOR} gate returns true when only one of the two truth values is true, i.e., when the number of true values is odd. In other words, it returns 00 if the two values are the same and 11 if they are different, making it useful for implementing a function to compare if two values are the same.

The period between 1974 and 1980, marked by the critique that “Perceptrons cannot solve the XOR\text{XOR} problem,” leading to a stagnation in AI development, is referred to as the AI winter.

부울 함수기호진리표
XOR\text{XOR}
aabbaba \oplus b
000000
001111
110011
111100

Properties

  • This can be expressed with NOT\text{NOT} gate, AND\text{AND} gate, and OR\text{OR} gate.

    ab=(a¬b)(¬ab)=(ab)(¬a¬b)=(ab)¬(ab) \begin{align*} a \oplus b &= (a \land \lnot b) \lor (\lnot a \land b) \\ &= (a \lor b) \land (\lnot a \lor \lnot b) \\ &= (a \lor b) \land \lnot (a \land b) \end{align*}

  • a1=¬aa \oplus 1 = \lnot a is valid.

  • a0=aa \oplus 0 = a is valid.


  1. Kim Young-hoon·Heo Jae-seong, Quantum Information Theory (2020), p85 ↩︎