Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits...

66
Tutorial Tutorial

Transcript of Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits...

Page 1: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

TutorialTutorial

Page 2: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Qubits and Qubits and Quantum Quantum RegistersRegisters

Page 3: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Bits and Quantum Logic

• Classical bits are either 0 or 1either 0 or 1 Quantum bits “qubits” are in linear superpositionlinear superposition

of | 0> and | 1> Quantum logic “gates” process (i.e. entangle) qubits

Manipulate linear superpositions of states

Interfere states with other states

Computation is completely reversible (no information lost), barring measurements and decoherence All quantum logic gates are reversible

Page 4: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

A Qubit

• A quantum-mechanical gate is strange.

• The strangeness goes to the very root of the quantum-computational process, to the bits themselves, which to emphasize their unconventional nature are sometimes called qubits.qubits.

• This is not to say that the qubit has some intermediate value between 0 and 1.

• Rather, the qubit is in both the 0 state and the 1 state at the same time, to varying extents.

• When the state of the qubit is eventually observed or When the state of the qubit is eventually observed or measured, it is invariably either 0 or 1.measured, it is invariably either 0 or 1.

Page 5: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

A Qubit

• If the cat was dead(zero state) it will always be regarded as such because Quantum Theory does not bring things back to life.

• If the cat was alive (one state) then it will remain that way until it is put back into the box and the device is restarted and you then return to the superposition of states and the cat is both alive and dead.

Page 6: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Qubits and Quantum RegistersQubits and Quantum Registers

Page 7: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Superposition and Quantum ParallelismQuantum Superposition and Quantum Parallelism

• Linear superposition of coexisting possibilities in the quantum world

Measurements “collapse” possibilities

Measurement of quantum system yields state | A> with probability |cA|2 and state | B> with probability |cB|2

Page 8: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Parallel ProcessingQuantum Parallel Processing

Page 9: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

•Why is this Why is this practicallypractically important?important?

•Qualitatively different computation!

•Different computational complexity

•More efficient use of physical resources

•…

Page 10: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Wave of probability

• Uncertainty is described mathematically by a wave of probability which expands to fill the space of all possible states

• When the box with Schroedinger’s cat is opened this wave of probability collapses into one single state

Page 11: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• After the box is opened, the cat cannot be returned to its original state.

• The cat in the box before it has been opened is our qubit, having both states, dead and alive.

Page 12: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Elementary Elementary Quantum Quantum Notation Notation

Page 13: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Elementary quantum notation:• A simple quantum system is the two-level spin-1/2 particle.

• Its basis states, spin-down |> and spin-up | > , may be relabelled to

represent binary zero and one, i.e., |0> and |1 > , respectively.

• The state of a single such particle (qubit) is described by the wavefunction

= |0> + |1 > .

and are amplitudes of probability .

• The squares of the complex coefficients ||2 and | |2 represent the probabilities for finding the particle in the corresponding states.

The amplitude associated with a state determines the probability that the qubit will be found in that state.

Page 14: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum States

• Quantum states and their superpositions are represented by means of a notational device called a ket, written "| >.”

• In general the amplitudes are complex numbers (with both a real and an imaginary part)– but in some examples considered here will be

confined to positive and negative real numbers.

Page 15: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Elementary quantum notation:

• The dimensionality of the Hilbert spaceHilbert space grows exponentially with k.

• In some very real sense quantum computations make use of this enormous size latent in even the smallest systems.

• Generalizing this to a set of k spin- 1/2 particles we find that there are now 2 k basis states (quantum mechanical vectors that

span a Hilbert space) corresponding say to the 2 k possible bit-strings of length k.

• For example, |25> = |11001> = | | is one such state for k=5.

Page 16: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Gates are Reversible • In designing gates for a quantum computer, certain constraints

must be satisfied.

• In particular, the matrix of transition amplitudes must be unitary, which implies, roughly speaking, that it conserves probability:

• The sum of the probabilities of all possible outcomes must be exactly 1.

• A consequence of this requirement is that any quantum computing operation must be reversible:

– You must be able to take the results of an operation and put them back through the machine in the opposite direction to recover the original inputs.

• Reversible gates must have the same number of inputs and the same number of inputs and outputs.outputs.

Page 17: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum gates and circuits

• Changes occurring to a quantum state vector can be modeled using a quantum circuit.•It is composed of wires and elementary gates, much as normal electronic circuits are used to describe electrical and mechanical systems. • We describe a basic set of quantum gates.basic set of quantum gates.

Page 18: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

single qubit transformationssingle qubit transformations• Mathematically, single qubit transformations are

described by SU(2) matrices. • A continuous range of rotations is possible in

principle.• But, for quantum computation, only finitely many

