Chapter 5: Architecture - Computer and Information Science - CUNY
Chapter 5: Architecture - Computer and Information Science - CUNY
Chapter 5: Architecture - Computer and Information Science - CUNY
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
22 CHAPTER 5. ARCHITECTURE<br />
|x〉<br />
|x〉<br />
• •<br />
(5.61)<br />
|y〉<br />
• •<br />
|y〉<br />
|0〉<br />
• <br />
|0〉<br />
|z〉<br />
•<br />
|z〉<br />
|w〉<br />
<br />
|w ⊕ (x ∧ y ∧ z)〉<br />
One reason why the Toffoli gate is interesting is that it is universal. In<br />
other words, with copies of the Toffoli gate, you can make any logical gate. In<br />
particular, you can make a reversible computer using only Toffoli gates. Such a<br />
computer would, in theory, neither use any energy nor give off any heat.<br />
In order to see that the Toffoli gate is universal, we shall show that you can<br />
make the AND <strong>and</strong> the NOT gate with it. The AND gate is obtained by setting<br />
the bottom z input to |0〉. The bottom output will then be |x ∧ y〉.<br />
|x〉<br />
•<br />
|x〉<br />
(5.62)<br />
|y〉<br />
•<br />
|y〉<br />
|0〉<br />
<br />
|x ∧ y〉<br />
The NOT gate is obtained by setting the top two inputs to |1〉. The bottom