Reversible Logic Gates
Ordinarily, in a classical computer, the logic gates other than the NOT gate are not reversible. Thus, for instance, for an AND gate one cannot recover the two input bits from the output bit; for example, if the output bit is 0, we cannot tell from this whether the input bits are 0,1 or 1,0 or 0,0. However, it is instructive to observe that reversible gates in classical computers are theoretically possible for input strings of any length; moreover, these are actually of practical interest, since they do not increase entropy. A reversible gate is a reversible function on n-bit data that returns n-bit data, where an n-bit datum is a string of bits x1,x2, ...,xn of length n. The set of n-bit data is the space {0,1}n, which consists of 2n strings of 0's and 1's. More precisely,
- An n-bit reversible gate is a bijective mapping f from the set {0,1}n of n-bit data onto itself.
An example of such a reversible gate f is a mapping that changes the first digit of each string.
We are only interested in maps f which are different from the identity, and for reasons of practical engineering we are only interested in gates for small values of n, e.g. n=1, n=2 or n=3. These gates can be easily described by tables. Examples of these logic gates which have been studied are the controlled NOT gate (also called CNOT gate), the Toffoli gate and the Fredkin gate.
To consider quantum gates, we first need to specify the quantum replacement of an n-bit datum.
The quantized version of classical n-bit space {0,1}n is
Using Dirac ket notation, if x1,x2, ...,xn is a classical bit string, then
is a special n-qubit corresponding to the function which maps this classical bit string to 1 and maps all other bit strings to 0; these 2n special n-qubits are called computational basis states. All n-qubits are complex linear combinations of these computational basis states.
For a quantum computer gate, we require a very special kind of reversible function, namely a unitary mapping, that is, a mapping on HQB(n) that preserves the inner product.
- An n-qubit (reversible) quantum gate is a unitary mapping U from the space HQB(n) of n-qubits onto itself.
Again we are only interested in unitary operators U which are different from the identity and we are only interested in gates for small values of n. In fact, reversible classical n-bit logic gates give rise to reversible n-bit quantum gates as follows: to each reversible n-bit logic gate f corresponds a quantum gate Wf defined as follows:
Note that Wf permutes the computational basis states. Of particular importance is the quantized 2 qubit CNOT gate WCNOT. Of course there are many other properly quantum gates. For example, a relative phase shift is a 1 qubit gate given by multiplication by the unitary matrix:
so
Read more about this topic: Quantum Circuit
Famous quotes containing the words logic and/or gates:
“...some sort of false logic has crept into our schools, for the people whom I have seen doing housework or cooking know nothing of botany or chemistry, and the people who know botany and chemistry do not cook or sweep. The conclusion seems to be, if one knows chemistry she must not cook or do housework.”
—Ellen Henrietta Swallow Richards (18421911)
“We set this nation up ... to vindicate the rights of man. We did not name any differences between one race and another. We opened our gates to all the world and said: Let all men who want to be free come to us and they will be welcome.”
—Woodrow Wilson (18561924)