Skip to Content
Quantum Computing Explained
book

Quantum Computing Explained

by David McMahon
December 2007
Intermediate to advanced
332 pages
7h 28m
English
Wiley-IEEE Press
Content preview from Quantum Computing Explained

8

QUANTUM GATES ANDCIRCUITS

In a classical computer, at the most fundamental level there are two basic tasks that we can use when manipulating information. We can move it from one place to another, or we can do some type of basic processing on the information using a logic gate. Sets of logic gates can be connected together to construct digital circuits. In this chapter we will be introduced to the equivalent notions of logic gates and circuits in a quantum computer. We begin with a brief overview of classical logic gates.

CLASSICAL LOGIC GATES

The basic purpose of a logic gate is to manipulate or process information at the bit level in some way. A simple example is the NOT gate. The NOT gate is a single input gate. As its name implies, the NOT gate simply flips or inverts the value of the input bit. That is, if the input to the gate is a 0, the output is a 1, and if the input is a 1, the output is a 0. We can write down the action of the NOT gate schematically as

image

In more complicated situations we will need a more systematic way to write down the action of a gate. This is done using a truth table, which is a table that lists the inputs together with the corresponding outputs of the gate. For a NOT gate, this is very easy to do. We write the values of the single input bit on the left side of the table and the corresponding outputs on the right:

Now we will consider more complicated ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Quantum Computing

Quantum Computing

Nihal Mehta
Quantum Computing For Dummies

Quantum Computing For Dummies

whurley, Floyd Earl Smith

Publisher Resources

ISBN: 9780470096994Purchase book