Marek Perkowski Reversible Logic Models: Billiard Ball and Optical Lecture 4.

Slides:



Advertisements
Similar presentations
Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Advertisements

Part 4: combinational devices
Hadi Hosseini CS 6805 Logic Synthesis Faculty of Computer Science Spring 2009.
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Reversible Gates in various realization technologies
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Logical Design.
Combinational Circuits
Chapter 2 Logic Circuits.
1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design.
ECE 331 – Digital System Design
A Transformation Based Algorithm for Reversible Logic Synthesis D. Michael Miller Dmitri Maslov Gerhard W. Dueck Design Automation Conference, 2003.
Marek Perkowski Reversible Logic Synthesis with Garbage Bits Lecture 6.
Derivatives of Perkowski’s Gate k f2 g h t t De Vos gates  f1f1  A B P Q Feynman gates A B P f 2f 2  C Q R Toffoli gates Q P f 2 A C R B S D 0.
This lecture is not mandatory for all students. It should be studied only by those students who selected the reversible logic as a topic of homework or.
Reversible Circuit Synthesis Vivek Shende & Aditya Prasad.
Synthesis of Reversible Synchronous Counters Mozammel H. A. Khan East West University, Bangladesh Marek Perkowski Portland State University,
Chapter 4 Gates and Circuits.
Lecture of Norm Margolus. Physical Worlds Some regular spatial systems: –1. Programmable gate arrays at the atomic scale –2. Fundamental finite-state.
April 25, A Constructive Group Theory based Algorithm for Reversible Logic Synthesis.
CK Cheng Tuesday 10/2/02 CS 140 Lecture 2. Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely.
Regular Structures. Levelized Structures Standard Lattice Diagrams for continuous, multiple-valued and binary logic.
Quantum Computing Joseph Stelmach.
Introduction to Quantum Logic 2002/10/08 Tuesday Jung-wook Kim.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Minimization Techniques for Reversible Logic Synthesis.
Propositional Calculus Math Foundations of Computer Science.
Logic Gates Combinational Circuits
XOR, XNOR, and Binary Adders
Decoders and Multiplexers Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Classical Versus Quantum. Goal: Fast, low-cost implementation of useful algorithms using standard components (gates) and design techniques Classical Logic.
Chapter 4 Gates and Circuits.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Chapter 4 Gates and Circuits.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
CPS120: Introduction to Computer Science
REVERSIBLE LOGIC SYNTHESIS. Overview of the Presentation 1. Introduction 2. Design of a Reversible Full-adder Circuit.
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
Combinational Logic By Taweesak Reungpeerakul
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Copyright © 2004 by Miguel A. Marin1 COMBINATIONAL CIRCUIT SYNTHESIS CLASSIC TWO-LEVEL CIRCUIT SYNTHESIS MULTILEVEL-CIRCUIT SYNTHESIS FACTORIZATION DECOMPOSITION.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
1 A Novel Synthesis Algorithm for Reversible Circuits Mehdi Saeedi, Mehdi Sedighi*, Morteza Saheb Zamani {msaeedi, msedighi, aut.ac.ir.
Design of an 8-bit Carry-Skip Adder Using Reversible Gates Vinothini Velusamy, Advisor: Prof. Xingguo Xiong Department of Electrical Engineering, University.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Physics of Computing and the Promise and Limitations of Quantum Computing Charles H. Bennett IBM Research Yorktown Santa Cruz, 24 Oct 2005.
A brief introduction to Quantum computer
LOGIC GATES & BOOLEAN ALGEBRA
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
Introduction to Quantum Computing
Designing Combinational Logic Circuits
A General Decomposition for Reversible Logic M. Perkowski, L. Jozwiak#, P. Kerntopf+, A. Mishchenko, A. Al-Rabadi, A. A. Buller*, X. Song, M.
Online Testable Fault Tolerant Full Adder in Reversible Logic Synthesis Sajib Kumar Mitra MS/ Department of Computer Science and Engineering University.
WORKING PRINCIPLE OF DIGITAL LOGIC
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
A Synthesis Method for MVL Reversible Logic by 1 Department of Computer Science, University of Victoria, Canada M. Miller 1, G. Dueck 2, and D. Maslov.
Very good news for People who know Reed-Muller Logic 1.Quantum XOR 1.Quantum XOR is the most important gate in Quantum Logic 2.Synthesis of Quantum Circuits.
Logic Gates and Boolean Algebra
PORTLAND QUANTUM LOGIC GROUP.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Week 7: Gates and Circuits: PART II
Number Systems and Circuits for Addition
Logic Gates.
Presentation transcript:

Marek Perkowski Reversible Logic Models: Billiard Ball and Optical Lecture 4

Reversible and Quantum Logic Fundamentals from the Logic Synthesis Point of View

Review: Atom-scale computation: What will be the difficulties when we will try to build classical computers (Turing machines) on the atomic scale? One of the toughest problems to scale down computers is the dissipated heat that is difficult to remove. by heat dissipation were studied for many years (Landauer, 1961).Physical limitations placed on computation by heat dissipation were studied for many years (Landauer, 1961).

Plot showing the number of dopant impurities involved in logic with bipolar transistors with year. –(Copyright 1988 by International Business Machines Corporation) R. W. Keyes, IBM J. Res. Develop. 32, 24 (1988). Computing at the atomic scale: a survey made by Keyes in 1988

Information loss = energy loss The loss of information is associated with laws of physics requiring that one bit of information lost dissipates k T ln 2 of energy, –where k is Boltzmann’ constant –and T is the temperature of the system. Interest in reversible computation arises from the desire to reduce heat dissipation, thereby allowing: –higher densities –speed R. Landauer, R. Landauer, “Fundamental Physical Limitations of the Computational Process”, Ann. N.Y. Acad.Sci, 426, 162(1985).

When will IT happen? k T ln 2 Power for switching one bit Logarithmic scale Related to information loss Assuming Moore Law works In our lifetime

Information is Physical Charles Bennett, 1973: There are no unavoidable energy consumption requirements per step in a computer. Power dissipation of reversible circuit, under ideal physical circumstances, is zero. Tomasso Toffoli, 1980: There exists a reversible gate which could play a role of a universal gate for reversible circuits. ABCABC A Reversible and universal B C  AB

Reversible computation: Landauer/Bennett: almost all operations required in computation could be performed in a reversible manner, thus dissipating no heat! The first condition for any deterministic device to be reversible is that its input and output be uniquely retrievable from each other. –This is called logical reversibility. The second condition: a device can actually run backwards - then it is called physically reversible – and the second law of thermodynamics guarantees that it dissipates no heat. Billiard Ball Model

Reversible logic Reversible are circuits (gates) that have one- to-one mapping between vectors of inputs and outputs; thus the vector of input states can be always reconstructed from the vector of output states INPUTS OUTPUTS 2 42 4 3  6 4  2 5  3 6  5 (2,4)(365)

Reversible logic and Reversible are circuits (gates) that have the same number of inputs and outputs and have one-to- one mapping between vectors of inputs and outputs; thus the vector of input states can be always reconstructed from the vector of output states INPUTS OUTPUTS Feedback not allowed Fan-out not allowed 2 42 4 3  6 4  2 5  3 6  5 (2,4)(365)

Reversible logic constraints Feedback not allowed in combinational part Fan-out not allowed In some papers allowed under certain conditions In some papers allowed in a limited way in a “near reversible” circuit

Observations Every reversible gate can be described by a permutation. Every reversible circuit can be described by a permutation. Synthesis of a reversible circuit can be considered as decomposition of a permutation to a sequence of elementary permutations. Group theory has been successfully used for designing cascades of reversible gates.

To understand reversible logic, it is useful to have intuitive feeling of various models of its realization. Our examples will illustrate reversible gates, conservative gates and synthesis principles

Conservative Reversible Gates

Definitions A gate with k inputs and k outputs is called a k*k gate. A conservative circuit preserves the number of logic values in all combinations. In balanced binary logic the circuit has half of minterms with value 1.

Conservative circuit = the same number of ones in inputs and outputs Examples of balanced functions = half of Kmap are ones variablexor3 Shannon Daviomajorityxor2

Billiard Ball Model DEFLECTION SHIFT DELAY This is described in E. Fredkin and T. Toffoli, “Conservative Logic”, Int. J.Theor. Phys. 21,219 (1982).

Billiard Ball Model (BBM) Inputoutput A B A and B A B B and NOT A A and NOT B This is called Interaction Gate conservative This illustrates principle of conservation (of the number of balls, or energy) in conservative logic.

Interaction gate Inputoutput A B z1 z2 z3 z Z1= A and B A B Z4 = A and B Z2 = B and NOT A Z3 = A and NOT B A B Z1= A and B Z2 = B and NOT A Z3 = A and NOT B Z4 = A and B

Inverse Interaction gate outputinput A B z1 z2 z3 z Z1= A and B A B Z4 = A and B Z2 = B and NOT A Z3 = A and NOT B Other input combinations not allowed z1 z3 z2 z4 A B Designing with this types of gates is difficult Only disjoint inputs are OR-ed

Billiard Ball Model (BBM) Inputoutput A B z1 z2 z A B 2 3 Z1 = NOT A * B Z2 = A * B Z3 = A switch

Switch Gate Inputoutput A B z1 z2 z A B 2 3 Z1 = NOT A * B Z2 = A * B Z3 = A A B

Inverse Switch Gate outputinput A B z1 z2 z z1 A B z2 z3 Z3 Z1 A B Z2

Inverter and Copier Gates from Switch Gate Z1 = NOT A * 1 garbage A 1 V2 = B * 1 V3 = B B 1 Garbage outputs shown in green Inverter realized with two garbages Copier realized with one garbage Input constants

When A = 0 then Q = B, when A = 1 then Q =  B. Every linear reversible function can be built by composing only 2*2 Feynman gates and inverters fan-out gate.Copying gateWith B=0 Feynman gate is used as a fan-out gate. (Copying gate) Feynman Gate + AB P Q + A0 + A1 AA A  A

Feynman Gate from Switch Gates Z1 = NOT A * B Z2 = A * B Z3 = A A B V1 = NOT B * A V2 = B * A V3 = B B A B ABAB Fan-out > 1 Garbage Garbage outputs Z2 and V2 shown in green

Fredkin Gate reversible and quantum computing –Fredkin Gate is a fundamental concept in reversible and quantum computing. –Every Boolean function can be build from 3 * 3 Fredkin gates: P = A, Q = if A then C else B, R = if A then B else C.

Notation for Fredkin Gates A 0101 CB PQR A 01 P BC QR A circuit from two multiplexers Its schemata This is a reversible gate, one of many C AC’+B BC’+AC C A B

Yet Another Useful Notation for Fredkin Gate In this gate the input signals P and Q are routed to the same or exchanged output ports depending on the value of control signal C Fredkin Gate Inverse Fredkin Gate P C CP+C’Q C’P+CQ C Q P C CP+C’Q C’P+CQ C Q Fredkin gate is conservative and it is its own inverse

Operation of the Fredkin gate A0BA0B AB1AB1 A01A01 CABCAB C AC’+BC BC’+AC A AB A A+B A A A’ 0AB0AB 1AB1AB 0AB0AB 1BA1BA

A 4-input Fredkin gate XABCXABC 0ABC0ABC AB01AB01 1ABC1ABC X AX’+CX BX’+AX CX’+BX 0ABC0ABC 1CAB1CAB A A+B AB A’

Fredkin Gate from Switch Gates Q C P C  CP+CQ CP+  CQ CP  CP CQ  CQ

Another Illustration of Conservative Property of a Circuit

Operation of a circuit from Switch Gates Q=0 C P=1 C=1  CP+CQ CP+  CQ CP  CP CQ  CQ Red signals are value 1 Two red on inputs and outputs One red on inputs and outputs Conservative property

Minimal Full Adder using Interaction Gates C AB A’B AB’ AB A B A’B AB’ AB Carry 0 Sum A  B Garbage signals shown in green 3 garbage bits B (A+B)C AB+AXC +BXC

Reversible logic: Garbage A k*k circuit without constants on inputs which includes only reversible gates realizes on all outputs only balanced functions. Therefore, k1 * k1 circuit can realize non- balanced functions only with garbage outputs.

Switch Gate In this gate the input signal P is routed to one of two output ports depending on the value of control signal C Switch Gate Inverse Switch Gate P C CP C’P C P C CP C’P C

Minimal Full Adder Using Switch Gates A B AB A’B B carry C sum Garbage signals shown in green 7 garbage bits

Minimal Full Adder Using Fredkin Gates In this gate the input signals P and Q are routed to the same or exchanged output ports depending on the value of control signal C C A B carry 1 0 sum 3 garbage bits

Fredkin Gate from Interaction Gates P Q C C CP+  CQ  CP+ CQ PQ  PQ PQ C  PQ

Swap gate from three Feynman Gates Thus every non-planar function can be converted to planar function

Fredkin Gate from Interaction Gates P Q C C CP+  CQ  CP+ CQ PQ C  PQ To verify conservative property signal ON is shown in red

Fredkin Gate from Interaction Gates P Q C C CP+  CQ  CP+ CQ To verify conservative property signal ON is shown in red

Fredkin Gate from Interaction Gates P Q C C CP+  CQ  CP+ CQ To verify conservative property signal ON is shown in red

Concluding on the Billiard Ball Model The Interaction and Switch Gates are reversible and conservative, but have various numbers of inputs and outputs Their inverse gates required to be given only some input combinations Logic Synthesis methodsLogic Synthesis methods can be developed on the level of k*k gates such as Fredkin and Toffoli (quantum) Logic synthesis methods can be developed on level of simpler gates such as Interaction gate and Switch gate that have direct counterparts in physical processes.

Concluding on the Billiard Ball Model INVERTER, FREDKIN and FEYNMAN gates can be created from Billiard Ball Model. Billiard Ball ModelThere is a close link of Billiard Ball Model and quantum gates and other physical models on micro level Many ways to realize universal (for instance – optical) gates, completely or partially reversible but conservative