rotation angles are necessary. • It has been shown that a single rotation of nearly any

angle is sufficient to allow efficient generation of an arbitrary qubit rotation angle to a precision good enough for the known quantum algorithms to work.

Page 19: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Most General Quantum Gate for

single qubit

Page 20: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• Start with a single quantum bit.

• We represent the states and (i.e. , and ) as the vectors and , respectively.

• Then the most general unitary transformation corresponds to a matrix of the form

where we typically take [14].

14 A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin and H. Weinfurter, ``Elementary gates for quantum computation,'' submitted to Phys. Rev. A 1995.

Logic gates for quantum bits:

Page 21: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Logic gates for quantum bits:

)2/cos()2/sin(

)2/sin()2/cos(

U = =

)90cos()90sin(

)90sin()90cos(

01

10U = U =

Page 22: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Logic gates for quantum bits:

01

10

0

1

1

0=

01

10

1

0=

0

1

Page 23: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• Schematic of the quantum circuit diagram for a one-bit gate.

• The line represents a single quantum bit – (such as a spin-1/2 particle).

• Initially, this bit has a state described by |A> ; after it has ``passed'' through this circuit it comes out in the state U|A> .

Page 24: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• Using this operator we can flip bits via:

•The extraneous sign represents a phase factor that does not affect the logical operation of the gates and may be removed if we wish, now or at a later stage.

•Such one-bit computations are illustrated schematically as a quantum circuit in Figure.

D. P. DiVincenzo, Phys. Rev. A 51, 1015 (1995).

Logic gates for quantum bits:

Page 25: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

More Single-Qubit

Quantum Gates

Page 26: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

1.1 Single bit gates1.1 Single bit gates• Consider the class of single bit gates. Classically, the only non-trivial

member of this class is the not gate, whose operation is defined by its truth table, in which 0 --> 1 and 1 --> 0.

Figure 1: Single bit and qubit logic gates.

Page 27: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

qubit not gate• Qubit not gate is defined by its unitary operator

where ( much like a classical truth table ) the two columns refer to the inputs ( | 0> and | 1 > ) and the two rows the outputs.

• The transform must be unitary to preserve the norm of the state.

• The interesting thing is that there are many additional non-trivial single qubit gates.

(1)

Page 28: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Phase shift gate• Another unitary operator

• Important one is the phase shift

(2)

which leaves | 0 > alone, and only flips the only flips the phase of phase of | | 1 1 > > to give -|1>to give -|1>

Page 29: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

the Hadamard gatethe Hadamard gate

(3)

• This gate is also known as the “square-root of not " gate.• Its action can be visualized as being similar to rotating the qubit sphere about the ^ y axis by 90o

• This shows how a definite state like |1> can be transformed by H into the superposition state

[|0> - |1>] / (2) which gives 0 or 1 with equal probability when measured along the computational basis.

Page 30: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Square Root of NOTSquare Root of NOTUseful concept, a cubit sphere

Page 31: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

infinitely many single qubit gates

• All of which can be generated from All of which can be generated from rotationrotations,s,

(4)

(5)

and phase shifts,

Page 32: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Logic GatesQuantum Logic Gates

Page 33: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum NetworksQuantum Networks

Page 34: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Quantum InterferenceInterference

Quantum Quantum SuperpositionSuperposition

Page 35: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Gates: Not, Quantum Coin Flip

quantum coin flip

coin flip

Page 36: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum Interference

Page 37: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

The “Square Root of NOT”The “Square Root of NOT”

• Random bit if measured after one pass NOT operation if measured after second pass Has no classical analog

Page 38: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• There is something decidedly counterintuitive about these results.

• Passing a signal through one QCF gate randomizes it, yet putting two QCF gates in a row yields a deterministic result.

• It is as if we had invented a machine that first scrambles eggs and then unscrambles them.

• There is no analogue of this machine in the more familiar world of classical physics.

The square root of NOT.

Page 39: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Most important Most important Quantum Gates Quantum Gates

and their and their MatricesMatrices

Page 40: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Other 1*1 unitary gates (quantum)

HHadamard

11

11

2

1

Pauli-X X

01

10

Pauli-Y Y

0

0

i

i

ZPauli-Z

10

01

Classical inverter

Page 41: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Other 1*1 unitary gates (quantum)

Sphase

/8 T

ei 4/

0

01

i0

01

Page 42: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

we may represent the XOR gate as a unitary operator

•To see how such unitary operators may be constructed from a few elementary ones we must also consider the XOR gate.

•Writing the two-particle basis states as the vectors

Page 43: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

2*2 unitary gates

Controlled-Not (Feynman)

swap

0100

1000

0010

0001

1000

0010

0100

0001

These are counterparts of standard logic because all entries in arrays are 0,1

Page 44: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

2*2 unitary gates

Controlled-Z

1000

0100

0010

0001Z

Another symbol

S

i000

0100

0010

0001

Controlled-phase

These are truly quantum logic gates

because not all entries in arrays are 0,1

Page 45: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

3*3 unitary gates

Toffoli

01

10

00

00

00

00

00

0000

00

10

01

00

00

00

0000

00

00

00

10

01

00

0000

00

00

00

00

00

10

01

This is a counterpart of standard logic because all entries in arrays are 0,1

Page 46: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

3*3 unitary gates

Fredkin

10

00

00

10

00

00

00

0001

00

00

01

00

00

00

0000

00

00

00

10

01

00

0000

00

00

00

00

00

10

01

This is a counterpart of standard logic because all entries in arrays are 0,1

This is one more notation for Fredkin that some papers use

a b c

a b c

Page 47: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Very Good NewsVery Good News• Fortunately, the Toffoli gate may be

constructed by two-particle scattering processes alone.

D. P. DiVincenzo, Phys. Rev. A 51, 1015 (1995). D. Deutsch, Proc. Roy. Soc. Lond. A 425, 73 (1989). A. Barenco, D. Deutsch and A. Ekert, Phys. Rev. Lett. 74, 4083 (1995). T. Sleator and H. Weinfurter, Phys. Rev. Lett. 74, 4087 (1995). D. Deutsch, A. Barenco and A. Ekert, Proc. Roy. Soc. Lond. A 449, 669 (1995). S. Lloyd, ``Almost any quantum logic gate is universal,'' Los Alamos National Laboratory preprint.

In particular, we show a construction here involving the XOR gate and some one-bit gates.

Page 48: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Quantum CircuitsQuantum Circuits• We shall find it useful to use quantum circuits

as natural extensions of classical circuits.

• Quantum Circuits consist of quantum gates interconnected without fanout or feedback , by quantum wires.

• Each wire represents the path of a single qubit (in time or space, forward from left to right).

• It is described by a state in a two-dimensional Hilbert space with basis |0> and |1>.

Page 49: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Multiple bit gates: Multiple bit gates: main resultmain result• The key observation here is the following:

Theorem 1.1 : Any multiple qubit logic gate may be composed from cnot and single qubit gates.

This is one of the most striking resultsmost striking results about quantum logic gates, since there exists no universal two-bit reversible classical logic gate.

Page 50: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Implementation of the Toffoli gate

UV V† V

V is any unitary operator satisfying V2 = U

The special case V = (1- i) (I + iX)/2 corresponds to the Toffoli gate

V2 = X

Page 51: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Implementation of the Toffoli gate using Hadamard, phase, Feynman and /8 gates

TH T† T† T H

T

T† T† S

equivalent

phase

Hadamard

Feynman /8

Page 52: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Concluding on Quantum Logic Model• The inverter and Feynman gates can be realized with

Mach-Zender interferometer• Every QuantumEvery Quantum (unitary) function can be realized with

Feynman gates and 1*1 gates.• Every 3*3 unitary gateEvery 3*3 unitary gate can be realized with 6 gates; 2

Feynman gates and 4 1*1 gates• Every 3*3 classical logic reversible gateEvery 3*3 classical logic reversible gate can be realized

with 5 1*1 and 2*2 Feynman gates.

Page 53: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

• Quantum XOR is sufficient for all logic operations on a quantum computer

• Quantum XOR can be used to construct arbitrary unitary transformations on any finite set of bits.

• Quantum gates have the same number of inputs and outputs.

• they are not necessarily conservative.

• They are reversible.

A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin and H. Weinfurter, ``Elementary gates for quantum computation,'' submitted to Phys. Rev. A 1995.

Page 54: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

•Is quantum logic Is quantum logic possible?possible?

•When?When?

Page 55: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

NSF seeks reliable quantum chip process NSF seeks reliable quantum chip process

By R. Colin Johnson By R. Colin Johnson EE Times EE Times

(07/04/01, 11:30 a.m. EST) (07/04/01, 11:30 a.m. EST)

COLUMBUS, Ohio

— University researchers are aiming to craft a chip-manufacturing technology that can serve any of the diverse approaches to quantum computer architectures now being proposed.

The $1.6 million, four-year effort, undertaken for the National Science Foundation (NSF), hopes to come up with a quantum-chip-making process that is repeatable, reliable and attains good yields with room-temperature operation.

Page 56: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

"We want to achieve a manufacturable process that "We want to achieve a manufacturable process that will work with any one of the quantum-computing will work with any one of the quantum-computing architectures being proposed today," said project architectures being proposed today," said project leader Paul R. Berger, an associate professor of leader Paul R. Berger, an associate professor of electrical engineering at Ohio State University. electrical engineering at Ohio State University.

The effort will be undertaken with the assistance of The effort will be undertaken with the assistance of the University of Illinois at Urbana-Champaign, the University of Illinois at Urbana-Champaign, the University of Notre Dame, the University of the University of Notre Dame, the University of California at Riverside, and the Naval and Air California at Riverside, and the Naval and Air Force Research Laboratories. Force Research Laboratories.

Page 57: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

NSF's Nanoscale Science & NSF's Nanoscale Science & Engineering Program amasses Engineering Program amasses nearly $500 million in research nearly $500 million in research grants in various grants in various nanotechnology areas, including nanotechnology areas, including both nanoscale device and both nanoscale device and system architectures. system architectures.

Page 58: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Very good news for Reed-Muller People

• Quantum XORQuantum XOR is the most important gate in Quantum Logic

• Synthesis of Quantum Circuits will require methods that are close to spectral and RM-based.

• New Logic Synthesis is neededNew Logic Synthesis is needed

Page 59: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Research areas Research areas in reversible in reversible

logiclogic

Page 60: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Types of reversible logic

reversiblereversible

conservative

The same number of inputs and outputs

Toffoli

Kerntopf

FredkinMargolus

Feynman

inverter

Double rail inverter

Priese switch

Interaction

Sasao/Kinoshita gates

Bubble memoryBubble memory

Page 61: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Types of reversible logic

reversiblereversible

conservative

The same number of inputs and outputs

Toffoli

Kerntopf

FredkinMargolus

Feynman

inverter

Double rail inverter

PrieseInteraction

Sasao/Kinoshita gates

Page 62: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Types of reversible logic

reversiblereversible

conservative

The same number of inputs and outputs

Toffoli

Kerntopf

FredkinMargolus

Feynman

inverter

Double rail inverter

PrieseInteraction

Sasao/Kinoshita gates

quantum

Page 63: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Types of reversible logic

reversiblereversible

conservative

The same number of inputs and outputs

Toffoli

Kerntopf

FredkinMargolus

Feynman

inverter

Double rail inverter

PrieseInteraction

Sasao/Kinoshita gates

optical

Page 64: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

ConclusionsConclusions• In both classical reversible k*k logic and

quantum logic, analysis of the circuit is based on composing unitary matrices.

• Synthesis of a circuit is based on decomposing a unitary matrix to elementary quantum gates.

• Good news is that it is enough to use quantum XOR as the only 2*2 gate and some 1*1 gates.

• Standard ways of decomposing 1*1 gates exists

• Quantum logic is linear, methods of Linearly Independent Logic can be used

Page 65: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

Very little has been published

Sasao and KinoshitaSasao and Kinoshita - Cascade circuits - - Cascade circuits - small garbage , high delaysmall garbage , high delayPicton Picton - binary and multiple-valued PLAs, - binary and multiple-valued PLAs, high garbage, high delay, high gate costhigh garbage, high delay, high gate cost

General characteristic of logic synthesis General characteristic of logic synthesis methods for reversible logicmethods for reversible logic

Toffoli, Fredkin, Margolus Toffoli, Fredkin, Margolus - - examples of good circuits, no systematic methodsexamples of good circuits, no systematic methods

De Vos, Kerntopf De Vos, Kerntopf - new gates and their properties, - new gates and their properties, no systematic methodsno systematic methods

Knight, Frank, De Vieira, Athas, Svenson Knight, Frank, De Vieira, Athas, Svenson - circuit design, - circuit design, no systematic methodsno systematic methods

JJoonho Lim, Dong-Gyu Kim and Soo-Ik Chaeoonho Lim, Dong-Gyu Kim and Soo-Ik ChaeSchool of Electrical Engineering, Seoul National UniversitySchool of Electrical Engineering, Seoul National University- circuit - circuit design, design, no systematic methodsno systematic methods

•We introduce regular structures to realize arbitrary functions.

Page 66: Tutorial. Qubits and Quantum Registers Quantum Bits and Quantum Logic either 0 or 1Classical bits are either 0 or 1 linear superposition  Quantum bits.

What to remember?What to remember?1. Analysis of quantum circuits based on Unitary matrices.

2. Permutative matrices versus Unitary matrices

3. Types of quantum gates.

4. Areas of research in permutative and quantum (non-permutative) circuits.

5. Superposition

6. Basics of Bloch sphere.

7. Realization of Toffoli gate using only 2*2 and 1*1 qubit gates.

8. How to create a permutative matrix from truth table

9. How to create a permutative matrix directly from a circuit.