105 32 98MB
English Pages 1054 Year 2024
Multiple-Valued Computing in Quantum Molecular Biology This book focuses on the design methodologies of various quantum circuits, DNA circuits, DNA-quantum circuits and quantum-DNA circuits. It considers the merits and challenges of multi-valued logic circuits in quantum, DNA, quantum-DNA and DNA-quantum computing. Multiple-Valued Computing in Quantum Molecular Biology: Arithmetic and Combinational Circuits is Volume 1 of a two-volume set. From fundamentals to advanced levels, this book discusses different multiple-valued logic DNA-quantum and quantum-DNA circuits. The text consists of four parts. Part I introduces multiple-valued quantum computing and DNA computing. It contains the basic understandings of multiple-valued quantum computing, multiple-valued DNA computing, multiple-valued quantum-DNA computing and multiple-valued DNA-quantum computing. Part II examines heat calculation, speed calculation, heat transfer, data conversion and data management in multi-valued quantum, DNA, quantum-DNA and DNA-quantum computing. Part III discusses multiple-valued logic operations in quantum and DNA computing such as ternary AND, NAND, OR, NOR, XOR, XNOR and multiple-valued arithmetic operations such as adder, multiplier, divider and more. Quantum-DNA and DNA-quantum multiple-valued arithmetic operations are also explained in this section. Part IV explains multiple-valued quantum and DNA combinational circuits such as multiple-valued DNA-quantum and quantum-DNA multiplexer, demultiplexer, encoder and decoder. This book will be of great help to researchers and students in quantum computing, DNA computing, quantum-DNA computing and DNA-quantum computing researchers.
Multiple-Valued Computing in Quantum Molecular Biology Arithmetic and Combinational Circuits, Volume 1
Hafiz Md. Hasan Babu
First edition published 2024 by CRC Press 6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742 and by CRC Press 4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN CRC Press is an imprint of Taylor & Francis Group, LLC © 2024 Hafiz Md. Hasan Babu Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, access www.copyright. com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works that are not available on CCC please contact [email protected] Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for identification and explanation without intent to infringe. Library of Congress Control Number: 2023942121 ISBN: 978-1-032-46486-2 (hbk) ISBN: 978-1-032-46491-6 (pbk) ISBN: 978-1-003-38193-8 (ebk) DOI: 10.1201/9781003381938 Typeset in Nimbus Roman by KnowledgeWorks Global Ltd.
To my respected great parents and also to my lovely wife, daughter, and son, who made it possible to write this book
Contents
Author
xix
Preface
xxi
Acknowledgments Acronyms Introduction
I
Multiple-Valued Quantum and DNA Computing
Overview 1
2
xxiii xxv xxvii
1 3
Multiple-Valued Quantum Computing 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Quantum Physics and Quantum Computing . . . . . . . . . . . . 1.2.1 Applications of Quantum Physics . . . . . . . . . . . . . 1.3 What is Quantum Computing? . . . . . . . . . . . . . . . . . . . 1.3.1 Quantum Computing Properties . . . . . . . . . . . . . . 1.3.2 How Does Quantum Computer Work? . . . . . . . . . . . 1.4 Multiple-Valued Logic . . . . . . . . . . . . . . . . . . . . . . . . 1.4.1 History of Multiple-Valued Logic . . . . . . . . . . . . . 1.4.2 Advantages of Multiple-Valued Quantum Computing over Binary Logic . . . . . . . . . . . . . . . . . . . . . . . . 1.5 Ternary Logic in Quantum Computing . . . . . . . . . . . . . . . 1.5.1 Quantum Ternary Fundamental Logic Operations . . . . . 1.6 Applications of Multiple-Valued Quantum Computing . . . . . . . 1.7 Demerits of Multiple-Valued Quantum Computing . . . . . . . . . 1.7.1 Challenges in Multiple-Valued Quantum Computing . . . 1.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 5 6 9 10 12 14 16 16
Multiple-Valued DNA Computing 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 What is DNA Computing? . . . . . . . . . . . . . . . . . . . . . 2.2.1 History of DNA Computing . . . . . . . . . . . . . . . .
27 27 27 28
17 19 20 20 22 23 24 25
vii
viii
Contents 2.3
Some Related Terminologies . . . . . . . . . . . . . . . . . . 2.3.1 Molecular Biology . . . . . . . . . . . . . . . . . . . 2.3.2 DNase Enzyme . . . . . . . . . . . . . . . . . . . . . 2.3.3 Fluorescence Detection . . . . . . . . . . . . . . . . . 2.4 How Does a DNA Computing Work? . . . . . . . . . . . . . . 2.4.1 DNA Computing for Binary Logic System . . . . . . . 2.5 Multiple-Valued DNA Computing . . . . . . . . . . . . . . . 2.5.1 How Can Multiple-Valued Operations Be Performed DNA Computing? . . . . . . . . . . . . . . . . . . . . 2.6 Advantages of Multiple-Valued DNA Computing . . . . . . . 2.7 Limitations of Multiple-Valued DNA Computing . . . . . . . 2.8 Applications of Multiple-Valued DNA Computing . . . . . . . 2.9 Challenges in Multiple-Valued DNA Computing . . . . . . . 2.10 Motivations toward Multiple-Valued DNA Computing . . . . 2.11 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4
. . . . . . . . . . . . . . in . . . . . . . . . . . . . . . .
29 29 30 31 33 34 35
Multiple-Valued Quantum-DNA Computing 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Quantum Mechanics and Quantum Molecular Biology . . . . . . 3.2.1 Why Quantum Molecular Biology Is an Important Field? . 3.3 Relationship between Multi-Valued and Two-Valued Quantum and DNA Computing . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Multiple-Valued Quantum-DNA Computing: A New Computing Approach . . . . . . . . . . . . . . . . . . . . 3.3.2 Data Conversion Circuits to Convert Qutrits to DNA Base Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Intermediatory System to Control Quantum-DNA Data Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 Heat Transfer Circuit . . . . . . . . . . . . . . . . . . . . 3.4 Advantages of Multiple-Valued Quantum-DNA Computing . . . . 3.5 Disadvantages of Multiple-Valued Quantum-DNA Computing . . 3.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
45 45 46 48
Multiple-Valued DNA-Quantum Computing 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Relationship between Multi-Valued DNA Computing and MultiValued Quantum Computing with Two-Valued DNA Computing and Quantum Computing . . . . . . . . . . . . . . . . . . . . . . 4.3 Multiple-Valued DNA-Quantum Computing . . . . . . . . . . . . 4.3.1 General Organization of Multiple-Valued DNA-Quantum Computing . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Difference between Multiple-Valued Quantum-DNA and DNAQuantum Computing . . . . . . . . . . . . . . . . . . . . . . . .
57 57
36 38 39 40 41 42 43 43
48 49 50 52 53 53 54 55 55
57 58 59 60
ix
Contents 4.5 Advantages of Multiple-Valued DNA-Quantum Computing . . . . 4.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
II
Heat Measurement, Heat Transfer, Speed Calculation, Data Conversion, and Data Management in Multiple-Valued Quantum and DNA Computing
63
Overview 5
6
Heat Calculation 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Basic Definitions for Heat Calculation in Quantum Circuit 5.3 Heat Calculation in Multiple-Valued Quantum Circuit . . 5.3.1 Quantum Multi-Valued Half Adder . . . . . . . . 5.3.2 Quantum Multi-Valued Half Subtractor . . . . . 5.3.3 Quantum Multi-Valued 3-to-1 Multiplexer . . . . 5.4 Basic Definitions for Heat Calculation in DNA Circuit . . 5.5 Heat Calculation in Multi-Valued DNA Circuit . . . . . 5.5.1 DNA Multi-Valued Decoder . . . . . . . . . . . 5.5.2 DNA Multi-Valued 3-to-1 Multiplexer . . . . . . 5.6 Heat Calculation in Multi-Valued Quantum-DNA Circuit 5.6.1 Multi-Valued Quantum-DNA Half Adder . . . . 5.7 Heat Calculation in Multi-Valued DNA-Quantum Circuit 5.7.1 Multi-Valued DNA-Quantum Half Subtractor . . 5.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . .
60 62 62
65
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
67 67 67 69 70 71 72 73 76 76 78 80 80 83 84 87 87
Speed Calculation 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Speed Calculation for a Quantum Operation . . . . . . . . 6.3 Speed Calculation in Multi-Valued Quantum Circuit . . . . 6.3.1 Quantum Multi-Valued 3-to-1 Multiplexer . . . . . 6.3.2 Quantum Multi-Valued Half Adder . . . . . . . . . 6.3.3 Quantum Multi-Valued Half Subtractor . . . . . . 6.4 Speed Calculation for DNA Operation . . . . . . . . . . . 6.5 Speed Calculation in Multi-Valued DNA Circuit . . . . . . 6.5.1 DNA Multi-Valued Decoder . . . . . . . . . . . . 6.5.2 DNA Multi-Valued 3-to-1 Multiplexer . . . . . . . 6.6 Speed Calculation in Multi-Valued Quantum-DNA Circuit . 6.6.1 Multi-Valued Half Adder at 0-Kelvin . . . . . . . . 6.6.2 Multi-Valued Half Subtractor at 0-Kelvin . . . . . 6.6.3 Multi-Valued Multiplexer at 0-Kelvin . . . . . . . 6.7 Speed Calculation in Multi-Valued DNA-Quantum Circuit . 6.7.1 Multi-Valued Half Subtractor at room temperature .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
89 89 89 90 97 99 101 102 103 104 105 107 107 109 111 114 114
x
Contents 6.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
7
8
9
Heat Transfer 7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Heat Transfer in Multiple-Valued Quantum-DNA Circuits . . . . . 7.2.1 Heat Transfer in Multi-Valued Quantum-DNA Full Subtractor (Difference) . . . . . . . . . . . . . . . . . . . 7.2.2 Heat Transfer in Multi-Valued Quantum-DNA Half Adder 7.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
119 119 121
Data Conversion 8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Data Conversion in Multiple-Valued Quantum-DNA Circuits 8.2.1 NMR Relaxation at Room Temperature . . . . . . . 8.3 Data Conversion in Multiple-Valued DNA-Quantum Circuits 8.3.1 Quadrupole Ion Trap . . . . . . . . . . . . . . . . . 8.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
129 129 130 131 133 134 140 140
. . . . . . .
. . . . . . .
. . . . . . .
Data Management 9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 Data Management in Quantum-DNA Circuits . . . . . . . . . . . 9.2.1 Construction of an Intermediary System to Control Quantum-DNA Data Flow . . . . . . . . . . . . . . . . . 9.2.2 Multiple-Valued Quantum-DNA Half Adder . . . . . . . . 9.3 Data Management in DNA-Quantum Circuits . . . . . . . . . . . 9.3.1 Construction of an Intermediary System to Control DNAQuantum Data Flow . . . . . . . . . . . . . . . . . . . . . 9.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
121 124 126 126
143 143 144 145 147 149 150 156 156
III Multiple-Valued Arithmetic Circuits in Quantum Molecular Biology
159
Overview
161
10 Multiple-Valued Logic Operations in Quantum Computing 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . 10.2 Quantum Ternary Logic . . . . . . . . . . . . . . . . . 10.2.1 Why Ternary Logic in Quantum Computing? . 10.3 Quantum Fundamental Gates in Multi-Valued Logic . . 10.3.1 Quantum Ternary Shift Gates . . . . . . . . . . 10.3.2 Quantum Ternary C2 NOT Gate . . . . . . . . 10.4 Quantum Multi-Valued Basic Logic Operations . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
163 163 163 164 164 165 167 168
xi
Contents 10.4.1 Ternary Quantum-AND Operation . 10.4.2 Ternary Quantum-NAND Operation 10.4.3 Ternary Quantum-OR Operation . . 10.4.4 Ternary Quantum-NOR Operation . 10.4.5 Ternary Quantum XOR Operation . 10.4.6 Ternary Quantum XNOR Operation 10.5 Summary . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
169 171 173 174 175 179 181 181
11 Multiple-Valued Quantum Arithmetic Operations 183 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 11.2 Multiple-Valued Quantum Half-Adder . . . . . . . . . . . . . . . 184 11.2.1 The Architecture of Quantum Ternary Half-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 184 11.2.2 Working Principles of Quantum Ternary Half-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 185 11.3 Multiple-Valued Quantum Full-Adder . . . . . . . . . . . . . . . 189 11.3.1 The Circuit Architecture of Quantum Ternary Full-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 190 11.3.2 Working Principles of Quantum Ternary Full-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 191 11.4 Multiple-Valued Quantum Half-Subtractor . . . . . . . . . . . . . 191 11.4.1 The Circuit Architecture of Quantum Ternary HalfSubtractor Operation . . . . . . . . . . . . . . . . . . . . 194 11.4.2 Working Principles of Quantum Ternary Half-Subtractor Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 196 11.5 Multiple-Valued Quantum Full-Subtractor Operation . . . . . . . . 199 11.5.1 The Circuit Architecture of Quantum Ternary FullSubtractor Operation . . . . . . . . . . . . . . . . . . . . 199 11.5.2 Working Principles of Quantum Ternary Full-Subtractor Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 203 11.6 Multiple-Valued Quantum Parallel Adder . . . . . . . . . . . . . . 203 11.6.1 General Organizations of Multiple-Valued Quantum Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . 204 11.6.2 Circuit Architecture of Quantum Multiple-Valued Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 11.6.3 The Working Principles of Quantum Multiple-Valued Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . 204 11.7 Multiple-Valued Quantum Carry-Lookahead Adder . . . . . . . . 206 11.7.1 General Organizations of Quantum Ternary Carry-Lookahead Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 11.7.2 The Architecture of Quantum Ternary Carry-Lookahead Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 11.7.3 The Working Principles of Quantum Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . . 207
xii
Contents 11.8 Multiple-Valued Quantum Carry-Skip Adder . . . . . . . . . . . . 11.8.1 How Does Quantum Ternary Carry-Skip Adder Work? . . 11.8.2 The General Architecture of Quantum Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.8.3 The Working Principles of Quantum Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.9 Multiple-Valued Quantum Multiplier . . . . . . . . . . . . . . . . 11.9.1 How Does the Quantum Ternary Multiplier Work? . . . . 11.9.2 The Architecture of the Quantum Ternary 2 × 2 Multiplier 11.9.3 The Working Procedure of the Quantum Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . 11.10 Multiple-Valued Quantum Divider . . . . . . . . . . . . . . . . . 11.10.1 How Does the Quantum Ternary Divider Work? . . . . . . 11.10.2 Circuit Architecture of the Quantum Ternary Divider . . . 11.10.3 The Working Procedures of the Quantum Ternary Divider . 11.11 Multiple-Valued Quantum Comparator . . . . . . . . . . . . . . . 11.11.1 Circuit Architecture of Multiple-Valued Quantum Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 11.11.2 Working Principle Multiple-Valued Quantum Comparator . 11.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12 Multiple-Valued Logic Operations in DNA Computing 12.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2 How Can Multiple-Valued Operations be Performed in DNA Computing? . . . . . . . . . . . . . . . . . . . . . . . . . . 12.3 Performing Fundamental Operations in Ternary Logic in DNA Computing . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.3.1 Ternary DNA-NOT Operation . . . . . . . . . . . . 12.3.2 Ternary DNA-AND Operation . . . . . . . . . . . . 12.3.3 Ternary DNA NAND Operation . . . . . . . . . . . 12.3.4 Ternary DNA-OR Operation . . . . . . . . . . . . . 12.3.5 Ternary DNA-NOR Operation . . . . . . . . . . . . 12.3.6 Ternary DNA-XOR Operation . . . . . . . . . . . . 12.3.7 Ternary DNA XNOR Operation . . . . . . . . . . . 12.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Multiple-Valued Arithmetic Operations in DNA Computing 13.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2 Multi-Valued DNA Half-Adder . . . . . . . . . . . . . . . . 13.2.1 The Circuit Architecture of DNA Ternary Half-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . 13.2.2 Working Principles of Quantum Ternary Half-Adder Operation . . . . . . . . . . . . . . . . . . . . . . .
210 210 211 212 214 214 215 218 220 220 226 226 228 230 230 232 233
235 . . . 235 . . . 235 . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
236 236 238 240 241 243 245 247 248 248
249 . . . 249 . . . 250 . . . 250 . . . 252
Contents 13.3 Multi-Valued DNA Full-Adder . . . . . . . . . . . . . . . . . . . 13.3.1 The Architecture of DNA Ternary Full-Adder Operation . 13.3.2 Working Principles of Quantum Ternary Full-Adder Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 13.4 Ternary DNA Half-Subtractor Operation . . . . . . . . . . . . . . 13.4.1 Circuit Architecture of DNA Ternary Half-Subtractor Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 13.4.2 Working Principles of DNA Ternary Half-Subtractor Operation . . . . . . . . . . . . . . . . . . . . . . . . . . 13.5 Multiple-Valued DNA Full Subtractor . . . . . . . . . . . . . . . 13.5.1 Circuit Architecture of Multiple-Valued DNA Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 13.5.2 Working Principle of Multiple-Valued DNA Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 13.6 Multiple-Valued DNA Parallel Adder . . . . . . . . . . . . . . . . 13.6.1 General Organizations of DNA Multiple-Valued Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.6.2 The Architecture of DNA Multiple-valued Parallel Adder . 13.6.3 The Working Principles of DNA Multiple-Valued Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.7 Multiple-Valued DNA Carry-Lookahead Adder . . . . . . . . . . 13.7.1 General Organizations of DNA Ternary Carry-Lookahead Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.7.2 The Circuit Architecture of DNA Ternary Carry-Lookahead Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.7.3 The Working Principles of Quantum Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . . 13.8 Multi-Valued DNA Carry-Skip Adder . . . . . . . . . . . . . . . 13.8.1 The General Architecture of DNA Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.8.2 The Working Principles of DNA Ternary Carry-Skip Adder 13.9 Multi-Valued DNA Ternary Multiplier . . . . . . . . . . . . . . . 13.9.1 How Does The DNA Ternary Multiplier Work? . . . . . . 13.9.2 The Architecture of the DNA Ternary 2 × 2 Multiplier . . 13.9.3 The Working Procedure of the Quantum Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . 13.10 Multi-Valued DNA Divider . . . . . . . . . . . . . . . . . . . . . 13.10.1 The Construction of the DNA Ternary Divider . . . . . . . 13.11 Multiple-Valued DNA Comparator . . . . . . . . . . . . . . . . . 13.11.1 Circuit Architecture Multiple-Valued DNA Comparator . . 13.11.2 Working Principle Multiple-Valued DNA Comparator . . . 13.12 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii 255 256 259 259 260 262 265 268 269 269 271 272 273 274 274 276 276 280 282 282 284 284 285 287 290 291 292 294 294 297 297
xiv
Contents
14 Multiple-Valued Arithmetic Operations in Quantum-DNA Computing 14.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.2 Establishing Quantum-DNA Cross-Platform for the Ternary Logic System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.3 Multiple-Valued Quantum-DNA Half Adder . . . . . . . . . . . . 14.3.1 Multiple-Valued Quantum-DNA Half Adder . . . . . . . . 14.3.2 Working Principle of Multiple-Valued Quantum-DNA Half Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.4 Multiple-Valued Quantum-DNA Full Adder . . . . . . . . . . . . 14.4.1 Circuit Architecture of Multiple-Valued Quantum-DNA Full Adder . . . . . . . . . . . . . . . . . . . . . . . . . . 14.4.2 Working Principle of Multiple-Valued Quantum-DNA Full Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.5 Multiple-Valued Quantum-DNA Half Subtractor . . . . . . . . . . 14.5.1 Circuit Architecture Multiple-Valued Quantum-DNA Half Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 14.5.2 Working Principle of Multiple-Valued Quantum-DNA Half Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 14.6 Multiple-Valued Quantum-DNA Full Subtractor . . . . . . . . . . 14.6.1 Circuit Architecture of Multiple-Valued Quantum-DNA Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . 14.6.2 Working Principle of Multiple-Valued Quantum-DNA Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 14.7 Quantum-DNA Ternary Parallel Adder . . . . . . . . . . . . . . . 14.7.1 The Circuit Design of the Quantum-DNA Ternary Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.7.2 The Working Principles of Quantum-DNA Ternary Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.8 Quantum-DNA Ternary Carry-Lookahead Adder . . . . . . . . . . 14.8.1 The Circuit Architecture of Quantum-DNA Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . 14.8.2 The Working Principles of Quantum-DNA Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . 14.9 Quantum-DNA Ternary Carry-Skip Adder . . . . . . . . . . . . . 14.9.1 The General Organizations of Quantum-DNA Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . 14.9.2 The Circuit Architecture of Quantum-DNA Ternary CarrySkip Adder . . . . . . . . . . . . . . . . . . . . . . . . . 14.9.3 The Working Principles of Quantum-DNA Ternary CarrySkip Adder . . . . . . . . . . . . . . . . . . . . . . . . . 14.10 Quantum-DNA Ternary Multiplier . . . . . . . . . . . . . . . . . 14.10.1 The Circuit Architecture of the Quantum-DNA Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . 14.10.2 The Working Procedure of the Quantum-DNA Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . .
299 299 299 300 301 301 303 304 305 308 308 310 311 312 313 316 316 316 320 320 320 323 323 324 326 327 328 328
Contents 14.11 Quantum-DNA Ternary Divider . . . . . . . . . . . . . . . . . . . 14.11.1 The Construction of the Quantum-DNA Ternary Divider . 14.12 Multiple-Valued Quantum-DNA Comparator . . . . . . . . . . . . 14.12.1 Circuit Architecture of Multiple-Valued Quantum-DNA Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 14.12.2 Working Principle of Multiple-Valued Quantum-DNA Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 14.13 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Multiple-Valued Arithmetic Operations in DNA-Quantum Computing 15.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.2 Establishing DNA-Quantum Cross-Platform for the Multi-Valued Logic System . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.3 Multiple-Valued DNA-Quantum Half Adder . . . . . . . . . . . . 15.3.1 Circuit Architecture of Multiple-Valued DNA-Quantum Half Adder . . . . . . . . . . . . . . . . . . . . . . . . . 15.3.2 Working Principle of Multiple-Valued DNA-Quantum Half Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.4 Multiple-Valued DNA-Quantum Full Adder . . . . . . . . . . . . 15.4.1 Circuit Architecture of Multiple-Valued DNA-Quantum Full Adder . . . . . . . . . . . . . . . . . . . . . . . . . . 15.4.2 Working Principle of Multiple-Valued DNA-Quantum Full Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.5 Multiple-Valued DNA-Quantum Half Subtractor . . . . . . . . . . 15.5.1 Circuit Architecture of Multiple-Valued DNA-Quantum Half Subtractor . . . . . . . . . . . . . . . . . . . . . . . 15.5.2 Working Principle of Multiple-Valued DNA-Quantum Half Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 15.6 Multiple-Valued DNA-Quantum Full Subtractor . . . . . . . . . . 15.6.1 Architecture of Multiple-Valued DNA-Quantum Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 15.6.2 Working Principle of Multiple-Valued DNA-Quantum Full Subtractor . . . . . . . . . . . . . . . . . . . . . . . . . . 15.7 DNA-Quantum Ternary Parallel Adder . . . . . . . . . . . . . . . 15.7.1 The Architecture of Quantum-DNA Ternary Parallel Adder 15.7.2 The General Organizations of the DNA-Quantum Ternary Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . 15.7.3 The Circuit Design of the DNA-Quantum Ternary Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.7.4 The Working Principles of DNA-Quantum Ternary Parallel Adder . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.8 DNA-Quantum Ternary Carry-Lookahead Adder . . . . . . . . . . 15.8.1 The General Organizations of DNA-Quantum Ternary Carry-Lookahead Adder . . . . . . . . . . . . . . . . . .
xv 333 333 336 338 340 341 341 343 343 343 345 345 346 348 349 351 353 353 354 356 357 358 361 361 361 363 364 365 365
xvi
Contents 15.8.2 The Circuit Architecture of Quantum-DNA Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . . 15.8.3 The Working Principles of DNA-Quantum Ternary CarryLookahead Adder . . . . . . . . . . . . . . . . . . . . . . 15.9 DNA-Quantum Ternary Carry-Skip Adder . . . . . . . . . . . . . 15.9.1 The General Organizations of DNA-Quantum Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . . 15.9.2 The Circuit Architecture of the DNA-Quantum Ternary Carry-Skip Adder . . . . . . . . . . . . . . . . . . . . . . 15.9.3 The Working Principles of DNA-Quantum Ternary CarrySkip Adder . . . . . . . . . . . . . . . . . . . . . . . . . 15.10 DNA-Quantum Ternary Multiplier . . . . . . . . . . . . . . . . . 15.10.1 The Circuit Architecture of the DNA-Quantum Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . 15.10.2 The Working Procedure of the DNA-Quantum Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . . . 15.11 DNA-Quantum Ternary Divider . . . . . . . . . . . . . . . . . . . 15.11.1 The Construction of the DNA-Quantum Ternary 2 × 2 Multiplier . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.12 Multiple-Valued DNA-Quantum Comparator . . . . . . . . . . . . 15.12.1 Circuit Architecture of Multiple-Valued DNA-Quantum Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 15.12.2 Working Principle of Multiple-Valued DNA-Quantum Comparator . . . . . . . . . . . . . . . . . . . . . . . . . 15.13 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
365 368 368 368 369 372 372 372 376 378 378 379 379 381 384 385
IV Multiple-Valued Combinational Circuits in Quantum Molecular Biology
387
Overview
389
16 Multiple-Valued Quantum Combinational Circuits 16.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.2 Multiple-Valued Quantum Multiplexer . . . . . . . . . . . . . . . 16.2.1 Circuit Architecture of Multiple-Valued Quantum Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.2.2 Working Principle of Multiple-Valued Quantum Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.3 Multiple-Valued Quantum Demultiplexer . . . . . . . . . . . . . . 16.4 Circuit Architecture of Multiple-Valued Quantum Demultiplexer . 16.4.1 Working Principle of Multiple-Valued Quantum Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.5 Multiple-Valued Quantum Encoder . . . . . . . . . . . . . . . . . 16.5.1 Circuit Architecture of Multiple-Valued Quantum Encoder
391 391 391 396 398 399 401 401 406 407
Contents
xvii
16.5.2 Working Principle of Multiple-Valued Quantum Encoder . 16.6 Multiple-Valued Quantum Decoder . . . . . . . . . . . . . . . . . 16.6.1 Circuit Architecture of Multiple-Valued Quantum Decoder 16.6.2 Working Principle of Multiple-Valued Quantum Decoder . 16.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
408 410 411 412 416 417
17 Multiple-Valued DNA Combinational Circuits 17.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17.2 Multiple-Valued DNA Multiplexer . . . . . . . . . . . . . . . . . 17.2.1 Circuit Architecture of Multiple-Valued DNA Multiplexer 17.2.2 Working Principle of Multiple-Valued DNA Multiplexer . 17.3 Multiple-Valued DNA Demultiplexer . . . . . . . . . . . . . . . . 17.3.1 Circuit Architecture of Multiple-Valued DNA Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17.3.2 Working Principle of Multiple-Valued DNA Demultiplexer 17.4 Multiple-Valued DNA Encoder . . . . . . . . . . . . . . . . . . . 17.4.1 Circuit Architecture of Multiple-Valued DNA Encoder . . 17.4.2 Working Principle of Multiple-Valued DNA Encoder . . . 17.5 Multiple-Valued DNA Decoder . . . . . . . . . . . . . . . . . . . 17.5.1 Circuit Architecture of Multiple-Valued DNA Decoder . . 17.5.2 Working Principle of Multiple-Valued DNA Decoder . . . 17.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
419 419 419 421 422 426
18 Multiple-Valued Quantum-DNA Combinational Circuits 18.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.2 Multiple-Valued Quantum-DNA Multiplexer . . . . . . . . . . . . 18.2.1 Circuit Architecture of Multiple-Valued Quantum-DNA Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . 18.2.2 Working Principle of Multiple-Valued Quantum-DNA Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . 18.3 Multiple-Valued Quantum-DNA Demultiplexer . . . . . . . . . . 18.3.1 Circuit Architecture of Multiple-Valued Quantum-DNA Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . 18.3.2 Working Principle of Multiple-Valued Quantum-DNA Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . 18.4 Multiple-Valued Quantum-DNA Encoder . . . . . . . . . . . . . . 18.4.1 Circuit Architecture of Multiple-Valued Quantum-DNA Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.4.2 Working Principle of Multiple-Valued Quantum-DNA Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.5 Multiple-Valued Quantum-DNA Decoder . . . . . . . . . . . . . . 18.5.1 Circuit Architecture of Multiple-Valued Quantum-DNA Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . .
447 447 447
427 429 433 435 436 438 440 440 444 445
448 452 454 455 459 461 462 465 467 467
xviii
Contents
18.5.2 Working Principle of Multiple-Valued Quantum-DNA Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 471 18.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 19 Multiple-Valued DNA-Quantum Combinational Circuits 19.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.2 Multiple-Valued DNA-Quantum Multiplexer . . . . . . . . . . . . 19.2.1 Circuit Architecture of Multiple-Valued DNA-Quantum Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . 19.2.2 Working Principle of Multiple-Valued DNA-Quantum Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . 19.3 Multiple-Valued DNA-Quantum Demultiplexer . . . . . . . . . . 19.3.1 Circuit Architecture of Multiple-Valued DNA-Quantum Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . 19.3.2 Working Principle of Multiple-Valued DNA-Quantum Demultiplexer . . . . . . . . . . . . . . . . . . . . . . . . 19.3.3 Multiple-Valued DNA-Quantum Encoder . . . . . . . . . 19.3.4 Circuit Architecture of Multiple-Valued DNA-Quantum Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.5 Working Principle of Multiple-Valued DNA-Quantum Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.4 Multiple-Valued DNA-Quantum Decoder . . . . . . . . . . . . . . 19.4.1 Circuit Architecture of Multiple-Valued DNA-Quantum Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.4.2 Working Principle of Multiple-Valued DNA-Quantum Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
473 473 473
Final Remarks
499
Index
501
477 477 480 482 485 487 487 490 493 493 495 497 497
Author
Dr. Hafiz Md. Hasan Babu is currently working as a professor in the Department of Computer Science and Engineering, University of Dhaka, Bangladesh as well as Dean in the Faculty of Engineering and Technology of the University of Dhaka. In addition, at present, he is a member (part-time) of Bangladesh Accreditation Council, Ministry of Education of the Government of the People’s Republic of Bangladesh. He is also the Chairman of the Board of Directors at Dhaka Stock Exchange Limited, Bangladesh. Dr. Hasan Babu was Director of the Board of Directors of Bangladesh Submarine Cable Company Limited. He was the Chairman of the Department of Computer Science and Engineering at the University of Dhaka from 2003–2006 and Pro-Vice-Chancellor of the National University of Bangladesh from 2016–2020. He was also a professor and Founding Chairman of the Department of Robotics and Mechatronics Engineering, University of Dhaka. Dr. Hasan Babu obtained his PhD in electronics and computer science from Japan under the Japanese Government Scholarship and received his MSc in computer science and engineering from the Czech Republic under the Czech Government Scholarship. He also received the DAAD Research Fellowship from Germany. Dr. Hasan Babu was awarded the Dr. M.O. Ghani Memorial Gold Medal by the Bangladesh Academy of Sciences in 2017 for his excellent research in the progress of physical sciences in Bangladesh. In addition, he was awarded the University Grants Commission of Bangladesh (UGC) Gold Medal Award-2017 in the mathematics, statistics, and computer science categories for his research on quantum multiplier-accumulator devices. He is currently an associate editor of the research journal IET Computers and Digital Techniques published by the Institution of xix
xx
Author
Engineering and Technology of the United Kingdom. He was a member of the Prime Minister’s ICT Task Force in Bangladesh. Dr. Hasan Babu was also President of the Bangladesh Computer Society from 2017–2020. Presently, he is President of the International Internet Society, Bangladesh chapter. Professor Dr. Hafiz Babu has published more than 100 research papers. Three of his research papers have received the best research awards in international conferences. In addition, he has published the following four textbooks by three famous UK and US publishers for graduate and post-graduate students: 1. Hafiz Md. Hasan Babu, Quantum Computing: A Pathway to Quantum Logic Design, IOP (Institute of Physics) Publishing, 2020, Bristol, UK 2. Hafiz Md. Hasan Babu, Reversible and DNA Computing, Wiley Publishers, 2021, UK 3. Hafiz Md. Hasan Babu, VLSI Circuits and Embedded Systems, CRC Press/Taylor & Francis, 2022, USA 4. Md. Jahangir Alam, Guoqing Hu, Hafiz Md. Hasan Babu, and Huazhong Xu, Control Engineering Theory and Applications, CRC Press/Taylor & Francis, 2022, USA
Preface
Quantum computing is a type of computation that harnesses the collective properties of quantum states, such as superposition, interference, and entanglement, to perform calculations. The devices that perform quantum computations are known as quantum computers. Quantum computers have the potential to revolutionize computation by making certain types of classically intractable problems solvable. DNA (deoxyribonucleic acid) encodes biological organisms’ genetic information. It is constituted of polymer chains, which are commonly referred to as DNA strands. Nucleotides, or bases, are attached to a sugar phosphate “backbone” in each strand. The four DNA nucleotides are adenine, guanine, cytosine, and thymine, denoted as A, G, C, and T, respectively. Multiple-valued logic (MVL) is the non-binary-valued system in which more than two levels of information content are available, i.e., L>2. In modern technologies, the dual-level binary logic circuits are normally used. MVL, quantum computing, and DNA computing have caught the attention of researchers working with physics, biochemistry, molecular biology, and computer science. The high-speed computation capability has already proved that quantum computing is the fastest system to solve the computational problem. And the different approaches to bimolecular coding of DNA computing made the revolution in the modern world of computation. Though these computing techniques are completely different in nature and there are no similarities between them, the new concepts can be evolved from these two. This book introduces “multiple-valued quantum-DNA computing” and “multiple-valued DNA-quantum computing,” a noble combination of quantum physics and molecular biology, which is also called the quantum molecular biology for multiple-valued computation. This book, Multiple-Valued Computing in Quantum Molecular Biology, Volume 1 is divided into four parts. It starts with the basics of multiple-valued quantum computing, DNA computing, quantum-DNA computing, and DNA-quantum computing. Part 1 of this book considers the merits, demerits, challenges and motivations of MVL circuits in quantum, DNA, quantum-DNA, and DNA-quantum computings. Part 2 covers the heat calculation, speed calculation, heat transfer, data conversion, and data management in multi-valued quantum, DNA, quantum-DNA, and DNA-quantum computings. In Part 3, MVL operations are described in quantum and DNA computings, such as ternary AND, NAND, OR, NOR, XOR, XNOR, and multiple-valued arithmetic operations, such as adder, subtractor, multiplier, divider, and more, are described with their operational procedures and design architectures. At the end of this part, xxi
xxii
Preface
quantum-DNA and DNA-quantum multiple-valued arithmetic operations are also explained. Part 4 contains the details of multiple-valued quantum and DNA combinational circuits such as multiple-valued DNA-quantum and quantum-DNA multiplexer, demultiplexer, encoder, decoder, and more. This book is a great resource for the MVL, DNA, quantum-DNA, and DNAquantum computing researchers, students, and academicians. This is a novel approach to a book in this field. This book will quench the thirst of beginners to advanced-level readers.
Acknowledgments
I would like to express my sincerest gratitude and special appreciation to the various researchers in the field of multiple-valued computing in quantum molecular biology. The contents in this book have been compiled from a wide variety of research works, where the researchers are pioneers in their respective fields. All the research articles related to the contents are listed at the end of each chapter. I am grateful to my great parents and dear family members for their endless support. Most of all, I want to thank my lovely wife, Mrs. Sitara Roshan, sweet daughter, Ms. Fariha Tasnim, and sweet son, Md. Tahsin Hasan, for their invaluable cooperation so that I could complete this book. Finally, I am thankful to all of those, especially beloved students Nitish Biswas, Md. Tareq Hasan, and Rownak Borhan Himel, who have provided their immense support and valuable time to help me finish this book.
xxiii
Acronyms
AI ALU BP CLB CPU CU DNA DNase EMR ML MUX MVL NMR NTI PCR PROM PTI QIT RAM RF RNA STI TG XNOR XOR
artificial intelligence arithmetic logic unit block propagate configurable logic block central processing unit control unit deoxyribonucleic acid deoxyribounuclease electron magnetic resonance machine learning multiplexer multiple-valued logic nuclear magnetic resonance negative ternary inversion polymerase chain reaction programmable read-only memory positive ternary inversion quandrupole ion trap random access memory radio frequency ribonucleic acid standard ternary inversion Toffoli gate exclusive NOR exclusive OR
xxv
Introduction
Modern computers use binary logic in which everything is represented by the numbers, 0 and 1. Despite the fact that binary logic only has two logics: true or false, the logic gates can sometimes cause ambiguity and imprecision. To solve these issues, multi-valued logic is used, which allows switching between more than two states. Furthermore, multi-valued logic with an expanding number of distinct states allows for increased information densities. Quantum computing achieves tremendous processing power, low-energy consumption, and exponential speed above traditional computers by regulating the behavior of minuscule physical things such as atoms, electrons, photons, and other microscopic particles. With the advent of nanotechnology, quantum computing vibrates an incredibly immense role in developing more compact and less power-consuming computers. The quantum computer is a completely new notion from regular computing, and it does not employ binary logic. The DNA molecule’s properties help in the induction of quantum properties including superposition, tunneling, coherence, and entanglement. The collection of quantum component states in which a particle can exist in either a solo or mixed state is known as superposition. Quantum computing relies on quantum bits, sometimes called “qubits,” which may also denote either |0> or |1>. It’s intriguing that qubits can achieve a mixed state called superposition in which they can be both |1> and |0> at the same time. Think about this scenario: It’s just a piece of paper with a number on it. When a coin is tossed, it starts spinning randomly. It has a probability of being the head, tail, or both at the same time throughout rotation since it spins at random. The idea of superpositioning, which is important to quantum physics and quantum computing, is referred to as quantum coherence. Quantum coherence explores a scenario in which the wave property of an item is split in two and the two waves coherently interact with one another. Quantum coherence is based on the idea that everything has wave-like properties. It’s similar to quantum entanglement in that it involves two quantum particles sharing states rather than two quantum waves from a single particle. Entanglement is a concept that describes a relationship between two or more particles that interact in such a way that characterizing each particle independently is difficult. The study of the make-up, structure, and interactions of cellular molecules, such as proteins and nucleic acids, which carry out the biological processes necessary for a cell’s maintenance and function, is known as molecular biology. Multiplevalued computing in quantum molecular biology can be introduced to get the advantages of both multi-valued quantum and DNA computing. Multi-valued quantum molecular biology means multiple-valued quantum-DNA and multiple-valued DNAquantum computing; it can be obtained by merging multiple-valued quantum and xxvii
xxviii
Introduction
multiple-valued DNA computing and have the capacity to execute parallel operations, which is one of the finest advantages of classical multiple-valued computing. Multiple-valued quantum computing is quicker than traditional multiple-valued computing, but the data created by multiple-valued quantum processes must be stored. Furthermore, multiple-valued DNA has the potential to store a significant amount of data. As a result, multiple-valued quantum-DNA may be able to solve the data storage challenges of multiple-valued quantum computing. The advantage of multiplevalued quantum-DNA and DNA-quantum computing is a balanced system, which is rounding a number that is the same as truncating it.
Part I
Multiple-Valued Quantum and DNA Computing
Overview
The non-binary-valued system known as multiple-valued logic (MVL) allows for the availability of information content at levels greater than two. Dual-level binary logic circuits have typically been used in modern technologies. Multi-valued means ternary, quarternary, and more. Quantum computing is a field of study that focuses on the creation of computerbased technologies based on quantum-theoretical principles. On the quantum (atomic and subatomic) level, quantum theory describes the nature and behavior of energy and matter. To execute certain computational tasks, quantum computing employs a combination of qubits. All of this is done at a far higher rate than their traditional computing equipment. Quantum computers represent a significant advancement in computing capability, with enormous performance benefits for specific use cases. The ability of qubits to be in several states at the same time gives the quantum computer a lot of computing capability. They can accomplish jobs with a mix of | 1 >, | 0 >, and both | 1 > and | 0 > at the same time. So, quantum computing can be defined as an area of computing that is focused on the development of computer technology based on the principles of quantum theory. In addition, quantum computing is much faster than classical bit-wise classical computing. On the other hand, instead of using typical silicon chips, DNA computing uses biological molecules to do computations. The four-character genetic alphabets (Aadenine, G-guanine, C-cytosine, and T-thymine) are used in DNA computing instead of the binary alphabet (1 and 0) utilized by standard computers. This is possible due to the ability to create small DNA molecules with any arbitrary sequence. The input of any DNA operation can be represented by DNA molecules with specific sequences. The instructions are carried out by laboratory operations on the molecules, and the result is defined as some property of the final set of molecules. DNA computing promises significant linkages between computers and life systems, as well as massively parallel computations. DNA computing can carry out millions of operations at the same time. The advantages of quantum computing and DNA computing can be achieved by combining these two technologies. These two computing systems can be merged to form two new computing processes, which can be called quantum molecular biology. This quantum molecular biology consists of quantum-DNA computing and DNAquantum computing. It is already established that the combination of these two is beneficial for a two-valued system. So, it is possible to combine these two processes in a multiple-valued system also. This part will discuss multiple-valued quantum computing, multiple-valued DNA computing, multiple-valued quantum-DNA computing, and multiple-valued DNA-quantum computing. 3
1 Multiple-Valued Quantum Computing
1.1
Introduction
The ability of a quantum computer to solve traditional NP problems in polynomial time has drawn a lot of attention. Quantum computing originated from the ideas of classical information theory, computer science, mathematics, and quantum physics. Most of the data are uncertain in this world. Those data are presented in a classical computer system where the operations are treated in only two ways – on or off, or zero or one. This property of the classical binary-based system limits the overall performance while analyzing the uncertain world phenomena. However, this predicting game (0’s, and 1’s) changes completely, with quantum computers. In this quantum realm, the processing and storage of 1’s and 0’s of classical systems give way to qubits or quantum bits as the fundamental architecture block of quantum information, encountered as a two-state quantum-mechanical system. Quantum computers execute computations based on the likelihood of an object’s state before it is measured – instead of just 1’s or 0’s – which implies they have the potential to process exponentially more innumerable data compared to classical computers. Although numerous works have been accomplished in quantum computing systems over the years, they were mostly focused on binary logic systems (i.e. they perform computations with binary data). However, the usage of digital data is expanding at an exponential rate; therefore, the size of digital data is skyrocketing by the second. So data manipulation and maintenance become a tough row to hoe. In these circumstances, researchers suggest working with multiple-valued computing systems rather than binary systems because more data can be manipulated with less effort in a multiple-valued system. Designing with multiple-valued logic (MVL) has got a lot of attention in the previous three decades. MVL emerged as a separate study in the early 1920s, thanks to a Polish philosopher named Lukasiewicz. His goal was to add a third value to the binary system. The Lukasiewicz system is the result of this investigation. Emil Post, an American mathematician, invented multiple-valued algebra, sometimes known as post algebra, in response to this technique. The design of multi-valued logic gates, as well as the fundamental operations in quantum computing, is currently in high demand. In the context of quantum computing, this chapter will provide an overview of ternary logic (multiple-valued logic) in quantum computing.
DOI: 10.1201/9781003381938-1
5
6
Multiple-Valued Quantum Computing
FIGURE 1.1 Danish Physicist Niels Henrik David Bohr
1.2
Quantum Physics and Quantum Computing
The study of matter and energy at the most fundamental level is known as quantum physics. Its goal is to learn more about the properties and behaviors of nature’s fundamental building blocks. Put simply, it’s the physics that explains how everything works: the best description of the nature of the particles that make up matter and the forces with which they interact. Figure 1.1 shows the picture of the great Danish physicist Niels Henrik David Bohr. Quantum physics underlies how atoms work, and so why chemistry and biology work as they do. You, me, and the gatepost – at some level at least – all human are dancing to the quantum tune. If it needs to explain how electrons move through a computer chip, how photons of light get turned into electrical current in a solar panel or amplify themselves in a laser, or even just how the sun keeps burning, it’ll need to use quantum physics. In the late 1800s and early 1900s, a sequence of experimental findings of atoms that didn’t make intuitive sense in the context of classical physics spawned the discipline of quantum physics. The insight that matters and energy may be thought of as discrete packets, or quanta, with a minimum value associated with them was one of the most fundamental discoveries. Light with a set frequency, for example, will provide energy in quanta known as “photons.” At this frequency, each photon has the same amount of energy, and this energy cannot be divided into smaller pieces. The word “quantum” comes from Latin and means “how much.” Figure 1.2 shows
Quantum Physics and Quantum Computing
7
FIGURE 1.2 German Physicist Werner Heisenberg the picture of German physicist Werner Heisenberg who is a scientist of quantum mechanics. Quantum mechanics, the basic mathematical framework that underpins it all, was first developed in the 1920s by Niels Bohr, Werner Heisenberg, Erwin Schr¨odinger, as shown in Figure 1.3 and others. It characterizes simple things such as how the position or momentum of a single particle or group of few particles’ changes over time. But to understand how things work in the real world, quantum mechanics must be combined with other elements of physics – principally, Albert Einstein’s special theory of relativity, which explains what happens when things move very fast – to create quantum field theories. Figure 1.4 displays the photo of Albert Einstein. Knowledge of quantum principles transformed the conceptualization of the atom, which consists of a nucleus surrounded by electrons. Early models depicted electrons as particles that orbited the nucleus, much like the way satellites orbit Earth. Modern quantum physics instead understands electrons as being distributed within orbitals, mathematical descriptions that represent the probability of the electrons’ existence in more than one location within a given range at any given time. Electrons can jump from one orbital to another as they gain or lose energy, but they cannot be found between orbitals. Other central concepts that help to establish the foundations of quantum physics are – Wave-Particle duality, Superposition, Uncertainty principle, Entanglement, etc.
8
Multiple-Valued Quantum Computing
FIGURE 1.3 Austrian-Irish Physicist Erwin Schr¨odinger
FIGURE 1.4 German-Born Theoretical Physicist Albert Einstein
Quantum Physics and Quantum Computing
9
Quantum discoveries have been incorporated into foundational understanding of materials, chemistry, biology, and astronomy. These discoveries are a valuable resource for innovation, giving rise to devices such as lasers and transistors, and enabling real progress on technologies once considered purely speculative, such as quantum computers. Physicists are exploring the potential of quantum science to transform the view of gravity and its connection to space and time. Quantum science may even reveal how everything in the universe (or in multiple universes) is connected to everything else through higher dimensions that our senses cannot comprehend.
1.2.1
Applications of Quantum Physics
Any science concerned with systems that display noticeable quantum-mechanical effects, where waves have particle qualities and particles behave like waves, is referred to as quantum physics. Quantum mechanics has applications in both explaining natural events and designing technology that relies on quantum effects, such as integrated circuits and lasers. Quantum mechanics is also crucial for understanding how covalent bonds connect individual atoms to form molecules. Quantum chemistry is the application of quantum mechanics to chemistry. Quantum mechanics may also demonstrate which molecules are energetically favorable to which others and the magnitudes of the energy involved in ionic and covalent bonding processes. Modern technology operates on a scale where quantum effects are significant in many ways. Quantum chemistry, quantum optics, quantum computing, superconducting magnets, light-emitting diodes, the optical amplifier and laser, the transistor and semiconductors such as the microprocessor, and medical and research imaging such as magnetic resonance imaging and electron microscopy are all important applications of quantum theory. Many biological and physical phenomena, most notably the macromolecule DNA, have explanations based on the nature of chemical bonds. Electronics: Quantum mechanics is used in the design of many modern electronic gadgets. Lasers, transistors (and consequently microchips), electron microscopes, and magnetic resonance imaging are all examples (MRI). The diode and transistor, which are essential components of modern electronics systems, computers, and telecommunication equipment, were invented as a result of semiconductor research. Another application is the production of high-efficiency light sources such as laser diodes and light-emitting diodes. Cryptography: Researchers are currently looking for reliable methods of manipulating quantum states directly. Quantum cryptography is being further developed, which will theoretically allow for guaranteed secure information transmission. The detection of passive eavesdropping is an intrinsic advantage of quantum cryptography over classical cryptography. This is a natural consequence of quantum bit behavior; if a bit in a superposition state is viewed, the superposition state collapses into an eigenstate due to the observer effect. Because the intended recipient expected to receive the bit in a superposition state, the attack would be detected because the bit’s state would no longer be in a superposition.
10
Multiple-Valued Quantum Computing
Quantum Computing: The development of quantum computers, which are projected to execute certain computing tasks exponentially faster than classical computers, is another goal. Quantum computers use qubits, which can be in a superposition of states, instead of classical bits. Quantum programmers can exploit the superposition of qubits to tackle issues that traditional computers can’t, such as searching unsorted databases or integer factorization. According to IBM, quantum computing could help advance medical, logistics, financial services, artificial intelligence, and cloud security. Quantum teleportation, which deals with strategies for transmitting quantum information over arbitrary distances, is another hot research area. Macroscale Quantum Effects: While quantum mechanics is mostly concerned with the lower atomic scales of matter and energy, some systems display quantum mechanical effects on a larger scale. One well-known example is super fluidity, which is defined as the frictionless flow of a liquid at temperatures close to absolute zero. Superconductivity, which is the frictionless movement of an electron gas in a conducting material (an electric current) at sufficiently low temperatures, is also a closely related phenomenon. A topologically ordered state corresponding to patterns of longrange quantum entanglement is the fractional quantum Hall effect. Without a phase transition, states with distinct topological ordering (or different patterns of long-range entanglements) cannot change into one another. Other Phenomena: Many previously inexplicable phenomena, like black-body radiation and the stability of electron orbitals in atoms, are now accurately described by quantum theory. It has also revealed the inner workings of a variety of biological systems, such as scent receptors and protein architectures. Recent research on photosynthesis has revealed that quantum correlations are crucial in this fundamental mechanism in plants and other creatures. Even Nevertheless, in situations involving huge numbers of particles or big quantum numbers, classical physics can often provide good approximations to conclusions acquired by quantum physics. Classical approximations are utilized and favored when the system is large enough to render the effects of quantum mechanics unimportant because classical formulas are much simpler and easier to compute than quantum formulations.
1.3
What is Quantum Computing?
Quantum Computing is a new kind of computing based on Quantum mechanics that deals with the physical world that is probabilistic and unpredictable in nature. Quantum is the discrete small amount of a physical quantity of energy that can exist independently and that is proportional in magnitude to the frequency of the radiation it represents. It is the least measure of any physical entity that is involved in an interaction. The quantum computer is based on the characteristics of quantum. Richard Feynman in Figure 1.5 and Yuri Manin hypothesized quantum computers in the 1980s. The idea for quantum computing came from what was once considered
What is Quantum Computing?
11
FIGURE 1.5 Richard Phillips Feynman one of physics’ greatest embarrassments: amazing scientific progress met with an inability to simulate even simple systems. Richard Feynman addressed the following conundrum at MIT in 1981: classical computers cannot efficiently model the evolution of quantum systems. As a result, he suggested a fundamental model for a quantum computer capable of doing such simulations. He outlined the possibility of massively outpacing traditional computers with this. However, it took more than a decade for the Shor algorithm, a unique method, to shift people’s minds about quantum computing. In 1994, Peter Shor developed his algorithm allowing quantum computers to efficiently factorize large integers exponentially quicker than the best classical algorithm on traditional machines. The latter takes millions of years to factor 300-digit numbers. The Shor algorithm has the potential to break many of today’s cryptosystems in theory. Quantum computers’ ability to break cryptosystems in hours rather than millions of years sparked interest in quantum computing and its applications. Lov Grover developed a quantum database search technique in 1996 that provided a quadratic speedup for a wide range of problems. Any problem that required a random or brute-force search could now be solved four times faster. The first quantum algorithms, such as Grover’s algorithm, were solved with a working 2-qubit (Quantum bits) quantum computer in 1998. The competition to usher in a new era of computing power began, and more and more applications were created. Twenty years later, in 2017, IBM unveiled the first commercially viable quantum computer as shown in Figure 1.6, escalating the competition to a new level.
12
Multiple-Valued Quantum Computing
FIGURE 1.6 A Cryostat at Google’s Quantum Computing Lab Near Santa Barbara, California Designed to Keep a Quantum Chip at Temperatures Close to Absolute Zero
1.3.1
Quantum Computing Properties
As classical computers are based on bits, a quantum computer is based on quantum bits, called qubits for short. Qubits are physically derived from small quantum objects, such as electrons or photons, where a pure quantum mechanical state such as the spin indicates the ones and zeros, as is used in classical computers. The behaviors of quantum are the main properties of quantum computing. The key properties of quantum computers are – superposition, entanglement, and interference. Quantum Superposition A qubit’s ability to be in superposition is one of the features that distinguish it from a classical bit. One of quantum physics’ fundamental principles is superposition. In classical physics, a wave expressing a musical tone can be regarded as a superposition of many waves with various frequencies. A quantum state in superposition can be thought of as a linear combination of different quantum states. This quantum state in superposition generates a new quantum state that is legitimate. The feature of a quantum system is that it exists in several separate quantum states at the same time. For example, electrons possess a quantum feature called spin, a type of intrinsic angular momentum. In the presence of a magnetic field, the electron may exist in two possible spin states, usually referred to as spin up and spin down. Each electron, until it is measured, will have a finite chance of being in either state. Only when measured is it observed to be in a specific spin state. In common experience, a coin facing up has a definite value: it is a head or a tail. In quantum experience, the situation is more unsettling: material properties of things do not exist until they are measured. Until “look” (measure the particular property) at the coin, as it were, it has no fixed face up.
What is Quantum Computing?
13
FIGURE 1.7 A Comparison of Classical Bits and Quantum Bits Where Qubit Is in Superposition Qubits can be in a superposition of both the basis states |0i and |1i. When a qubit is measured (to be more precise: only observables can be measured), the qubit will collapse to one of its eigenstates and the measured value will reflect that state. For example, when a qubit is in a superposition state of equal weights, a measurement will make it collapse to one of its two basis states |0> and |1i with an equal probability of 50%. |0i is the state that when measured, and therefore collapsed, will always give the result 0. Similarly, |1i will always convert to 1. Figure 1.7 shows a comparison of classical bits and quantum bits where qubit is in superposition. Quantum Entanglement Entanglement is another counter-intuitive phenomenon in quantum physics. When each particle’s quantum state cannot be characterized independently of the quantum state of the other particle, the pair or set of particles is said to be entangled. The quantum state of the system as a whole can be characterized; it is in a definite state, even though the individual components are not. When two qubits are entangled, there exists a special connection between them (Figure 1.8). The entanglement will become clear from the results of the measurements. The outcome of the measurements on the individual qubits could be 0 or 1. However, the outcome of the measurement on one qubit will always be correlated to the measurement on the other qubit. This is always the case, even if the particles are separated from each other by a large distance. For example, two particles are created in such a way that the total spin of the system is zero. If the spin of one of the particles is measured on a certain axis and found to be counterclockwise, then it is guaranteed that a measurement of the spin of the other particle (along the same axis) will show the spin to be clockwise. This seems strange because it appears that one of the entangled particles “feels” that measurement is performed on the other entangled particle and “knows” what the outcome should be, but this is not the case. This happens, without any information exchange
14
Multiple-Valued Quantum Computing
FIGURE 1.8 Quantum Entanglement; Two Quantum Particles with Opposite Spin are Entangled Together between the entangled particles. They could even be billions of miles away from each other and this entanglement would still be present. Quantum Interference Quantum interference is the intrinsic behavior of a qubit on account of superposition to influence the likelihood of it collapsing one way or another. Essentially, the concept states that the elementary particles cannot only be in more than one place at any given time (through superposition), but that an individual particle, such as a photon (light particles), can cross its trajectory and interfere with the direction of its path. Figure 1.9 shows the quantum interference phenomenon identified that occurs through time.
1.3.2
How Does Quantum Computer Work?
Quantum Computing in the binary logic system is performed using qubits. A qubit is defined as the basic unit to store information in a quantum computer. The two basic states of qubits are conventionally written as: |0>, and |1> (it can be pronounced as ‘ket 0’, and ‘ket 1’). A pure qubit state is a linear quantum superposition of those two states. This means that each qubit is represented as a linear combination of |0i and |1i, such as: |Ψi = α|0i + β|1i
15
What is Quantum Computing?
FIGURE 1.9 Quantum Interference Phenomenon Identified That Occurs through Time where α and β are complex probability amplitudes. α and β are constrained by the following equation |α|2 + |β|2 = 1 This implies that the probability that the qubit will be measured in the state |0i is |α|2 , and the probability that it will be measured in the state |1i is |β|2 . Therefore, the total probability of the system being observed in either state |0i" or |1i# is 1. This 1 can be represented in a 2×2 homogeneous Hilbert space as – |0> = , and |1> 0 " # 0 = , so, a general state can be written as 1 " # α |Ψi = α|0i + β|1i = β For two qubits, that can form four qubits pattern {|00>, |01>, |10>, |11>}, this will be represented as |Ψi =
α β γ ε
16
Multiple-Valued Quantum Computing
The above equation is the representation of a general vector in 4-dimensional Hilbert space. This is significantly different from the state of a classical bit, which can only take the value 0 or 1. Quantum computing holds this phenomenon to gain the power of having multiple states at a time, which is called superposition. Several qubits taken together are a quantum register. Quantum computers perform calculations by manipulating qubits. To perform quantum computing, first, put some individual qubits into superposition. For this, each qubit is either initialized as |0> or |1>. Then mathematically, a transformation is used called Hadamard transformation, which rotates a little sphere called the block sphere and rotates it through 90 degrees, so it takes that |0> or |1>, whatever it is, put in a state of superposition. So, if 5 qubits are taken then a system is here that is simultaneously in all (25 ) 32 states. There are also entangled bits which make two different qubits dependent on each other.
1.4
Multiple-Valued Logic
Digital circuits are prevalent in current technology and nearly all of these are based on binary logic. Although vastly used, binary circuits present a few obstacles, and alternatives have been sought, namely, Multiple-Valued Logic (MVL). Many-valued logics are non-classical logics. They are similar to classical logic because they accept the principle of truth-functionality, namely, that the truth of a compound sentence is determined by the truth values of its component sentences (and so remains unaffected when one of its component sentences is replaced by another sentence with the same truth value). But they differ from classical logic by the fundamental fact that they do not restrict the number of truth values to only two: they allow for a larger set W of truth degrees. Multiple-valued logic displays phenomena, it is not possible to see in the binary case, where the only two values available are null and unit elements of Boolean algebra, possessing very specific properties. Reflecting on the two-valued scale, these phenomena give us a new, deeper understanding of the matter. Working with MVL is like painting a picture having all colors available, whereas binary logic can be considered as a painting with only two colors (black and white).
1.4.1
History of Multiple-Valued Logic
Until the beginning of the 20th century, logic was almost exclusively viewed as binary, but mathematicians, logicians, and philosophers needed to represent uncertainty and error, so they started investigating systems that allowed more options than just “true” or “false”. In 1920, Polish logician and philosopher Jan Łukasiewicz in Figure 1.10, looking for a third truth value for solving problems and paradoxes, developed one of the earliest MVL systems.
Multiple-Valued Logic
17
FIGURE 1.10 Jan Łukasiewicz Meanwhile, American mathematician Emil L. Post introduced in 1921 the basic idea of additional truth degrees with n ≥ 2, where n is the number of truth values, and applied it to problems related to the representability of functions. After this, several mathematicians, logicians, and philosophers, namely, Godel, Bochvar, and Kleene, in the 1930s, started working with this concept and developed several forms of MVL. Aside from logicians and philosophers trying to create ways of solving their problems, MVL has also been studied, and been an area of great interest, to engineers for several years. Researchers from various areas of engineering have been looking for improvements in technology and performance. In electronic device structure and circuit design, interconnection cost/delay has become a major concern. Higher-radix systems could provide benefits to this problem and also a better relation between circuits and natural representation. Similar advantages can also be found in information and signal processing, discrete system algorithms and data structures, and so on. Figure 1.11, Figure 1.12, and Figure 1.13 show the pictures of three pioneers of the multi-valued logic systems.
1.4.2
Advantages of Multiple-Valued Quantum Computing over Binary Logic
In quantum computation, multi-valued logic (MVL) has various advantages over binary logic, including improved security for quantum cryptography and higher processing capacity for quantum data. A ternary computer (sometimes known as a trinary computer) is a computer that does computations using ternary logic (three possible values) rather than binary logic (two possible values). In ternary quantum computing, the superposition will be formed in the range of |0> to |2>. Ternary computing has many basic benefits over binary computing. These include:
18
Multiple-Valued Quantum Computing
FIGURE 1.11 Pioneer of Multi-Valued Logic Systems Kurt G¨odel
FIGURE 1.12 Pioneer of Multi-Valued Logic Systems Stephen Cole Kleene
Ternary Logic in Quantum Computing
19
FIGURE 1.13 Pioneer of Multi-Valued Logic Systems Anatoli Mikhailovich Bochvar 1. Higher data throughput 2. Access to additional instructions 3. Back-compatibility with legacy binary codes 4. Preventing malware and viruses 5. Providing more security However, the usual aim of ternary computers has not met with overwhelming success thus far, because they are not as efficient as binary computers in computing binary codes, which are widely used and appear to be nearly ubiquitous. Besides, constructing the ternary operational circuits is much more difficult than the binary operational circuit.
1.5 Ternary Logic in Quantum Computing In binary quantum computing, the basic unit of information is qubits, which have two states: |0> and |1>. The information unit in a three-valued quantum system (ternary quantum system) is termed qutrit . The ternary quantum system represents one type of three-dimensional quantum system with the basis states |0>, |1>, and |2>. These basis states are called qutrit states and can be represented by 3 × 1 vectors: 1 0 0 |0> = 0 , |1> = 1 , and |2> = 0 0 0 1
20
Multiple-Valued Quantum Computing
In a ternary quantum system, a qutrit can be defined as a linear superposition of the above-mentioned basis states with the following equation: Ψ = α |0> + β |1>+ γ |2>; where α, β, and γ are the complex quantities to represent the probability amplitudes of the basis states and Ψ is the wave function.
1.5.1
Quantum Ternary Fundamental Logic Operations
Quantum ternary logic functions are those functions that have significance if a third value is acquainted with the quantum binary logic. Quantum computing in the ternary logic system is quite interesting. Here, |0>, |1>, and |2> denote the ternary levels for basic logic gates to represent false, undefined, and true, respectively. The basic operations of quantum ternary logic can be defined as follows: yOR = max(x, y), yNOR = max(x, y), yAND = min(x, y), yNAND = min(x, y); and yXOR = sum(x, y),
yXNOR = sum(x, y), where x, y = {|0 >, |1 >, | 2 >}.
1.6 Applications of Multiple-Valued Quantum Computing With the exponential growth in computing power, quantum computing is getting ready for its close-up. Quantum computers are ideally suited to solving complex problems, which are hard for classical computers but easy to factor on a quantum computer. Such an advancement creates a world of opportunities across almost every aspect of modern life. Quantum computing can include practically all applications of quantum physics, computer science, and mathematics because it is a combination of those areas. Besides, multiple-valued quantum computing enhanced the computing ability of quantum computers, which was also mentioned in the previous section. Some common applications of quantum computing are enlisted below. Artificial Intelligence and Machine Learning: Artificial intelligence and machine learning are some of the prominent areas right now, as the emerging technologies have penetrated almost every aspect of humans’ lives. Some of the widespread applications are seen every day in voice, image, and handwriting recognition. However, as the number of applications increased, it becomes a challenging task for traditional computers, to match up the accuracy and speed. And, that’s where quantum computing can help in processing complex problems in very less time, which would have taken traditional computers thousands of years.
Applications of Multiple-Valued Quantum Computing
21
Computational Chemistry: IBM, once said, one of the most promising quantum computing applications will be in the field of computational chemistry. It is believed that the number of quantum states, even in a tiniest of a molecule, is extremely vast, and therefore difficult for conventional computing memory to process. The ability for quantum computers to focus on the existence of both 1 and 0 simultaneously could provide immense power to the machine to successfully map the molecules which, in turn, potentially opens opportunities for pharmaceutical research. Some of the critical problems that could be solved via quantum computing are — improving the nitrogenfixation process for creating ammonia-based fertilizer; creating a room-temperature superconductor; removing carbon dioxide for a better climate; and creating solidstate batteries. Drug Design and Development: Designing and developing a drug is the most challenging problem in quantum computing. Usually, drugs are being developed via the trial and error method, which is not only very expensive but also a risky and challenging task to complete. Researchers believe quantum computing can be an effective way of understanding the drugs and their reactions to humans which, in turn, can save a ton of money and time for drug companies. These advancements in computing could enhance efficiency dramatically, by allowing companies to carry out more drug discoveries to uncover new medical treatments for the better pharmaceutical industry. Cybersecurity and Cryptography: The online security space currently has been quite vulnerable due to the increasing number of cyber-attacks occurring across the globe, daily. Although companies are establishing necessary security frameworks in their organizations, the process becomes daunting and impractical for classical digital computers. And, therefore, cybersecurity has continued to be an essential concern around the world. With the increasing dependency on digitization, humans are becoming even more vulnerable to these threats. Quantum computing with the help of machine learning can help in developing various techniques to combat these cybersecurity threats. Additionally, quantum computing can help in creating encryption methods, also known as, quantum cryptography. Financial Modeling: For a finance industry to find the right mix for fruitful investments based on expected returns, the risk associated, and other factors are important to survive in the market. To achieve that, the technique of ‘Monte Carlo’ simulations is continually being run on conventional computers, which, in turn, consumes an enormous amount of computer time. However, by applying quantum technology to perform these massive and complex calculations, companies can not only improve the quality of the solutions but also reduce the time to develop them. Because financial leaders are in the business of handling billions of dollars, even a tiny improvement in the expected return can be worth a lot for them. Algorithmic trading is another potential application where the machine uses complex algorithms to automatically trigger share dealings by analyzing the market variables, which is an advantage, especially for high-volume transactions. Logistics Optimization: Improved data analysis and robust modeling will indeed enable a wide range of industries to optimize their logistics and scheduling workflows associated with their supply-chain management. The operating models
22
Multiple-Valued Quantum Computing
need to continuously calculate and recalculate optimal routes of traffic management, fleet operations, air traffic control, freight, and distribution, and that could have a severe impact on applications. Usually, to do these tasks, conventional computing is used; however, some of them could turn into more complex for an ideal computing solution, whereas a quantum approach may be able to do it. Two common quantum approaches that can be used to solve such problems are — quantum annealing and universal quantum computers. Quantum annealing is an advanced optimization technique that is expected to surpass traditional computers. In contrast, universal quantum computers are capable of solving all types of computational problems, not yet commercially available. Weather Forecasting: Currently, the process of analyzing weather conditions by traditional computers can sometimes take longer than the weather itself does to change. But a quantum computer’s ability to crunch vast amounts of data, in a short period, could indeed lead to enhancing weather system modeling allowing scientists to predict the changing weather patterns in no time and with excellent accuracy — something which can be essential for the current time when the world is going under a climate change. Weather forecasting includes several variables to consider, such as air pressure, temperature, and air density, which makes it difficult for it to be predicted accurately. The application of quantum machine learning can help in improving pattern recognition, which, in turn, will make it easier for scientists to predict extreme weather events and potentially save thousands of lives a year. With quantum computers, meteorologists will also be able to generate and analyze more detailed climate models, which will provide greater insight into climate change and ways to mitigate it. The list could go on and on. With the availability of the quantum computer, it may eventually replace the use of conventional computers in all research centers and computational labs.
1.7 Demerits of Multiple-Valued Quantum Computing Quantum computers are exceedingly difficult to engineer, build and program. As a result, they are crippled by errors in the form of noise, faults, and loss of quantum coherence, which is crucial to their operation and yet falls apart before any nontrivial program has a chance to run to completion. This loss of coherence (called decoherence), caused by vibrations, temperature fluctuations, electromagnetic waves, and other interactions with the outside environment, ultimately destroys the exotic quantum properties of the computer. Given the current pervasiveness of decoherence and other errors, contemporary quantum computers are unlikely to return correct answers for programs of even modest execution time.
Demerits of Multiple-Valued Quantum Computing
23
There are certain disadvantages to using the quantum computing system to perform operations. The most typical drawbacks are given below. Availability: The main disadvantage of Quantum computing is the technology required to implement a quantum computer is not available at present days. Energy Requirements: The minimum energy requirement for quantum logical operations is five times that of classical computers. Decoherence: When a measurement of any type is made to a quantum system, decoherence is broken down and the wave function collapses into a single state. Heating Issue: The fact that a quantum computer’s CPU creates tremendous heat from itself is the other major issue, as this problem can induce chaos across the system. Error Correction Problem: Because qubits or qutrits aren’t the same as today’s digital bits, they can’t be used for error correction in the traditional sense. Error correction of the multiple-valued quantum computing system is much more difficult. Computer Architecture: A quantum computer’s architecture is, in general, quite complicated. The system design becomes substantially more complicated when multiple-valued systems (such as quantum ternary computing systems) are considered. The circuits in multiple-valued quantum computing systems become larger, and as a result, the size of the computer also becomes larger. High Cost: Cost is another major issue of quantum computing. By most estimates, a single qubit costs around $10K and needs to be supported by a host of microwave controller electronics, coaxial cabling, and other materials that require large controlled rooms to function. In hardware alone, a useful quantum computer costs tens of billions of dollars to build. Besides those problems, there are risks. If an advanced quantum computer was created, all the security of the current Internet of Things would collapse like a house of cards. British economist The Economist says quantum computers will be able to do whatever they want in the company. The personal information of billions of Internet users can be taken into their bags. The government database can be hacked. Undue control can be imposed on the banking system. The state defense system can be turned off if desired. Considering these aspects, many do not even hesitate to call it a “terrible” computer.
1.7.1
Challenges in Multiple-Valued Quantum Computing
Quantum computers are currently available on a small scale with a small number of qubits. To be competitive with the classical system, quantum computers need to scale up. Although this issue has improved dramatically over the last decades, further
24
Multiple-Valued Quantum Computing
progress in the development of quantum computers requires addressing other technical issues such as quantum error correction. It is fundamentally difficult to scale quantum computer chips because quantum information cannot be copied and subsystems are not independent, leading to design trade-offs that are global by nature. However, superconducting qubits are more and more showing the potential to overcome these hurdles and are starting to evolve as commercially usable in quantum computers. The critical challenges of this are described below. Quality of Qubit: There are several challenges in building a large-scale quantum computer such as fabrication, verification, and architecture. The power of quantum computing comes from storing a complex state in a single bit. This complex state makes quantum systems challenging to build, verify, and design. The first challenge is to make qubits effectively that will generate valuable instructions. The famous quantum computing algorithm is Shor’s algorithm that can quickly factor a large number. He discovered a quantum error-correcting code that can store the information of one qubit onto a highly entangled state of nine qubits. Qubit Maintenance: Multiple qubits are needed to be controlled, including error detection schemes applying complex algorithms. That control must have low quiescence on the order of 10’s, and it has to come from CMOS-grounded adaptive feedback control circuits. Numerous Cables/Wires: Another challenge is to scale up the number of qubits within a quantum chip. Today multiple control wires or cables are required to create each qubit. These too many wires create anarchy within a computer system which is needed to be organized properly. Moreover, there are more challenges such as algorithm creation, and internet security problems in quantum computing each time it needs to write a new algorithm. They cannot work as a classical computer. They need unique algorithms to perform tasks in their environment, which is tough to implement each time. Another challenge is that they need a negative temperature of 460 degrees which is a shallow temperature and difficult to maintain. If a quantum computer is implemented in the best way, then complete internet security breaks because these computers are good at decrypting all the codes on the internet.
1.8 Summary In this chapter, some basic information has been shown about multiple-valued quantum computing. This chapter only focuses on the fundamental concept. In the first section, some basic information and the history of this quantum physics are discussed. Quantum computation promises the ability to compute solutions to any problem. Though it has potential advantages, it is still underdeveloped. Therefore, researchers should emphasize the quantum field and work to reduce disadvantages. This chapter covers the advantages, disadvantages, and challenges of multiple-valued quantum computing. After reading this chapter, the reader must be able to achieve the
Summary
25
fundamental concept and the background of this field. In the near future, the quantum computer will be accessible for all people.
Bibliography [1] Dubrova, E. (1999, November). Multiple-valued logic in VLSI: challenges and opportunities. In Proceedings of NORCHIP (Vol. 99, No. 1999, pp. 340-350). [2] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [3] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [4] Anderson, M. (2009). Is quantum mechanics controlling your thoughts? Discover Magazine. [5] Chen, X., Gu, Z. C., & Wen, X. G. (2010). Local unitary transformation, longrange quantum entanglement, wave function renormalization, and topological order. Physical Review B, 82(15), 155138. [6] Marella, S. T., & Parisa, H. S. K. Introduction to Quantum Computing. [7] Perkowski, M., Al-Rabadi, A., & Kerttopf, P. (2002). Multiple-Valued Quantum Logic Synthesis.
2 Multiple-Valued DNA Computing
2.1
Introduction
Molecular computing, or DNA (Deoxyribose Nucleic Acid) computing, is a new discipline of computer science. It’s a novel method for massively parallel computation that can tackle NP-complete or non-deterministic polynomial-time complete problems in a fraction of the time. Combinatorial issues are another area where DNA computing excels. It’s a great mix of biochemistry, molecular biology, and computer science that allows researchers to carry out arithmetic and logic operations. It does computations utilizing biological molecules rather than typical silicon processors. Every cell in a living organism has information for a variety of functions that are necessary for the cell’s survival. In each cell, nucleic acids are molecules that contain genetic information. The most stable nucleic acid is deoxyribonucleic acid (DNA). Helixes are long polymers made up of millions of nucleotides joined together that form from each DNA strand. These nucleotides are made up of one of four nitrogen bases, a five-carbon sugar, and a phosphate group.
2.2
What is DNA Computing?
The basic idea behind DNA computing is to represent data using a biological (wet) technique, with DNA strands serving as an efficient computing vehicle. Even though the cycle time of a DNA reaction is far slower than that of a silicon-based computer, the DNA process’ intrinsic parallel processing is critical. This massive parallelism of DNA processing is very important for solving NP-complete or NP-hard issues. Figure 2.1 shows the DNA base pairs in double helix model. The genetic information is encoded by the nitrogen bases A (Adenine), T (Thymine), G (Guanine), and C (Cytosine), while the others offer structural stability. T with A and C with G are the base-pairing rules that connect the strands. The order in which these nucleotides are arranged is crucial since it determines how different genes function.
DOI: 10.1201/9781003381938-2
27
28
Multiple-Valued DNA Computing
FIGURE 2.1 DNA Base Pairs in Double Helix Model
2.2.1
History of DNA Computing
The concept of DNA computing was introduced in 1994 by USC Professor, Leonard Adleman in Figure 2.2, in the November 1994 Science article, Molecular Computations of Solutions to Combinatorial Problems. Adleman demonstrated that DNA might be utilized to store data and even do massively parallel computations. Adleman encoded a classic “hard” problem (one that exhibits exponential growth with each additional input parameter) known as the Traveling Salesman Problem into strands of DNA and used biological properties of DNA to find the answer using the four bases of DNA (adenine, thymine, cytosine, and guanine). When Adleman realized how DNA replication was eerily similar to an early theoretical computer established by Alan Turing in the 1930s, he came up with the idea of DNA computing. During replication, DNA polymerase slides down a single DNA strand, reading each base and writing its complement on the next strand, whereas in one version of the Turing Machine, a mechanism moved along a pair of tapes, reading instructions from one and recording the result on the other. Alan Turing’s modest machine, interestingly, was shown to have the same computing capabilities as any current computer. Adleman now began to wonder: if Turing’s simple machine has such great computational ability, would similarly operating DNA also can do computations? It did, as Adleman’s first experiment proved. Even though his experiment required a lot of slow, manual labor to separate the correct answers, had a high chance of error, and was unscalable for larger problems, DNA computing promised enormously high-density storage, unparalleled energy efficiency, and a level of parallelism that digital computers couldn’t match. There was the birth of a new field.
Some Related Terminologies
29
FIGURE 2.2 American Computer Scientist Leonard Adleman
2.3 Some Related Terminologies There are a few things to understand before understanding the working methodology of DNA computing.
2.3.1
Molecular Biology
Molecular biology is a branch of biology that studies the chemical structures and processes of biological phenomena involving molecules, the basic units of life. The study of molecular biology is concerned with nucleic acids (such as DNA and RNA) and proteins—macromolecules that are critical to biological processes—and how they interact and behave within cells. In the 1930s, molecular biology emerged from the associated disciplines of biochemistry, genetics, and biophysics, and it is still strongly tied with those fields today. For molecular biology , various methodologies have been established, while researchers in the discipline may also use procedures and techniques that are native to genetics and other closely related fields. Molecular biology, in particular, uses techniques like X-ray diffraction and electron microscopy to better understand the threedimensional structure of biological macromolecules. Molecular biologists study the molecular basis of genetic processes, mapping the location of genes on specific chromosomes, associating these genes with specific characteristics of an organism, and isolating, sequencing, and modifying specific genes using genetic engineering
30
Multiple-Valued DNA Computing
FIGURE 2.3 The Central Dogma of Molecular Biology; the Genetic Information Encoded in the DNA is First Transcribed into the mRNA, Which is Then Translated into the Protein (recombinant DNA technology). Techniques including Polymerase Chain Reaction (PCR), western blotting, and microarray analysis can be used in these approaches. Figure 2.3 shows the central dogma of molecular biology. The field of molecular biology began in the 1940s intending to reveal the basic three-dimensional structure of proteins. In the early 1950s, as knowledge of protein structure grew, the structure of deoxyribonucleic acid (DNA), the genetic blueprint found in all living things, as described in 1953. With more investigation, scientists were able to learn more about not only DNA and ribonucleic acid (RNA), but also the chemical sequences within these substances that tell cells and viruses how to build proteins. Molecular biology remained a pure science with few practical applications until the 1970s when enzymes that could cut and reassemble portions of DNA in bacteria’s chromosomes were found. Because it allows manipulation of the genetic sequences that determine the basic features of organisms, recombinant DNA technology became one of the most active disciplines of molecular biology.
2.3.2
DNase Enzyme
Deoxyribonuclease (DNase) is an enzyme that breaks up extracellular DNA found in the purulent sputum during respiratory infections. DNase degrades DNA by catalyzing the hydrolytic breakage of phosphodiester links in the DNA backbone. Nucleases are enzymes that hydrolyze phosphodiester linkages between nucleotides. Deoxyribonucleases are one form of nuclease. There are several different types of deoxyribonucleases, each with its substrate specificities, chemical processes, and biological activities. Deoxyribonuclease (DNase) enzymes perform a variety of important cellular roles by degrading DNA via hydrolysis of its phosphodiester backbone.
Some Related Terminologies
31
Deoxyribonuclease I (DNase I) enzymes cleave single or double-stranded DNA and require divalent metal ions to hydrolyze DNA yielding 3-hydroxyl and 5phosphorylated products. In DNA computing, the DNase I enzyme plays a very significant. The base pair bond can be detected using the DNase enzyme role (which will be explained in the next section). Besides, DNase I is used in a range of molecular biology applications. Some of its uses include: 1. Degradation of contaminating DNA after RNA isolation, 2. “Clean-up” of RNA prior to RT-PCR and after in vitro transcription, 3.
Identification of protein binding sequences on DNA (DNase I foot printing),
4. Prevention of clumping when handling cultured cells, and 5. Creation of a fragmented library of DNA sequences for in vitro recombination reactions.
2.3.3
Fluorescence Detection
The term fluorescence refers to a type of luminescence. When a substance is irradiated with light of a specific wavelength (excitation wavelength), the substance emits light with a longer wavelength (emission wavelength), which is referred to as fluorescence. After a molecule absorbs energy in the form of light, it fluoresces. When a photon is absorbed by a fluorescent molecule, it promotes the molecule to an excited electronic state. It subsequently emits a lower-energy photon and decays to the ground (unexcited) state. Because the molecule produces heat in addition to the photon, the released photon is always lower in energy than the absorbed light. The wavelength of emitted radiation is always longer than the wavelength of the excitation light because the wavelength of radiation is inversely proportional to the energy. Fluorescence detection is generally used for analysis when sensitivity and selectivity are required, especially when the analyte has little or no UV absorbance and can be derivatized to produce fluorescence . The light released from the sample owing to fluorescence is separated into a spectrum by a monochromator, and the intensity of light at a specific emission wavelength is measured, unlike an ultraviolet (UV) detector, which detects the amount of light absorbed by a substance at a specific wavelength. The following are the characteristics of fluorescence detection: 1. Selectivity is high because the measurement is conducted using specific excitation and emission wavelengths specific to the target substance. 2. Fluorescent substances can be detected with high sensitivity. 3. Sensitivity and selectivity can be improved by using derivatization techniques.
32
Multiple-Valued DNA Computing
FIGURE 2.4 Mechanism of Fluorescence from a Substance Principle of Fluorescence Fluorescent substances follow the following fluorescence principle. When a substance is irradiated with excitation light, it enters a state of excitation. The substance swiftly returns to its original condition due to the instability of this excited state (ground state). Fluorescence is the energy emitted at this moment, and a light detector assesses the intensity of the emitted fluorescence. Selectivity is higher with fluorescence detectors than with absorbency and other types of detectors since excitation and measurement are both done at a specific wavelength. The mechanism of fluorescence from a substance is shown in Figure 2.4. Applications of Fluorescence Detection In Multiple-valued DNA computing, fluorescence detection is a must to detect the DNA base pair construction. In general, fluorescence detection has numerous applications in both the research and industrial sector. Some of them are given here. 1. High-Sensitivity Analysis of Enrofloxacin, 2. Conventional and Ultra-Fast Analysis of Anionic Surfactant (LAS), 3. Simultaneous Analysis of Poly-cyclic Aromatic Hydrocarbons (PAHs), 4. Amino Acid Analysis, 5. Repeatability in Carbamate Analysis, 6. Analysis of Reducing Sugars, and so on.
How Does a DNA Computing Work?
2.4
33
How Does a DNA Computing Work?
A computation may be thought of as the execution of an algorithm, which itself may be defined as a step-by-step list of well-defined instructions that takes some input, processes it, and produces a result. In DNA computing (Figure 2.5), information is represented using the four-character genetic alphabet (A [adenine], G [guanine], C [cytosine], and T [thymine]), rather than the binary alphabet (1 and 0) used by traditional computers. This is achievable because short DNA molecules of any arbitrary sequence may be synthesized to order. An algorithm’s input is therefore represented (in the simplest case) by DNA molecules with specific sequences, the instructions are carried out by laboratory operations on the molecules (such as sorting them according to length or chopping strands containing a certain subsequence), and the result is defined as some property of the final set of molecules (such as the presence or absence of a specific sequence). DNA has cutting, copying, pasting, repairing, and many other operations, just like a CPU has addition, bit-shifting, logical operators (AND, OR, NOT, NOR), and so on which will be explained in Chapter 4 that allows it to accomplish even the most complex computations. The appropriate sequences are sorted out using genetic engineering methods in a DNA computer, which computes in test tubes or on a glass slide coated in 24K gold. What Adleman was able to demonstrate is that DNA can be assembled in such a way that a test tube full of DNA blocks could assemble themselves to encode all of the possible paths in the traveling salesman problem at the same time. In DNA, genetic coding is represented by four different molecules, called A, T, C, and G. These four “bits”, when chained together, can hold an incredible amount
FIGURE 2.5 DNA Computing [Source: Dipositpohotos]
34
Multiple-Valued DNA Computing
of data. After all, the human genome is encoded in something that can be packed into a single nucleus of a cell. By mixing these four molecules into a test tube, the molecules naturally assembled themselves into strands of DNA. If some combination of these molecules represents a city and a flight path, each strand of DNA could represent a different flight path for the salesman, all being calculated at once in the synthesis of the DNA strands assembling themselves in parallel. Then, it would simply be a matter of filtering out the longer paths until only the shortest path left. In his paper, he showed how this could be done with 7 cities and the solution to the problem would be encoded as soon as the DNA strands were synthesized. DNA structures are inexpensive, relatively simple to make, and scalable, which sparked an interest. DNA computing has no theoretical limit because its power grows as more molecules are added to the equation, and unlike silicon transistors, which can only perform a single logical operation at a time, these DNA structures can theoretically perform as many calculations as needed to solve a problem all at once. However, there is a speed issue. Although Adleman’s answer to the traveling salesman’s problem was encoded into his DNA strands in the test tube in a matter of seconds, it took days of weeding out faulty options before he found the ideal solution he was seeking—after rigorous preparation for this single computation. Despite this, the principle was valid, and the potential for massive increases in storage capacity and processing speed was clear. This sparked a two-decade effort to figure out how to make practical DNA computing a reality.
2.4.1
DNA Computing for Binary Logic System
Although this book is aimed at the multiple-valued computing system, it is necessary to understand the binary operations to understand multiple-valued DNA computing. Because the working procedures are much identical except that – DNA computing for binary system utilizes the capability of DNase polymerase enzyme to detect the DNA base bond pairs whereas computing multiple-valued DNA computing utilizes fluorescence detection techniques to detect the DNA base bond pairs. Figure 2.6 shows a typical OR and XOR operation in DNA Computing in a test tube with the help of DNase enzyme – Deoxyribonuclease I and Deoxyribonuclease II, base sequence, and a temperature which is approximately in 60◦ Celsius for DNAOR and more than 60◦ Celsius for DNA-XOR operation. Here, the base sequence ACCTAG and TGGATC are equivalent to binary values 1 and 0, respectively. For DNA-OR operation, the base sequence in the test tube is TGGATC. Now if the input sequences are TGGATC and ACCTAG, one base pair bond will be created and one sequence (TGGATC for this case) will remain in the test tube. DNase enzyme will detect the remaining sequences which did not create the bond, if found any it will destroy the remained sequences. If the final mixture contains any bond pair then the output will be ACCTAG (equivalent to 1), and TGGATC otherwise. Therefore, for this case, the output will be ACCTAG. Similarly, for each input pattern, the expected output can be found.
Multiple-Valued DNA Computing
35
FIGURE 2.6 Performing DNA Operations in Test Tubes: DNA OR Operation For DNA-XOR operation, there is no base sequence in the test tube. Therefore, if the input pattern contains ACCTAG and TGGATC it will produce output ACCTAG (as the bond will be created). Otherwise, the output will be TGGATC. Similarly, all the fundamental binary operations can be performed in DNA computing.
2.5 Multiple-Valued DNA Computing Multiple-Valued Logic (MVL) can be used in logic circuits to minimize the number of logic elements and interconnections that connect different areas of the circuit. Delays, area, and energy usage can all be minimized by reducing interconnections. With the development of biological computing and quantum computing, the dominance of binary logic is challenged and multi-valued logic gates attract intense interest in research. Boolean binary logic has only two states that are true and false, or on and off. However, quite often, the logic gates suffer a certain degree of uncertainty and imprecision. In these cases, it is difficult to process information based on binary logic. Multi-Valued logic is likely to play an increasingly important role in the conception and design of a molecular computer since it would be able to deal with uncertain information. Multi-Valued logic is defined as a nonbinary logic and involves the switching between more than two states. The number of distinguishable states increases, which allows for higher information densities. The common application of a multi-valued variable is coding. The Morse code, which uses three different symbols, is probably the best known. The more different symbols there are, the shorter the code words.
36
Multiple-Valued DNA Computing
A ternary or three-valued logic function has two inputs that can assume three states (say 0, 1, and 2) and generates one output signal that can have one of these three states. Thus ternary logic is the extension of predominating binary logic.
2.5.1
How Can Multiple-Valued Operations Be Performed in DNA Computing?
Two DNA base sequences were asserted for the equivalent two binary values zero and one in the binary DNA computing system. The digits in the multiple-valued system (i.e. ternary logic system) are 0, 1, and 2. As a result, three DNA strands must be created corresponding to the three ternary digits. For the multiple-valued DNA computing, consider the DNA sequences ACCTAG = ‘0’, CAAGCT = ‘1’, and TGGATC = ‘2’. The operations are performed in DNA computing by conducting chemical reactions. And in binary logic, the bond between DNA strands to perform operations were detected using the DNase Enzyme (if the bond was not created the DNase enzyme would destroy the base sequences). The working principle of multi-valued DNA computing is easier to comprehend in the ternary system, but the underlying architecture is complex. The fluorescence level is utilized to detect the DNA sequence in Ternary DNA computing. Fluorescence is defined as fluorescent molecules temporarily absorbing electromagnetic wavelengths from the visible light spectrum and then emitting light at a lower energy level. Biofluorescence is the term used when it occurs in a live thing. The light that is emitted is a different color than the light that is absorbed as a result of this. An electron is excited by stimulating light, causing its energy to rise to an unstable level. The fluorescence level will be different for each operation, and it will affect the operation’s output. DNA ternary logic functions are those functions that have significance if a third value is acquainted with the DNA binary logic. Here, ACCTAG, CAAGCT, and TGGATC will represent 0, 1, and 2 in ternary logic, which denote the ternary levels for basic logic operations to represent false, undefined, and true, respectively. The basic operations of DNA ternary logic can be defined as follows: yOR = max(x, y); yNOR = max(x, y); yAND = min(x, y) yNAND = min(x, y); yXOR = sum(x, y); and yXNOR = sum(x, y), where x, y = {0, 1, 2} But in this case, 0, 1, and 2 are used for simplicity. The actual values are the DNA strands which are ACCTAG, CAAGCT, and TGGATC as mentioned before. The following truth table as shown in Table 2.1 shows the input and output mapping of the fundamental logic operations in the ternary logic system. The output value of the ternary AND logic operation is determined by the minimum value of its inputs. Similarly, the output value of the ternary OR logic operation
37
Multiple-Valued DNA Computing TABLE 2.1 Truth Table for Ternary AND, NAND, OR, NOR, XOR, XNOR Input 1 0 0 0 1 1 1 2 2 2
Input 2 0 1 2 0 1 2 0 1 2
AND 0 0 0 0 1 1 0 1 2
NAND 2 2 2 2 1 1 2 1 0
OR 0 1 2 1 1 2 2 2 2
NOR 2 1 0 1 1 0 0 0 0
XOR 0 1 2 1 2 0 2 0 1
XNOR 2 1 0 1 0 2 0 2 1
is determined by the maximum value of the inputs. The output value of the ternary XOR operation is the sum of its input values. As a result, the outputs of DNA Ternary NAND, NOR, and XNOR logic operations are the quantum ternary AND, OR, and XNOR logic operations reversed. Figure 2.8 shows the circuit architecture of the DNA ternary XOR operation as an example. DNA ternary XOR operation as shown in Figure 2.8 is defined as YDT XOR = sum(X, Y), where X and Y are the input from {0, 1, 2}. In Figure 2.7, two input sequences will mix into the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary XOR operations. Table 2.2 shows the truth table of DNA ternary XOR operations.
FIGURE 2.7 Performing DNA Operations in Test Tubes: DNA XOR Operation
38
Multiple-Valued DNA Computing TABLE 2.2 Truth Table of DNA Ternary XOR Operations ACCTAG CAAGCT TGGATC
ACCTAG ACCTAG CAAGCT TGGATC
CAAGCT CAAGCT TGGATC ACCTAG
TGGATC TGGATC ACCTAG CAAGCT
The above circuit will produce output according to the above truth table with the help of fluorescent detection. Other circuits can be constructed in the same way.
2.6 Advantages of Multiple-Valued DNA Computing The DNA computer has clear advantages over conventional computers when applied to problems that can be divided into separate, non-sequential tasks. The reason is that DNA strands can hold so much data in memory and conduct multiple operations at once, thus solving decomposable problems much faster. On the other hand, non-decomposable problems, those that require many sequential operations are much more efficient on a conventional computer due to the length of time required to conduct the biochemical operations. 1. Parallel Processing: DNA computers’ massively parallel processing capabilities have the potential to speed up huge, but otherwise solvable, polynomial-time tasks requiring only a few operations. For instance, a mix of 1,018 strands of DNA could operate at 10,000 times the speed of today’s advanced supercomputers.
FIGURE 2.8 Multiple-Valued DNA XOR Operation
TGGATC
ACCTAG+TGGATC
2. Performance Rate: Performing millions of operations simultaneously allows the performance rate of DNA strands to increase exponentially.
Limitations of Multiple-Valued DNA Computing
39
Adleman’s experiment was executed at 1,014 operations per second, a rate of 100 Teraflops (100 trillion floating-point operations per second). The world’s fastest supercomputer runs at just 35.8 Teraflops. 3. Ability to hold tremendous amounts of info in very small spaces: DNA has an incredible amount of info density. A strand of DNA is encoded with the four bases (nucleotides) – as it is known already, which are represented by the letters A, T, C, and G, in the same way, that binary data is encoded with 1’s and 0’s. DNA has a phenomenal data density of about 18 Mbits per inch since these bases are separated every 0.35 nanometers along the molecule. In two dimensions, the data density is over one million Gbits per square inch if one base per square nanometer is assumed. When compared to a normal high-performance hard drive, which has a data density of roughly 7 Gbits per square inch, this is a factor of over 100,000 smaller. 4. Low Power Consumption: DNA computers can perform 2 × 1019 irreversible operations per joule, whereas supercomputers can execute a maximum of 109 operations per joule. DNA computers need power only to prevent DNA from denaturation. Energy is going to be very valuable shortly. So, it’s one of the best advantages.
2.7 Limitations of Multiple-Valued DNA Computing Overall, many technical challenges remain before DNA computing can be widely used. New techniques must be developed to reduce the number of computational errors produced by unwanted chemical reactions with the DNA strands, and steps in processing DNA need to be eliminated, combined, or accelerated. 1. Requires exponential resource in terms of memory: Generating solution sets, even for some relatively simple problems, may require impractically large amounts of memory (Adams). Although DNA can store a trillion times more information than current storage media, how the information is processed necessitates a massive amount of DNA if larger-scale problems are to be solved. 2. Accuracy: DNA synthesis is liable to errors, such as mismatching pairs, and is highly dependent on the accuracy of the enzymes involved. In addition, the chance of errors increases exponentially, limiting the number of operations to do successively before the probability becomes greater than producing the correct result. 3. Resource-intensive: i) Each stage of parallel operations requires time measured in hours or days, with extensive human or mechanical intervention between steps; ii) Since a set of DNA strands is tailored to a specific
40
Multiple-Valued DNA Computing problem, a new set would have to be made for each new problem; and iii) Algorithms can be executed in polynomial time due to the massive parallelism inherent in DNA computation, but they are limited in applicability to small instances of these problems because they require the generation of an unrestricted solution space. For example, the DNA encoding of all paths of a Traveling Salesman problem with 200 cities would weigh more than the earth. 4. Not Programmable: DNA computers could not replace traditional computers as they are not programmable, and the average dunce cannot sit down at a familiar keyboard and get to work.
2.8 Applications of Multiple-Valued DNA Computing DNA computing has been applied to various fields, including nanotechnology, combinatorial optimization, Boolean circuit development, and of particular relevance to the present section, scheduling. Computation using DNA molecules piques the interest of computer and biology researchers alike. DNA computing technologies are used to address various combinatorial issues due to their high parallelism and storage density. However, because the exponential expansion of the solution space makes it impossible to apply an exhaustive search strategy to problem cases of practical magnitude, artificial intelligence models are utilized to develop more efficient ways. DNA has also been investigated as good material and a fundamental building component for manufacturing large-scale nanostructures, individual Nanomechanical devices, and calculations. In 1994, Leonard Adleman proposed the first DNA computation theory. He put his experimental theory to the test with a seven-point Hamiltonian path problem, also known as the traveling salesman problem. The salesman must find the shortest route between seven cities with known distances, passing through none of them twice and returning to the starting point. Even though his DNA computing solution to this problem was not flawless, this demonstration opened up a world of possibilities and applications. The following are a handful of the applications that are currently being developed. 1. Security: The use of DNA algorithms in cryptography to build an intrusion detection model is the most recent advancement. With the ability to store 108 terabytes of data in a single gram of DNA, a gigantic one-time pad may be created. Another example is DNA steganography, which uses a new method to hide messages in microdots. Each letter was represented by three chemical bases rather than binary encoding, such as CGA for the letter “A.” These signals are then encoded into DNA sequences and concealed in a tube with a large amount of sonicated random human DNA. 2. Scheduling: To solve the work scheduling challenge, Zhixing et al proposed a DNA computing-based approach. To demonstrate the model with
Challenges in Multiple-Valued DNA Computing
41
six tasks, he depicted the working processes, replicating the technique used for the Hamiltonian Path issue. In the early 2000s, Watada used DNA algorithms to devise elevator schedule systems and restructure the Flexible Manufacturing System. However, due to a lack of theoretical underpinning, only medium-sized tasks were considered. 3. Empirical Research: Multiple-valued DNA computing has become one of the most emerging fields of research in nanotechnology. 4. Clustering: Clustering is the process of constructing a structure from a complicated collection of data to derive highly meaningful relationships. It involves a variety of concepts and methods. Edges and vertices are assigned using strands in DNA-based clustering. To increase quality, iterative calculations are conducted for each created cluster. When dealing with vast amounts of heterogeneous data with an uncertain number of clusters, this strategy is particularly useful. Due to DNA’s great parallelism, it aids in lowering time complexity. 5. Medicine: Many areas can benefit from DNA computing, but one particularly important one is medicine. Currently in development is a DNA computer that operates within human cells. As mentioned, the hope is that this technology will eventually allow for the DNA computer to select diseased cells and then exclusively treat diseased cells while leaving healthy cells intact. Using a mechanism known as RNA interference, little molecules of RNA stop a gene from creating protein. Apart from that, DNA computing has been used in a variety of sectors, such as nanotechnology, combinatorial optimization, Boolean circuit construction, genetic programming, pharmaceutical applications, and so on.
2.9 Challenges in Multiple-Valued DNA Computing To work with a third state value is always difficult. More resources are necessary to establish the multiple-valued system. Besides, DNA computing itself has some challenges in implementing the computing system. Unfortunately, there are numerous obstacles in the way of achieving the goal of multiple-valued DNA computing. The problem for scientists is to figure out how to make a molecular computer capable of handling complex yet critical decisionmaking processes. Although DNA computers have been created to play a rudimentary game of tic-tac-toe or solve relatively simple logical tasks, they are still a long way from being able to work in human cells. It’s also far too simple to apply to the more complex computations and applications required for decision-making. While DNA’s potential exceeds current computing capabilities, putting that promise into
42
Multiple-Valued DNA Computing
practical applications is still a complex and challenging task – one that is at best many years away. Another issue with the creation and use of DNA computing is that researchers have spent many years trying to figure out how to make DNA in such a way that it can solve issues as well as the existing silicon-based computers. The nano-sized particles in DNA make this a difficult problem to solve. Furthermore, DNA computing is still slower than its silicon-chip competitors, but if its full potential is realized, it will outperform traditional computing in terms of speed and economy. DNA computing is a fascinating notion, straddling the line between science and biology. It has not only proven to be a promising technology for data analysis, but it has also demonstrated the potential and power to transport data in nanotechnology and other intriguing applications. DNA computing will presumably overcome its current hurdles with sustained study and development, paving the way for efficient and successful computer applications in a wide range of sectors.
2.10 Motivations toward Multiple-Valued DNA Computing The field of DNA computing is an emerging concept still in its infancy and its applications are still being understood. DNA computing can be harnessed to act along with the living cells to provide new detection methods in medical devices. With the flexible molecular algorithms on the rise, one might be able to assemble a complex entity on the nanoscale with the reprogrammable tileset. Though replacing silicon chips-based computers seems highly unlikely shortly, the concept of solving problems beyond the scope of conventional computers gives rise to unfathomable applications. According to American engineer Gordan Moore, the number of transistors per silicon increases every two years, while computer costs are cut in half. As a result, the scale is shrinking and the performance is increasing at a rapid pace. After this researcher began to consider other possibilities, they began looking for new ways to analyze data. Finally, they discovered several fascinating new directions in atypical computing, including quantum computing and molecular computing research. Molecule computing is a branch of computing that makes use of DNA, molecular biology hardware, and DNA in general. It is feasible to cram far more circuitry onto a microchip utilizing molecular computing rather than silicon-based molecular computing. They are only a few nanometers in size, allowing for the production of devices with billions and trillions of switches and components. Boolean logic gates, memory units, and arithmetic functions have all been implemented in synthetic molecular systems. Although these systems can do fundamental Boolean operations and simple computations, their complexity is limited, making them difficult to use. Furthermore, these systems remain far off from natural information science in cells. If a biocomputer could be built, it would be useful for a variety of applications, including tackling complicated combinatorial problems faster than typical
Summary
43
silicon-based computers due to parallel processing. In general, researchers have been inspired to pursue novel computing applications. This field’s study leads to new sensing and switchable materials controlled by bioelectronics devices, process signals regulated by external signals, and signal controlled-release processes
2.11 Summary This chapter mainly focuses on the introduction of DNA computing, its pros and cons, challenges, and motivation for multiple-valued DNA computing. It is now the most exciting area to be explored by researchers. There are many opportunities for expanding and manipulating DNA characteristics, and it is capable of solving real applications, mainly industrial engineering and management engineering problems. If it is possible to implement a DNA computer perfectly, it will become an alternative way to solve the difficulties faced by current silicon computers. Although DNA computing is a more popular and understood topic, it is still theoretical. There are still some obstacles that are yet to be solved for building up a DNA computer. It is difficult to predict what directions the researchers will follow and what applications will be more efficient for DNA computing. Its computing model always depends on one molecular technique to solve various problems. Therefore, it is tough to implement and cannot construct actual intimidation to cryptography security.
Bibliography [1] Adleman, L. M. (1994). Molecular computation of solutions to combinatorial problems. Science, 266(5187), 1021-1024. [2] Yin, Z., Yang, J., Yang, Y., & Ma, Y. (2007). DNA Computing Model of the 0-1 Programming Problem. International Journal of Algebra, 1(2), 71-79. [3] Gangadharan, S., & Raman, K. (2021). The art of molecular computing: whence and whither. BioEssays, 43(8), 2100051. [4] Levesque, J., & Wagenbreth, G. (2010). High performance computing: programming and applications. CRC Press. [5] Ten Berge, M., Brinkhorst, G., Kroon, A. A., & de Jongste, J. C. (1999). DNase treatment in primary ciliary dyskinesia: assessment by nocturnal pulse oximetry. Pediatric Pulmonology, 27(1), 59-61.
44
Multiple-Valued DNA Computing
[6] LEE, Y. K., Lu, H., & Powers, J. M. (2005). Fluorescence of layered resin composites. Journal of Esthetic and Restorative Dentistry, 17(2), 93-100. [7] Watada, J., & binti abu Bakar, R. (2008, November). DNA computing and its applications. In 2008 Eighth International Conference on Intelligent Systems Design and Applications (Vol. 2, pp. 288-294). IEEE.
3 Multiple-Valued Quantum-DNA Computing
3.1
Introduction
Quantum and DNA computing are both distributed and parallel types of computing. They’re useful for tasks that require high-complexity computations and/or large data sets, such as searching, sorting, merging, pattern recognition, image processing, and encryption. Quantum and DNA algorithms cannot be efficiently simulated on classical computers because they are incapable of coping with parallelism. Quantum Computing’s superpower is the ability to solve complex problems at super high speed, and a DNA computer’s superpower is its high speed along with a massive storage system in a very small amount of DNA molecule. Both DNA and quantum computers have the potential to outperform traditional digital computers, but significant technical challenges must be addressed. Quantum computers are more powerful than classical turing machines because of their coherent superposition of states. Biotechnology techniques can be used to evolve DNA computers. Both of these qualities could be captured by combining DNA and quantum computers. Self-assembling quantum logic circuits from gates attached to DNA strands could be achieved using DNA computers. Furthermore, quantum computers might be built directly from the physical properties of the DNA molecule. So, if a crossplatform can be created that connects quantum and DNA computers with the same specific goal (solving complicated problems), will make a revolution in computation. In this chapter, a completely new idea will be introduced, where a cross-platform environment will be established using Quantum and DNA computing systems. In terms of how inputs are given and outputs are generated, multiple-valued Quantum and DNA computing can be combined in two ways. They can be named as: 1. Multiple-Valued Quantum-DNA Computing, and 2. Multiple-Valued DNA-Quantum Computing In this chapter, multiple-valued Quantum-DNA Computing is focused.
DOI: 10.1201/9781003381938-3
45
46
Multiple-Valued Quantum-DNA Computing
FIGURE 3.1 German-American Biophysicist Max Delbr¨uck
3.2
Quantum Mechanics and Quantum Molecular Biology
Quantum mechanics is the fundamental theory that explains the properties of subatomic particles, atoms, molecules, molecular assemblies, and maybe beyond. Quantum mechanics governs key life functions such as photosynthesis, respiration, and vision at the nanometer and sub-nanometer scales. All things in quantum mechanics have wave-like features, and quantum coherence characterizes the correlations between the physical quantities describing such items due to their wave-like nature when they interact. The idea that quantum phenomena – like coherence – may play a functional role in macroscopic living systems is not new. In 1932, 10 years after quantum physicist Niels Bohr was awarded the Nobel Prize for his work on the atomic structure, he delivered a lecture entitled ‘Light and Life’ at the International Congress on Light Therapy in Copenhagen. This raised the question of whether quantum theory could contribute to a scientific understanding of living systems. In attendance was an intrigued Max Delbr¨uck (Figure 3.1), a young physicist who later helped to establish the field of molecular biology and won a Nobel Prize in 1969 for his discoveries in genetics. All living systems are made up of molecules, and fundamentally all molecules are described by quantum mechanics. Traditionally, however, the vast separation of scales between systems described by quantum mechanics and those studied in
Quantum Mechanics and Quantum Molecular Biology
47
biology, as well as the seemingly different properties of inanimate and animate matter, has maintained some separation between the two bodies of knowledge. Recently, developments in experimental techniques such as ultrafast spectroscopy, singlemolecule spectroscopy, time-resolved microscopy, and single-particle imaging have enabled us to study biological dynamics on the increasingly small length and time scales, revealing a variety of processes necessary for the function of the living system that depends on a delicate interplay between quantum and classical physical effects. Quantum biology is the application of quantum theory to aspects of biology for which classical physics fails to give an accurate description. It is the study of applications of quantum mechanics and theoretical chemistry to biological objects and problems. Fundamentally, all matters – animate or inanimate – are quantum mechanical, being constituted of ions, atoms, and/or molecules whose equilibrium properties are accurately determined by quantum theory. As a result, it could be claimed that all of biology is quantum mechanical. However, this definition does not address the dynamical nature of biological processes, or the fact that a classical description of intermolecular dynamics seems often sufficient. Quantum biology should, therefore, be defined in terms of the physical ‘correctness’ of the models used and the consistency in the explanatory capabilities of classical versus quantum mechanical models of a particular biological process. Good examples of biological processes is shown in Figure 3.2 in which quantum effects are visible are the transport of electrons and protons in photosynthesis, respiration, vision, catalysis, olfaction, and in basically every other biological transport process. Further examples include the transfer of electronic and/or vibrational energy, and magnetic field effects in electron transfer and bird migration.
FIGURE 3.2 Quantum Biology in Photosynthesis
48
Multiple-Valued Quantum-DNA Computing
Quantum biology promises to give rise to design principles for biologically inspired quantum nanotechnologies, with the ability to perform efficiently at a fundamental level in noisy environments at room temperature and even make use of these ‘noisy environments’ to preserve or even enhance the quantum properties.
3.2.1
Why Quantum Molecular Biology Is an Important Field?
By definition, electrons, protons, excitations, chemical bonds, and electronic charges are quantum, and comprehending their dynamics necessitates knowledge of quantum mechanics. Furthermore, the properties of the next level of organization in biological systems – biomolecular complexes – are largely determined by these fundamental entities, whose interactions with one another and with their environment are frequently impossible to describe accurately without considering quantum biology laws. In addition, often in biology, the environment plays an essential role in the outcome of a biomolecular process. Photosynthesis and vision are two prominent examples. Thus, to understand biology, and the amazing selectivity of biological processes, quantum molecular biology is needed. Quantum molecular biology furthermore can potentially have a huge impact on numerous technologies, including sensing, health, the environment, and information technologies. For example, energy technologies might be revolutionized by bioinspired solar cells, and chemical, magnetic, and biological sensing technologies may be taken to a new level when applying the principles found in natural equivalents.
3.3 Relationship between Multi-Valued and Two-Valued Quantum and DNA Computing It has been already discussed that in quantum computing, the basic unit of information is qubits. It has two states – |0> and |1>. But in a ternary quantum system or multiple-valued quantum system, the basic information unit is qutrit. It represents three – a dimensional quantum system with three basic states |0>, |1> and, |2>. This ternary computing system performs any operations using qutrit and it also uses superposition, entanglement, and interference phenomena. The purpose of multiple-valued logic is to improve the computations power. It provides more security, performs high-speed computations, and provides high storage capacity, etc. over the two-valued quantum computing. On the other hand, DNA computing also accomplishes significant, complex mathematical problems using genetic molecules. DNA computing performs DNA logic gate operations, input and output are converted in the form of encoded strands of DNA where ACCTAG and TGGATC denote 1 and 0, respectively. And MVL DNA logic is such a ternary logic gate that consists of two inputs and one output where each input or output stays in three different states (0, 1, and 2). Multi-Valued DNA computing has significant advantages such as it can reduce the
Relationship between Multi-Valued and Two-Valued Quantum and DNA Computing 49 number of nucleic acid strands, minimize the cross interactions, and enhance the computing rates while increasing complexity. Many researchers are still working on both computing systems. Previously, this has been shown that DNA computing and quantum computing for two-valued is possible to combine with the help of some techniques like NMR and NMR relaxation, etc. As it is possible to combine the two different computing systems, also possible to combine multiple-valued quantum computing and multiple-valued DNA computing using trap ions, NMR, and NMR relaxation because Multiple-valued quantum and multiple-valued DNA computing are nothing but advanced computing techniques. That is why Multiple-valued quantumDNA computing will be discussed in this chapter which will add a new dimension to the computer computing world.
3.3.1
Multiple-Valued Quantum-DNA Computing: A New Computing Approach
Quantum computing is a type of computation that harnesses the collective properties of quantum states, such as superposition, interference, and entanglement, to perform calculations. Where, DNA computing is an emerging branch of computing that uses DNA, biochemistry, and molecular biology hardware, instead of traditional electronic computing. The core concepts and operating principles of those two computing systems are diametrically different. Multiple-valued Quantum computing works with qutrits and multiple-valued DNA computing works with nitrogen base sequences. So, if a cross-platform is needed to be built with those, so many questions may arise and so many difficulties may have to be faced. In this section, the establishment of Quantum-DNA computing will be explained in a nutshell. In Multiple-valued Quantum-DNA computing, a portion of computation will be performed in the Quantum computing system and the rest of the computing will be performed in the DNA system. The most general outer view is shown in Figure 3.3. But to make it real, a lot of functionalities have to be added to that architecture.
FIGURE 3.3 The General View of the Multiple-Valued Quantum-DNA Computing
50
Multiple-Valued Quantum-DNA Computing
3.3.2
Data Conversion Circuits to Convert Qutrits to DNA Base Sequences
Figure 3.4 shows that the multiple-valued Quantum-DNA environment has two separate computing systems such as i) multiple-valued Quantum system, and ii) multiplevalued DNA computing system. Where the outputs of the multiple-valued Quantum system are the input to the multiple-valued DNA system. But in reality, the input of the DNA system is nitrogen base sequences. That implies the DNA system cannot work with the qutrits. Therefore, the data conversion circuits are required to convert qutrits into the equivalent DNA base sequences. Data conversion circuits are the hardware that can convert Quantum bits to the equivalent DNA information and vice versa. To establish a cross-platform between multiple-valued quantum and DNA computing systems, there are three types of data conversion circuits available as mentioned below: 1. Nuclear Magnetic Resonance (NMR) technique 2. NMR Relaxation, and 3. Trap ions But to establish the multiple-valued quantum-DNA system, NMR relaxation and trap ions can be used. Now updated multiple-valued quantum-DNA system with data conversion circuits may look like Figure 3.4. The data conversion circuit will convert the output qutrits from the multiplevalued quantum system into the equivalent DNA base sequences. 3.3.2.1
NMR and NMR Relaxation
Nuclear Magnetic Resonance is abbreviated as NMR. When positioned in a high magnetic field, an NMR apparatus can study the molecular structure of a substance by viewing and quantifying the interaction of nuclear spins. For the analysis of molecular structure at the atomic level, electron microscopes and X-ray diffraction instruments can also be used, but the advantages of NMR are that sample measure-
FIGURE 3.4 The General View of the Multiple-Valued Quantum-DNA Computing with Data Conversion Circuits
Relationship between Multi-Valued and Two-Valued Quantum and DNA Computing 51
FIGURE 3.5 The General Diagram of Converting Qutrit to DNA Sequence Using Trap Ion ments are non-destructive and there is less sample preparation required. It is possible to convert a DNA sequence to a quantum-bit using NMR. But when converting quantum-bit to the DNA base sequence, NMR relaxation is needed. NMR relaxation is the process by which an excited magnetic state returns to its equilibrium distribution. When a molecule drops into the NMR probe as a sample, it goes to an excited state with the help of a magnetic field. When the electromagnetic resonance is not emitted, the magnetic field becomes weak in which the superposition state molecule loses its energy and comes into the ground state and this process is called NMR relaxation. 3.3.2.2
Trap Ions as Data Conversion Circuits
Qutrits can be converted into nitrogen base sequences using another method – Trap ion. A trapped ion quantum computer is an approach for a large-scale quantum computer. Ions, or charged atomic particles, can be confined and suspended in free space using electromagnetic fields. Qutrits are stored in stable electronic states of each ion, and quantum information can be transferred through the collective quantized motion of the ions in a shared trap (interacting through the Coulomb force). Lasers are applied to induce coupling between the qutrit states (for single-qutrit operations) or coupling between the internal qubit states and the external motional states (for entanglement between qutrits). The general diagram to convert the qutrits into the DNA sequence is shown in Figure 3.5.
52
3.3.3
Multiple-Valued Quantum-DNA Computing
Intermediatory System to Control Quantum-DNA Data Flow
The data conversion problem has been solved by the data conversion circuits. Another major problem is controlling the data flow. This happens due to the execution speed difference between the two computing systems. According to IBM, quantum computing is so fast that the machine completed a theoretically defined computation in 200 seconds that would take the world’s most powerful supercomputer 10,000 years to complete. Quantum computers are 158 million times quicker than the world’s fastest supercomputer as a result of this. Therefore, quantum operations provide output instantaneously. But DNA operations require much time for preparation. Hence, the resulting qubits from the quantum computer cannot enter into the DNA system instantaneously. There must be a time delay, otherwise the qubit properties can be damaged. Eventually, the entire system may become obsolete. Therefore, the necessity of a temporary storage device or system arises where the qubits can be stored for a very short time while working with the Quantum-DNA system. To overcome this problem an intermediary storage system is proposed namely Quantum Cache Memory to store the qubits or qutrits temporarily. Cache memory is a supplementary memory system that temporarily stores frequently used instructions and data for quicker processing. It is an extremely fast memory type that holds frequently requested data and instructions so that they are immediately available for further processing. Cache memory can be used in the quantum system due to its speed and reliability. It can pass and get data very frequently. The mapping and swapping techniques in the cache memory are much optimized. But to use a cache memory in the quantum system, it is needed to redesign the cache memory to make it suitable for the quantum system. The general organization of the multiple-valued Quantum-DNA computing system including multiple-valued quantum cache memory and data conversion circuits is shown in Figure 3.6.
FIGURE 3.6 The General Organization of Multiple-Valued Quantum-DNA Computing with Quantum Cache Memory
Advantages of Multiple-Valued Quantum-DNA Computing
53
FIGURE 3.7 The General Organization of Multiple-Valued Quantum-DNA Computing with Data Conversion Circuits, Quantum Ternary Cache Memory, and Heat Conductance Circuit
3.3.4
Heat Transfer Circuit
There is another difficulty that must have to be overcome to establish the multiplevalued Quantum-DNA computing system. Quantum computer produces a tremendous amount of heat, and to connect the quantum computer with the DNA computer, this extremely excessive amount of heat must be controlled. To solve this problem a heat conductance circuit can be added to the system to transfer the excessive amount of heat into cold storage. The Figure 3.7 shows the complete architecture of the multiple-valued Quantum-DNA computing system. Note that, the DNA computing system requires an amount of 284-490◦ C heat in its preparation phase. So, the necessary heat can be given from the quantum system.
3.4
Advantages of Multiple-Valued Quantum-DNA Computing
Quantum computing involves performing calculations at a scale where quantum mechanical effects are significant. Biomolecules and biomolecular processes are used to develop computational algorithms in DNA computing. Both of these new computing paradigms have been considered as potential successors to solid-state computers. Both have significant advantages over traditional computing, as well as significant challenges to overcome to achieve successful implementation. Biomolecular computers can be evolved using molecular biology techniques and enzymes to adapt to changing settings and input. It is the flexibility and robustness of biological systems to environmental change that has inspired evolutionary programs and artificial neural networks. On the other hand, due to the intricacy of the interac-
54
Multiple-Valued Quantum-DNA Computing
tions in a biomolecular computer and the nature of biochemistry, programming them to function in a precise manner is difficult. Furthermore, computations on biomolecular computers are inefficient. Because of faults or because they do not immediately contribute to the desired computational outcome, many interactions are squandered. Quantum computers excel at computational efficiency because of the entanglement and superposition of an exponential number of states. They can be effectively programmed, though not as easily as conventional computers. Their adaptability, however, is nonexistent because of their extreme sensitivity to the effects of environmental changes. A quantum computer should be isolated from the external environment. Traditional digital computers fall somewhere in between biological and quantum computers. They are the most programmable but are less adaptable than biological and less efficient than quantum. Therefore, in what follows, first, DNA and quantum computing will be reviewed. Then, several ideas for combining the adaptability of DNA computers and the efficiency of quantum computers will be presented. The presentation is somewhat speculative, of necessity, but the intent is to suggest possibilities, not supply detailed blueprints for implementation. Quantum-DNA computing holds all the individual advantages of quantum and DNA computing. While considering multiple-valued Quantum-DNA computing it will also provide the advantages of multi-valued logic. It uses less power, but it has a great computing performance. It will be the world’s fastest computing system in the modern era. Parallelism can be gained in computing and the ability to store large amounts of data and information in a small amount of space by employing the DNA portion. The quantum portion can solve highly complicated problems in a matter of seconds, saving a significant amount of time. The world as a whole could attain the greatest success ever in the future world by integrating these two computing technologies.
3.5 Disadvantages of Multiple-Valued Quantum-DNA Computing The issue of cost is a major stumbling block. This isn’t for all computation. Regular computational problems solved by the multiple-valued Quantum-DNA computing system may not provide mesmerizing computational differences in terms of execution speed compared to the traditional system. Besides due to the scarcity of technologies, it is not viable to implement quantum-DNA circuits in all aspects of computation. The control of heat is a critical issue here. The heat released by quantum circuits is difficult to control. Another significant disadvantage is the inability to manage it. It is difficult to operate and control without a thorough understanding of quantum computing and DNA computing.
Summary
3.6
55
Summary
Multiple-valued quantum-DNA computing is a completely new idea which has been introduced in this chapter. This chapter has presented the basic organization of multiple-valued Quantum-DNA computing. The basic technologies to build multiple-valued Quantum-DNA circuits like multiple-valued quantum cache memory, NMR and NMR relaxation, trap ion, and heat transfer circuits have also discussed. The merits and demerits of the multiple-valued quantum-DNA computing are also shown to get the advantages of quantum computing and DNA computing together. The concept of quantum biology is explained here and how quantum biology is related to the Quantum-DNA computing system is also explained in this chapter.
Bibliography [1] Marais, A., Adams, B., Ringsmuth, A. K., Ferretti, M., Gruber, J. M., Hendrikx, R., ... & Van Grondelle, R. (2018). The future of quantum biology. Journal of the Royal Society Interface, 15(148), 20180640. [2] Dubrova, E. (1999, November). Multiple-valued logic in VLSI: challenges and opportunities. In Proceedings of NORCHIP (Vol. 99, No. 1999, pp. 340-350). [3] Hobo, F., Takahashi, M., & Maeda, H. (2009). S33 NMR cryogenic probe for taurine detection. Review of Scientific Instruments, 80(3), 036106. doi:10.1063/1.3103573. [4] Kodibagkar, V. D., & Conradi, M. S. (2000). Remote tuning of NMR probe circuits. Journal of Magnetic Resonance, 144(1), 53-57. [5] Auguin, D., Catherinot, V., Malliavin, T. E., Pons, J. L., & Delsuc, M. A. (2003). Superposition of chemical shifts in NMR spectra can be overcome to determine automatically the structure of a protein. Spectroscopy, 17(2-3), 559568. [6] Ishida, K., Tanaka, M., Ono, T., & Inoue, K. (2016, October). Single-fluxquantum cache memory architecture. In 2016 International SoC Design Conference (ISOCC) (pp. 105-106). IEEE. [7] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25.
4 Multiple-Valued DNA-Quantum Computing
4.1
Introduction
In the previous chapter, a new computing approach was established by merging multiple-valued quantum computing and DNA computing system. It made a relationship between molecular biology and quantum mechanics. The super-speed ability of quantum computers and large storage capability along with massive parallel execution of DNA computers have made the most powerful computing system. Figure 4.1 shows the picture of DNA at atom scale. There is another possible way to make a cross-platform environment with multiple-valued quantum computing and multiple-valued DNA computing. It is called Multiple-valued DNA-Quantum computing. In this chapter, the fundamental concept and general organizations of the multiple-valued DNA-Quantum computing will be discussed.
4.2
Relationship between Multi-Valued DNA Computing and Multi-Valued Quantum Computing with Two-Valued DNA Computing and Quantum Computing
DNA computing performs computations using biological molecules rather than traditional silicon chips. It has more advantages over conventional computers. DNA strands can hold so much data in memory and perform a million operations at once. In two-valued DNA sequence computing, ACCTAG(1) and TGGATC (0) are used for performing any logical operation. In multi-valued DNA computing, ACCTAG, CAAGCT, and TGGATC are expressed 0,1, 2, respectively. The DNA sequence is detected with the help of the fluorescent level that has been already discussed previously. The advantages of multi-valued DNA are parallelism, less power consumption, and best for the combinatorial problem. On the contrary, Quantum computing is also an advanced system that performs any complex computations very easily and multi-valued quantum computing adds more speciality and advantages to the quantum computing world.
DOI: 10.1201/9781003381938-4
57
58
Multiple-Valued DNA-Quantum Computing
FIGURE 4.1 DNA at Atom Scale Both DNA and quantum computers have the potential to exceed the power of conventional digital computers. Quantum computers are more powerful than conventional computers because of superposition states. DNA computers are also on the way to development through biotechnology techniques. As a two-valued Quantum computer and two-valued DNA sequence are possible to implement, it is also possible to develop the multi-valued DNA computing and the multi-valued quantum computing. It has been already shown that the two-valued of quantum computing and DNA computing are possible to merge. The two-valued computing systems are possible to combine the multi-valued quantum and DNA computing in order to get the more advantages. By combining these multi-valued DNA and Quantum computings, both of the characteristics of two computing systems might be captured. Some techniques such as trap ions, NMR, and NMR relaxation can be used here which will be discussed later.
4.3 Multiple-Valued DNA-Quantum Computing Multiple-valued DNA-Quantum computing is an integrated computing system where the first portion of computation is performed in the multiple-valued DNA computing system and the rest of the computation is performed in the multiple-valued quantum computing system. In the previous chapter, the idea of the multiple-valued QuantumDNA computing system was explained which consists of five components such as: (i) Multiple-valued quantum System, (ii) Multiple-valued quantum cache memory,
Multiple-Valued DNA-Quantum Computing
59
(iii) Data Conversion Circuits, (iv) Multiple-valued DNA system, and (v) heat conductance circuit. Similarly, the multiple-valued DNA-Quantum computing system will also consist of five components as follows: 1. Multiple-valued DNA Computing system, 2. Multiple-valued DNA Cache memory, 3. Data Conversion Circuits, 4. Multiple-valued Quantum Computing System, and 5. Heat Conductance Circuit.
4.3.1
General Organization of Multiple-Valued DNA-Quantum Computing
The general organization of the multiple-valued DNA-Quantum computing system is similar to the Quantum-DNA system. The first component is the DNA computing system and the last component is the quantum computing system. Besides, multiplevalued DNA cache memory is used to store the output DNA information from the DNA computing system. Figure 4.2 shows the general organization of the multiplevalued DNA-Quantum Computing system. From Figure 4.2, it is understandable that to store the DNA system’s outputs (which is DNA information, a multiple-valued DNA cache memory is required. Besides, either the NMR process or trap ions can be used to convert DNA sequences to
FIGURE 4.2 The General Organization Multiple-Valued DNA-Quantum Computing with Data Conversion Circuits, Multiple-Valued DNA Cache Memory, and Heat Conductance Circuit
60
Multiple-Valued DNA-Quantum Computing
the corresponding qutrits. The construction process, circuit diagram, and the working procedure of NMR, NMR relaxation, and trap ions were briefly described in the previous chapter. And again, to complete the organization of the circuit, a heat conductance circuit must be used through which the tremendous heat can be transferred from the quantum system to a cooler . Now, it is important to note that DNA operations which will be performed in the first place has no the required heat and this heat can’t be provided to the DNA system from the quantum system, because the heat is generated in the quantum system only when quantum operations are performed. Therefore, the required heat for the DNA system is not provided by the quantum system. Rather, this heat can be provided from the outside.
4.4 Difference between Multiple-Valued Quantum-DNA and DNA-Quantum Computing The concept of multiple-valued Quantum-DNA and DNA-Quantum computing is almost identical. But the key differences lie in their general organizations and their applications. The architectures of those computing systems show that in multiple-valued Quantum-DNA computing, the quantum operations are performed first, then a quantum cache memory temporarily stores the output qutrits of the quantum system. From the quantum cache memory, the qutrits are passed through the data conversion circuits when the multiple-valued DNA system is ready for execution. On the contrary, in multiple-valued DNA-Quantum computing, the DNA operations are performed first, then a DNA cache memory temporarily stores the output DNA information of the DNA system. From the DNA cache memory, the base sequences are passed through the data conversion circuits to the quantum system to perform the rest of the operation. From the architectures of those computing systems, their applications can also be guessed. Quantum-DNA computing is usually more useful where the problems are related to quantum mechanics directly. But DNA-Quantum computing is most suitable for the problems which are directly related to the information of molecular biology. However, both computing systems can perform any sort of computations that could be performed by them individually.
4.5 Advantages of Multiple-Valued DNA-Quantum Computing Just like multiple-valued Quantum-DNA computing, multiple-valued DNAQuantum computing can perform operations super expeditiously along with a massive storage facility. Multiple-valued DNA-Quantum computing can be used for
Advantages of Multiple-Valued DNA-Quantum Computing
61
some special purpose that other computing systems may not be handled efficiently. Those special applications include: Solving NP-Complete and Hard Computational Problems: Much of the work on DNA computing has continued to focus on tackling NP-complete and other difficult computational problems after Adleman and Lipton’s original achievements. NPcomplete problems are those for which there is no known polynomial-time solution using traditional computer algorithms. That is, as the complexity of these problems grows, the amount of time it takes to solve them grows exponentially. These issues are also described as intractable, but if a tractable solution to one of them can be found within the NP-complete domain, it can be utilized to solve all of the other problems in the set. Apart from technological issues, real-world issues are also addressed, such as the majority problems of company planning and management science. Many of the cost optimization challenges that managers confront are now tackled via heuristic methods and other approximations since they are NP-complete. These issues include scheduling, routing, and the best utilization of raw materials, and they correspond to problems that have already been handled using multiple-valued DNA-Quantum computation, either theoretically or empirically. Storage and Associative Memory: DNA could potentially be utilized to replicate and perhaps improve the human brain’s associative skills. Baum proposed using DNA to create a huge content-addressed memory. Baum has also proposed that a memory may be built, in which only contentaddressable and associative portions of the data are retained, with other information on an item compactly stored in addresses relative to the associative section of the entry. Given the brain’s limit of around 1015 synapses and Feynman’s low-end estimate of the brain’s ability to discriminate about 106 concepts, a DNA-based associative memory system could have certain benefits over the brain. Baum thinks that a huge bathtub of DNA, around 50g in 1000l, could carry over 1020 words without accounting for superfluous molecules. This massive storage along with the quantum phenomena can produce a strong computing capability that the world has ever imagined. DNA2DNA Applications: Another area of DNA-Quantum computation exists where conventional computers are incapable of competing at this time. The use of DNA computers to execute operations on unknown sections of DNA without needing to sequence them first is known as DNA2DNA computations. This is accomplished by re-coding and amplifying unknown strands into a redundant form, allowing them to be processed using techniques similar to those employed in the sticker model of DNA computation. The followings are some of the potential uses of DNA2DNA computations: 1. DNA Sequencing, 2. DNA Fingerprinting, 3. DNA Mutation and Population Screening, and so on. Uses in Nano Computing: The combination of DNA and nanotechnology provides us with a wide range of benefits. When the structure of DNA is considered, it’ll
62
Multiple-Valued DNA-Quantum Computing
be noticed that it’s a double-stranded molecule. This molecule can unzip to generate a branching molecule, but the branches can also be weaved into self-assembling structures. Scientists may unzip a double-stranded DNA molecule partway, and the branches will unite with corresponding sequences on other DNA that is branching out in the same way. With the appropriate supervision, DNA molecules can be connected in such a way that they form useful structures which can be used in a variety of applications. Previously, several DNA Nano mechanical devices were built to exhibit motions including open/close, extension/contraction, and motors/rotation mediated by DNA. Intelligent systems Based on DNA-Quantum Computing: This new invention which is introduced here as multiple-valued DNA-Quantum computing can also be used to develop intelligent systems.
4.6
Summary
This chapter aims at giving the idea of a concept of establishing a cross-platform environment with multiple-valued DNA and Quantum computing systems. The general architecture of the computing system has been explained which is actually quantum molecular biology. Its components are described with proper figures. The difference between multiple-valued Quantum-DNA computing and multiple-valued DNAQuantum computing has also been discussed. The advantages and applications of multiple-valued DNA-Quantum computing have discussed elaborately.
Bibliography [1] Sharma, V. DNA Computing: A Complete Overview. [2] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [3] Kodibagkar, V. D., & Conradi, M. S. (2000). Remote tuning of NMR probe circuits. Journal of Magnetic Resonance, 144(1), 53-57. [4] Hobo, F., Takahashi, M., & Maeda, H. (2009). S33 NMR cryogenic probe for taurine detection. Review of Scientific Instruments, 80(3), 036106. doi:10.1063/1.3103573 [5] Mostafanasab, H., & Yousefian Darani, A. (2021). On Cyclic DNA Codes Over F2 + uF2 + u2 F2 F 2+ u F 2+ u 2 F 2. Communications in Mathematics and Statistics, 9(1), 39-52.
Part II
Heat Measurement, Heat Transfer, Speed Calculation, Data Conversion, and Data Management in Multiple-Valued Quantum and DNA Computing
Overview
Multiple-valued quantum computers are frequently characterized as a revolutionary invention that will influence the outcome of history. The rapid computing behavior of quantum computers is one of its primary advantages and capabilities. Quantum computers are extremely powerful and speedy. They can conduct calculations that today’s supercomputers would take decades or perhaps millennia to complete. Quantum supremacy is a term used by specialists to describe this occurrence. This was only a theory for a long time. Google’s quantum computer prototype, on the other hand, was able to do such a calculation and demonstrate quantum superiority in practice in 2019. Multiple-valued DNA computing uses DNA molecules to represent data and can store huge amounts of information with the ability of computing in parallelism. For combining the advantages of both DNA and Quantum computation systems, quantum molecular biology is needed where DNA-quantum and QuantumDNA computation systems can be introduced. Quantum molecular biology is a study where the quantum phenomena and the interactions of molecular DNA have been discussed. Multiple-Valued computing in quantum molecular biology will be a big thing near future. It will be able to compute parallel operations at super-fast speed. Quantum computing produces too much heat during computation. On the other hand, DNA computing needs extra heat to perform computation. The main objectives of this part are to measure excessive heat of multi-valued quantum computing and required heat for multi-valued DNA computing and the heat transfer process from the quantum part to the DNA part. Another important objective is to calculate the speed or performance of multi-valued quantum and DNA computing. Data conversion via NMR, NMR relaxation, and Trap ion from qubit to DNA sequences and vice versa is also an objective of this part. The last chapter of this part describes the data management process during multi-valued quantum and DNA computing where the multi-valued quantum and DNA cache memory is used during computation. All these necessary matters are discussed in this part within five chapters.
65
5 Heat Calculation
5.1
Introduction
Multi-Valued quantum computer calculations are especially promising for analyzing or simulating extremely complicated processes with large volumes of data. Multi-Valued quantum computation can be applied in cryptography, data analysis, task scheduling, predicting and forecasting, medical research, and artificial intelligence. Multi-Valued DNA computing is capable of performing these millions of processes in parallel way. A single cubic centimeter can contain over 10 trillion DNA molecules. This cubic centimeter of particles could effectively do 10 trillion calculations at the same time and store up to 10 terabytes of information. In many ways, DNA computing is capable of much of the breathless but erroneous coverage that quantum computing receives. By observing quantum and DNA computing, it is easy to find out the advantages of both computation systems. To make some operations, some circuit designs are always needed which can lead us towards some expected outputs. Quantum computing produces so much heat during computation and DNA computing needs heat to perform computation. Produced heat from a circuit is always an important topic for each type of computing circuit. Nowadays, produced heat or required heat for quantum computing and DNA computing is an arresting matter for researchers. This chapter presents some ways to find out the amount of heat produced from a multi-valued quantum computing circuit. And further, it is needed to calculate the amount of required heat for multi-valued DNA computation.
5.2
Basic Definitions for Heat Calculation in Quantum Circuit
This section describes the basic information and theory to calculate produced heat from quantum circuits and the required heat to perform a DNA operation in quantum and DNA computing. In quantum operation, qubit is generating heat when they become isolated and start to compute. In quantum physics, thermodynamics exists and the thermodynamics rule is quite the same for qubits also. When a quantum system is a single qubit, it is easy to write the Hamiltonian matrix as follows: H= DOI: 10.1201/9781003381938-5
−1 A Cσ 2
(5.1) 67
68
Heat Calculation
This may correspond to an electric spin in a vertical magnetic field where A C is the energy difference between the states |↑> = |0> and |↓> = |1>. The same Hamilton matrix may also refer to a two=level atom where it is needed to identify its ground and excited states as |0> and |1>, respectively. The Gibbs state of the qubit takes the form ρβ =
1
σ
2cosh β AC2
eβAC 2 =
1 −βA C > 0| + e > 1| |0 |1 1 + e−βAC
(5.2)
Researchers have introduced the inverse temperature β = 1 / KB T. Then the occupation number, nβ = tr nˆ ρˆβ =
1 1 + exp (β )
(5.3)
So, the average energy of thermal qubit, E=
1 1 ,0 < E < A C 1 + exp (βA C) 2
(5.4)
This will be identified as the thermodynamic energy of the thermal qubit. The von Neumann entropy of the Gibbs state can be calculated, and with one eye on thermodynamics, the right-hand side is expressed. In terms of the energy E, S (E) =
−A C−E A C−E E E 1 log − log , 0 < E < A C A C A C A C A C 2
Then Sth Energy will, S th (E) = (kB ln2) S (E) So, the entropy of a single thermal qubit is, dS th (E) 1 = dE T And, the entropy for n-thermal qubit is, dS th (E) n = dE T
(5.5)
It is known that, β=
1 KB T
Here β is the inverse temperature, kb is the Boltzmann constant, and T is the room temperature initially. 1 KB T 1 = 8.617 X 10−5 X300 β=
= 39 ev−1
Heat Calculation in Multiple-Valued Quantum Circuit So, the average energy of thermal qubit, E = =
69
1 1±e39X
1 1 ± e39x0.9
=5.7051 x 10−16 Here, is emissivity and this value will be 0 to 1 concerning the molecule and assumed that = 0.9 for ideal purposes. Now, according to Qubit Thermodynamics, Sth energy is, Sth (E) = (Kb ln 2) S (E) = −kB
−E −E E E ln − kB ln =1.9118 x 10−18
and Sth (E) is quantum mechanics qubit entropy. This can be identified as the thermodynamic energy of the thermal qubit. The von Neumann entropy of the Gibbs state is calculated, and with one eye on thermodynamics, the right-hand side is expressed. In terms of the energy E: Sth (E, N) = N (Kb ln 2) S (E/N) = −kB
− E/N − E/N E/N E/N ln − kB ln
(5.6)
Here, A C = 0.9 E = 5.7051 x 10−16 N = Number of qubits in the operation KB = Boltzmann constant, 8.617 × 10−5 evT−1 Now, by using the above equations, it is possible to calculate the produced heat from any quantum circuit. Some basic quantum operational circuits are described below for calculating the produced heat, where N is the number of the quantum qubits.
5.3 Heat Calculation in Multiple-Valued Quantum Circuit Quantum computing embraces emerging technology areas such as quantum information systems and quantum cryptography. Its behavior is defined by quantum algorithms that exploit the quantum mechanical phenomenon of matter. The advantage of quantum computing is parallelism based on the linear superposition of quantum
70
Heat Calculation
states. It has been shown that certain problems can be solved in fewer steps by quantum algorithms than by existing classical ones. A 2-state quantum system is usually defined with the two pure states |0 > and |1 > as basis states, and the unit of information is known as a qubit. Presently, multi-valued quantum computing is gaining importance in the field of quantum information theory and quantum cryptography as it can represent an n-dimensional quantum system, defined by the basic states |0 >, |1>, ......., | −1 >. The unit of information is called a qubit. For a multi-valued quantum system, this unit is termed as qutrit [6]. A multi-valued quantum system exists in a linear superposition of three basic states, labeled |0 >, |1 >, and |2 >. Multi-Valued logic is one of the cases that drew the attention of the researchers. Meanwhile, the multi-valued circuits were more accepted because of their advantages over the binary circuits. Multi-Valued quantum computation has high fault tolerance and high speed as compared to the binary and is useful for quantum simulation, quantum tomography, and quantum games.
5.3.1
Quantum Multi-Valued Half Adder
A multi-valued half adder is a type of adder, an electronic circuit that performs the addition of multi-valued numbers. The half adder can add two single multi-valued digits and provide the output plus a carry value. It has two inputs, called A and B, and two outputs S (sum) and C (carry). Figure 5.1 describes the quantum operational circuit of the multi-valued half adder. Quantum multi-valued half adder will add two qubits from the quantum multi-valued digit |0>, |1>, and |2> and produce two outputs as quantum sum |S> and quantum carry |C>. Multi-Valued half adder is 16 qubits (considering 14 ancilla qubits and 2 input qubits) quantum operation; and for this quantum operation, heat measurement is calculated using the following formula: n dS th (E) = dE T It is known that, for the N-qubit gate, Sth (E, N) = N (Kb ln 2) S (E/N) = −kB
E/N E/N − E/N − E/N ln − kB ln
Quantum multi-valued half adder has 16 qubits as shown in Figure 5.1. So, N = 16. Thus, Sth (E, N) = 2.0607x10−18 , and T= =
dE x N dS th (E)
5.7051 × 10−16 × 16 2.0607 × 10−18 =4429.64 k
Therefore, the produced heat from Quantum multi-valued half adder is 4429.64 Kelvin. Figure 5.1 shows the circuit diagram of quantum multi-valued half adder.
Heat Calculation in Multiple-Valued Quantum Circuit
71
Quantum Ternary 1-to-3 Decoders
Quantum Ternary AND Operations
Quantum Ternary OR Operations
Quantum Ternary AND & OR Operations
FIGURE 5.1 The Circuit Diagram of Quantum Multi-Valued Half Adder
5.3.2
Quantum Multi-Valued Half Subtractor
A multi-valued half subtractor is a type of subtractor, an electronic circuit that performs the subtractions of multi-valued numbers. The half subtractor can subtract two single multi-valued digits and provide the output plus a borrow value. It has two inputs, called A and B, and two outputs D (difference) and B (borrow). Quantum multi-valued half subtractor will subtract two bits from the quantum multi-valued digit |0>, |1>, and |2>, and produce two outputs as quantum difference |D> and quantum borrow bit |B>. Multi-Valued half subtractor is 16 qubits (considering 14 ancilla qubits and 2 input qubits) quantum operation; and for this quantum operation, the heat measurement is calculated using the following formula: dS th (E) n = dE T
72
Heat Calculation It is known that, for N qubit gate, Sth (E, N) = N (Kb ln 2) S (E/N) − E/N − E/N E/N E/N ln − kB ln Quantum multi-valued half subtractor has 16 qubits in the figure. So, N = 16. Thus, Sth (E, N) = 2.0607 × 10−18 , and = −kB
T= =
dE x N dS th (E)
5.7051 × 10−16 × 16 2.0607 × 10−18 = 4429.64 k
Thus, the produced heat from the quantum multi-valued half subtractor is 4429.64 Kelvin. The quantum circuit for the multi-valued half subtractor is shown in Figure 5.2.
5.3.3
Quantum Multi-Valued 3-to-1 Multiplexer
A multiplexer (MUX) is a device that can receive multiple input signals and synthesize a single output signal in a recoverable manner for each input signal. It is also an integrated system that usually contains a certain number of data inputs and a single output. A multi-valued multiplexer of 3n inputs have n select lines. And a selected line is used as the selection input that is sent to the output. A multi-valued multiplexer is 10 qubits (considering 6 ancilla qubits and 4 input qubits) quantum operation; and for this quantum operation, the heat measurement is calculated using the following formula: dS th (E) n = dE T It is known that, for N qubit gate, Sth (E, N) = N (Kb ln 2) S (E/N) − E/N − E/N E/N E/N ln − kB ln The quantum multi-valued multiplexer has 10 qubits as shown in Figure 5.3. So, N = 10. Thus, Sth (E, N) = 2.034 × 10−18 , and = −kB
T= =
dE x N dS th (E)
5.7051 × 10−16 × 16 2.034 × 10−18 = 2802.35 k
73
Basic Definitions for Heat Calculation in DNA Circuit
Quantum Ternary 1-to-3 Decoders
Quantum Ternary AND Operations
Quantum Ternary OR Operations
Quantum Ternary AND & OR Operations
FIGURE 5.2 The Circuit Diagram of Quantum Multi-Valued Half Subtractor Thus, the produced heat from the quantum multi-valued multiplexer is 2802.35 Kelvin. The quantum circuit for the multi-valued quantum 3-to-1multiplexer is shown in Figure 5.3.
5.4
Basic Definitions for Heat Calculation in DNA Circuit
DNA has the characteristics of enabling classical logical operation using DNA sequence. DNA prefers to be in double-stranded form, while single-stranded DNA naturally migrates towards complementary sequences to form double-stranded com-
74
Heat Calculation
Quantum Ternary 1-to-3 Decoder
Quantum Ternary AND Operations
Quantum Ternary OR Operations
FIGURE 5.3 The Circuit Diagram of Quantum Multi-Valued 3-to-1 Multiplexer plexes. Complementary sequences pair the bases adenine (A) with thymine (T) and cytosine (C) with guanine (G). DNA sequences pair in an antiparallel manner, with the 50 end of one sequence pairing with the 30 end of the complementary sequence. The input of each DNA operation is the single standard sequence. If it is assumed true then the complementary DNA sequence is false. Suppose ACTCGT is the input sequence and then the complementary sequence TGAGCA. In DNA computing, when the logic gate is designed, a predetermined single strand sequence can be supplied to induce an appropriate chemical reaction. This sequence also helps to evaluate the output value whether it is true or false. When the mixing step appears, it is needed to mix the two sequences to achieve a union of DNA sequences. In the mixing step, it is needed to give some heat to mix these. Then the annealing appears and in annealing, it is needed to cool this little and make a double sequence bond. After annealing, the step appears as melting. In melting step, it is needed to heat the double-strand DNA sequence to make them a single strand complementary sequence and this sequence will be used in the DNA logic operation after some steps. So, it is needed to know the DNA melting temperature. Depending on the nature of the sequence, it is needed to use one of two methods to calculate the melting temperature, Tm : 1. Nearest Neighbors, and 2. Basic
75
Basic Definitions for Heat Calculation in DNA Circuit 1. Nearest Neighbors: Tm =
∆H − 273.15 + 16.6log Na+ C A + ∆S + Rln 4
(5.7)
where 1. Tm = melting temperature in◦ C, 2. ∆H = enthalpy change in kcal mol−1 (accounts for the energy change during annealing / melting), 3. A = constant of -0.0108 kcal K−1 mol−1 (accounts for helix initiation during annealing / melting), 4. ∆S = entropy change in kcal K−1 mol−1 (accounts for energy unable to do work, i.e., disorder), 5. R = gas constant of 0.00199 kcal K−1 mol−1 (constant that scales energy to temperature), 6. C = oligonucleotide concentration in M or mol L-1 (Here 0.0000005, i.e., 0.5 µ M), 7. −273.15 = conversion factor to change the expected temperature in Kelvins to◦ C, and 8. Na+ = sodium ion concentration in M or mol L-1 (Here 0.05, i.e., 50 mM). This example will demonstrate the manual calculation of the Tm for the following sequence: 5’-AAAAACCCCCGGGGGTTTTT-3’ The above sequence paired is with its reverse complement as follows: 5’-AAAAACCCCCGGGGGTTTTT-3’ 3’-TTTTTGGGGGCCCCCAAAAA-5’ Tm =
∆H − 273.15 + 16.6log Na+ C A + ∆S + Rln 4
(5.8)
Tm = 69.6 degree Celsius. 2. Basic Method: A secondary method which is used to calculate Tm as the basic method. It considers a modified Marmur Doty formula, which is used for oligonucleotides with short sequences lengths, (those that are 14 bases or less): Tm = 2(A + T) + 4(C + G) – 7 1.
Tm = melting temperature in◦ C,
2.
A = number of adenosine nucleotides in the sequence,
3. T = number of thymidine nucleotides in the sequence,
76
Heat Calculation 4. C = number of cytidine nucleotides in the sequence, 5. G = number of guanosine nucleotides in the sequence, and 6. -7 = correction factor accounting for in solution.
5.5
Heat Calculation in Multi-Valued DNA Circuit
DNA computing embraces emerging biology-dependent technological areas such as DNA security, DNA computing systems, and scheduling systems. The advantage is parallelism based on DNA strands, which are composed of Adenine, Thymine, Guanine, and Cytosine. It has been shown that certain problems can be solved in fewer steps and with less memory by DNA computing algorithms than by existing classical computing systems. A 2-strand base DNA system is usually defined with the two pure strands as CAAGCT and ACCTAG. At the same time, the multi-valued DNA computing can be used as an important area in the field of DNA computation systems, DNA scheduling, and security system as it can represent multiple DNA strands in the system for carrying information. For a multi-valued DNA computation system, the basic three strands can be TGGATC, CAAGCT, and ACCTAG. Multi-Valued DNA computation systems can draw the attention of researchers because of their advantages over binary computation systems. For ensuring security as intrusion detection, job scheduling, and huge data clustering can be solved using a multi-valued DNA computing system.
5.5.1
DNA Multi-Valued Decoder
A Decoder is a combinational circuit that has ‘n’ input lines and a maximum of 2n output lines. One of these outputs will be active High based on the combination of inputs present when the decoder is enabled. That means the decoder detects a particular code. In Figure 5.4, the decoder is the unary function for input variable A as A0, A1, and A2 which is used for multi-valued function implementation. Figure 5.4 shows the DNA multi-valued decoder. Here, one input sequence “A” as follows: 1. A = ACCTAG The calculation of the melting temperature of a specific DNA sequence is as follows: For Input, A = ACCTAG Tm(A) = 2(A + T) + 4(C + G) − 7 = 2(2 + 1) + 4(2 + 1) − 7 = 11.0◦ C For each test tube, the heat required for specific steps of DNA multi-Valued decoder is as follows:
Heat Calculation in Multi-Valued DNA Circuit
77
1. Basic gate operation preparing (98◦ C − 94◦ C), 2. Synthesizing (98◦ C − 94◦ C), 3. Mixing (95◦ C − 22◦ C), 4. Annealing (70◦ C − 20◦ C), 5. Melting (11◦ C), 6. Amplifying, 7. Separating, 8. Extracting, 9. Cutting
(20◦ C,
10. Ligating, 11. Substituting, 12. Marking, 13. Destroying, and 14. Detecting and Reading (98◦ C − 25◦ C). So, in a DNA multi-valued decoder, the maximum required heat = (98 + 98 + 95 + 70 + 11 + 20 + 98)◦ C = 490◦ C, And the minimum required heat = (94 + 94 + 22 + 20 + 11 + 20 + 25)◦ C = 286 ◦
C.
FIGURE 5.4 DNA Multi-Valued Decoder
78
Heat Calculation
Again, in a specific basic DNA operation, all the processes are happening in the test tube after mixing is completed. Here in specific cases, it is needed to keep the temperature high and sometimes need to keep the temperature low for several steps. So, the temperature is at a maximum of 94 − 98◦ C. When a DNA operation applies, it is needed to keep the temperature around 20◦ C and during the detection time, it is needed at around 25◦ C.
5.5.2
DNA Multi-Valued 3-to-1 Multiplexer
The multiplexer is one of the most important designs of a binary digital system. It is such a device that allows only one input from several input signals and the selection input helps the multiplexer to transmit data into a single medium. Multiplexers aid to improve the efficiency of the communication system. It allows the transmission of data such as audio, video, etc. from different channels via cables. And here, it will be implemented using MVL which helps to simulate the circuit easier way than the digital binary multiplexer. It is possible to construct a DNA 3-to-1 multi-valued multiplexer circuit based on a conventional 3-to-1 multi-valued circuit. Figure 5.5 illustrates the DNA multi-valued 3-to-1 multiplexer. Here, the four input sequences are as follows: 1. I0 = TGGATC 2. I1 = CAAGCT 3. I2 = ACCTAG 4. S = TGGATC Calculation of melting temperature of a specific DNA sequence is as follows: For Inputs,, I0 and S = TGGATC Tm (I0 or S ) = 2(A + T) + 4(C + G) − 7 = 2(1 + 2) + 4(1 + 2) − 7 = 11.0◦ C Again, Input, I1 = CAAGCT So, Tm (I1) = 2(A + T) + 4(C + G) − 7 = 2(2 + 1) + 4(2 + 1) − 7 = 11.0◦ C Again, Input, I2 = ACCTAG So, Tm (I2) = 2(A + T) + 4(C + G) − 7 = 2(2 + 1) + 4(2 + 1) − 7 = 11.0◦ C For each test tube, the required heat for specific steps of a DNA full adder circuit is as follows: 1. basic gate operation preparing (98 ◦ C − 94 ◦ C) 2. Synthesising (98 ◦ C − 94 ◦ C) 3. Mixing (95◦ C − 22 ◦ C)
79
DNA Ternary NOT Operations DNA Ternary NOR Operations
Anneal . The quantum circuit for the multi-valued half subtractor is shown in Figure 6.11.
Quantum Ternary 1 to 3 Decoders
Quantum Ternary AND Operations
Quantum Ternary Quantum Ternary OR Operations AND and OR Operations
FIGURE 6.11 The Circuit Diagram of Quantum Multi-Valued Half Subtractor
102
Speed Calculation
To find the required time for performing operations in a quantum multi-valued half subtractor, it can be divided into multiple pipelines, where just five of them are presented below. As well, these five pipelines of quantum multi-valued operations and some other basic quantum multi-valued operations are performed in parallel. Five pipelines are as follows: 1. Decoder, AND, OR, OR, and OR; 2. Decoder, AND, OR, OR, and OR; 3. Decoder, AND, OR, OR, and AND; 4. Decoder, AND, OR, OR, and AND; and 5. Decoder, AND, OR, OR, AND, and OR. AND and OR quantum multi-valued operations need 60 microsecond and 80 microseconds, respectively. And the decoder needs 13 microseconds to perform its operation. Among all pipelines input to an output, the last pipeline is the largest pipeline for providing output of the quantum multi-valued half subtractor, it is taken for measuring the total required time for performing the operations. Other quantum multi-valued basic operations are performed within this time in parallel. The required time for multi-valued half subtractor is (Decoder + AND + OR + OR + AND + OR) microseconds; where the required time for a quantum multi-valued decoder is 13 microseconds, the required time for a quantum multi-valued AND operation is 60 microseconds, the required time for a quantum multi-valued OR operation is 80 microseconds, and the required time for a quantum multi-valued half subtractor is (13 + 2 × 60 + 3 × 80) microseconds = 373 microseconds.
6.4 Speed Calculation for DNA Operation DNA molecules can be used as information storage media. Usually, DNA sequences of around 8-20 base pairs are used to represent bits, and numerous methods have been developed to manipulate and evaluate these. In order to manipulate a wet technology to perform computations, one or more of the following techniques are used as computational operators for copying, sorting, splitting, or concatenating the information contained within DNA molecules as ligation, hybridization, polymerase chain reaction (PCR), gel electrophoresis, and enzyme reaction. Allosteric DNAzyme-based DNA logic circuit, described a procedure to make a DNAzyme-based logic circuit. Here, All DNA operations are formed by annealing twice: firstly, the mixture of the inhibitor DNA strands and E6-type DNAzymes in 1× TAE/ Mg2 + buffer (40 mM Tris, 20 mM acetic acid, 1 m MEDTA2 Na and 12.5 mM Mg(OAc)2 , pH 8.0) is heated at 95◦ C for 4 min, 65◦ C for 30 min, 50◦ C for 30 min, 37◦ C for 30 min, 22◦ C for 30 min, and preserved at 20◦ C; and then the substrates
Speed Calculation in Multi-Valued DNA Circuit
103
are added into the annealed mixture and incubated at constant temperature 20◦ C for 4 hours (total 6 hours for preparing the DNA operation). After that Logic operations are triggered through displacement reaction in 1× TAE/ Mg2+ buffer (40 mM Tris, 20 mM acetic acid, 1 mM EDTA2 Na, and 12.5 mM Mg (OAc)2 , pH 8.0). The input DNA strands are added to a solution containing DNA operations and reacted for > 2 hours at 20◦ C. Next, the displaced products are stored at 20◦ C for native PAGE or fluorescence detection. In addition, polyacrylamide gel electrophoresis (PAGE) needs 2 hours and the PCR process for fluorescence detection needs less than 2 hours. Here a specific biochemical process is described briefly which serves as the basis of the DNA computing approach as Polymerase Chain Reaction (PCR). Polymerases perform several functions, including the repair and duplication of DNA. PCR is a process that quickly amplifies the amount of specific DNA molecules in a given solution using primer extension by the polymerase. Each cycle of the reaction doubles the quantity of this molecule, leading to an exponential growth in the number of sequences. It consists of the following key processes: 1. Initialization: mix a solution of template, primer, dNTP, and the enzyme that is heated to 94 −98◦ C for 1 − 9 minutes to ensure that most of the DNA template and primers are denatured; 2. Denaturation: heat the solution to 94 − 98◦ C for 20 − 30 seconds for separation of DNA duplexes; 3. Annealing: lower the temperature enough (usually between 50−64◦ C) for 20−40 seconds for primers to anneal specifically to the ssDNA template; 4. Elongation/Extension: raise temperature to optimal elongation temperature of Taq or similar DNA polymerase (70 − 74◦ C) for the polymerase adds dNTP’s from the direction of 5’ to 3’ that are complementary to the template; and 5. Final Elongation/Extension: after the last cycle, a 5 − 15 minutes elongation may be performed to ensure that any remaining ssDNA is fully extended. Steps 2 to 4 are repeated 20−35 times; fewer cycles results in less product, too many cycles increase the fraction of incomplete and erroneous products. PCR is a routine job in the laboratory that can be performed by an apparatus named a thermal cycler. According to the PCR process, producing an operational output of DNA computation requires around 2 hours. So, except for initial preparation and the last phase of fluorescence detection for each operation in a particular test tube, it requires more or less 2 hours.
6.5 Speed Calculation in Multi-Valued DNA Circuit DNA computing embraces emerging biology-dependent technological areas such as DNA computing systems, DNA security, and scheduling systems. The advantage
104
Speed Calculation
of DNA computing is parallelism based on DNA strands, which are composed of Adenine, Thymine, Guanine, and Cytosine. It has been shown that certain problems can be solved in fewer steps and with less memory by DNA computing algorithms than by existing classical computing systems. A 2-strand base DNA system is usually defined with the two pure strands as CAAGCT and ACCTAG. At the same time, multi-valued DNA computing can be used as an important matter in the field of DNA computation systems, DNA scheduling, and security system as it can represent multiple DNA strands in the system for carrying information. For a multi-valued DNA computation system, the basic three strands can be TGGATC, CAAGCT, and ACCTAG. Multi-Valued DNA computation systems can draw the attention of researchers because of their advantages over binary computation systems. For ensuring security as intrusion detection, job scheduling and huge data clustering can be solved using a multi-valued DNA computing system.
6.5.1
DNA Multi-Valued Decoder
A Decoder is a combinational circuit that has ‘n’ input lines and a maximum of 2n output lines. One of these outputs will be active High based on the combination of inputs present when the decoder is enabled. That means the decoder detects a particular code. In Figure 6.12, decoder is the unary function for input variable A as A0, A1, and A2 which is used for multi-valued function implementation. So, the DNA multi-valued decoder is shown in Figure 6.12. To find the required time for performing the operations of the DNA multi-valued decoder, it is divided into four pipelines as some of the basic DNA multi-valued operations are performed in parallel. Four pipelines are as follows:
DNA NOT
DNA OR DNA NOT DNA NOT
FIGURE 6.12 DNA Multi-Valued Decoder
DNA NOT
Speed Calculation in Multi-Valued DNA Circuit
105
1. NOT; 2. NOT, OR, and NOT; 3. NOT, NOT, OR, and NOT; and 4. NOT and NOT. DNA basic (i.e., OR and NOT) operations need more or less 2 hours to perform the operations. In addition, it needs 6 hours for preparing any DNA basic operation and 2 hours for fluorescence detection which is fixed for any DNA multi-valued basic operation. As the third pipeline is the largest pipeline for processing input to the output of the multi-valued decoder, it is taken for measuring the total required time for performing operations. Other DNA multi-valued basic operations are performed within this time in parallel. So, the required time for four basic operations in DNA is = (2 + 2 + 2 +2) = 8 hours; where the required time for DNA (OR and NOT) operations need more or less 2 hours. The total required time for performing DNA multi-valued decoder operation is the summation of initial preparation time, fluorescence detection time, and multi-valued DNA operation time. So, the required time for DNA multi-valued full adder operation is = (Basic operation preparation time + Four basic DNA multi-valued operation time + Fluorescence detection time) = (6 + 8 + 2) hrs = 16 hours (approximately).
6.5.2
DNA Multi-Valued 3-to-1 Multiplexer
The multiplexer is one of the most important designs of a binary digital system. It is such a device that allows only one input from several input signals and the input which is selected by a multiplexer is transmitted into a single medium. Actually, multiplexers aid to improve the efficiency of the communication system. It allows the transmission of data such as audio, video, etc. from different channels via cables. And here, this will be implemented using MVL to simulate the circuit so easily than the digital binary Multiplexer. Then the designing of a DNA 3-to-1 multi-valued multiplexer circuit is constructed based on a combinational digital 3-to-1 multi-valued circuit. To find the required time for performing operations of a DNA 3-to-1 multiplexer circuit, it is divided into four pipelines as some of the basic DNA operations are performed in parallel. All these pipelines are as follows: 1. NOT, AND, OR, and OR; 2. NOT, NOR, NOR, AND, OR, and OR; 3. NOT, NOT, NOR, NOR, AND, OR, and OR; and 4. NOT, NOT, AND, and OR.
106
Speed Calculation
DNA Ternary NOT Operations DNA Ternary NOR Operations
Anneal , and |2> and produces two outputs as quantum difference |D> and quantum borrow bit |B>. From the multi-valued quantum-DNA half subtractor circuit as shown in Figure 6.15, it is found that 11 AND, 7 OR, and 2 decoder operations are performed to provide the output in a DNA sequence. In this circuit, nine AND, six OR, and two decoder operations are performed with multi-valued quantum qubit and the rest are performed with DNA sequences. The output of all quantum operations goes through NMR relaxation at 0-kelvin. It produces DNA sequences as an output and it can be used as an input in all DNA operations. To find the required time of a quantum-DNA multi-valued half subtractor operation, it can be divided into multiple pipelines and here, just five of them are presented below. Besides, these five pipelines of quantum-DNA multi-valued operations, some
110
Speed Calculation
Quantum Ternary 1-to-3 Decoders
Anneal . From the multi-valued DNA-quantum half subtractor circuit in Figure 6.17, it is found that 11 ANDs, 9 ORs, and 8 NOTs circuits are used to provide the output in quantum qubit. In this circuit, nine ANDs, five ORs, and eight NOTs DNA operations are performed with DNA sequence and the rest operations are performed with ternary quantum qubits. The output of all DNA operations goes through NMR at room temperature. It produces quantum qubits as an output and it can be used as an input in all quantum circuits. Now, it can be divided into multiple pipelines to find the required time of DNAquantum multi-valued half subtractor operation, where just five of them are presented below. Besides these five pipelines of DNA-quantum multi-valued operations, some of other basic quantum and DNA multi-valued operations are performed in parallel. Five pipelines are as follows: 1. DNA (NOT, OR, NOT, AND, OR) and Quantum (OR, OR); 2. DNA (NOT, NOT, OR, NOT, AND, OR) and Quantum (OR, OR); 3. DNA (NOT, NOT, OR, NOT, AND, OR) and Quantum (OR, AND, OR); 4. DNA (NOT, OR, NOT, AND, OR)and Quantum (OR, AND); and 5. DNA (NOT, NOT, OR, NOT, AND, OR) and Quantum (OR, AND). Among all pipelines from input to output, the third pipeline is the largest pipeline for providing an output of the multi-valued DNA-quantum half subtractor which is
Speed Calculation in Multi-Valued DNA-Quantum Circuit
115
used for measuring the total required time. Other DNA and quantum basic multivalued operations are performed within this time in parallel. Any DNA basic operation (i.e., AND, OR, NOT, and XOR) needs more or less 2 hours to perform its operation. In addition, it needs 6 hours for preparing any DNA basic operation and 2 hours for fluorescence detection which are fixed for any multivalued basic operation. So, the required time for DNA operations is (6 × 2) hrs = 12 hrs. The total time required for DNA operations is the summation of initial preparation time, fluorescence detection time and DNA operation time. Therefore, the required time for DNA operations is = (Basic operation preparation time + DNA operation time + Fluorescence detection time) = (6 + 12 + 2)= 20 hours (approximately). The DNA-quantum circuit for the multi-valued half subtractor is shown in Figure 6.17. AND and OR quantum multi-valued operations need 60 µs and 80 µs, respectively. So, the required time for quantum operation in multi-valued half subtractor is (OR + AND + OR) µs; where the required time for basic multi-valued quantum AND operation is 60 µs; the required time for basic multi-valued quantum OR operation is 80 µs; and the required time for quantum operations is (60 + 2 x 80) µs = 220 µs. Thus, the required time is the summation of quantum operations and DNA operations to find the expected output of a DNA-quantum multi-valued half subtractor circuit. So, the total required time for DNA-quantum multi-valued half subtractor is = (The required time for DNA operations + The required time for quantum operations) = (220 microseconds + 20 hours) = 20 hours (approximately). Wave nature can be solved by a quantum computer. Quantum computers could aid in the development of improved climate models, allowing us to gain a better understanding of how humans affect the ecosystem. These models form the foundation for the projections of future warming, and they assist us in determining what steps need to be taken now to avoid calamities.
DNA Ternary Decoder
Fluorescent Level 0 Anneal < 60 Anneal , |1>, and |2> and produce two outputs as quantum sum |S> and quantum carry bit |C> in a DNA sequence. The multi-valued Quantum-DNA circuit for the multi-valued Half Adder is shown in Figure 7.2. 7.2.2.1
Design Procedure
To design a multi-valued Quantum-DNA Half Adder for heat transfer it is needed to use Quantum and DNA operational gates so that to operate the input qubit for their corresponding outputs. The Quantum operational gates will be used for receiving the input qubits and the DNA operational gates will be used to produce the final output against the corresponding set of inputs. Each time, the Quantum-DNA Half Adder will receive two qubits as input. After operating in a certain number of Quantum operational gates, the qubit will be turned into a corresponding DNA sequence by using an NMR relaxation room temperature probe. By using a room temperature probe and corresponding components of NMR relaxation, the excited qubit turns into a ground state and produces a DNA sequence. Then the DNA sequence is processed through DNA operational gates and outputs are received. From the quantum operational gate, it needs to connect the junction to metal for transferring heat. The island is metal in a heat conduction circuit. There are two resistors and a photon bath working as a heat conductance at a distance of 1 meter. Heat is transferred by junction into the DNA circuit. Here, Figure 8 describes a multivalued Quantum-DNA Full Subtractor using Quantum, DNA operational gates, and heat conduction nanotubes. From the Figure 7.2, it is found that the multi-valued Quantum-DNA Full Subtractor consists of seven OR, eleven AND, and two Decoder operational gates. In addition, seventeen quantum operational gates and three DNA operational gates are required to find the expected output from the multi-valued quantum-DNA half adder. 7.2.2.2
Working Procedure
Here, DNA sequence CCAGTC for Quantum qubit | 2 >, ACCTAG for Quantum qubit | 1 > and DNA sequence TGGATC for Quantum qubit | 0 >. The heat conduction circuit receives heat from the Quantum operational gate. Firstly, the NIS junctions produce heat flows between the normal-metal islands and the superconducting leads. Secondly, the electrons in the normal metal exchange heat with the phonon bath. Then, the islands exchange heat between each other by photons traveling in the transmission line. Finally, the model takes into account the geometrical properties of the samples as well as properties specific to the measurement setup. Here in this circuit heat passes through the junction into metal then the electron is heated and this electron transfers the heat to photon bath on the coplanar waveguide
125
Heat Transfer in Multiple-Valued Quantum-DNA Circuits
Quantum Ternary 1-to-3 Decoders
PCB Board
Super Conductive Wire
Coplaner Waveguide
Island (Meta)
Island (Meta)
NIS Junction
Electron
Heat Passing Through the junction
Anneal >60 o
Anneal >60 o
Anneal >60 o
Heat Pushing to conductor
Quantum Ternary Quantum Ternary AND Operations OR Operations
DNA Ternary AND & OR Operations
FIGURE 7.2 Multi-Valued Quantum-DNA Half Adder (Nanotubes for Heat Transfer)
126
Heat Transfer
channel and then it goes to one 1-meter distance. Using NMR relaxation quantum qubits turned into DNA sequences. Further, these DNA sequences and supplied heat operate the DNA operation of the Multiplier. The working procedure of a MultiValued Full Subtractor is also described in the next chapter.
7.3 Summary According to the theory of thermodynamics, huge amounts of produced heat from a quantum circuit can deteriorate its performance. On the other hand, in the DNA operational circuit, to complete each step, a certain amount of heat is needed. If two of these findings are merged, it can be provided a novel procedure to provide heat in DNA operational circuits by taking away the produced heat in Quantum operational circuits. The main objective of this chapter is to transfer produced heat from Quantum operational circuit to DNA operational circuits by heat conduction circuits in Quantum-DNA operational circuit and multi-valued Quantum-DNA operational circuits. Heat transfer is important in protecting the environment by reducing emissions and pollutants. The heat conduction circuit receives heat from the quantum operational gate. The NIS junctions produce heat flows between the normal-metal islands and the superconducting leads. Then, the electrons in the normal metal exchange heat with the phonon bath. Next, the islands exchange heat between each other by photons traveling in the transmission line. Finally, the model takes into account the geometrical properties of the samples as well as properties specific to the measurement setup. Heat passes through the junction into metal then electrons are heated and this electron transfers the heat to photon bath on the coplanar wave guide channel, and then it goes to one 1-meter distance. This chapter has presented the way and process of multi-valued quantum-DNA computing where quantum circuits transfer heat to DNA circuits.
Bibliography [1] Di´osi, L. (2011). A Short Course in Quantum Information Theory: An Approach from Theoretical Physics (Vol. 827). Springer. [2] Whitney, M., Isailovic, N., Patel, Y., & Kubiatowicz, J. (2007, May). Automated generation of layout and control for quantum circuits. In Proceedings of the 4th International Conference on Computing Frontiers (pp. 83-94). [3] Raghavan, B. S., & Bhaaskaran, V. K. (2017, March). Design of novel multiple valued logic (mvl) circuits. In 2017 International Conference on Nextgen Electronic Technologies: Silicon to Software (ICNETS2) (pp. 371-378). IEEE.
Summary
127
[4] Partanen, M., Tan, K. Y., Govenius, J., Lake, R. E., M¨akel¨a, M. K., Tanttu, T., & M¨ott¨onen, M. (2016). Quantum-limited heat conduction over macroscopic distances. Nature Physics, 12(5), 460-464. [5] Tagore, S., Bhattacharya, S., Islam, M., & Islam, M. L. (2010). DNA computation: application and perspectives. Journal of Proteomics and Bioinformatics, 3(07). [6] Meschke, M., Guichard, W., & Pekola, J. P. (2006). Single-mode heat conduction by photons. Nature, 444(7116), 187-190. [7] Dubi, Y., & Di Ventra, M. (2011). Colloquium: Heat flow and thermoelectricity in atomic and molecular junctions. Reviews of Modern Physics, 83(1), 131.
8 Data Conversion
8.1
Introduction
Classical computers have troubles with combination and permutation-related problems. These mathematical problems involve arranging elements in a way that achieves a particular objective. As the number of particles increases, so does the number of possible combinations also increase. To find the ideal arrangement, today’s digital computers must use a loop through each permutation until an outcome is found, and then determine which is the most effective at achieving the goal. In many circumstances, this will demand a large number of calculations. Combinatorics calculations prove problematic in a variety of sectors, ranging from banking to pharmaceuticals. Quantum computers come into play here. Multiple-valued quantum computing reduces the cost of calculating difficult combinatorial problems in the same way as classical computers reduced the cost of arithmetic. Multi-Valued quantum computing can be defined as a field of study that focuses on the creation of computer-based technologies grounded on quantum-theoretical principles. On the quantum (atomic and subatomic) level, quantum theory describes the nature and behavior of energy and matter. To execute certain computational tasks, quantum computing employs a combination of qubits. In multi-valued, it will be qutrits. All of this is done at a far higher rate than their traditional computing equipment. Quantum computers represent a significant advancement in computing capability, with enormous performance benefits for specific use cases. The ability of qutrits to be in several states at the same time gives the quantum computer a lot of computing capability. Quantum computers are frequently referred to as a revolutionary advancement that is revolutionizing the world. It is extremely quick and efficient. They can conduct calculations that today’s supercomputers would take decades or perhaps millennia to complete. Quantum supremacy is another term used by specialists to describe this occurrence. Quantum computing can be used in different sectors such as chemical and biological engineering, cybersecurity, artificial intelligence, financial service, and complex manufacturing. The discovery and manipulation of molecules are a part of chemical and biological engineering. Chemicals are made with subatomic particles and thus it involves quantum mechanics. For almost a thousand years, combinatorics has been at the heart of cryptography. But using quantum computing cracking any encryption can be easier than other technology. Artificial intelligence frequently
DOI: 10.1201/9781003381938-8
129
130
Data Conversion
involves the combinatorics processing of very large amounts of data in order to make better predictions and decisions, and quantum computing is associated with this. Large amounts of data are the main domain of financial systems and manufacturing. Quantum computing has the potential to improve the speed of a critical set of financial calculations within a large amount of data. Multi-Valued DNA computing is a kind of natural computing that uses the molecular characteristics of DNA to conduct logical and arithmetic operations instead of typical carbon/silicon chips. The four-character genetic alphabet is used in DNA computing instead of the binary alphabet (1 and 0) utilized by standard computers. This enables massively parallel computation, making it possible to answer difficult mathematical equations or problems in a fraction of the time. As a result, computation is far more efficient with a large volume of self-replicating DNA than with a standard computer, which would require a lot more hardware. Information or data will now be kept in the form of the bases A, T, G, and C, rather than binary digits. The capacity to generate short DNA sequences artificially allows these sequences to be used as inputs for algorithms. This is possible due to the ability to create small DNA molecules with any arbitrary sequence. The input of any DNA operation can be represented by DNA molecules with specific sequences. The instructions are carried out by laboratory operations on the molecules, and the result is defined as some property of the final set of molecules. DNA computing promises significant and meaningful linkages between computers and life systems, as well as massively parallel computations. DNA computing can actually carry out millions of operations at the same time. The performance rate of DNA strands can be increased exponentially by doing millions of operations at the same time. DNA computer’s massively parallel processing capabilities have the ability to speed up big, but otherwise solvable, polynomialtime problems with few operations. A mixture of 1,018 strands of DNA, for example, might run at 10,000 times the speed of today’s fastest supercomputers. Traditional storage mediums, such as videotapes, require 1012 cubic nanometers of the area to store a single bit of data, but DNA molecules only require one cubic nanometer. To put it another way, a single cubic centimeter of DNA can store more data than a trillion CDs. This is due to the fact that DNA molecules have a storage density of around 18 Mbits per inch, whereas today’s computer hard drives can only store about 1/100,000 of this data in the same amount of space. This chapter will describe how to convert data from multi-valued quantum qubits to multi-valued DNA sequences and how to convert multi-valued DNA sequences to multi-valued quantum qubits.
8.2 Data Conversion in Multiple-Valued Quantum-DNA Circuits The fastest computation system can be defined as a Quantum computation system, which works with qubits | 1 >, | 0 >, and both | 1 > and | 0 > at the same time. On the
Data Conversion in Multiple-Valued Quantum-DNA Circuits
131
other hand, In place of standard silicon-based computer technology, DNA computing uses biological components such as DNA, biochemistry, and molecular biology. When applied to issues that can be separated into independent, non-sequential tasks, the DNA computer has demonstrable benefits over conventional computers. The reason for this is because DNA strands can store a lot of data and do numerous operations at the same time, allowing them to solve decomposable issues considerably faster. Again, Quantum computer calculations are especially promising for analyzing or simulating extremely complicated processes involving large volumes of data. So, for finding a super faster computation system with huge memory can develop a multi-valued Quantum-DNA computation system. This multi-valued QuantumDNA computation system can merge all advantages of multi-valued quantum computing and multi-valued DNA computing. It will be able to compute parallel operations at super-fast speed. In a multi-valued Quantum-DNA circuit, inputs will be operated in quantum operation and provide output in DNA sequence. In this case, NMR relaxation or trap ion can be used for converting quantum qubit to a DNA sequence. In the next section, NMR relaxation will be discussed with an example.
8.2.1
NMR Relaxation at Room Temperature
Nuclear magnetic resonance (Figure 8.1), or NMR as it is abbreviated by scientists, is a phenomenon which occurs when the nuclei of certain atoms are immersed in a static magnetic field and exposed to a second oscillating magnetic field. Some nuclei experience this phenomenon, and others do not, dependent upon whether they possess a property called spin. Most of the matter with NMR is composed of molecules. Molecules are composed of atoms. Nuclear magnetic resonance (NMR) is the study of molecules by recording the interaction of radiofrequency (Rf) electromagnetic radiations with the nuclei of molecules placed in a strong magnetic field.
FIGURE 8.1 Nuclear Magnetic Resonance (NMR)
132
Data Conversion
8.2.1.1
NMR Instrumentation
This instrument consists of nine major parts. They are discussed below: 1. Sample holder – It is a glass tube which is 8.5 cm long and 0.3 cm in diameter. 2. Magnetic coils – Magnetic coil generates magnetic field whenever current flows through it 3. Permanent magnet – It helps in providing a homogenous magnetic field at 60 – 100 MHZ 4. Sweep generator – Modifies the strength of the magnetic field which is already applied. 5. Radiofrequency transmitter – It produces a powerful but short pulse of the radio waves. 6. Radiofrequency – It helps in detecting receiver radio frequencies. 7. RF detector – It helps in determining unabsorbed radio frequencies. 8.
Recorder – It records the NMR signals which are received by the RF detector.
9. Readout system – A computer that records the data. 8.2.1.2
NMR Working Techniques
1. Resonant Frequency It refers to the energy of the absorption, and the intensity of the signal that is proportional to the strength of the magnetic field. NMR active nuclei absorb electromagnetic radiation at a frequency characteristic of the isotope when placed in a magnetic field. 2. Acquisition of Spectra Upon excitation of the sample with a radiofrequency pulse, a nuclear magnetic resonance response is obtained. It is a very weak signal and requires sensitive radio receivers to pick up.
8.2.1.3
Multiple-Valued Quantum-DNA Multiplexer with NMR Relaxation
For multi-valued quantum-DNA 3-to-1 multiplexer, one 1-to-3 quantum decoder is needed to get the output of selection line S. Additionally, three DNA AND and one DNA OR operation is required as shown in Figure 8.2. To match the speed between Quantum and DNA operation a quantum cache memory is used which will be discussed in the next chapter. Figure 6.8 shows the construction of multi-valued quantum-DNA 3-to-1 multiplexer circuit. In this circuit, all the inputs |I0>, |I1> and |I2> connect to three different DNA AND gates after performing the data conversion by NMR relaxation (convert qubits to DNA sequences) via quantum cache memory in which another input comes from the selection line |S>,
133
Data Conversion in Multiple-Valued DNA-Quantum Circuits NMR Relaxation
Heat Transfer
DNA AND Anneal through it. Other output lines of the decoder provide qubit |0>. Thus only one DNA AND operation is open to take the input to the output. Finally, the DNA OR operation passes the input that comes via the DNA AND operation to the output of the multiplexer.
8.3 Data Conversion in Multiple-Valued DNA-Quantum Circuits In place of standard silicon-based computer technology, DNA computing uses biological components such as DNA, biochemistry, and molecular biology. When applied to issues that can be separated into independent, non-sequential tasks, the DNA computer has demonstrable benefits over conventional computers. The reason for this is because DNA strands can store a lot of data and do numerous operations at the same time, allowing them to solve decomposable issues considerably faster. On the other hand, the fastest computation system can be defined as a Quantum computation system, which works with qubits | 1 >, | 0 >, and both | 1 > and | 0 > at the same time.
134
Data Conversion
In addition, Quantum computer calculations are especially promising for analyzing or simulating extremely complicated processes involving large volumes of data. So, for finding a super faster computation system with huge memory, it is possible to develop a multi-valued DNA-Quantum computation system. This multi-valued DNA-Quantum computation system can merge all advantages of multi-valued quantum computing and multi-valued DNA computing. It will be able to compute parallel operations at a super-fast speed too like multi-valued quantum-DNA computing. In a multi-valued DNA-Quantum circuit, the inputs will be DNA sequences and provide output in qubits. In this case, it is needed to use NMR or quadrupole trap ion for converting DNA sequences to qubits.
8.3.1
Quadrupole Ion Trap
The Quandrupole Ion Trap (QIT) is an extraordinary device that functions both as an ion store in which gaseous ions can be confined for a period of time and as a mass spectrometer of large mass range, variable mass resolution, and high sensitivity. As a storage device, the QIT confines gaseous ions, either positively charged or negatively charged, in the absence of solvent. The confining capacity of the QIT arises from the formation of a trapping potential well when appropriate potentials are applied to the electrodes of the ion trap. That the basic theory of operation of quadrupole devices was enunciated almost 100 years before the QIT and the related QMF were invented by Paul and Steinwedel is a shining example of the inherent value of sound basic research. The pio neering work of the inventors was recognized by the award of the 1989 Nobel Prize in Physics to Wolfgang Paul, together with Norman Ramsay and Hans Dehmelt. 8.3.1.1
The Structure of the QIT
The QIT mass spectrometer consists essentially of three shaped electrodes that are shown in open array in Figure 8.3. Two of the three electrodes are virtually identical and, while having hyperboloidal geometry, resemble small inverted saucers; these saucers are the so-called end-cap electrodes and each has one or more holes in the center. One end-cap electrode contains the “entrance” aperture through which electrons and/or ions can be gated periodically while the other is the “exit” electrode through which ions pass to a detector. The third “ring” electrode has an internal hyper boloidal surface: in some early designs of ion trap systems, a beam of electrons was gated through a hole in this electrode rather than an end-cap electrode. The ring electrode is positioned symmetrically between two end-cap electrodes, as shown in Figures 8.4; Figure 8.4 shows a photograph of an ion trap cut in half along the axis of cylindrical symmetry while Figure 8.5 is a cross section of an ideal ion trap showing the asymptotes and the dimensions r0 and z0 , where r0 is the radius of the ring electrode in the central horizontal plane and 2z0 is the separation of the two end-cap electrodes measured along the axis of the ion trap. The electrodes in Figure 8.4 and Figure 8.5 are truncated for practical purposes, but in theory they extend to infinity and meet the asymptotes shown in the figure. The
Data Conversion in Multiple-Valued DNA-Quantum Circuits
135
FIGURE 8.3 Three Electrodes of QIT Shown in Open Array
FIGURE 8.4 Quadrupole Ion Trap: Photograph of Ion Trap cut in half along Axis of Cylindrical Symmetry
136
Data Conversion
FIGURE 8.5 Quadrupole Ion Trap: Schematic Diagram of Three-Dimensional Ideal Ion Trap Showing Asymptotes and Dimensions r0 and z0 asymptotes arise from the hyperboloidal geometries of the three electrodes. The geometries of the electrodes are defined so as to produce an ideal quadrupole potential distribution that, in turn, will produce the necessary trapping field for the confinement of ions. 8.3.1.2
Electrode Surfaces
It is known that for the cylindrically symmetric QIT, the values of λ, σ, and γ given can satisfy the Laplace condition. Then ϕ x, y, z = A(x2 + y2 − 2z2 ) + C
(8.1)
To proceed, it needs to convert Equation 8.1 into cylindrical polar coordinates employing the standard transformations x = r cos θ, y = r sin θ, z = z. Thus Equation 8.1 becomes ϕ x, y, z = A(x2 + y2 − 2z2 ) + C
(8.2)
It should be noted that in making this transformation the angular orientation of the x–y coordinate plane is lost. The effect of this is that when the equations of motion of the ions are developed in a manner analogous to that presented earlier for the QMF there is an implicit assumption that each ion possesses zero angular velocity around the z axis. The procedure adopted by Knight can be followed and write the equations for the electrode surfaces in generalized forms as r2 z2 − = 1(ringelectrode) r02 a2 and
(8.3)
Data Conversion in Multiple-Valued DNA-Quantum Circuits
137
r 2 z2 − = −1(end − capelectrode). b2 z20
(8.4)
It should be remembered that when plotted out these equations represent cross sections through the electrodes which, of course, possess cylindrical symmetry around the z axis. In terms of their respective geometric forms, the ring electrode is a single-sheet hyperboloid and the pair of end-cap electrodes comprises a doublesheet hyperboloid. As with the QMF, the conditions are noted as r = ±r0 when z = 0 and z =± z0 when r = 0. From Figure 8.4b, it is seen thst 2r0 is the innermost diameter of the ring electrode and 2z0 is the closest distance between the innermost surfaces of the end-cap electrodes; a and b are geometric quantities which will be evaluated shortly. Following standard mathematical procedures, it can be deduced that the slopes of the asymptotes of the ring electrode are m=±
a r0
(8.5)
z0 . b
(8.6)
and those of the end-cap electrodes are m0 = ±
In order to establish a quadrupolar field the ring and the end-cap electrodes must share common asymp- totes, so that m = m0, and from Equation 8.5 and equation 8.6, a2 b2 = r02 z20 .
(8.7)
Hence substituting for a2 in Equation 8.3 for the ring electrode, r2 z2 b2 − 2 2=1 r02 r0 z0
(8.8)
z2 b2 . z20
(8.9)
thus r2 =r02 +
Since the value of the potential given must be a constant across the electrode surfaces, it is possible to establish conditions under which ϕr, z is independent of r and z by the following procedure, in which r2 is replaced in the term r2 − 2z2 to obtain, for the ring electrode, z2 b2 − 2z2 z20 z2 b2 − 2z20 2 . = r0 + z20
r2 − 2z2 = r02 +
(8.10)
138
Data Conversion
Similarly for the end-cap electrodes, from Equation 8.4, z2 b2 2 −b z20 z2 b2 −2z20
r2 =
r2 −2z2 =
z20
(8.11)
−b2 .
(8.12)
Thus ϕr, z becomes constant when b2 - 2z2 0 = 0 ∴ b2 = 2z20
(8.13)
1 a2 = r02 . 2
(8.14)
and therefore from Equation 8.7,
Hence the equations for the electrode surfaces now become r2 2z2 − = 1 (Ringelectrode) r02 r02
(8.15)
r 2 z2 − = −1 (End − capelectrode) 2z20 z20
(8.16)
and
Also from Equation 8.5 and equation 8.6, equating the gradients of the asymptotes, it is obtained as a z0 z0 r0 m=± =±√ = m0 = ± = ± √ r0 b 2 r0 2 z0
(8.17)
1 =±√ (8.18) 2 This relationship corresponds to the asymptotes having an angle of 35.264◦ with respect to the radial plane of the ion trap. 8.3.1.3
Multiple-Valued DNA-Quantum Multiplexer
For multi-valued DNA-Quantum 3-to-1 Multiplexer, one 1-to-3 DNA decoder is needed to get the output of selection line S. Additionally, three Quantum AND and one Quantum OR operation is required as shown in Figure 8.6. To match the speed between DNA and Quantum operation a DNA cache Memory is used which will be discussed in the next chapter. Figure 8.6 shows the construction of multi-valued DNA-Quantum 3-to-1 multiplexer circuit. In this circuit, all the inputs I0, I1, and I2 connect to three different DNA AND gates after performing data conversion by trap ion, via DNA cache memory in which another input comes from the Selection line S.
139
Data Conversion in Multiple-Valued DNA-Quantum Circuits Heat Supplied from outside to DNA circhit with Annel > 60C
DNA NOT
Anneal . That is why the design of the quantum cache memory should be in the ternary system. 9.2.1.1
Design Procedure of the Quantum Cache Memory in Ternary System
To design ternary quantum cache memory, it is needed to design quantum D flip-flops and quantum cache memory cells (one-bit cache memory) with qutrits. The circuit diagram for the ternary quantum D flip-flop is shown in Figure 9.2. To design a quantum ternary D flip-flop, five quantum ternary NAND operations are needed along with one clock pulse. Here, |D> is the quantum ternary bits or qutrits that are |0>, |1>, and |2>. When CLK pulse is 1 then the quantum ternary D flip-flop transfers the |D> input to output |Q> and if the CLK pulse is 0, then the input remains unchanged. 9.2.1.2
Designing of Quantum Ternary One-bit Cache Memory
A one-qutrit quantum ternary cache memory is designed using the previously designed quantum ternary D flip-flops. The circuit diagram of the quantum one-qutrit cache memory is shown in Figure 9.3. The circuit of one-qutrit quantum ternary cache memory contains six quantum ternary NAND and three quantum ternary AND operations. Again, |R/W > = |1>
146
Data Management
Quantyum Ternary NAND Operations
Quantyum Ternary NAND Operations
Quantyum Ternary NAND Operations
FIGURE 9.2 Circuit Diagram of Quantum Ternary D Flip-Flops indicates the READ operation and |R/W > = |0> indicates the WRITE operation. And here |S> indicates the select qutrit where |S> = |1> means the memory is selected. Using these quantum ternary cache memory cells it is possible to construct a 9x2 quantum ternary cache memory. A 2×9 quantum ternary decoder and eighteen one-qutrit quantum ternary cache memory cells will be needed to construct a 9×2 quantum ternary cache memory. 9.2.1.3
Designing of 9×2 Quantum Ternary Cache Memory
Figure 9.4 shows the circuit architecture of 9×2 quantum ternary cache memory that contains eighteen quantum one-qutrit cache memory cells, providing 2-qutrit output and nine locations. The quantum ternary 9×2 cache memory contains a quantum ternary 2-to-9 decoder which decodes the input qubits into nine output qutrits. Here, R indicates the quantum ternary one-qutrit cache memory cell. The architecture of the quantum 9×2 cache memory includes a 2×9 quantum ternary decoder, eighteen quantum cache memory cells, and quantum-OR operations, where inputs are two qutrits and |R/W> signal. Besides, DI inputs are actual inputs (Data inputs) that will be written to the memory or read from the memory. The output from the decoder will set the locations for two qutrit inputs to be stored. 9.2.1.4
Working Procedure of the Quantum Ternary Cache Memory
Figure 9.4 shows a 9×2 quantum ternary cache memory . It includes eighteen quantum cache memory cells providing 2-qutrit output and nine locations. The 9×2 quantum ternary cache memory also contains a 2-to-9 quantum ternary decoder and eighteen quantum cache memory cells implemented with quantum ternary D flip-flops
147
Data Management in Quantum-DNA Circuits
Quantum Ternary Quantum Ternary NAND Operations AND Operations
Quantum Ternary NAND Operations
Quantum Ternary AND & NAND Operations
FIGURE 9.3 The Circuit Diagram of One-Qutrit Quantum Ternary Cache Memory
and quantum gates. The nine locations (00, 01, 02, 10, 11, 12, 20, 21, and 22) in the cache memory are addressed by 2 qutrits (A1 , A0 ) with the help of the quantum ternary 2-to-9 decoder. In order to read from location 00, the address A1 A0 = 00 and |R/W> = |1>. The decoder selects |0>, high. |R/W> = |1> will apply 0 at the clock inputs of the two quantum ternary cache memory cells of the top row and will apply 1 at the inputs of the output quantum AND operations, thus transferring the outputs of the two quantum D flip-flops to the inputs of the two quantum-OR operations. The other inputs of the quantum-OR operations will be 0. Thus, the outputs of the two quantum cache memory cells of the top row will be transferred to DO1 , and DO0 , performing a READ operation. On the other hand, consider a WRITE operation: The 2-qutrit data to be written is presented at |DI1 >|DI0 >. Suppose |A1 A0 > = |02>. The top row is selected (02 = 1). Input bits at |DI1 > and |DI0 > will respectively be applied at the inputs of the D flip-flops of the third row from the top. Because |R/W> = |0>, the clock inputs of both the quantum D flip-flops of the third row are |1>; thus, the D inputs are transferred to the outputs of the flip-flops. Therefore, data at DI1 DI0 will be written into the Quantum Ternary Cache Memory.
9.2.2
Multiple-Valued Quantum-DNA Half Adder
Figure 9.5 shows the circuit diagram of the quantum-DNA ternary half-adder operation. From the Figure 9.5, it is seen that the quantum system does some portion of the operation. Then quantum system’s outputs are stored in the quantum ternary cache memory. From the ternary quantum cache memory, the qutrits are passing through the NMR relaxation process. The NMR relaxation converts the qutrits into the
148
Data Management
FIGURE 9.4 Circuit Architecture of Quantum Ternary 9×2 Cache Memory
equivalent DNA base sequence (i.e. from |0>, |1>, and |2> to ACCTAG, CAAGCT, and TGGATC, respectively). Note that, the NMR relaxation processes here are conducted at zero Kelvin temperature. Then the converted DNA base sequences are entered into the DNA system as inputs. And the DNA system does the rest of the operations and produces the final outputs. Notice that the excessive heat produced by the quantum system is transferred to a cold storage by a quantum heat conductance circuit. And the required heat to the DNA system can be transferred from the quantum system as well shown in the Figure 9.5. The detailed design and working principle of quantum-DNA ternary half adder and other arithmetic circuits will be described in the next part (part 3) of the book. The Figure 9.5 is depicted to show the quantum ternary cache memory in the multi-valued quantum-DNA circuit.
149
Cold Storage Container
Data Management in DNA-Quantum Circuits
Anneal will become |2>, and |2> will become to |0>). Figure 10.1 (b) shows the Z(+2) operations, where the given input will be
166
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.1 The General Architecture of the Ternary Permutation Gates shifted by +2 (i.e. |0> will become |2>, |1> will become |0>, and |2> will become to |1>). Figure 10.1 (c) shows the Z (02) operations, where if the given input is |0> it will be swapped by |2> and vice versa. Note that input |1> will not affect this gate. That means input |1> will pass as |1> itself (i.e. no swapping). Figure 10.1 (d) shows the Z (01) operations, in the same way, if the given input is |0> it will be swapped by |1> and vice versa. And, now input |2> will not affect this gate. That means input |2> will pass as |2> itself (i.e. no swapping). And Figure 10.1 (e) shows the Z (12) operations, where if the given input is |1> it will be swapped by |2> and vice versa. Eventually, input |0> will not affect this gate. That means input |0> will pass as |0> itself (i.e. no swapping). 10.3.1.1
Quantum Ternary Toffoli Gates
The Ternary Toffoli gate is another quantum ternary gate. Its inputs are A, B, and C, where A and B are the controlling inputs and C is the controlled input. Its outputs are P=A Q=B R = Z transforms of C ; if A = X1 and B = X2 R = C ; otherwise The symbol of the generalized 3-qutrit Ternary Permutation/Shift operations is shown in Figure 10.2. As shown in Figure 10.2, the outputs of the ternary Toffoli gate are P, Q, and R. The outputs P and Q are equal to A and B, and the output R is equal to the Z transform of C if the inputs A and B are equal to X1 and X2, where Z = {+1, +2, 01, 02, 12}. Otherwise, the output R is equal to the input C. Figure 10.3 shows the Toffoli gate for one controlled input. Here, the gate will open only if the controlled qutrit is |2>.
Quantum Fundamental Gates in Multi-Valued Logic
167
FIGURE 10.2 Symbol of Generalized 3-Qutrit Ternary Permutation Operations
10.3.2
Quantum Ternary C2 NOT Gate
In ternary logic, several multi-qutrit control operations are possible. A 3-qutrit C 2 NOT which is used for realizing the simplification rules for ternary minterms as C2 NOT (A, B, C) = NOT(C) ; if A != B and A,B != 0 C2 NOT (A, B, C) = C ; otherwise where A, B are control inputs and C is the target input. Here, the final NOT (C) will provide the (+1) operation of the given input. Figure 10.4 shows the symbol of the ternary C2 NOT gate. There might be confusion in this gate because it is called C2 NOT gate but isn’t doing the actual NOT operation. This gate will only activate if the input A = |1> and B = |2> or input A = |2> and B = |1> (See the logical expression). And if the control inputs are fulfilled the condition and input C is |0>, it will perform a Z (+1) operation and produce output |1>, and for input C as |1> and |2> it will produce |2> and |0>, respectively.
FIGURE 10.3 Ternary 1-Bit Controlled Operation
168
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.4 The General Structure Ternary 3-Qutrit C2 NOT Gate
10.4
Quantum Multi-Valued Basic Logic Operations
Quantum ternary logic functions are those functions that have significance if a third value is acquainted with the quantum binary logic. Quantum computing in the ternary logic system is quite interesting. Here, |0>, |1>, and |2> denote the ternary levels for basic logic gates to represent false, undefined, and true, respectively. The basic operations of quantum ternary logic can be defined as follows: yOR = max(x, y) yNOR = max(x, y) yAND = min(x, y) yNAND = min(x, y) yXOR = sum(x, y) yXNOR = sum(x, y) Where, x, y = {0, 1, 2} The truth table of those operations is shown in Table 10.2. Assume every operation is in the quantum system. For convenience, classical names are used. The truth Table of Quantum Ternary AND, NAND, OR, NOR, XOR, and XNOR logic operations for ternary logic is presented in the above Table [6]. For AND logic operation its output value depends on the minimum value of its inputs. Similarly, in the case of the OR logic operation, its output value depends on the maximum value of its inputs. For the XOR operation, its output value is the sum of the value of its inputs. Therefore, the outputs of Quantum Ternary NAND, NOR, and XNOR logic operations become the inverted of quantum ternary AND, OR, and XNOR logic operations.
169
Quantum Multi-Valued Basic Logic Operations TABLE 10.2 Truth Table for Ternary AND, NAND, OR, NOR, XOR, XNOR Input 1 0 0 0 1 1 1 2 2 2
10.4.1
Input 2 0 1 2 0 1 2 0 1 2
AND 0 0 0 0 1 1 0 1 2
NAND 2 2 2 2 1 1 2 1 0
OR 0 1 2 1 1 2 2 2 2
NOR 2 1 0 1 1 0 0 0 0
XOR 0 1 2 1 2 0 2 0 1
XNOR 2 1 0 1 0 2 0 2 1
Ternary Quantum-AND Operation
Quantum ternary AND operation is defined as YQAND = min (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The truth table of quantum ternary AND operation is given in Table 10.3. 10.4.1.1
The Architecture of Ternary Quantum-AND Operation
The circuit diagram of the Quantum Ternary AND operation is shown in Figure 10.5, both (a) and (b) show the circuit diagram of the Quantum Ternary AND operation. Any of those can be used. The Quantum Ternary AND operation require the shifting operations that include Z (+1) and Z (+2) shifting. Where one Z (+2) operation is controlled by both inputs and will open only if the value of both inputs is |2>. And following a C2 NOT gate is used which will work only if the inputs A and B met conditions of A! =B and A, B! = |0>. And the following Z (+1) operation is controlled by both inputs and will open only if the value of both inputs is |1> (Figure 10.5 a). This will give the expected outputs that were shown in the truth table. Figure 10.5 (b) is the equivalent of 10.5 (a) but requires more quantum ternary gates. TABLE 10.3 Truth Table of Quantum Ternary AND Operations |0> |1> |2>
|0> |0> |0> |0>
|1> |0> |1> |1>
|2> |0> |1> |2>
170
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.5 Circuit Diagram of Quantum Ternary AND Operation 10.4.1.2
Working Principles of Ternary Quantum-AND Operation
From Figure 10.5 (a), it is observed that the 1 st Z (+2) and last Z (+1) operations are controlled by the input A and B. And the Z (+2) and Z (+1) gates will open only if the |A> and |B> are |2> and |1>, respectively. And the next quantum C2 NOT gate will open only if the A, B! = 0 && A! = B. The operations at each quantum ternary gate are shown in Table 10.4. Table 10.4 shows the outputs from each gate of the Quantum Ternary AND operation shown in Figure 10.5 (a) for every input pattern that can be possible for two inputs in the ternary system. For simplicity, in the Table, the Kendal notation of qutrits is not used. 1. For input |A> = |1>, and |B> = |2>. (a) The Z (+2) will not active because control qutrits both are not equal to|2>. Therefore, it will pass the input unchanged which is an ancilla qutrit |0>. TABLE 10.4 Quantum Ternary AND Operations for the Circuit Shown in Figure 10.5 (a) A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
Z(+2) 0 0 0 0 0 0 0 0 2
C2 NOT 0 0 0 0 0 1 0 1 2
OutputZ(+1) 0 0 0 0 1 1 0 1 2
171
Quantum Multi-Valued Basic Logic Operations TABLE 10.5 Truth Table of Quantum Ternary NAND Operations |0> |1> |2>
|0> |2> |2> |2>
|1> |2> |1> |1>
|2> |2> |1> |0>
(b) The next operation is the quantum ternary C2 NOT gate. It will be activated because the conditions are fulfilled (A! =B and A, B! = |0>). Therefore it will increment the input by +1. So the output from this gate is |1>. (c) The last gate is Z (+1), which will also not be active because control qutrits both are not equal to |1>. Therefore, it will pass the input unchanged which is |1> (from step b). So, obtained output as |1> for the given input. 2. For input |A> = |1>, and |B> = |0>, (a) The Z (+2) will not active because control qutrits both are not equal to |2>. Therefore, it will pass the input unchanged which is an ancilla qutrit |0>. (b) The next operation is the quantum ternary C2 NOT gate. It will not be activated because the conditions are not fulfilled (A! =B and A, B! = |0>). So the output from this gate is |0> as well. (c) The last gate is Z (+1), which will also not be active because control qutrits both are not equal to |1>. Therefore, it will pass the input unchanged which is |0> (from step b). So, the output is obtained as |0> for the given input.
10.4.2
Ternary Quantum-NAND Operation
As it is known how to design the quantum ternary AND operation , it is understandable that only a NOT operation is required to get the result of quantum NAND operation. Quantum NAND operation is defined as YQNAND = (min( X , Y )) where X and Y are the input from {|0>, |1>, |2>}. Table 10.5 shows the truth table of Quantum Ternary NAND Operations. From the truth table, it can be understood that this operation will not affect the quantum ternary AND output value |1>. If the output value |0>, it will convert it to the |2> and vice versa. 10.4.2.1
The Architecture of Ternary Quantum-NAND Operation
The quantum ternary NAND operation is nothing but the AND operation. Therefore, the only need is to invert the output of the quantum ternary AND operation outputs. The circuit diagram of Quantum Ternary NAND operation is shown in Figure 10.6.
172
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.6 Circuit Diagram of Quantum Ternary NAND Operation The output can be inverted in two ways. Figures 10.6 (a) and 10.6 (b) both can perform quantum ternary NAND operations. Because Z(02) swapping is the same as quantum NOT operation. 10.4.2.2
Working Principles of Ternary Quantum-NAND Operation
As the circuit is shown, it needs to perform a quantum ternary NOT operation after the quantum ternary AND operation. So it is not necessary to again write the working procedure of quantum ternary AND followed by quantum ternary NOT operation. Note that, quantum ternary NOT converts the input |0> to |2> and input |2> to |0>. And input |1> remains the same (see Table 10.2). It is known that operation Z (02) also does the same. That is why Z (02) is used in Figure 10.6 (a). The working procedure of the ternary NAND operation is shown in Table 10.6. TABLE 10.6 Quantum Ternary NAND Operations for the Circuit Shown in Figure 10.6a A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
Z(+2) 0 0 0 0 0 0 0 0 2
C2 NOT 0 0 0 0 0 1 0 1 2
Z(+1) 0 0 0 0 1 1 0 1 2
Output Z(02) 2 2 2 2 1 1 2 1 0
173
Quantum Multi-Valued Basic Logic Operations TABLE 10.7 Truth Table of Quantum Ternary OR Operations |0> |1> |2>
10.4.3
|0> |0> |1> |2>
|1> |1> |1> |2>
|2> |2> |2> |2>
Ternary Quantum-OR Operation
Quantum OR operation is defined as YQOR = max (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary OR operation are shown in Table 10.7. 10.4.3.1
The Architecture of Ternary Quantum-OR Operation
The Quantum Ternary OR operation requires the shifting operations that include Z(+1) and Z(+2) shifting. Where two Z(+1) operation is not controlled, and two Z(+1) operation is controlled by two input. And two Z(+2) operation is controlled by respective one input(input |B> for the first Z(+2), and input |A> for the 2nd Z(+2)). And, a two-input controlled C2 NOT gate is also required to get the expected result that was shown above in the truth table. The circuit diagram of The Quantum Ternary OR operation is shown in Figure 10.7. 10.4.3.2
Working Principles of Ternary Quantum-OR Operation
From Figure 10.7, it is found that the 1 st Z (+2) and 2nd Z (+2) operations are controlled by the input |B> and |A>, respectively which will open only if the input is |2>. The following Z (+1) is controlled by both |A> and |B> input that will only open if both inputs are |2>. The next two Z (+1) are not controlled. And the following Z (+1)
FIGURE 10.7 The Circuit Diagram of Quantum Ternary OR Operation
174
Multiple-Valued Logic Operations in Quantum Computing
is again controlled by two inputs and will open only if get |2> from both inputs. And the final C2 NOT gate will open only if the A, B! = 0 && A! = B. To understand the operation let’s take an example. Suppose, |A> = |1> and |B> = |2>, 1. The 1 st Z (+2) gate will get input |0> and the controlled input is |B> = |2>. Therefore, this gate will be activated. And generate the output |2> (see shifting operations). This will work as an input to the next Z (+2) gate. 2. The next Z (+2) gate will get input |2> (from step a) and the controlled input is |A> = |1>. Therefore, this gate will not be activated. And generate the output |2> (without changing). This will work as an input to the next Z (+1) gate. 3. The next operation is a 2-input controlled Z (+1) gate operation which will act only if both the control inputs are |2>. So, it will not be activated. Therefore, the input to the gate will pass as the same. As a result, it generates |2> (from step b). This output will deliver to the next controlled Z(+1) operation. 4. In this step, two Z(+1) operations will be performed. They are not controlled. Therefore, they will increase the value of |A> and |B> by +1. So, |A> will be |2> and |B> will be |0>. 5. The next operation is again a 2-input controlled Z(+1) gate which gets input |2>(from step c) and will be activated only if the input values of |A> and |B> both are |2>. Therefore, it will also not be activated and it delivers |2> to the last operation. 6. The last operation is the ternary C2 NOT operation. It will also not be activated because now the value of |A> and |B> is |2> and |0> (from step d), respectively. Therefore, they do not fulfill the condition of the ternary C2 NOT gate. Thus, the final output will be |2> (the input to the C2 NOT gate. The operations for all the input combinations is shown in Table 10.8.
10.4.4
Ternary Quantum-NOR Operation
Quantum Ternary NOR operation is defined as YQNOR = (max( X , Y )) where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary NOR operation are shown in Table 10.9. 10.4.4.1
The Architecture of Ternary Quantum-NOR Operation
The Quantum Ternary NOR NOR operation is nothing but the OR operation. Therefore, it is needed to invert the output of the quantum ternary OR operation’s outputs.
175
Quantum Multi-Valued Basic Logic Operations TABLE 10.8 Quantum Ternary OR Operations for the Circuit Shown in Figure 10.7 A
B
0 0 0 1 1 1 2 2 2
0 1 2 0 1 2 0 1 2
1 Z(+2) 0 0 2 0 0 2 0 0 2
2 Z(+2) 0 0 2 0 0 2 2 2 1
3 Z(+1) 0 0 2 0 0 2 2 2 2
4 Z(+1) 1 1 1 2 2 2 0 0 2
5 Z(+1) 1 2 0 1 2 0 1 2 0
6 Z(+1) 0 0 2 0 1 2 2 2 0
Output C2 NOT 0 1 2 1 1 2 2 2 2
Therefore the circuit diagram will be the same as the quantum ternary OR operation with an extra NOT operation at the end. The circuit diagram of Quantum Ternary NOR operation is shown in Figure 10.8. In Figure 10.8, both (a) and (b) will perform the quantum ternary NOR operations. 10.4.4.2
Working Principles of Ternary Quantum-NOR Operation
The working procedure of the quantum ternary OR operation is discussed already. In the quantum ternary NOR operation, all that have to do is to invert the output of the OR operation. The following table (Table 10.10) shows the operations of each gate of the circuit shown in Figure 10.8 (a).
10.4.5
Ternary Quantum XOR Operation
Quantum Ternary XOR operation is defined as YQXOR = sum (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary XOR operation are shown in Table 10.11. TABLE 10.9 Truth Table of Quantum Ternary NOR Operations |0> |1> |2>
|0> |2> |1> |0>
|1> |1> |1> |0>
|2> |0> |0> |0>
176
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.8 The Circuit Diagram of Quantum Ternary NOR Operation TABLE 10.10 Quantum Ternary NOR Operations for the Circuit Shown in Figure 10.8a A
B
0 0 0 1 1 1 2 2 2
0 1 2 0 1 2 0 1 2
1 Z(+2) 0 0 2 0 0 2 0 0 2
2 Z(+2) 0 0 2 0 0 2 2 2 1
3 Z(+1) 0 0 2 0 0 2 2 2 2
4 Z(+1) 1 1 1 2 2 2 0 0 2
5 Z(+1) 1 2 0 1 2 0 1 2 0
6 Z(+1) 0 0 2 0 1 2 2 2 0
7 C2 NOT 0 1 2 1 1 2 2 2 2
TABLE 10.11 Truth Table of Quantum Ternary XOR Operation |0> |1> |2>
|0> |0> |1> |2>
|1> |1> |2> |0>
|2> |2> |0> |1>
Output Z (02) 2 1 0 1 1 0 0 0 0
Quantum Multi-Valued Basic Logic Operations
177
FIGURE 10.9 The Circuit Diagram of Quantum Ternary XOR Operation 10.4.5.1
The Architecture of Ternary Quantum XOR Operation
The circuit diagram of the Quantum Ternary XOR operation is shown in Figure 10.9. The Quantum Ternary XOR operation requires the shifting operations that include Z (+1) and Z (+2) shifting. Where two Z (+1) operation is not controlled, and two Z (+2) operation is controlled by respective one input. And one Z (+2) operation is controlled by both inputs. And, two two-input controlled C2 NOT gate is also required to get the expected result that was shown in the above truth table (Table 10.11). 10.4.5.2
Working Principles of Ternary Quantum XOR Operation
From Figure 10.9, the 1 st Z (+2) and 2nd Z (+2) operations are controlled by the input B and A, respectively which will open only if the input is |2>. The following Z (+2) is controlled by both A and B input that will only open if both inputs are |1>. The next two Z (+1) are not controlled. And the following C2 NOT is controlled by two input and will open only if [|2>, |1>] or [|1>, |2>] input combination is obtained from both input, which was mentioned earlier (i.e. gate will open only if at A, B! = 0 && A! = B). The last C2 NOT will also open only if the input combination fulfills the condition of C2 NOT. Let’s take some examples to observe the working principle of the designed circuit for the quantum ternary XOR operation shown in Figure 10.9. 1. Suppose, the inputs |A> = |2> and |B> = |1>, (a) The 1 st Z(+2) is controlled by the value of |B> and it will activate only if the control qutrit is |2>. Here |B> = |1>, therefore the gate will not be activated. And it will pass its input value |0> unchanged. So, the next Z(+2) will get input |0> as well. (b) The 1 st Z(+2) is controlled by the value of |A> and it will activate only if the control qutrit is |2>. Here |A> = |2>, therefore the gate will be activated. And it will pass its input value |0> by shifting the
178
Multiple-Valued Logic Operations in Quantum Computing
(c)
(d)
(e)
(f)
Z(+2) operation. So, it will generate |2> as output which will be the input value of the next Z(+2) operation. The 3rd Z (+2) is controlled by the value of both |A> and |B>, and it will activate only if both of the control qutrits are |1>. Here |A> = |2> and |B> = |1>, therefore the gate will not be activated. And it will pass its input value |2> (from step b) unchanged. The next operation is the C2 NOT gate which gets the input |2> (from step c). It will open because the input values fulfill its conditions. Therefore it will produce the output |0> (C2 NOT increases by Z(+1)). This value will work as the input to the last C2 NOT gate. Now both the Z(+1) operations will be held. They are not controlled; therefore, they will increase the value of |A> and |B> by +1. So, |A> = |0>, and |B> = |2>. The last C2NOT gate gets input |0> (from step d). But this gate will not open because the controlled value of |A> and |B> do not fulfill the conditions of the C2 NOT gate. Therefore, the final output will be |0>.
2. Suppose, the inputs |A> = |0> and |B> = |2>, (a) The 1 st Z(+2) is controlled by the value of |B> and it will activate only if the control qutrit is |2>. Here |B> = |2>, therefore the gate will be activated. And it will pass its input value |0> by shifting +2, which is |2>. So, the next Z(+2) will get input |2>. (b) The 1 st Z(+2) is controlled by the value of |A> and it will activate only if the control qutrit is |2>. Here |A> = |0>, therefore the gate will not be activated. And it will pass its input value |2> unchanged. So, it will generate |2> as output which will be the input value of the next Z(+2) operation. (c) The 3rd Z(+2) is controlled by the value of both |A> and |B>, and it will activate only if both of the control qutrits are |1>. Here |A> = |0> and |B> = |2>, therefore the gate will not be activated. And it will pass its input value |2> (from step b) unchanged. (d) The next operation is the C2 NOT gate which gets the input |2> (from step c). It will not open because the input values do not fulfill its conditions. Therefore, it will produce the output |2> (no change will occur). This value will work as the input to the last C2 NOT gate. (e) Now both the Z(+1) operations will be held. They are not controlled; therefore, they will increase the value of |A> and |B> by +1. So, |A> = |1>, and |B> = |0>. (f) The last C2NOT gate gets input |2> (from step d). But this gate will not open because the controlled value of |A> and |B> do not fulfill the conditions of the C2 NOT gate. Consequently, the final output will be |2>.
179
Quantum Multi-Valued Basic Logic Operations TABLE 10.12 Quantum Ternary XOR Operations for the Circuit Shown in Figure 10.9 A
B
0 0 0 1 1 1 2 2 2
0 1 2 0 1 2 0 1 2
1 Z (+2) 0 0 2 0 0 2 0 0 2
2 Z (+2) 0 0 2 0 0 2 2 2 1
3 Z (+2) 0 0 2 0 2 2 2 2 1
4 5 C2 NOT Z (+1) 0 1 0 1 2 1 0 2 2 2 0 2 2 0 0 0 1 0
6 Z (+1) 1 2 0 1 2 0 1 2 0
Output C2 NOT 0 1 2 1 2 0 2 0 1
Therefore, it is found that the designed circuit generates the expected outputs of the quantum ternary XOR operations which were shown in the truth table of the quantum ternary XOR operation. The following table (Table 10.12) shows the operations of each gate of the circuit shown in Figure 10.9.
10.4.6
Ternary Quantum XNOR Operation
Quantum Ternary XNOR operation is defined as YQXNOR =sum( X , Y ) , where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary XOR operations are shown in Table 10.13. 10.4.6.1
The Architecture of Ternary Quantum XNOR Operation
The Quantum Ternary XNOR operation is nothing but the ternary QXOR operation. Therefore, it is needed to invert the output of the quantum ternary XOR operation’s outputs. In order to do that, an inverter is needed to add to the QXOR’s TABLE 10.13 Truth Table of Quantum Ternary XNOR Operations |0> |1> |2>
|0> |2> |1> |0>
|1> |1> |0> |2>
|2> |0> |2> |1>
180
Multiple-Valued Logic Operations in Quantum Computing
FIGURE 10.10 The Circuit Diagram of Quantum Ternary XNOR Operation circuit. The circuit diagram of the quantum ternary XNOR operation is shown in Figure 10.10. Z (O2) shift operation is added which will invert the output value of the quantum ternary XNOR operations. Quantum NOT operation can be added instead of Z (02) as shown earlier. 10.4.6.2
Working Principles of Ternary Quantum-XNOR Operation
Again, the working procedure is the same as the quantum ternary XOR operation with an extra Z(02) operation. The table below (Table 10.14) shows the operation at each gate of the quantum ternary XNOR operations. TABLE 10.14 Quantum Ternary XNOR Operations for the Circuit Shown in Figure 10.10 A
B
0 0 0 1 1 1 2 2 2
0 1 2 0 1 2 0 1 2
1 Z(+2) 0 0 2 0 0 2 0 0 2
2 Z(+2) 0 0 2 0 0 2 2 2 1
3 Z(+2) 0 0 2 0 2 2 2 2 1
4 C2 NOT 0 0 2 0 2 0 2 0 1
5 Z(+1) 1 1 1 2 2 2 0 0 0
6 Z(+1) 1 2 0 1 2 0 1 2 0
7 C2 NOT 0 1 2 1 2 0 2 0 1
Output Z(02) 2 1 0 1 0 2 0 2 1
Summary
181
10.5 Summary This chapter has focused on multi-valued quantum computing with some basic operations. The ternary quantum system represents one type of three-dimensional quantum system with the basis states |0>, |1>, and |2>. These basis states are called qutrit states. A ternary computer is a computer that does computations using ternary logic (three possible values) rather than binary logic (two possible values). The fundamental quantum gates which will work in ternary quantum computing are Quantum Ternary Shift Gates, Quantum Ternary Toffoli Gates, and Quantum Ternary C2 NOT Gate where quantum ternary shift gates are working along with the Toffoli gate. This chapter has presented basic multi-valued quantum operations with their architectures and working principles. Necessary figures are also shown in their description for better understanding.
Bibliography [1] Marella, S. T., & Parisa, H. S. K. Introduction to Quantum Computing. [2] Miller, M. D., & Thornton, M. A. (2008). MVL concepts and algebra. In Multiple Valued Logic: Concepts and Representations (pp. 21-42). Springer, Cham. [3] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [4] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [5] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [6] Di, Y., Zhang, J., & Wei, H. (2008). Cartan decomposition of a two-qutrit gate. Science in China Series G: Physics, Mechanics and Astronomy, 51(11), 16681676.
11 Multiple-Valued Quantum Arithmetic Operations
11.1
Introduction
Quantum computing is a new and challenging field in research and arithmetic circuits in multi-valued quantum computing are a recent attraction for all. It is a speedy technology in modern science. Electrical circuits with more than two distinct levels of signal are now achievable because to major advances in integrated circuit technology, which have sparked a lot of interest in them in recent years. Multiple-valued logic circuits (MVLCs) are a type of circuit that offer several potential opportunities for the improvement of present VLSI circuit designs. Multiple-valued logic displays to us the phenomena that have never been witnessed in binary logic since the only two values available are the null and unit elements of Boolean algebra, which have extremely precise features. When these phenomena are reflected on a two-valued scale, fresh and deeper knowledge of the matter has gained. Multiple-valued logic has a wide range of applications in addition to providing a better understanding of binary difficulties. They can be divided into two categories. To handle binary issues more quickly, the first group use a multiple-valued logic domain. For example, converting a multiple-output Boolean function to a single-output multiple-valued function by considering its output part as a single multiple-valued variable is a well-known method of representing it. Berkeley’s verification and synthesis tool VIS, for example, uses this approach. The second group focuses on electrical circuits that use more than two discrete levels of signals, such as multiple-valued memory, arithmetic circuits, and Field Programmable Gate Arrays. Multiple-valued logic (MVL) circuits propose a number of potential improvements to current VLSI circuit designs. For example, serious difficulties with limitations on the number of connections an integrated circuit has with the outside world (pinout problem) as well as the number of connections within the circuit encountered in some VLSI circuit synthesis could be greatly reduced if signals in the circuit could assume four or more states instead of only two. Furthermore, employing multiple-valued number representation in many applications has a strong mathematical appeal. Residue and redundant number systems, for example, allow for the reduction or elimination of ripple-through carries in regular binary addition and subtraction, resulting in faster arithmetic.
DOI: 10.1201/9781003381938-11
183
184
Multiple-Valued Quantum Arithmetic Operations
On the other hand, designing and implementing a multiple-valued logic circuit is a substantial challenge. Because the circuits are more complicated to build than binary logic circuits. When it comes to quantum computing, things get a little trickier. In this chapter, the following topics will be discussed. 1. Multiple-Valued Quantum Half Subtractor 2. Multiple-Valued Quantum Full Subtractor 3. Multiple-Valued Quantum N-qutrit Parallel Adder 4. Multiple-Valued Quantum Carry Skip Adder 5. Multiple-Valued Quantum Carry Lookahead Adder 6. Multiple-Valued Quantum Multiplier 7. Multiple-Valued Quantum Divider 8. Multiple-Valued Quantum Comparator These topics will be discussed in the ternary logic system. Multi-Valued can be ternary, quaternary and so on.
11.2
Multiple-Valued Quantum Half-Adder
A multi-valued half adder for a ternary logic system is a type of adder where an electronic circuit performs the addition of ternary numbers. The half adder is able to add two single ternary digits and provide the output plus a carry value. It has two inputs, called A and B, and two outputs called S (sum) and C (carry). Quantum Ternary Half Adder will add two qutrits from the quantum ternary digit |0>, |1>, and |2> and produce two outputs as quantum sum |S> and quantum carry qutrit |C>. The Table 11.1 shows the outputs of a quantum ternary half adder. From the Table 11.1, the logical expressions for the ternary sum and carry are found as Sum = A0 .B2 + A1 .B1 + A2 .B0 + 1. (A0.B1 + A1 .B0 + A2 .B2) Carry = 1. (A1.B2 + A2 .B1 + A2 .B2) So, using these equations the circuit diagram can be constructed for the quantum ternary half-adder operation.
11.2.1
The Architecture of Quantum Ternary Half-Adder Operation
Decoders are required to create a ternary half adder so that the input qutrit can be decoded into the appropriate qutrit. Two decoders will be used to decode two qutrits |A> and |B> and they will produce 3-qutrit outputs. The architecture of the Quantum Ternary half-adder is shown in Figure 11.1.
185
Multiple-Valued Quantum Half-Adder TABLE 11.1 The Truth Table of Quantum Ternary HalfAdder Operation A |0> |0> |0> |1> |1> |1> |2> |2> |2>
B |0> |1> |2> |0> |1> |2> |0> |1> |2>
Carry |0> |0> |0> |0> |0> |1> |0> |1> |1>
Sum |0> |1> |2> |1> |2> |0> |2> |0> |1>
From the Figure 11.1, it is found that two quantum ternary 1-to-3 decoders, eleven quantum ternary AND operations, and seven quantum ternary OR operations are required to build the quantum ternary half-adder. The quantum ternary AND and OR operations are nothing but the products-ofsum (which was shown in the logical expression of the quantum ternary half-adder) that produce the expected output that was mentioned in the truth table 11.1. The quantum ternary AND and the quantum ternary OR operations are already discussed in the previous chapter. The architecture may seem very complex and difficult to understand for the first time.
11.2.2
Working Principles of Quantum Ternary Half-Adder Operation
Since the architecture of the quantum ternary half-adder is designed completely following the logical expression derived from the truth table (Table 11.1). The logical expression can be used to demonstrate the working methods. If the expressions provide absolute outputs, the architecture will produce the expected results as well. The working procedure of the quantum ternary half adder is given below for each pattern of the input set of qutrits. 1. For input A,B = 0, A0 = 2, A1 =0, A2 =0 B0 = 2, B1 =0, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 0.2 + 0.0 + 2.0 + 1.(0.2 + 2.0 + 0.0) = 0 + 1.0 =0
186
Multi-Valued Quantum 1-to-3 Decorders
Multiple-Valued Quantum Arithmetic Operations
Sum
Carry
Multi-Valued Quantum AND Operation
Multi-Valued Quantum Multi-Valued Quantum OR & AND Operations OR Operations
FIGURE 11.1 The Circuit Architecture of Quantum Ternary Half-Adder Operation Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) =1. (0.0 + 0.0 + 0.0)
= 1.0 =0
2. For input A, B = 0, 1 A0 = 2, A1 =0, A2 =0 B0 = 0, B1 =2, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 0.0 + 0.2 + 2.0 + 1.(0.2 + 2.2 + 0.0) = 0 + 1.2 =1 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (0.2 + 0.0 + 0.0)
Multiple-Valued Quantum Half-Adder = 1.0 =0 3. For input A, B = 0, 2 A0 = 2, A1 =0, A2 =0 B0 = 0, B1 =0, B2 =2 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 0.0 + 0.0 + 2.2 + 1.(0.2 + 2.0 + 0.0) = 2 +1.0 =2 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (0.0 + 0.2 + 0.2) = 1.0 =0 4. For input A, B = 1, 0 A0 = 0, A1 =2, A2 =0 B0 = 2, B1 =0, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 0.2 + 2.0 + 0.0 + 1.(2.2 + 0.0 + 0.0) = 0 + 1.2 =1 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (0.0 + 0.0 + 2.0) = 1.0 =0 5. For input A, B = 1, 1 A0 = 0, A1 =2, A2 =0 B0 = 0, B1 =2, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) =0.0 + 2.2 + 0.0 + 1.(2.0 + 0.2 + 0.0) = 2 +1.0 =2 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (0.2 + 0.0 + 2.0) = 1.0 =0
187
188
Multiple-Valued Quantum Arithmetic Operations 6. For input A, B = 1, 2 A0 = 0, A1 =2, A2 =0 B0 = 0, B1 =0, B2 =2 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 0.0 + 2.0 +0.2 +1.(2.0 + 0.0 + 0.2) = 0 +1.0 =0 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (0.0 + 0.2 + 2.2) = 1.2 =1 7. For input A, B = 2, 0 A0 = 0, A1 =0, A2 =2 B0 = 2, B1 =0, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 2.2 + 0.0 +0.0 +1.(0.2 + 0.0 + 2.0) = 2 +1.0 =2 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (2.0 + 2.0 + 0.0) = 1.0 =0 8. For input A, B = 2, 1 A0 = 0, A1 =0, A2 =2 B0 = 0, B1 =2, B2 =0 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 2.0 + 0.2 +0.0 +1.(0.0 + 0.2 + 2.0) = 0 +1.0 =0 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (2.2 + 2.0 + 0.0) = 1.2 =1
Multiple-Valued Quantum Full-Adder
189
9. For input A, B = 2, 2 A0 = 0, A1 =0, A2 =2 B0 = 0, B1 =0, B2 =2 Sum = A2 .B0 + A1 .B1 + A0 .B2 + 1. (A1 .B0 + A0 .B1 + A2 .B2 ) = 2.0 + 0.0 +0.2 +1.(0.0 + 0.0 + 2.2) = 0 +1.2 =1 Carry = 1. (A2 .B1 + A2 .B2 + A1 .B2 ) = 1. (2.0 + 2.2 + 0.2) = 1.2 =1 To keep the calculations simple, the input values were not expressed in quantum notation. The developed architecture for the quantum ternary half-adder is found to perfectly perform the half-adder computation for the qutrits.
11.3
Multiple-Valued Quantum Full-Adder
In this section, it will be discussed how to construct a quantum full-adder in ternary logic. In the quantum ternary full adder, there are a total of three inputs |A>, |B>, and |C>. Here the value of A and B can be |0>, |1> or |2>. But for |C> in which acts as a carry input in the full-adder, can be either |0> or |1>. The reason is that the carry qutrit can never be |2>. Thus a total number of eighteen combinations of the input values are obtained. Table 11.2 shows the operations in a quantum ternary full-adder. Again, from the truth table, it is possible to derive the logical expression to find the sum and carry outputs. The logical expression for the sum and carry out can be derived as follows: Sum = A2.B0.C0 +A1.B0.C1 + A1.B1.C0+ A0.B1.C1 +A0.B2.C0 +A2.B2.C1+1 (A1.B0.C0+A0.B0.C1 +A0.B1.C0+A2.B1.C1+A2.B2.C0+A1.B2.C1) = (A2.B0+A1B1+A0B2).C0 + (A1.B0+A0.B1+A2.B2).C1+ 1((A1.B0+A0.B1+A2.B2).C0 + (A0B0+A2B1+A1B2).C1) Carry = 1 (A0.B2.C0+A2.B1.C0+A2.B2.C0 +A1.B1.C1+B2.C1+A2.C1) = 1. ((A0.B2+A2.B1+A2B2).C0 + (A1.B1+ B2+A2).C1) Here, A0, A1, and A2 refer that the value of input |A> might be |0>,|1>, and |2>, respectively. Similarly, B0, B1, and B2 refer that the value of b might be |0>, |1>, and |2>, respectively. Again the equations are nothing but the sum-of-products form.
190
Multiple-Valued Quantum Arithmetic Operations TABLE 11.2 Truth Table of Quantum Ternary Full-Adder Operation A 0 0 0 0 0 0 1 1 1 1 1 1 2 2 2 2 2 2
11.3.1
B 0 0 1 1 2 2 0 0 1 1 2 2 0 0 1 1 2 2
C 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Sum 0 1 1 2 2 0 1 2 2 0 0 1 2 0 0 1 1 2
Cout 0 0 0 0 0 1 0 0 0 1 1 1 0 1 1 1 1 1
The Circuit Architecture of Quantum Ternary Full-Adder Operation
Figure 11.2 shows the carry output generation part and Figure 11.3 shows the sum output generation part of the quantum ternary full-adder operation. Like the quantum ternary half-adder, it is possible to construct the circuit using the equations. Decoders are used to extract the ternary values from the inputs. Three decoders are utilized for three inputs. The quantum ternary decoder produces three output lines for each input value. Decoder for input |A> produces |A0>, |A1>, |A2>, for input |B> produces |B0>, |B1>, |B2> and for input |C> produce |C0>, |C1>, |C2>. Only one output line is true (which gives |2>; see decoder section) and the other remains false (produce |0>) for an input. From the truth table (Table 11.2), the sum of the full adder produces six true (i.e. |2>) values and six |1> values. For these six true values, it is possible to design six ternary quantum-AND operations (TAND) and each of the quantum ternary AND operation outputs will TOR (quantum ternary OR) to produce the true output when one of the outputs of the quantum ternary AND operation is true, also have nine |1> values in sum. For these six |1> values, it is possible to design six quantum ternary AND operations (TAND) and each of the TAND operation outputs will TOR to produce the true (|2>) output when one of the outputs of the TAND operation is true. But as the output |1>, so TAND is performed with the TOR operation output
Multiple-Valued Quantum Half-Subtractor
191
with |1>. TAND operation produces the minimum value. So the output of the TAND operation will always |1>. Finally, a TOR operation is used to generate the maximum output among |2>, |0> and |0>, |1>. From the truth table (Table 11.2), carry of the full adder produces nine |1> values. It is possible to design nine quantum ternary AND operations (TAND) and each of the TAND operation’s output will TOR to produce the true (|2>) output when one of the outputs of the TAND operation is true. But as it needs the output |1>, so TAND on the TOR operation’s output with |1>. TAND operation produces the minimum value. So the output of the TAND operation will always |1> for one of the true inputs among nine TAND operations. Again for one |2> value, one TAND operation is used and the output of this TAND will perform TOR to produce the carry output. Therefore, it is possible to construct the architecture using the equations for the sum and carry output. It will be divided into two parts because the circuit architecture will be much larger.
11.3.2
Working Principles of Quantum Ternary Full-Adder Operation
A multiple-valued quantum Full-Adder contains three quantum qutrits |A>, |B> and |C> as input and two output quantum qutrits, |Sum> and |Cout >. Here, the value of |A> and |B> can be any of the three qutrits from |0>, |1> and |2> and for |C> it can be |0> and |1> (in no situation carry input can be |2>). Here, it needs three 1-to-3 multiple-valued quantum decoders, seventeen multiple-valued quantum AND operations, eleven multiple-valued quantum OR operations to get the result of |Sum>. Similarly, another seven multiple-valued quantum AND operations and five multiplevalued quantum OR operations are required to generate the output of |Cout >. Let’s have a look for one input pattern. When the input of |A>, |B> and |C> are |2>, |0> and |0>, then decoder active |A2>, |B2>, and |C0> bypassing the qubit |2> among them and |0> through other lines. As a result first multiple-valued quantum AND operation is executed and produces the output |2>. This output pass through some multiple-valued quantum OR operation resulting in output |2> again. Then this output |2> performs a multiple-valued quantum AND operation with |C0> which value is also |2>. The output then passes through two other multiple-valued quantum OR operations to produce the result of |Sum> which is |2>. And for the output value of |Cout >, a similar procedure is followed. But before generating the result of |Cout >, one last multiple-valued quantum AND operation is executed with a fixed input qubit |1>. And the value of |Cout > for this input combination is |0>.
11.4
Multiple-Valued Quantum Half-Subtractor
A ternary half subtractor is a sort of subtractor, which is an electrical circuit that performs ternary number subtractions. The half subtractor is able to subtract two single ternary digits and provide the output plus a borrow value. It has two inputs,
192
Multi-Valued
Multi-Valued Quantum AND Operation
Multi-Valued Quantum 1-to-3 Decorder
Multi-Valued Quantum Quantum AND OR Operation
C0C1C2B0B1B2A0A1A2
Multi-Valued Quantum OR Operation
Multiple-Valued Quantum Arithmetic Operations
Multi-Valued Quantum OR Operation FIGURE 11.2 Circuit Architecture of Quantum Ternary Full-Adder Carry Generation
193
Multiple-Valued Quantum Half-Subtractor
Multi-Valued Quantum AND
Multi-Valued Quantum OR Operation
Multi-Valued Quantum OR
Multi-Valued Quantum AND
C0C1C2B0B1B3A0A1A2
Multi-Valued Quantum AND
Multi-Valued Quantum OR
Multi-Valued Quantum 1:3 Decorder
Multi-Valued Quantum AND Operation
SUM
Multi-Valued Quantum OR Operation Multi-Valued Quantum AND Operation
FIGURE 11.3 Circuit Architecture of Quantum Ternary Full-Adder Sum Output Generation
194
Multiple-Valued Quantum Arithmetic Operations TABLE 11.3 Truth Table of Quantum Ternary HalfSubtractor Operation A |0> |0> |0> |1> |1> |1> |2> |2> |2>
B |0> |1> |2> |0> |1> |2> |0> |1> |2>
Borrow |0> |1> |1> |0> |0> |1> |0> |0> |0>
Difference |0> |2> |1> |1> |0> |2> |2> |1> |0>
called A and B, and two outputs D (difference) and Bout (borrow). Quantum Ternary Half Subtractor will subtract two qutrits from the quantum ternary digit |0>, |1>, and |2> and produce two outputs as quantum difference |D> and quantum borrow bit |B>. The truth table below (Table 11.3) will show the outputs of a quantum ternary half subtractor. From the truth table (Table 11.3), the equations for the difference and borrow are given as follows: Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1.( A0 .B2 + A1 .B0 + A2 .B1 ) Borrow = 1.( A0 .B1 + A0 .B2 + A1 .B2 ) Here, A0 , A1 , and A2 refer to the |0>, |1>, and |2> which are the value of input |A>. Similarly, B0 , B1 , and B2 refer to the |0>, |1>, and |2> which are the value of input |B>.
11.4.1
The Circuit Architecture of Quantum Ternary Half-Subtractor Operation
Decoders are required to decode the input qutrit into the appropriate qutrits in order to create a quantum ternary half subtractor. Two decoders are be used to decode two qutrits |A> and |B> that have to be subtracted. They will produce 3-qutrit output. Where one output qutrit will active (i.e. having value |2>) and the other two will remain inactive (i.e. having value |0>). Figure 11.4 depicts the architecture of the quantum ternary half-subtractor operation. The Figure 11.4 shows that for the quantum ternary half subtractor, it is needed to use two quantum ternary 1-to-3 decoders, eleven quantum ternary AND operations, and seven quantum ternary OR operations. The quantum ternary AND and OR operations are nothing but the products-ofsum that produces the expected output that was mentioned in the above truth table 11.3.
195
Multi-Valued Quantum 1-to-3 Decorders
Multiple-Valued Quantum Half-Subtractor
Multi-Valued Multi-Valued Multi-Valued Quantum AND Quantum OR Quantum AND & OR FIGURE 11.4 The Circuit Diagram for Quantum Ternary Half-Subtractor Operation
196
Multiple-Valued Quantum Arithmetic Operations
The quantum ternary half adder was constructed using the designed quantum ternary AND and OR operations, which use shifting operations and C2 NOT operations.
11.4.2
Working Principles of Quantum Ternary Half-Subtractor Operation
The logical formulations generated for the quantum ternary half-subtractor are explained in this section. The working procedure of the quantum ternary half subtractor is given below for each pattern of input bits. 1. For input A, B = 0, A0 = 2, A1 =0, A2 =0 B0 = 2, B1 =0, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 2.0 + 0.0 + 0.2 + 1.(2.0 + 0.2 + 0.0) = 0 + 1.0 =0 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (2.0 + 2.0 + 0.0) = 1.0 =0 2. For input A, B = 0, 1 A0 = 2, A1 =0, A2 =0 B0 = 0, B1 =2, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 2.2 + 0.0 + 0.0 + 1.(2.0 + 0.0 + 0.2) = 2 + 1.0 =2 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (2.2 + 2.0 + 0.0) = 1.2 =1 3. For input A, B = 0, 2 A0 = 2, A1 =0, A2 =0 B0 = 0, B1 =0, B2 =2 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 )
Multiple-Valued Quantum Half-Subtractor = 2.0 + 0.2 + 0.0 + 1. (2.2 + 0.0 + 0.0) = 0 + 1.2 =1 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (2.0 + 2.2 + 0.2) = 1.2 =1 4. For input A, B = 1, 0 A0 = 0, A1 =2, A2 =0 B0 = 2, B1 =0, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.0 + 2.0 + 0.2 + 1.(0.2 + 2.2 + 0.0) = 0 + 1.2 =1 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.0 + 0.0 + 2.0) = 1.0 =0 5. For input A, B = 1, 1 A0 = 0, A1 =2, A2 =0 B0 = 0, B1 =2, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.2 + 2.0 + 0.0 + 1.(0.0 + 2.0 + 0.2) = 0 + 1.0 =0 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.2 + 0.0 + 2.0) = 1.0 =0 6. For input A, B = 1, 2 A0 = 0, A1 =2, A2 =0 B0 = 0, B1 =0, B2 =2 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.0 + 2.2 + 0.0 + 1.(0.2 + 2.0 + 0.0)
197
198
Multiple-Valued Quantum Arithmetic Operations = 2 + 1.0 =2 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.0 + 0.2 + 2.2) = 1.2 =1 7. For input A, B = 2, 0 A0 = 0, A1 =0, A2 =2 B0 = 2, B1 =0, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.0 + 0.0 +2.2 +1.(0.0 + 0.2 + 2.0) = 2 +1.0 =2 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.0 + 0.0 + 0.0) = 1.0 =0 8. For input A, B = 2, 1 A0 = 0, A1 =0, A2 =2 B0 = 0, B1 =2, B2 =0 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.2 + 0.0 +2.0 +1.(0.0 + 0.0 + 2.2) = 0 +1.2 =1 Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.0 + 0.0 + 0.0) = 1.0 =0 9. For input A, B = 2, 2 A0 = 0, A1 =0, A2 =2 B0 = 0, B1 =0, B2 =2 Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1. (A0 .B2 + A1 .B0 + A2 .B1 ) = 0.0 + 0.2 +2.0 +1.(0.2 + 0.0 + 2.0) = 0 +1.0 =0
Multiple-Valued Quantum Full-Subtractor Operation
199
Borrow = 1. (A0 .B1 + A0 .B2 + A1 .B2 ) = 1. (0.0 + 0.2 + 0.2) = 1.0 =0 The circuit reflects those two expressions for the difference and borrows outputs. Therefore, the results will be the same for the inputs to the circuit shown in Figure 11.4.
11.5
Multiple-Valued Quantum Full-Subtractor Operation
In this section, a quantum full-subtractor in ternary logic is constructed. In the quantum ternary full subtractor, there are a total of three inputs |A>, |B>, and |C>. Here the value of |A> and |B> can be |0>, |1> or |2>. But for |C> in which acts as a borrow input in the full-subtractor, can be either |0> or |1> (see the half-subtractor section; no borrow was generated as |2>). The reason is that the borrow qutrit can never be |2>. Thus a total number of eighteen combinations as of the input values. Table 11.4 shows the operations in a quantum ternary full-subtractor. Again, from the truth table, the logical expressions are derived to find the difference and borrow outputs. The logical expressions for the difference and borrow outputs are derived as follows: Dfference = A0.B1.C0 + A1.B2.C0 + A2.B0.C0 + A0.B0.C1 + A1.B1.C1 + A2.B2.C1 + 1. (A0.B2.C0 + A1.B0.C0 + A2.B1.C0 + A0.B1.C1 + A1.B2.C1 + A2.B0.C1) = (A0.B1 + A1.B2 + A2.B0).C0 + (A0.B0 + A1.B1 + A2.B2).C1 + 1. ((A0.B2 + A1.B0 + A2.B1).C0 + (A0.B1 + A1.B2 + A2.B0).C1) Borrowout = 1.(A0.B1.C0+A0.B2.C0 + A1.B2.C0 + A0.C1 +B2.C1+A1.B1.C1) = 1.((A0.B1+A0.B2+A1.B2).C0 + (A0+B2+A1.B1).C1) Here, A0, A1, and A2 refer that the value of input |A> might be |0>,|1>, and |2>, respectively. Similarly, B0, B1, and B2 refer that the value of |b> might be |0>, |1>, and |2>, respectively. Again the equations are nothing but the sum-of-products form. Therefore, it is possible to construct the architecture using the equations for the difference and borrow output. Because the architecture will be significantly larger, it will be splited into two halves.
11.5.1
The Circuit Architecture of Quantum Ternary Full-Subtractor Operation
Figure 11.5 shows the difference output generation part and Figure 11.6 shows the borrow output generation part of the quantum ternary full-subtractor operation. For
200
Multiple-Valued Quantum Arithmetic Operations TABLE 11.4 Truth Table of Quantum Ternary Full-Subtractor Operation A 0 0 0 0 0 0 1 1 1 1 1 1 2 2 2 2 2 2
B 0 0 1 1 2 2 0 0 1 1 2 2 0 0 1 1 2 2
C 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Difference 0 2 2 1 1 0 1 0 0 2 2 1 2 1 1 0 0 2
Borrow 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 1
the difference output part, three multi-valued decoders, fourteen quantum ternary AND and nine quantum ternary OR operations are needed. On the other hand, for the borrow output part, three quantum multi-valued decoders, seven quantum ternary AND and five quantum ternary OR operations are needed. Like the quantum ternary half-adder, full-adder, and half-subtractor, the circuit is using the equations. The input decoders are used to get the ternary values. For three inputs, three decoders are needed. To get the result of the difference, the simplified equation is used which is generated from the truth table. In the truth table, there are a six of |2> value for the difference. So it is needed to pass six input combinations through quantum ternary AND operations. Finally, to get one final output from them, quantum ternary OR operation is used. The same procedure is repeated for truth value |1> in the difference equation. But, to confirm that from this part, never get the truth value |2>, the output of the quantum ternary OR operation passes through a quantum ternary AND operation whose other input is |1>. Finally, the output of the quantum ternary OR operation and quantum ternary AND operation pass as the input of the last quantum ternary OR operation to generate the desired result of |D> (difference). Figure 11.5 shows the procedure in detail. In the case of the borrow output, the truth table gives nine |1> values (for input |A>, |B>, and |C>). After using K-map, it is possible to simplify the equation of borrow output. The equation is divided into two parts, one for |C0 > and the other for
201
Multiple-Valued Quantum Full-Subtractor Operation
Multi-Valued
Multi-Valued Quantum OR
Multi-Valued Quantum AND
Multi-Valued Quantum 1:3 Decorder
Multi-Valued Quantum AND
Multi-Valued Quantum OR
C0C1C2B0B1B2A0A1A2 Quantum AND
Multi-Valued Quantum OR
Multi-Valued Quantum AND
SUM
Multi-Valued Quantum OR Multi-Valued Quantum AND
FIGURE 11.5 The Circuit Diagram for Quantum Ternary Full-Subtractor Difference Output Generation
202
Multi-Valued Quantum 1-to-3 Decorders
C0C1C2B0B1B2A0A1A2
Multi-Valued Quantum OR & AND
Multiple-Valued Quantum Arithmetic Operations
Bout
FIGURE 11.6 The Circuit Diagram for Quantum Ternary Full-Subtractor Borrow Output Generation
Multiple-Valued Quantum Parallel Adder
203
|C1 >. In the first part, three different pairs of input values of |A> and |B> go through three quantum ternary AND operations. The output of these three-quantum ternary AND operations sequentially executes quantum ternary OR operation among them and the output of the second quantum ternary OR operation then performs a quantum ternary AND operation with |C0 > input. In the second part, after one quantum ternary AND and two quantum ternary OR operations, the output of these takes part in a quantum ternary AND operation with |C1 > input. The output of both the parts then passes through a quantum ternary OR operation. At last, to ensure that the maximum output of this circuit is |1>, another quantum ternary AND operation is performed with input value |1>. Finally, the result of the borrow output is obtained.
11.5.2
Working Principles of Quantum Ternary Full-Subtractor Operation
In multiple-valued Quantum Full-Subtractor, three 1-to-3 multiple-valued quantum decoders are needed, fourteen multiple-valued quantum-AND operations, and nine multiple-valued quantum-OR operations to get the result of |D> (difference output). Similarly, another seven multiple-valued quantum-AND operations and five multiple-valued quantum-OR operations are required to generate the output of |Bout > (borrow output). When the inputs of |A>, |B> and |C> are |0>, |1> and |0>, then decoder actives |A0 >, |B1 > and |C0 > bypassing the qutrit |2> among them and |0> through the other lines. As a result, the first multiple-valued quantum-AND operation is executed and produces the output |2>. This output pass through some multiple-valued quantumOR operation resulting in output |2> again. Then this output |2> performs a multiplevalued quantum AND operation with |C0 > which value is also |2>. The output then passes through two other multiple-valued quantum-OR operations to produce the result of difference |D> which is |2>. And for the borrow output |Bout >, a similar procedure is followed. But before generating the result of |Bout >, one last multiplevalued quantum-AND operation is executed with a fixed input qutrit |1>.
11.6 Multiple-Valued Quantum Parallel Adder A single quantum ternary complete adder adds two single-qutrit values and one input carry qutrit. A quantum ternary Parallel Adder is a quantum circuit that finds the arithmetic sum of two ternary numbers that are more than one qutrit in length by operating on analogous pairs of qutrits in parallel. It consists of a chain of quantum ternary full-adders, with each quantum ternary full adder’s output carry connected to the carry input of the next higher-order quantum ternary full-adder in the chain. An nqutrit parallel adder requires n quantum ternary full-adders to operate. So two quantum ternary full-adders are required for a two-qutrit number, four quantum ternary full-adders are required for a four-qutrit value, and so on.
204
11.6.1
Multiple-Valued Quantum Arithmetic Operations
General Organizations of Multiple-Valued Quantum Parallel Adder
Figure 11.7 shows the general organizations of a quantum ternary 4-qutrit parallel adder. From the Figure, it is seen that to perform the ternary addition of two numbers of 4-qutrits, four quantum ternary full-adders are required connected in a manner where the carry output of the 1st ternary adder is the carry input of the 2nd ternary adder, and the the 2nd ternary adder’s carry output is 3rd ternary adder’s carry input, and the carry output of the 3rd ternary adder is the carry input of the 4th ternary adder. And finally, the carry output of the 4th ternary adder will be the most significant qutrit of the ternary addition result. Figure 11.8 shows the general organizations of a quantum ternary n-qutrit parallel adder. From Figure 11.8, it is understood that how n number of quantum ternary fulladders are connected to each other to perform the ternary addition process of two values of n-qutrits. In an n-qutrit quantum ternary parallel adder, it is possible to add any number of qutrits length values. To design a circuit for that operation with the help of the circuit shown in Figure 11.8. The carry input qutrit value can be either |0> or |1> (see the full-adder section), where the output sum and carry qutrit can contain |0>, or |1>, or |2>. The design procedure is exactly the same as it is done in the quantum n-qubit parallel adder. But the difference is in the logical operation- the ternary addition process. The ternary addition process is described already.
11.6.2
Circuit Architecture of Quantum Multiple-Valued Parallel Adder
It is necessary to connect a number of quantum ternary full-adders in order to create the quantum ternary parallel adder. The architecture of the quantum ternary fulladder was explained already. The circuit diagram for sum output is shown in Figure 11.3, and the carry output is shown in Figure 11.2. The full-adders must be connected to make a quantum ternary parallel adder. The carry output will be the carry input qutrit to the next quantum ternary full-adder.
11.6.3
The Working Principles of Quantum Multiple-Valued Parallel Adder
In quantum multiple valued parallel adder, it is required to add two qutrits (the addend and the augend) which are only single-qutrit input. The procedures are the same, the only difference is the logical operation will be in the ternary system. A 4-qutrit quantum ternary parallel adder operation’s example can be shown as follows: |C3 > |C2 > |C1 > |C0 > |A>: |A3 > |A2 > |A1 > |A0 > (Augend) |B>: |B3 > |B2 > |B1 > |B0 > (Addend) |S>: |S4 > |S3 > |S2 > |S1 > |S0 >
Multiple-Valued Quantum Parallel Adder
FIGURE 11.7 The General Organizations of Quantum Ternary 4-Qutrit Parallel Adder
FIGURE 11.8 The General Organizations of Quantum Ternary N-Qutrit Parallel Adder
205
206
Multiple-Valued Quantum Arithmetic Operations
Let, |A> = |1210>, and |B> = |0221> |0 1 1 0> |A>: |1 2 1 0> (Augend) |B>: |0 2 2 1> (Addend) |S>: | 0 2 2 0 1>
11.7
Multiple-Valued Quantum Carry-Lookahead Adder
In the quantum ternary carry-lookahead adder, all the carry outputs are calculated without performing the FullAdderCarryValue () operations – the similar way it is done earlier. That means the carry output will be calculated using combinational circuits. Remember that, no carry will be generated as |2>, therefore it will not be a problem to determine the carry output values in the ternary system.
11.7.1
General Organizations of Quantum Ternary Carry-Lookahead Adder
Figure 11.9 shows the general architecture of the 4-qutrit carry-lookahead adder. The combinational circuits consist of quantum ternary AND and OR operations which is shown several times in the previous chapters. This representation is the ternary representation of the quantum 4-qubit carry-lookahead adder. Figure 11.10 shows the general architecture of the n-qutrit carry-lookahead adder where it is possible to perform the addition of n-qutrit inputs, and all operations will be executed at the same time after determining the value of |C1 > which will reduce the total computational time.
11.7.2
The Architecture of Quantum Ternary Carry-Lookahead Adder
The value of |Ci > is determined to perform the addition operation concurrently. Figure 11.11 shows the architecture of the quantum ternary 3-qutrit carry-lookahead adder where the quantum ternary 3-qutrit carry-lookahead adder is constructed using the most familiar universal operations in the quantum ternary system. That means the architecture contains the quantum ternary XOR operations, AND operations, and OR operations. Figure 11.11 shows the procedure to calculate the |Pi > and |Gi > to determine the carry qutrits. |Pi > can be determined by |Ai > QXOR |Bi > and |Gi > can be determined by |Ai > QAND |Bi >. The architecture does the same thing in the ternary system. So, the value C2 can be determined from P1 C1 + G1, and C3 can be determined from P2 C2 + G2. Figure 11.11 shows the same thing in the circuit. The values are determined and connected accordingly.
Multiple-Valued Quantum Carry-Lookahead Adder
207
FIGURE 11.9 The General Organizations of Quantum Ternary 4-Qutrit Carry-Lookahead Adder
11.7.3
The Working Principles of Quantum Ternary Carry-Lookahead Adder
The working principles of the quantum ternary carry-lookahead adder are straightforward. The equations are devised and implemented in the circuit. As a result, the circuit should provide the desired outcome if the equations are right. However, as an example, it is possible to simulate the inputs to the circuit and observe how the circuit behaves. Suppose, |A> = |120> and |B> = |101>. 1. The 1 st addition operation will be performed between |A1 > = |0>, and |B1> = |1>. And for 1 st operation the value of |C0 > = |0>. The 1 st ternary QXOR will produce |1>. And the 2nd ternary QXOR will produce also |1>. Therefore, the value of |S1 > will be |1>. And the carry |C1 > will generate using the ternary QAND and ternary QOR operations, which will be |0>. Thus the |C1 > = |0> will be used to determine all the values of other |Ci >.
208
Multiple-Valued Quantum Arithmetic Operations
FIGURE 11.10 The General Organizations of Quantum Ternary n-Qutrit Carry-Lookahead Adder 2. The value of |P1 > will be |1>, and the value of |G1 > will be |0>. Therefore, the value of |C2 > = |0> (P1 C1 + G1 ). 3. Now the 2nd addition operation will be performed between |A2 > = |2>, and |B2 > = |0>. And |C2 > = |0> is determined. Therefore, the value of |S2 > = |2>. Now the value of |C3 > is determined. 4. Here, the value of |P2 > will be |2>, and the value of |G2 > will be |0> again. Therefore, the value of |C3 > will be |0>.
Multiple-Valued Quantum Carry-Lookahead Adder
209
FIGURE 11.11 The Circuit Diagram of Quantum Ternary 3-Qutrit Carry-Lookahead Adder 5. Now the 3rd addition operation will be performed between |A3 > = |1>, and |B3 > = |1>. And |C3 > = |0> is determined. Therefore, the value of |S3 > = |2>. And the value of |C4 > =|0> will be the most significant qubit of the result. 6. Therefore, the value of |S4 > will be |0>.
210
11.8
Multiple-Valued Quantum Arithmetic Operations
Multiple-Valued Quantum Carry-Skip Adder
Quantum carry-skip adder is a quantum adder system that reduces the propagation delay of a quantum n-qubit parallel adder with low effort. The worst-case delay can be decreased by merging several carry-skip adders to create a quantum block-carryskip adder.
11.8.1
How Does Quantum Ternary Carry-Skip Adder Work?
Figure 11.12 shows the basic structure of the quantum ternary 4-qutrit carry-skip adder. The quantum ternary carry-skip adder skips a number of qutrits (often called block) if the addition process of qubit does not generate any carry output which is equivalent to |1> (in the logic no change has occurred, because there will be no addition operation where a carry is found equivalent to |2>). It bypasses the 1 st carry qutrit of the block when it is found that there exists no operation which generates carry output |1>. That is why it can be called the quantum ternary bypass adder as well. To determine the block propagate BP using the value of |Pi > in the quantum two-valued system. Here, BP stands for block propagate which determines whether a carry will generate as |1> or not. If there will be no carry output as |1>, a multiplexer will bypass the 1 st carry input |C0 > as the input for the next quantum full-adder operation. And, if there will be generated a carry as |1> within these four-quantum full-adder operations, this carry skip adder will work just like the quantum parallel adder. In the quantum full-adder operation the carry qubit was generated as |1> only when the input addend and augend both were |1>. Otherwise, the carry was always |0>. Now in the ternary system carry generates as |1> while adding two qutrits either |1> and |2>, or |2> or |1> are added. And for another input pattern carry can generate as |1> is if both inputs are |2>. Therefore, avoiding these three input patterns, it is possible to find the block propagate when no carry will be generated as |1>. So, to perform quantum carry-skip adder in the ternary system, |2> is needed to be considered also as the block propagates along with the |1>. So, the quantum ternary carry-skip adder will bypass the value of |C0> as the final carry output of the block if the value of BP is either |1> or |2>. When the BP is |0> then this carry-skip adder will work like the parallel adder. And one thing that can be noted, to optimize the result, a condition with the system is needed, that is, if the input values both are |2> the block will not perform the carry-skip addition, rather it will perform the regular parallel addition as well. Because this input set will also generate a carry qutrit |1> but the ternary QXOR will generate |1> as well. Therefore, this input set will break the logic for the other input set if it is not set the condition by the algorithm. Therefore, the block propagate BP in the quantum ternary system can be determined as– BPi = |P0 > . |P1 > . |P2 > . . . . . |Pi >
Multiple-Valued Quantum Carry-Skip Adder
211
FIGURE 11.12 Basic Structure of a 4-Qutrit Quantum Ternary Carry-Skip Adder Where, |Pi > = (Ai QXOR Bi ) All operations will be for ternary qutrits. And if the value of BP is |1> or |2>, the multiplexer will bypass the carry input of the block to the next block.
11.8.2
The General Architecture of Quantum Ternary Carry-Skip Adder
Figure 11.13 shows the general organizations of a 4-qutrit quantum ternary carryskip adder where the block propagate will generate first, if it is BP = |1> or |2> then the circuit will bypass the first carry qutrit to the next quantum ternary full-adder using a quantum ternary 3-to-1 multiplexer.
212
Multiple-Valued Quantum Arithmetic Operations
FIGURE 11.13 General Organizations of a 4-Qutrit Quantum Ternary Carry-Skip Adder In Figure 11.13, if it is BP = |1> or |2> then the circuit will bypass the first carry qutrit to the next quantum ternary full-adder using a quantum ternary 3-to-1 multiplexer.
11.8.3
The Working Principles of Quantum Ternary Carry-Skip Adder
To make the thing easier, as always, the working procedure of the quantum ternary carry-skip adder through example will be understood. Suppose during the addition of two inputs |A> and |B>, where |A> = |0120102101> and |B> = |2001020020>. |A>: |0120102101> |B>: |2001020020>
Multiple-Valued Quantum Carry-Skip Adder
213
|S>: |2121122121> In the ternary system for such cases, carry does not generate as |1>. Therefore determining carry for such cases will increase the computational time. Let’s see how BP will tell if carry is generated or not. For the above example, block propagate (BP) can be calculated as – Q BP = n−1 i=0 Pi And, |Pi > = |Ai > QXOR |Bi >, in ternary logic. If BP = |1> or |2>, then the carry of the last adder operation will be the carry output of the 1 st adder operation. This means no carry is been generated as |1>. Let’s calculate BP for the above example. BP = |1> . |2> . |1> . |2> . |2> . |1> . |1> . |2> . |1> . |2> = |1> And suppose the inputs are |A> = |20002020220>, and |B> = |02220202002>, then the block propagate will be – BP = |2> . |2> . |2> . |2> . |2> . |2> . |2> . |2> . |2> . |2> . |2> = |2> Therefore, in both cases, no carry will be generated as |1>. Therefore, the last carry output will be |0> which was the 1 st carry input of this operation. Now let’s take an example for the designed 4-qutrit quantum ternary carry-skip adder and the working principle is given below. As the circuit is for 4-qutrit, suppose |A> = |1012>, and |B> = |0200>. So, |A0 > = |2>, |A1 > = |1>, |A2 > = |0>, and |A3 > = |1>. And |B0 > = |0>, |B1 > = |0>, |B2 > = |2>, and |B3 > = |0>. 1. 1 st quantum full-adder will receive inputs |A0 > = |2>, |B0 > = |0>, and |C0 > = |0>. Remember the carry will determine only if the value of BP is not |1> or |2>. Therefore, the sum will be |2>, and the value of |P0 > = |2>. 2. For 2nd quantum full-adder operation, input qutrits are |A1 > = |1>, |B1 > = |0>. Therefore, |P1 > = |1>. 3. For 3rd quantum full-adder operation, input qutrits are |A2 > = |0>, |B2 > = |2>. Therefore, |P2 > = |2>. 4. For 4th quantum full-adder operation, input qutrits are |A3 > = |1>, |B3 > = |0>. Therefore, |P3 > = |1>. All the values of Pi will be found, so the block propagate will be, BP = |P0 > . |P1 > . |P2 > . |P3 > = |2> . |1> . |2> . |1> = |1> Here, BP = |1> is found therefore, no carry was generated as |1>. And that is why the sum of the operations will be the values of all |Pi >’s for each Ai and Bi . And the value of BP will activate the quantum multiplexer. And consequently, the carry output for |C4 > will be the value of |C0 > which is |0> for this example. This circuit can be tested for input qutrits that generate carry qutrit as |1> in any of the quantum full adder operations.
214
Multiple-Valued Quantum Arithmetic Operations
A condition is given that if both the input qutrits are |2> then the carry-skip adder will perform as like the quantum ternary parallel adder. Because, if both inputs are |2>, the quantum ternary XOR will generate |1>, which is correct for the carry-skip condition, but at the same time, they produce a carry as |1> as well. That is why this specific input pattern is taken under an extra condition.
11.9
Multiple-Valued Quantum Multiplier
A quantum multiplier is a quantum circuit which multiplies two qubit numbers. There are different types of quantum multiplier circuits. It is seen how the quantum multiplier works. The architecture in quantum logic is constructed already. Everything that is done was for the two-valued system. But now the multiple-valued system is introduced. Therefore, it is needed to design the quantum multiplier in the ternary system.
11.9.1
How Does the Quantum Ternary Multiplier Work?
The quantum ternary multiplier will take two input qutrit and produce a product qutrit and a carry qutrit. The next multiplication will consider the carry to determine the product as well. Figure 11.14 shows the general working block of a quantum ternary multiplier. To establish the quantum ternary multiplier, it is needed to start from the core of the ternary multiplication. That means need to understand how 1-qutrit multiplication can be formed. Table 11.5 shows the rules of quantum ternary multiplication. From the Table 11.5, the logical expressions for the product and the carry are obtained and given as follows: Product = A1 .B2 + A2 .B1 + 1.(A1 .B1 + A2 .B2 ) Carry = 1. (A2 .B2 )
FIGURE 11.14 The General Working Block of a Quantum Ternary Multiplier
215
Multiple-Valued Quantum Multiplier TABLE 11.5 Truth Table for 1-Qutrit Quantum Ternary Multiplication MultiplicandA |0> |0> |0> |1> |1> |1> |2> |2> |2>
MultiplierB |0> |1> |2> |0> |1> |2> |0> |1> |2>
ProductP |0> |0> |0> |0> |1> |2> |0> |2> |1>
CarryC |0> |0> |0> |0> |0> |0> |0> |0> |1>
ResultR |00> |00> |00> |00> |01> |02> |00> |02> |11>
Here, A1 means the value of A is |1>, similarly A2 means that the value of A is |2>. The same thing goes for the others as well. From the equation, it is possible to generate the 1-qutrit quantum ternary multiplier.
11.9.2
The Architecture of the Quantum Ternary 2 × 2 Multiplier
From the logical expression, a ternary 1-qutrit multiplier is generated which is shown in Figure 11.15. This 1-qutrit multiplier can perform the multiplication operation as shown in the truth table of the multiplication rules. From Figure 11.15, it is seen that two decoders decode the given input qutrit for the multiplicand and multiplier. They produce the corresponding outputs and get the product and the carry output by using the outputs of the decoders as the input of the quantum ternary AND and OR operations. The circuit reflects the equations for the product and carry. So, this was just to perform 1-qutrit multiplication which will produce only one qutrit as the product, and just for one case it will produce a carry as |1>. What will be the result if the multiplicand |A> = |A1 A0 >, and |B> = |B1 B0 >? Figure 10.16 shows the architecture of the quantum 2x2 qutrit ternary multiplier where the multiplicand and the multiplier are in 2-qutrit in size. In the above Figure two inputs, the multiplicand |A> = |A1 A0 >, and multiplier |B> = |B1 B0 > are performing multiplication operation and generate the product of |A> and |B> as |p> = |P4 P3 P2 P1 P0 >. From the above Figure, to perform the multiplication operation of the inputs of 2-qutrit size, need four 1-qutrit quantum ternary multipliers. These multipliers will perform the 1-qutrit multiplication operation. But to get the final product outputs it is needed to connect five half adders (which will add two qutrit values) and two full adders (which will also add a carry input qutrit along with two input qutrits) accordingly to Figure 11.16. The circuit diagram for the quantum ternary half-adder and quantum ternary full-adder was discussed already. So, connect every component and construct the circuit to perform the quantum ternary 2x2 multiplication operation.
Multiple-Valued Quantum Arithmetic Operations
Multi-Valued Quantum 1-to-3 Decorders
216
Multi-Valued Multi-Valued Quantum OR Quantum OR & AND FIGURE 11.15 Circuit Diagram of the Quantum Ternary 1-Qutrit Multiplier
Multiple-Valued Quantum Multiplier
FIGURE 11.16 The Architecture of the Quantum Ternary 2 × 2 Multiplier
217
218
Multiple-Valued Quantum Arithmetic Operations
11.9.3
The Working Procedure of the Quantum Ternary 2 × 2 Multiplier
The operational behavior of the designed circuit for the quantum ternary 2x2 multiplier is discussed in this session and shown in Figure 11.16. Suppose, it is needed to multiply two ternary input values, where |A> = |02>, and |B> = |10>. After multiplication operations these inputs will produce |P> = |P4 P3 P2 P1 P0 >. So, the value of |A0 > = |2>, and |A1 > = |0>. And the value of |B0 > = |0>, and |B1 > = |1>. The operations will be described from right to left of Figure 11.16. 1. The 1 st quantum ternary 1-qutrit multiplier will get the input values of |A0 > and |B0 >. Here, |A0 > = |2>, and |B0 > = |0>. Therefore, this multiplier will generate two outputs |m0 > = |0> and |c0 > = |0> (see Table 11.5). Here, |m0 > is the multiplication product, and |c0 > is the carry value. The value of |m0 > will be the least significant qutrit of the final product. Therefore, |P0 > = |0> is found, and the value of |c0 > will work as an input to the 1 st quantum ternary half-adder shown in Figure 11.16 (from the right side of the Figure). 2. The 2nd quantum ternary 1-qutrit multiplier will get the input values of |A1 > and |B0 >. Here, |A1 > = |0>, and |B0 > = |0>. Therefore, this multiplier will generate two outputs |m1 > = |0> and |c1 > = |0>(see Table 11.5). The value of |m1 > will work as the 2nd input value to the 1 st quantum ternary half-adder. And the value of |c1 > will work as an input to the 3rd quantum ternary half-adder. 3. The 3rd quantum ternary 1-qutrit multiplier will get the input values of |A0 > and |B1 >. Here, |A0 > = |2>, and |B1 > = |1>. And, this multiplier will generate two outputs |m2 > = |2> and |c2 > = |0>(see Table 11.5). The value of |m2 > will be work as an input value to the 5th quantum ternary half-adder. And the value of |c2 > will work as an input to the 2nd quantum ternary half-adder. 4. The 4th quantum ternary 1-qutrit multiplier will get the input values of |A1 > and |B1 >. Here, |A1 > = |0>, and |B1 > = |1>. And, this multiplier will generate two outputs |m3 > = |0> and |c3 > = |0> (see Table 11.5). The value of |m3 > will be work as another input value to the 2nd quantum ternary half-adder. And the value of |c3 > will work as an input to the 4th quantum ternary half-adder. 5. Now, the 1 st quantum ternary half-adder will get inputs |c0 > = |0> (from step 1), and |m1 > = |0> (from step 2). So, this half-adder will produce two outputs. Here, from the 1 st half adder, |S0 > = |0> is obtained, and the carry output will also be |0>. The value of |S0 > will be work as another input of the 5th quantum ternary half-adder. And the carry value from this half-adder will work as another input value of the 3rd quantum ternary half-adder (according to Figure 11.16).
Multiple-Valued Quantum Multiplier
219
6. The 2nd quantum ternary half-adder will get inputs |c2 > = |0> (from step 3), and |m3 > = |0> (from step 4). So, this half-adder will produce two outputs, |S1 > = |0>, and the carry output will also be |0> (see the truth table of the ternary half-adder). The value of |S1 > will be work as an input of the 1 st quantum ternary full-adder. And the carry value from this half-adder will work as another input value of the 4th quantum ternary half-adder (according to Figure 11.16). 7. The 3rd quantum ternary half-adder will get inputs |c1 > = |0> (from step 2), and also |0> from the carry output of the 1 st half-adder (from step 5). So, this half-adder will produce two outputs, |S2 > = |0>, and the carry output will also be |0> (see the truth table of the ternary half-adder). The value of |S2 > will work as an input of the 1 st quantum ternary full-adder. And the carry value from this half-adder will work as an input value of the 2nd quantum ternary full-adder (according to Figure 11.16). 8. The 4th quantum ternary half-adder will get inputs |c3 > = |0> (from step 4), and also |0> from the carry output of the 2nd half-adder (from step 6). So, this half-adder will produce two outputs, |S3 > = |0>, and the carry output will also be |0> (see the truth table of ternary half-adder). The value of |S3 > will work as an input of the 2nd quantum ternary full-adder. And the carry value from this half-adder produces the most significant qutrit of the final product value. 9. The 5th quantum ternary half-adder will get inputs |S0 > = |0> (from step 5), and also |m2 > = |2> from step 3. So, this half-adder will produce the value of |P1 > = |2>. And a carry out value |0> which will work as an carry input to the 1 st quantum full-adder. 10. Now, the 1 st quantum ternary full-adder operations can be performed. It gets three inputs as, |S1 > = |0>, |S2 > = |0>, and |0> (from step 9). Therefore the sum of the addition will be |0> which is the value of |P2 >. And the carry will also be |0> which will be the carry input to the 2nd quantum ternary full-adder. 11. The last operation is the 2nd quantum ternary full-adder. It gets the three inputs as - |S3 > = |0>, |0> from step 7, and also |0> from step 10. Therefore it will also produce sum |0> and carry output as |0>. The sum output will be the value of |P3 > and the carry output will be the value of |P4 >. And therefore, both the value as |0> has obtained. So, finally, all the production values are obtained. Here, the input values are |A> = |02>, and |B> = |10>. And the product values are obtained as- |P0 > = |0>,|P1 > = |2>, |P2 > = |0>,|P3 > = |0>, and |P4 > = |0>. Therefore, the multiplication result for the two input values is |P> = |00020>. That is entirely accurate.
220
Multiple-Valued Quantum Arithmetic Operations
FIGURE 11.17 The General Working Block of a Quantum Ternary Divider; (left) n-Qutrit Quantum Ternary Divider, (middle) 1-Qutrit Quantum Ternary Divider, and (right) 2-Qutrit Quantum Ternary Divider
11.10
Multiple-Valued Quantum Divider
One of the most challenging mathematical procedures is the division of ternary numbers. Although the division operation can be performed logically using the subtraction operations iteratively, which is most suitable for the software program. In this section, an attempt is made to construct the ternary divider circuit for 1-qutrit and 2-qutrit division operations.
11.10.1
How Does the Quantum Ternary Divider Work?
The logic of ternary division operation is as same as it was in the binary division operation. The input and the output of the quantum ternary divider are shown in Figure 11.17. The following table (Table 11.6) shows the 1-qutrit ternary division operation for the quantum ternary divider. To keep it simple the values are not in quantum notation. Table 11.6 shows the operational truth table for the ternary 1-qutrit division operations, where A, B, Q, and R are the ternary values of dividend, divisor, quotient, and the remainder, respectively. From the operational Table, it is possible to derive the logical expression to construct the operational circuit. The logical expressions for the 1-qutrit ternary divider are – Q = A2 . B1 + 1.(A1 . B1 + A2 . B2 )
(11.1)
221
Multiple-Valued Quantum Divider TABLE 11.6 Truth Table for 1-Qutrit Quantum Ternary Division Operation A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
Q 0 0 1 0 2 1
R 0 0 0 1 0 0
R = 1.(A1 . B2 )
(11.2)
It takes a long time to find the expression for the 2-qutrit divider. It can be derived by considering all the possible inputs and outputs for 2-qutrit values and then mapping them to derive the logical expression to construct the operational circuit. For the 2-qutrit values of divisor and dividend, there will be 81 possible combinations for the inputs (Table 11.7). To make it more understandable it is possible to segment the total input combinations into three equal parts. Each part contains 27 combinations. It can be named Table A, Table B, and Table C. It is possible to derive expressions separately for each portion of the segmented input-output mapping. Observe the following input-output mapping very scrupulously and try to derive logical expressions for each Table.
Q1A = NOT APPLICABLE
Q0A = A01 A20 B01 B10 + 1. (A01 A10 B01 B10 + A01 A20 B01 B20 ) = A01 B01 . [ A20 B10 + 1.(A10 B10 + A20 B20 ) ] R1A = NOT APPLICABLE
R0A = A01 A20 B11 B00 + A01 A20 B11 B10 + A01 A20 B11 B20 + A01 A20 B21 B00 + A01 A20 B21 B10 + A01 A20 B21 B20
+A01 A10 B01 B20 +A01 A10 B11 B00 +A01 A10 B11 B10 +A01 A10 B11 B20 +A01 A10 B21 B00 +A01 A10 B21 B10 +A01 A10 B21 B20
222
Multiple-Valued Quantum Arithmetic Operations
TABLE 11.7 Truth Table for 2-Qutrit Quantum Ternary Division Operation A A1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
=
A01 A20 .
A0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
h
B1 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2
B0 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2
Q1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Q0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0
R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
R0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 2 2 2 2 2 2
i B11 B00 + B11 B10 + B11 B20 + B21 B00 + B21 B10 + B21 B20 +
1. [ A01 A10 . ( B01 B20 + B11 B00 + B11 B10 + B11 B20 + B21 B00 + B21 B10 + B21 B20 )]
223
Multiple-Valued Quantum Divider B A1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
A0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
B1 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2
B0 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2
Q1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Q0 0 1 1 0 0 0 0 0 1 2 1 1 0 0 0 0 2 2 1 1 1 0 0 0
R1 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1
R0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 1 1 0 1 2 1 0 2 2 2
Q1B = 1.[ A11 A00 B01 B10 + A11 A10 B01 B10 + A11 A20 B01 B10 ] = 1. [ A11 B01 B10 . ( A00 + A10 + A20 )] Q0B = A11 A10 B01 B20 + A11 A20 B01 B10 + A11 A20 B01 B20 " +1.
A11 A00 B01 B20 + A11 A00 B11 B00 + A11 A10 B01 B10 + A11 A10 B11 B00 + A11 A10 B11 B10 + A11 A20 B11 B00 +A11 A20 B11 B10 + A11 A20 B11 B20
#
224
Multiple-Valued Quantum Arithmetic Operations
= A11 B01 .[ A10 B20 +A20 B10 +A20 B20 ] + 1.[ A11 { A00 (B01 B20 +B11 B00 ) + A10 (B01 B10 + B11 B00 + B11 B10 )
R1B = 1.[ A11 A00 B11 B10 + A11 A00 B11 B20 + A11 A00 B21 B00 + A11 A00 B21 B10 + A11 A00 B21 B20 +
A10 B11 B20 + A11 A10 B21 B00 + A11 A10 B21 B10 + A11 A10 B21 B20 + A11 A20 B21 B00 +A11 A20 B21 B10 + A11 A20 B21 B20 ]
= 1.[A11 { A00 (B11 B10 + B11 B20 + B21 B00 + B21 B10 + B21 B20 ) + A10 (B11 B20 + B21 B00 + B21 B10 +B21 B20 ) + A20 B21 (B00 + B10 + B20 ) }] R0B = A11 A20 B11 B00 + A11 A20 B21 B00 + A11 A20 B21 B10 + A11 A20 B21 B20 " +1.
A11 A00 B01 B20 + A11 A10 B11 B00 + A11 A10 B11 B20 + A11 A10 B21 B00 + A11 A10 B21 B10 + A11 A10 B21 B20 +A11 A20 B01 B20 + A11 A20 B11 B10
#
= A11 [ A20 ( B11 B00 + B21 (B00 + B10 + B20 )) ] + 1.[ A11 ( A00 B01 B20 + A10 (B11 (B00 + B20 ) + B21 (B00 + B10 + B20 )) ) ] Q1C = A21 A00 B01 B10 +A21 A10 B01 B10 +A21 A20 B01 B10 +1.[A21 A00 B01 B20 +A21 A10 B01 B20 +A21 A20 B01 B20 ] ] =
A21 B01 B10 [ A00 + A10 + A20 ] + 1.[ A21 B01 B20 (A00 + A10 + A20 ) ]
Q0C = A21 A00 B11 B00 + A21 A10 B11 B00 + A21 A20 B01 B10 + A21 A20 B11 B00 + A21 A20 B11 B10
" +1.
A21 A00 B11 B10 + A21 A00 B11 B20 + A21 A00 B21 B00 + A21 A10 B01 B10 + A21 A10 B11 B10 + A21 A10 B11 B20 +A21 A10 B21 B00 + A21 A10 B21 B10 + A21 A20 B01 B20 + A21 A20 B11 B20 + A21 A20 B21 B00 + A21 A20 B21 B10
= A21 [ B11 B00 ( A00 + A10 + A20 ) + A20 B10 (B01 + B11 )] + 1.[ A21 ( A00 (B11 (B10 + B20 ) + B21 B00 )+
#
225
Multiple-Valued Quantum Divider C A1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
A0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
B1 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2
B0 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2
Q1 2 1 0 0 0 0 0 0 2 1 0 0 0 0 0 0 2 1 0 0 0 0 0 0
Q0 0 0 2 1 1 1 0 0 1 0 2 1 1 1 1 0 2 1 2 2 1 1 1 1
R1 0 0 0 0 0 0 2 2 0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0
R0 0 0 0 2 1 0 0 0 0 1 1 0 2 1 0 1 0 0 2 0 0 2 1 0
1
A
(B10 ( B01 + B11 + B21 )+ B11 B20 + B21 B00 )+A20 (B20 (B01 + B11 )+ B21 (B00 + B10 + B20 ) ) ) ] 0
h i R1C = A21 A00 B21 B10 + A21 A00 B21 B20 + A21 A10 B21 B20 + 1. A21 A10 B11 B10 + A21 A20 B11 B20 =
A21 B21 [ A00 (B10 + B20 ) + A10 B20 ] + 1.[A21 B11 ( A10 B10 + A20 B20 )]
R0C = A21 A00 B11 B10 + A21 A10 B11 B20 + A21 A20 B11 B00 + A21 A20 B21 B00 h i +1. A21 A00 B11 B20 + A21 A10 B01 B20 + A21 A10 B11 B00 + A21 A10 B21 B00 + A21 A10 B21 B20 + A21 A20 B21 B10
226
Multiple-Valued Quantum Arithmetic Operations
0
= A21 [ B11 (A00 B10 + A10 B20 ) + B00 ( A20 B11 + A20 B21 ) ] + 1.[A21 ( B20 (A0 B11 + A10 B01 ) + A10 B00 (B11 + B21 ) + B21 (A10 B20 + A20 B10 ) )] The logical expression for the quotient – Q0 = Q0A + Q0B + Q0C Q1 = Q1A + Q1B + Q1C And the logical expression for the remainder – R0 = R0A + R0B + R0C R1 = R1A + R1B + R1C
11.10.2
Circuit Architecture of the Quantum Ternary Divider
Let’s first construct the circuit for the 1-qutrit divider, where both the dividend and the divisor are the values of 1-qutrit. Figure 11.18 shows the circuit diagram of the quantum ternary 1-qutrit divider. The circuit diagram of the quantum ternary 1-qutrit divider can be constructed using the expressions in Equation 11.1 and Equation 11.2. The values of the dividend and the divisor are gone through two quantum ternary 1-to-3 decoders and produce the corresponding outputs. Then using the equations construct the circuit diagram to get the quotient |Q> and remainder |R> outputs. Now, using expressions Equation 11.3, Equation 11.4, and Equation 11.5, it is possible to construct the 2-qutrit quantum ternary divider. This architecture requires four decoders for the four input values (A1 , A0 , B1 , and B0 ) and will produce 12 outputs (three outputs for each input). By now, it is known that how to work with decoder outputs. Figure 11.19 shows the general architecture of the 2-qutrit divider. From the above general architecture, the circuit diagram can be constructed. The expression for Q1A , Q1B , Q1C , Q0A , Q0B , Q0C , R1A , R1B , R1C , R0A , R0B , and R0C was provided earlier. The decoders will provide the required input ternary values for the expressions.
11.10.3
The Working Procedures of the Quantum Ternary Divider
The logical expression is derived for the 1-qutrit and 2-qutrit quantum ternary divider from their operational truth table and the circuits are designed according to the logical expressions. Therefore, the circuits for the ternary division operations will work according to the logical expression directly. The working procedures are already explained in section 11.10.1.
Multiple-Valued Quantum Divider
FIGURE 11.18 Circuit Diagram of the Quantum Ternary 1-Qutrit Divider
227
228
Multiple-Valued Quantum Arithmetic Operations
FIGURE 11.19 Circuit Diagram of the Quantum Ternary 2-Qutrit Divider
11.11
Multiple-Valued Quantum Comparator
A comparator that compares two input signals and gives output as which input is larger or smaller or equal. Multi-Valued Quantum 1-qubit comparator takes two single-qubit inputs, |A> and |B>. The value of the inputs can be |0>, |1>, and |2>. This circuit gives three outputs |X>, |Y> and |Z> where |X> is true when |A> is smaller than |B>, |Y> is true when |A> is equal to |B> and |Z> is true when |A> is greater than |B>. Here, Table 11.8 shows the truth table of the 1-qubit comparator. From the truth table, the equations for |X>, |Y> and |Z> as – |X> = A0 .B1 + A0 .B2 + A1 .B2 |Y> = A0 .B0 + A1 .B1 + A2 .B2 |Z> = A1 .B0 + A2 .B0 + A2 .B1 Now, using the equations, it is possible to design the Multi-Valued Quantum 1qubit comparator. Figure 11.20 display the block diagram of the quantum 1-qubit comparator. Here two inputs are |A> and |B>, three outputs are |X>, |Y> and |Z>.
Multiple-Valued Quantum Comparator
FIGURE 11.20 Block Diagram of Multi-Valued Quantum 1-Qubit Comparator
229
230
Multiple-Valued Quantum Arithmetic Operations TABLE 11.8 1-Qubit Comparator Truth Table
11.11.1
Inputs |A>
|B>
|0> |0> |0> |1> |1> |1> |2> |2> |2>
|0> |1> |2> |0> |1> |2> |0> |1> |2>
|X> A |2> |2> |0> |0> |2> |0> |0> |0>
Outputs |Y> |Z> A= B A > B |2> |0> |0> |0> |0> |0> |0> |2> |2> |0> |0> |0> |0> |2> |0> |2> |2> |0>
Circuit Architecture of Multiple-Valued Quantum Comparator
The construction of the Multi-Valued Quantum 1-qubit comparator circuit is shown in Figure 11.21. In this circuit, the input, |A> and |B>, at first, pass through two 1-to-3 decoders separately, so that the inserted qubits, i.e., |0>, |1>, or |2> can be identified using the output of 1-to-3 decoders. Nine Quantum AND operations and six Quantum OR operations are used in a 1-qubit comparator where each input of these AND operations come from the various combinations of the output of a 1-to-3 decoder using truth Table 11.8.
11.11.2 1.
Working Principle Multiple-Valued Quantum Comparator
For input sequences |A>, |B> = |0>, |0>, the multi-valued 1-to-3 decoder will perform (|A0> && |B0>) and the 4th AND line will be open. As a result, the output qubit of |Y> equal |2> and the remaining lines |X> to |Z> will remain closed |0>.
2. For input sequences |A>, |B> = |0>, |1>, the multi-valued 1-to-3 decoder will perform (|A0> && |B1>) and the 1 st AND line will be open. As a result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 3. For input sequences |A>, |B> = |0>, |2>, the multi-valued 1-to-3 decoder will perform (|A0> && |B2>) and the 2nd AND line will be open. As a result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 4. For input sequences |A>, |B> = |1>, |0>, the multi-valued 1-to-3 decoder will perform (|A1> && |B0>) and the 7th AND line will be open. As a
Multiple-Valued Quantum Comparator
231
A0A1A2B0B1B2 Quantum AND Quantum OR
Multi-Valued Quantum 1-to-3 Decorders
FIGURE 11.21 Circuit Architecture of Multi-Valued Quantum Comparator
232
Multiple-Valued Quantum Arithmetic Operations result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>. 5. For input sequences |A>, |B> = |1>, |1> the multi-valued 1-to-3 decoder will perform (|A1> && |B1>) and the 5th AND line will be open. As a result, the output qubit of |Y> equal |2> and remaining lines |X> to |Z> will remain closed |0>. 6. For input sequences |A>, |B> = |1>, |2>, the multi-valued 1-to-3 decoder will perform (|A1> && |B2>) and the 3rd AND line will be open. As a result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 7. For input sequences A, B= |2>, |0>, the multi-valued 1-to-3 decoder will perform (|A2> && |B0>) and the 8th AND line will be open. As a result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>. 8. For input sequences |A>, |B> = |2>, |1>, the multi-valued 1-to-3 decoder will perform (|A2> && |B1>) and the 9th AND line will be open. As a result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>. 9. For input sequences |A>, |B> = |2>, |2>, the multi-valued 1-to-3 decoder will perform (|A2> && |B2>) and the 6th AND line will be open. As a result, the output qubit of |Y> equal |2> and remaining lines |X> to |Z> will remain closed |0>.
11.12 Summary A quantum ternary Parallel Adder is a quantum circuit that finds the arithmetic sum of two ternary numbers that are more than one qutrit in length by operating on analogous pairs of qutrits in parallel. A Quantum ternary parallel adder consists of a chain of quantum ternary full-adders where the carry output of each quantum ternary full adder is output carry connected to the carry input of the next higher-order quantum ternary full-adder in the chain. A quantum ternary half adder’s execution time is 373 microseconds whereas a quantum ternary full-adder operation’s execution speed is 433 microseconds. All arithmetic operations in multi-valued quantum logic are explained in this chapter.
Summary
233
Bibliography [1] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [2] Dubrova, E. (1999, November). Multiple-valued logic in VLSI: challenges and opportunities. In Proceedings of NORCHIP (Vol. 99, No. 1999, pp. 340-350). [3] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [4] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE.
12 Multiple-Valued Logic Operations in DNA Computing
12.1
Introduction
The multiple-valued system is more difficult to implement than the two-valued system. It is more costly, more space-consuming, requires more computational time, and generates more heat than the two-valued system. DNA computing can be used to implement the multiple-valued system. The reason DNA computers can solve complicated problems is that they generate multiple viable solutions at once. This is known as parallel processing. DNA computing is already used to implement two-valued operations. Now, this chapter will explain how DNA computing constructs the operations for multi-valued systems. In this chapter, the most basic operations are implemented in DNA computing for the multi-valued system. Then the basic arithmetic operations will be described in the next chapter.
12.2
How Can Multiple-Valued Operations be Performed in DNA Computing?
In the two-valued DNA computing system, it is assumed that two DNA base sequences for the equivalent two binary values zero and one. But in the multiple-valued system (here working with the ternary system) the digits are 0, 1, and 2. Therefore now to take three DNA strands that will be equivalent to the three ternary digits. The DNA sequences are ACCTAG = ‘0’, CAAGCT = ‘1’, and TGGATC = ‘2’. This is going to be different than the binary system. The operations are performed in DNA computing by conducting chemical reactions. And in binary logic, the bond is detected between DNA strands to perform operations using the DNase Enzyme (if the bond was not created the DNase enzyme would kill the base sequences). In this Ternary DNA computing, the fluorescent level is used to detect the DNA sequence. Fluorescence is the temporary absorption of electromagnetic wavelengths from the visible light spectrum by fluorescent molecules, and the subsequent emission of light at a lower energy level. When it occurs in a living organism, it is DOI: 10.1201/9781003381938-12
235
236
Multiple-Valued Logic Operations in DNA Computing
sometimes called Biofluorescence. This causes the light that is emitted to be a different color than the light that is absorbed. Stimulating light excites an electron, raising energy to an unstable level. For each operation, the fluorescent level will be different and it will determine the output of the operation.
12.3
Performing Fundamental Operations in Ternary Logic in DNA Computing
In this section, the fundamental operations will be implemented in ternary logic in DNA computing. NOT, OR, NOR, AND, NAND, XOR, XNOR, etc. will be implemented in DNA computing with ternary logic system. DNA ternary logic functions are those functions that have significance if a third value is acquainted with the DNA binary logic. Here, ACCTAG, CAAGCT, and TGGATC will represent 0, 1, and 2 in ternary logic which denotes the ternary levels for basic logic operations to represent false, undefined, and true, respectively [3]. The basic operations of DNA ternary logic can be defined as follows: yOR = max(x, y) yNOR = max(x, y) yAND = min(x, y) yNAND = min(x, y) yXOR = sum(x, y) yXNOR = sum(x, y) Where, x, y = {0, 1, 2} But in this case, 0, 1, and 2 are used for simplicity. The actual values are the DNA strands which are ACCTAG, CAAGCT, and TGGATC as mentioned before. The truth table of those DNA operations is shown in Table 12.1. Assume every operation is in the quantum system. For convenience, classical names are used. The truth table of DNA Ternary AND, NAND, OR, NOR, XOR, and XNOR logic operations for ternary logic is depicted in the Table12.1. For AND logic operation its output value depends on the minimum value of its inputs. Similarly, in the case of the OR logic operation, its output value depends on the maximum value of its inputs. For the XOR operation, its output value is the sum of the value of its inputs. Therefore, the outputs of DNA Ternary NAND, NOR, and XNOR logic operations become the inverted of quantum ternary AND, OR, and XNOR logic operations.
12.3.1
Ternary DNA-NOT Operation
It is known about the NOT operation principle that the NOT operation will simply invert the input value. Here in ternary DNA logic, the invert of ACCTAG is TGGATC and vice versa. And the invert value of CAAGCT is CAAGCT itself.
Performing Fundamental Operations in Ternary Logic in DNA Computing
237
TABLE 12.1 Truth Table for Ternary AND, NAND, OR, NOR, XOR, XNOR Operations Input 1 0 0 0 1 1 1 2 2 2
Input 2 0 1 2 0 1 2 0 1 2
AND 0 0 0 0 1 1 0 1 2
NAND 2 2 2 2 1 1 2 1 0
OR 0 1 2 1 1 2 2 2 2
NOR 2 1 0 1 1 0 0 0 0
XOR 0 1 2 1 2 0 2 0 1
XNOR 2 1 0 1 0 2 0 2 1
DNA-AND operation is defined as YDNOT (X) = X , where X is the input from {ACCTAG, CAAGCT, TGGATC}. 12.3.1.1
Design Procedure of DNA Ternary NOT Operation
Figure 12.1 shows the architecture of the DNA Ternary NOT operation. As it is said earlier the architecture will not be complex in DNA ternary logic implementation. Here no base sequence is needed in the test tube. The fluorescent level will determine the output. The Annealing temperature should be more than 60◦ C for the DNA ternary NOT operations. 12.3.1.2
Working Principles of DNA Ternary NOT Operation
In ternary logic, there can be three types of NOT operation. It is defined as the positive inverter, negative inverter, and standard inverter. Table 12.2 shows the operations in the standard inverter. And the standard inverter in all operational circuits. In Figure 12.1, the fluorescent level is used here to detect the sequences and the logical value of the sequences. The operation in the ternary NOT operations can be shown as ( 2, x = 0 y0 = C0 (x) = (12.1) 0, x , 0 TABLE 12.2 Truth Table of DNA Ternary Standard NOT Operations X ACCTAG CAAGCT TGGATC
X TGGATC CAAGCT ACCTAG
238
Multiple-Valued Logic Operations in DNA Computing
FIGURE 12.1 The Operational Diagram of DNA Ternary NOT Operation
( y1 = C1 (x) =
2, x , 2 0, x = 2
(12.2)
0
y2 = C2 (x) = x = 2 − x
(12.3)
Here equation 12.1 represents the operation of a positive ternary inverter (PTI), equation 12.2 represents the operation of the negative ternary inverter (NTI) and equation 12.3 represents the standard ternary inverter (STI) which will be used. In STI when the input sequence is ACCTAG, the STI generates the output TGGATC (which is equivalent to 2), if the input sequence is CAAGCT, the get generates the output CAAGCT (equivalent to 1), and if the input sequence is TGGATC, the get generates the output ACCTAG (which is equivalent to 0).
12.3.2
Ternary DNA-AND Operation
DNA ternary AND operation is defined as YDT AND = min(X, Y), where X and Y are the input from {0, 1, 2}. Table 12.3 shows the truth table of DNA ternary AND operations. TABLE 12.3 Truth Table of DNA Ternary AND Operations ACCTAG CAAGCT TGGATC
ACCTAG ACCTAG ACCTAG ACCTAG
CAAGCT ACCTAG CAAGCT CAAGCT
TGGATC ACCTAG CAAGCT TGGATC
Performing Fundamental Operations in Ternary Logic in DNA Computing
239
FIGURE 12.2 The Operational Diagram of DNA Ternary AND Operation 12.3.2.1
Design Procedure of DNA Ternary AND Operation
Figure 12.2 shows the architecture of the DNA ternary AND operation. Where two input sequences will add to the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary AND operations. 12.3.2.2
Working Principles of DNA Ternary AND Operation
Ternary AND functions are also similar to the binary “MINIMUM OF” function. The truth Table of DNA ternary AND operation is shown in Table 12.3. The following equation helps to get the AND operation’s output for the ternary inputs. yDTAND = min(x, y) 1. Let input values are, X = ACCTAG, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary AND operation as ACCTAG. Because this outputted value is the minimum between two input sequence values. 2. Let input values are, X = ACCTAG, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary AND operation again as ACCTAG. Because the value is the minimum between two input sequence values is ACCTAG (equivalent to ternary digit 0). 3. Let input values are, X = ACCTAG, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary AND operation again as
240
Multiple-Valued Logic Operations in DNA Computing ACCTAG. Because the value is the minimum between two input sequence values is ACCTAG. 4. Let input values are, X = CAAGCT, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary AND operation again as ACCTAG. Because the value is the minimum between two input sequence values is ACCTAG. 5. Let input values are, X = CAAGCT, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary AND operation again as CAAGCT. Because the value is the minimum between two input sequence values is CAAGCT. 6. For input values are, X = CAAGCT, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary AND operation again as CAAGCT. Because the value is the minimum between two input sequence values is CAAGCT (equivalent to ternary 1). 7. For input values are, X = TGGATC, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary AND operation again as ACCTAG. Because the value is the minimum between two input sequence values is ACCTAG. 8. For input values are, X = TGGATC, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary AND operation again as CAAGCT. Because the value is the minimum between two input sequence values is CAAGCT. 9. For input values are, X = TGGATC, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary AND operation again as TGGATC. Because the value is the minimum between two input sequence values is TGGATC (equivalent to ternary digit 2).
12.3.3
Ternary DNA NAND Operation
DNA ternary NAND operation is defined as YDT NAND = min( X, Y ), where X and Y are the input from {0, 1, 2}. The truth table of DNA ternary NAND operations is shown in Table 12.4. TABLE 12.4 Truth Table of DNA Ternary NAND Operations ACCTAG CAAGCT TGGATC
ACCTAG TGGATC TGGATC TGGATC
CAAGCT TGGATC CAAGCT CAAGCT
TGGATC TGGATC CAAGCT ACCTAG
Performing Fundamental Operations in Ternary Logic in DNA Computing
241
FIGURE 12.3 The Operational Diagram of DNA Ternary NAND Operation 12.3.3.1
Design Procedure of DNA Ternary NAND Operation
From Table 12.4, it is found that the DNA ternary NAND operation is the inverted output of the DNA ternary AND operation. The DNA ternary NOT operation is designed which inverts an input. Therefore, the DNA ternary NAND operation can be constructed by adding STI to the DNA ternary AND operation which is shown in Figure 12.3. Figure 12.3 shows that the DNA ternary NAND is constructed using one DNA ternary AND operation followed by one DNA ternary NOT operation. 12.3.3.2
Working Principles of DNA Ternary NAND Operation
The working procedure of the DNA ternary NAND operation is discussed already. It is exactly the same as the DNA ternary AND operation, but the final value should be inverted to the result of the DNA ternary AND operation. For example, if the input value is ACCTAG, CAAGCT then the DNA ternary AND will produce ACCTAG (the minimum value), and the final output will be the inverted value of ACCTAG, which is TGGATC.
12.3.4
Ternary DNA-OR Operation
DNA ternary OR operation is defined as YDT OR = max (X, Y), where X and Y are the input from {0, 1, 2}. Table 12.5 shows the truth table of DNA ternary OR operations.
242
Multiple-Valued Logic Operations in DNA Computing TABLE 12.5 Truth Table of DNA Ternary OR Operations ACCTAG CAAGCT TGGATC
12.3.4.1
ACCTAG ACCTAG CAAGCT TGGATC
CAAGCT CAAGCT CAAGCT TGGATC
TGGATC TGGATC TGGATC TGGATC
Design Procedure of DNA Ternary OR Operation
Figure 12.4 shows the architecture of the DNA ternary OR operation. Where two input sequences will mix into the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary OR operations. 12.3.4.2
Working Principles of DNA Ternary OR Operation
Ternary OR functions are also similar to the binary “MAXIMUM OF” function. The truth Table of DNA ternary OR operation is shown in table 12.5. The following equation helps to get the OR operation’s output for the ternary inputs. yDT OR = max(x, y) 1. Let input values are, X = ACCTAG, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary OR operation as ACCTAG. Because this outputted value is the maximum (actually equal) between two input sequence values.
FIGURE 12.4 The Operational Diagram of DNA Ternary OR Operation
Performing Fundamental Operations in Ternary Logic in DNA Computing
243
2. Let input values are, X = ACCTAG, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary OR operation as CAAGCT. Because the maximum value between two inputs sequence values is CAAGCT (equivalent to ternary digit 1). 3. Let input values are, X = ACCTAG, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary OR operation as TGGATC. Because the maximum value between two inputs sequence values is TGGATC. 4. Let input values are, X = CAAGCT, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary OR operation again as CAAGCT. Because the maximum value between two inputs sequence values is CAAGCT. 5. Let input values are, X = CAAGCT, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary OR operation again as CAAGCT. Because the maximum value between two inputs sequence values is CAAGCT. 6. For input values are, X = CAAGCT, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary OR operation again as TGGATC. Because the maximum value between two inputs sequence values is TGGATC. 7. For input values are, X = TGGATC, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary OR operation again as TGGATC. Because the maximum value between two inputs sequence values is TGGATC. 8. For input values are, X = TGGATC, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary OR operation again as TGGATC. Because the maximum value between two inputs sequence values is TGGATC. 9. For input values are, X = TGGATC, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary OR operation again as TGGATC. Because the maximum value between two inputs sequence values is TGGATC.
12.3.5
Ternary DNA-NOR Operation
DNA ternary NOR operation is defined as YDT NOR =max( X, Y ), where X and Y are the input from {0, 1, 2}. Table 12.6 shows the truth table of DNA ternary NOR operations. 12.3.5.1
Design Procedure of DNA Ternary NOR Operation
From Table 12.6 it is found that DNA ternary NOR operation is the inverted output of the DNA ternary OR operation. The DNA ternary NOT operation is designed
244
Multiple-Valued Logic Operations in DNA Computing TABLE 12.6 Truth Table of DNA Ternary NOR Operations ACCTAG CAAGCT TGGATC
ACCTAG TGGATC CAAGCT ACCTAG
CAAGCT CAAGCT CAAGCT ACCTAG
TGGATC ACCTAG ACCTAG ACCTAG
which inverts an input. Therefore, it is possible to construct the DNA ternary NOR operation adding STI to the DNA ternary OR operation which is shown in Figure 12.5. Figure 12.5 shows that the DNA ternary NOR is constructed using one DNA ternary OR operation followed by one DNA ternary NOT operation. 12.3.5.2
Working Principles of DNA Ternary NOR Operation
By now the working procedure of the DNA ternary NOR operation is known. It is exactly the same as the DNA ternary OR operation, but the final output value should be inverted to the result of the DNA ternary OR operation. For example, if the input value is ACCTAG, CAAGCT then the DNA ternary OR will produce CAAGCT (the maximum value), and the final output will be the inverted value of CAAGCT, which is also CAAGCT.
FIGURE 12.5 The Operational Diagram of DNA Ternary NOR Operation
Performing Fundamental Operations in Ternary Logic in DNA Computing
245
TABLE 12.7 Truth Table of DNA Ternary XOR Operations ACCTAG CAAGCT TGGATC
12.3.6
ACCTAG ACCTAG CAAGCT TGGATC
CAAGCT CAAGCT TGGATC ACCTAG
TGGATC TGGATC ACCTAG CAAGCT
Ternary DNA-XOR Operation
DNA ternary XOR operation is defined as YDT XOR = sum (X, Y), where X and Y are the input from {0, 1, 2}. Table 12.7 shows the truth table of DNA ternary XOR operations. 12.3.6.1
Design Procedure of DNA Ternary XOR Operation
Figure 12.6 shows the architecture of the DNA ternary XOR operation. Where two input sequences will mix to the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary XOR operations. The ternary XOR’s mechanism was described in the quantum ternary XOR section in chapter 10. The truth Table of DNA ternary XOR operation is shown in Table 12.7. The following equation helps to get the OR operation’s output for the ternary inputs. yDT XOR = sum(x, y)
FIGURE 12.6 The Operational Diagram of DNA Ternary XOR Operation
246
Multiple-Valued Logic Operations in DNA Computing
The equation means that the output of the ternary XOR operation will be the sum value (the sum value during adding two bits). 1. Let input values are, X = ACCTAG, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary XOR operation as ACCTAG. Because this outputted value is the sum value when those two sequences will be added. 2. Let input values are, X = ACCTAG, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary XOR operation as CAAGCT. Because this outputted value is the sum value when those two sequences will be added. 3. Let input values are, X = ACCTAG, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary XOR operation as TGGATC. Because this outputted value is the sum value when those two sequences will be added. 4. Let input values are, X = CAAGCT, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary XOR operation again as CAAGCT. Because this outputted value is the sum value when those two sequences will be added. 5. Let input values are, X = CAAGCT, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary XOR operation again as TGGATC. Because this outputted value is the sum value when those two sequences will be added. 6. For input values are, X = CAAGCT, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary OR operation again as ACCTAG. Because this outputted value is the sum value when those two sequences will be added. 7. For input values are, X = TGGATC, and Y = ACCTAG. The fluorescence level will produce the output for the DNA ternary XOR operation again as TGGATC. Because this outputted value is the sum value when those two sequences will be added. 8. For input values are, X = TGGATC, and Y = CAAGCT. The fluorescence level will produce the output for the DNA ternary XOR operation again as ACCTAG. Because this outputted value is the sum value when those two sequences will be added. 9. For input values are, X = TGGATC, and Y = TGGATC. The fluorescence level will produce the output for the DNA ternary XOR operation again as CAAGCT. Because this outputted value is the sum value when those two sequences will be added.
Performing Fundamental Operations in Ternary Logic in DNA Computing
247
TABLE 12.8 Truth Table of DNA Ternary NOR Operations ACCTAG CAAGCT TGGATC
12.3.7
ACCTAG TGGATC CAAGCT ACCTAG
CAAGCT CAAGCT ACCTAG TGGATC
TGGATC ACCTAG TGGATC CAAGCT
Ternary DNA XNOR Operation
DNA ternary XNOR operation is defined as YDT NOR =sum( X, Y ), where X and Y are the input from {0, 1, 2}. Table 12.8 shows the truth table of DNA ternary NOR operations. 12.3.7.1
Design Procedure of DNA Ternary XNOR Operation
From Table 12.8, it is found that DNA ternary XNOR operation is the inverted output of the DNA ternary XOR operation. The DNA ternary NOT operation is designed which inverts an input. Therefore it is possible to construct the DNA ternary XNOR operation by adding STI to the DNA ternary XOR operation which is shown in Figure 12.7. Figure 12.7 shows that the DNA ternary XNOR is constructed using one DNA ternary XOR operation followed by one DNA ternary NOT operation. 12.3.7.2
Working Principles of DNA Ternary XNOR Operation
The DNA ternary XNOR operation is the same as the DNA ternary XOR operation, but the final output value should be inverted to the result of the DNA ternary XOR operation.
FIGURE 12.7 The Operational Diagram of DNA Ternary XNOR Operation
248
Multiple-Valued Logic Operations in DNA Computing
For example, if the input value is TGGATC, CAAGCT then the DNA ternary XOR will produce ACCTAG (the sum value), and the final output will be the inverted value of ACCTAG, which is also TGGATC. The truth table represents all possible truth values.
12.4 Summary This chapter has presented the ternary logic in the DNA computing system that means establishing basic gates and fundamental operations in the ternary system. The circuit diagram of different DNA Computing operations in the multiple-valued system is discussed with necessary figures. As always, the design principles and working principles of the operations are shown. To be mentioned, DNA computing in multiple-valued logic is theoretically easier than in the two-valued logic system. Because no DNase Enzyme will be used to detect the DNA strands bond in the ternary system.
Bibliography [1] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [2] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [3] Zheng, X., Yang, J., Zhou, C., Zhang, C., Zhang, Q., & Wei, X. (2019). Allosteric DNAzyme-based DNA logic circuit: Operations and dynamic analysis. Nucleic Acids Research, 47(3), 1097-1109. [4] Freier, S. M., Kierzek, R., Jaeger, J. A., Sugimoto, N., Caruthers, M. H., Neilson, T., & Turner, D. H. (1986). Improved free-energy parameters for predictions of RNA duplex stability. Proceedings of the National Academy of Sciences, 83(24), 9373-9377. [5] Breslauer, K. J., Frank, R., Bl¨ocker, H., & Marky, L. A. (1986). Predicting DNA duplex stability from the base sequence. Proceedings of the National Academy of Sciences, 83(11), 3746-3750.
13 Multiple-Valued Arithmetic Operations in DNA Computing
13.1
Introduction
Computing technologies are now built on the binary logic/number system, which is reliant on the existing transistors’ basic on/off switching mechanism. With the exponential rise in data processing and storage requirements, there is a strong drive to transition to a higher radix logic/number system that can eliminate or mitigate many of the binary system’s constraints. Moore’s law is expected to be saturated, and the need to increase information density and processing speed in future micro and nanoelectronic circuits and systems provides a strong context and incentive for the beyond-binary logic system. Multi-Valued logic (MVL) is considered a key enabler for next-generation and high-information-density digital electronics. While the conventional approaches to MVL systems rely on circuit-level design and implementation, the emergence of new electronic materials and device concepts now enables the MVL operation in a greatly reduced complexity and with intriguing new functionalities. The MVL system’s viability in real-world applications is contingent on overcoming two major challenges: (i) developing an efficient mathematical approach for implementing the MVL logic using existing technology, and (ii) the availability of effective synthesis techniques. In this chapter, previously designed robust arithmetic operations will be implemented in the ternary logic in DNA computing. 1. Multi-Valued DNA Half Adder 2. Multi-Valued DNA Full Adder 3. Multi-Valued DNA Half Subtractor 4. Multi-Valued DNA Full Adder 5. Multi-Valued DNA N-bit Parallel Adder 6. Multi-Valued DNA Carry Skip Adder 7. Multi-Valued DNA Carry Lookahead Adder 8. Multi-Valued DNA Multiplier 9. Multi-Valued DNA Divider 10. DNA Multi-Valued Comparator DOI: 10.1201/9781003381938-13
249
250
Multiple-Valued Arithmetic Operations in DNA Computing TABLE 13.1 Truth Table of DNA Ternary Half-Adder Operation A ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
13.2
B ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
Carry ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG CAAGCT CAAGCT
Sum ACCTAG CAAGCT TGGATC CAAGCT TGGATC ACCTAG TGGATC ACCTAG CAAGCT
Multi-Valued DNA Half-Adder
A multi-valued or ternary half adder is a sort of adder, which is an electrical circuit that performs ternary number addition. The half adder may add two single ternary digits and output the result together with a carry value. It has two inputs, called A and B, and two outputs S (sum) and C (carry). DNA Ternary Half Adder will add two molecular sequences from the ternary digit 0, 1, and 2 and produce two outputs as sum S and carry qutrit C. The below truth table (Table 13.1) will show the outputs of a quantum ternary half adder and ACCTAG = ‘0’, CAAGCT = ‘1’, and TGGATC = ‘2’. From the truth table, the logical expressions for the ternary sum and carry as – Sum = A0 .B2 + A1 .B1 + A2 .B0 + 1. ( A0 .B1 + A1 .B0 + A2 .B2 ) Carry = 1. (A1.B2 + A2 .B1 + A2 .B2 ) So, using this equation, it is possible to construct the circuit diagram for the DNA ternary half-adder operation.
13.2.1
The Circuit Architecture of DNA Ternary Half-Adder Operation
To design a DNA ternary half adder, it is needed to use DNA decoders so that it is possible to decode the input bit into the corresponding bits. Two decoders will be used to decode two input sequences A and B that have to be added. They will produce 3-bit output. The circuit architecture of the DNA ternary half-adder is shown in Figure 13.1. From the Figure 13.1, it is found that to construct the DNA ternary half-adder, it is needed to use two DNA ternary 1-to-3 decoders, eleven DNA ternary AND operations, and seven DNA ternary OR operations.
251
Multi-Valued DNA Half-Adder
B NOT NOT
Anneal
|1> |1> |1> |1> |1> |1> |1> |1> |1>
Outputs Carry Sum ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC
It is known that Sum = A2.B0.C0 +A1.B0.C1 + A1.B1.C0+ A0.B1.C1 +A0.B2.C0 + A2.B2.C1 + 1. (A1.B0.C0 + A0.B0.C1 + A0.B1.C0 + A2.B1.C1 + A2.B2.C0 + A1.B2.C1) Carry = 1 (A0.B2.C0+A2.B1.C0+A2.B2.C0 +A1.B1.C1+B2.C1+A2.C1) = 1. ((A0.B2+ A2.B1+A2B2).C0 + (A1.B1+ B2+A2).C1)
14.4.1
Circuit Architecture of Multiple-Valued Quantum-DNA Full Adder
The ternary decoder produces 3 outputs line for each input value. A 3-bit Full adder (A, B, C) is used. Quantum Decoder for input |A>, produce A0, A1, A2, for input |B> produce B0, B1, B2 and for input |C> produce C0, C1 (Figure 8.4.6(a)). Only one output line is true, |2> and the other remains false, |0> for an input. The outputs of these decoders are temporarily stored in Quantum cache memory. Then they convert into DNA sequences with the help of NMR relaxation. After the conversion, they act as the inputs of the remaining DNA operations From the truth table it is seen that, the sum of the full adder produces six true TGGATC (2) values and six TGGATC values. For these six true values, six ternary AND gate (TAND) are designed and each of the DNA AND gate outputs will ternary
Multiple-Valued Quantum-DNA Full Adder
305
OR to produce the true output when one of the outputs of the ternary AND gate is true. There are also six 1 values in sum. For these six 1 values, six ternary AND gate (DNA AND) are designed and each of the DNA AND gate output will DNA OR to produce the true, TGGATC (2) output when one of the outputs of the DNA AND gate is true. But the output CAAGCT (1) is needed, so the DNA AND operation will be performed between the DNA OR gate output and CAAGCT (1). DNA AND gate produce the minimum value. So, the output of the DNA AND gate will always CAAGCT (1). Finally, a DNA OR gate is used to generate the maximum output among TGGATC (2), ACCTAG (0) and ACCTAG (0), CAAGCT (1) (Figure 14.3). From the truth table, carry of the full adder produces nine CAAGCT (1) values. After minimization, the carry function produces nine CAAGCT (1) values and one TGGATC (2) value. Nine ternary AND gates (DNA AND) are designed and each of the DNA AND gate outputs will DNA OR to produce the true (TGGATC) output when one of the outputs of the DNA AND gate is true. But as it is needed the output CAAGCT (1), DNA AND operation is performed between the DNA OR gate output with CAAGCT (1). TAND gate produces the minimum value. So, the output of the DNA AND gate will always CAAGCT (1) for one of the true inputs among nine DNA AND gate. Again, for one TGGATC (2) value, one DNA AND gate is used and the output of this DNA AND will perform DNA OR produce the carry (Figure 14.4). So, Figure 14.3 shows the circuit architecture of multi-valued Quantum-DNA Full Adder for Sum and Figure 14.4 shows the circuit architecture of multi-valued Quantum-DNA Full Adder for Carry.
14.4.2
Working Principle of Multiple-Valued Quantum-DNA Full Adder
A ternary Quantum-DNA Full-Adder contains 3 Quantum input qubits as input and 2 output DNA sequences, one for sum and another for carry. To understand the working principle of Quantum-DNA Full Adder, let’s consider the following case. When the input |A>, |B> = |0>, and C = |1>, Quantum decoder generates |A0>, |A1>, |A2> = (2, 0, 0), |B0>, |B1>, |B2> = (2, 0, 0) and |C0>, |C1>, |C2> = (0, 2, 0). The 13th AND gate are connected to the |A0> and |B0> and |C1> line. As a result, the 7th AND gate value, that evaluates A0.B0.C1, will be true (TGGATC). It is seen that the 13th AND gate is connected to the OR gate, so the output of the OR gate will be true (TGGATC). This true value (TGGATC) is also AND with CAAGCT (1)and produces minimum CAAGCT (1) as output. This output will go through the OR gate and generate CAAGCT (1) as sum. In the full-adder carry circuit, it is seen that none of the AND operations and OR operations are connected to |A0>, |B0> and |C1> lines. As a result, none of the AND operations and OR operations value will be true. Thus, they produce ACCTAG (0). This truth value will TAND with CAAGCT (1), and produce minimum ACCTAG (0) as output. This output will go through the OR gate and generate ACCTAG (0) as carry.
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Heat transfer from Quantum to DNA Circuit NMR Relaxation
C0C1C2B0B1B2A0A1A2 Anneal >60 o Anneal >60 o
Multi-Valued DNA AND & OR Operations Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
CAAGCT
306
Anneal >60 o
Anneal >60 o Anneal >60 o Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
FIGURE 14.3 Circuit Architecture of Multi-Valued Quantum-DNA Full Adder (Sum)
Anneal >60 o
Anneal >60 o
307
Multiple-Valued Quantum-DNA Full Adder
Heat transfer from Quantum to DNA Circuit NMR Relaxation
C0C1C2B0B1B2A0A1A2 Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Multi-Valued DNA AND & OR Operations FIGURE 14.4 Architecture of Multi-Valued Quantum-DNA Full Adder (Carry)
308
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing TABLE 14.3 Truth Table of Quantum-DNA Ternary Half Subtractor Inputs |A> |B> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
14.5
Outputs Borrow D ACCTAG ACCTAG CAAGCT TGGATC CAAGCT CAAGCT ACCTAG CAAGCT ACCTAG ACCTAG CAAGCT TGGATC ACCTAG TGGATC ACCTAG CAAGCT ACCTAG ACCTAG
Multiple-Valued Quantum-DNA Half Subtractor
A ternary half subtractor is a type of subtractor, an electronic circuit that performs the subtractions of ternary numbers. The Quantum-Quantum half subtractor can subtract two single ternary digits which are provided as Quantum qubit and provide the output, difference and a borrow value in DNA sequence representation. The difference and borrow are – Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1.( A0 .B2 + A1 .B0 + A2 .B1 ) Borrow = 1.( A0 .B1 + A0 .B2 + A1 .B2 ) The general design of a ternary half subtractor is already explained in chapters 11 and 13. However, the major difference in this Quantum-DNA half subtractor is that the quantum decoder is used at the starting as the inputs as a qubit and except that the other operations are designed using DNA gates as the final output will be in DNA sequences.
14.5.1
Circuit Architecture Multiple-Valued Quantum-DNA Half Subtractor
The ternary decoder produces 3 outputs line for each input value. A 2-bit subtractor (A, B) is used. Quantum decoder for input |A> produces A0, A1, A2 and for input |B> produces B0, B1, B2. Only one output line is true, |2> and the other remains false, |0> for an input (Figure 14.5). The outputs of these decoders are temporarily stored in Quantum cache memory. Then they convert into DNA sequences with the help of NMR relaxation. After the conversion, they act as the inputs of the remaining DNA operations
309
Multiple-Valued Quantum-DNA Half Subtractor
Heat transfer from Quantum to DNA Circuit NMR Relaxation
C0C1C2B0B1B2A0A1A2 Anneal , quantum decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 2, 0). None of the AND gates (D0-D8) are connected to A1 and B1 lines. As a result, none of the AND gate value will be true. So, the output of differences and borrow both are ACCTAG (0). 6. When the input qubit |A> = |1>, and |B> = |2>, quantum decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 0, 2). D1 and D8 AND gates are connected to A1 and B2 lines. As a result, D1 and D8 AND gates values will be true (TGGATC). So the output of differences is TGGATC and D8 value (TGGATC) is also AND with CAAGCT (1) and produces minimum as borrow CAAGCT. 7. When the input qubit |A> = |2>, and |B> = |0>, quantum decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (2, 0, 0). D2 gate is connected to A1 and B0 line. As a result, D2 AND gate value will be true (TGGATC). So, the output of differences is TGGATC and borrow is ACCTAG (0). 8. When the input qubit |A> =|2>, and |B> = |1>, quantum decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 2, 0). The D5 gate is connected to the A2 and B1 line. As a result, D5 AND gate value will be true (TGGATC). So D5 value (TGGATC) is also AND with CAAGCT (1) and produces minimum as difference CAAGCT and borrow is ACCTAG (0). 9. When the input qubit |A>, |B> = |2>, quantum decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 0, 2). None of the AND gates (D0D8) are connected to the A2 and B2 lines. As a result, none of the AND gate values will be true. So, the output of differences and borrow both are ACCTAG (0).
14.6
Multiple-Valued Quantum-DNA Full Subtractor
Multi-Valued full subtractor performs subtraction operation taking borrow qubit in consideration, thus it solves the problem that half subtractor cannot overcome. In a Multi-Valued full subtractor, there are a total of three Quantum inputs |A>, |B>, and |C>. The truth Table of Multi-Valued Quantum-DNA full subtractor is given in Table 14.4. From the truth table, the equations for the difference and borrow as – D = A0.B1.C0 + A1.B2.C0 + A2.B0.C0 + A0.B0.C1 + A1.B1.C1 + A2.B2.C1. 1. (A0.B2.C0 + A1.B0.C0 + A2.B1.C0 + A0.B1.C1 + A1.B2.C1 + A2.B0.C1)
312
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing TABLE 14.4 Truth Table of Multi-Valued Quantum-DNA Full Subtractor |A> |0> |0> |0> |1> |1> |1> |2> |2> |2> |0> |0> |0> |1> |1> |1> |2> |2> |2>
Inputs |B> |0> |1> |2> |0> |1> |2> |0> |1> |2> |0> |1> |2> |0> |1> |2> |0> |1> |2>
|C> |0> |0> |0> |0> |0> |0> |0> |0> |0> |1> |1> |1> |1> |1> |1> |1> |1> |1>
Outputs D Bout ACCTAG ACCTAG TGGATC CAAGCT CAAGCT CAAGCT CAAGCT ACCTAG ACCTAG ACCTAG TGGATC CAAGCT TGGATC ACCTAG CAAGCT ACCTAG ACCTAG ACCTAG TGGATC CAAGCT CAAGCT CAAGCT ACCTAG CAAGCT ACCTAG ACCTAG TGGATC CAAGCT CAAGCT CAAGCT CAAGCT ACCTAG ACCTAG ACCTAG TGGATC CAAGCT
= (A0.B1 + A1.B2 + A2.B0).C0 + (A0.B0 + A1.B1 + A2.B2).C1. 1. ((A0.B2 + A1.B0 + A2.B1).C0 + (A0.B1 + A1.B2 + A2.B0).C1) Bout = 1. (A0. B1. C0+A0.B2.C0 + A1.B2.C0 + A0.C1 +B2.C1+A1.B1.C1) = 1. ((A0. B1+A0.B2+A1.B2).C0 + (A0+B2+A1.B1).C1) The main difference in this Quantum-DNA full subtractor is that a Quantum Decoder is used at the beginning because the inputs will be in Quantum qubit, and the other operations will be designed using DNA gates because the final output will be in a DNA sequence.
14.6.1
Circuit Architecture of Multiple-Valued Quantum-DNA Full Subtractor
The ternary decoder produces 3 outputs line for each input value. The 3-bit Full subtractor (A, B, C) is used. Quantum Decoder for input |A> produce A0, A1, A2, for input |B> produce B0, B1, B2 and for input |C> produce C0, C1. Only one output line is true, |2> and the other remains false, |0> for an input. The outputs of these decoders are temporarily stored in Quantum cache memory. Then they convert into DNA sequences with the help of NMR relaxation. After the conversion, they act as the inputs of the remaining DNA operations.
Multiple-Valued Quantum-DNA Full Subtractor
313
From the truth table, it is seen that the difference of the full subtractor produces six true, TGGATC (2) values and six CAAGCT (1) values. For these six true values, six ternary AND gate (DNA AND) are designed and each of the DNA AND gate output will DNA OR to produce the true output when one of the outputs of the DNA AND gate is true. There are also six CAAGCT (1) values in difference. For these six CAAGCT (1) values, six ternary AND gates (DNA AND) are designed and each of the DNA AND gate output will DNA OR to produce the true, TGGATC (2) output when one of the outputs of the DNA AND gate is true (TGGATC). But as the output CAAGCT (1) is needed, DNA AND operation are performed between the DNA OR gate output with CAAGCT (1). DNA AND gate produce the minimum value. So, the output of the DNA AND gate will always CAAGCT (1). Finally, a DNA OR gate is used to generate the maximum output among TGGATC (2), ACCTAG (0) and ACCTAG (0), CAAGCT (1) (Figure 14.6). From the truth table, it is seen that the borrow of the full subtractor produces eight CAAGCT (1) values. After minimization using the k map, the carry function produces six CAAGCT (1) values. Six ternary AND gate (DNA AND) are designed and each of the DNA AND gate outputs will DNA OR to produce the true, TGGATC (2) output when one of the outputs of the DNA AND gate is true. But as the output CAAGCT (1) is needed, it is needed to perform DNA AND operation between the DNA OR gate output with CAAGCT (1). DNA AND gate produce the minimum value. So, the output of the DNA AND gate will always CAAGCT (1) for one of the true inputs among six DNA AND gate (Figure 14.7). Figure 14.6 shows the circuit architecture of multi-valued Quantum-DNA Full Subtractor (Difference) and Figure 14.7 shows the circuit architecture of multi-valued Quantum-DNA Full Subtractor (Borrow).
14.6.2
Working Principle of Multiple-Valued Quantum-DNA Full Subtractor
A ternary Quantum-DNA Full-Subtractor contains 3 quantum input qubits as input and 2 output DNA sequences one for sum and another for carry. To understand the working principle of Quantum-DNA Full Subtractor, let’s consider the following case: When the input |A>, |B> = |0>, and C = |1>, Quantum decoder generates |A0>, |A1>, |A2> = (2, 0, 0), |B0>, |B1>, |B2> = (2, 0, 0) and |C0>, |C1>, |C2> = (0, 2, 0). The 10th AND gate are connected to the |A0> and |B0> and |C1> line. As a result, the 10th AND gate value, that evaluates A0.B0.C1, will be true (TGGATC). It is seen that the 13th AND gate is connected to the OR gate, so the output of the OR gate will be true (TGGATC). This output will go through the last OR gate and generate TGGATC (2) as difference (D). In the full-subtractor borrow circuit, it is seen that none of the AND operations and OR operations are connected to |A0>, |B0> and |C1> lines. As a result, none of the AND operations and OR operation values will be true. Thus, they produce ACCTAG (0). This truth value will TAND with CAAGCT (1), and produce
314
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Heat transfer from Quantum to DNA Circuit NMR Relaxation
Multi-Valued DNA AND & OR Operations C0C1C2B0B1B2A0A1A2 Anneal . Therefore, the values of |A0 > = |0>, |A1 > = |2>, |A2 > = |0>, and |A3 > = |1>. And the values of |B0 > = |0>, |B1 > = |0>, |B2 > = |1>, and |B3 > = |1>. 1. For the inputs |A0 >, and |B0 > both is |0>. And the carry input qubit |Cin > is also |0> - The first quantum ternary full-adder will get all the inputs as |0>. Therefore, it will produce output |0> as the sum and also |0> as the carry output qubit. This carry will be working as the carry input of the next quantum ternary full-adder. 2. The next input qutrits to the second quantum full-adder are |A1 > = |2>, |B1 > = |0>, and the carry input |C0 > is also |0>. Therefore, the second quantum ternary full-adder will generate |2> as the sum output and again |0> as the carry output of |C1 >. The value of |C1 > will be delivered to the next quantum ternary full-adder as a carry input. 3. The input to the third quantum ternary full-adder are |A2 > = |0>, |B1 > = |1>, and the carry input |C0 > is again |0>. Therefore, the third quantum ternary full-adder will generate |1> as the sum output and also again |0> as the carry output of |C2 >. 4. Now it has done with the quantum part. The carry output of the very last quantum ternary full-adder operation will be stored in a quantum ternary cache memory. And the next addend and augend qutrits are also stored in the quantum ternary cache memory. 5. From cache memory, the values |A3 > = |1>, |B3 > = |1>, and |C2 > = |0> will be delivered to the NMR relaxation or trap ions. From here the qutrit values will be converted into the equivalent DNA sequences. The converted values will be A3 = CAAGCT, B3 = CAAGCT, and C2 = ACCTAG. These values will be the inputs to the last ternary full-adder which is in DNA system. 6. The final ternary full-adder is in the DNA system. It will receive the value as A3 = CAAGCT, B3 = CAAGCT, and C2 = ACCTAG. Therefore it will generate the output as TGGATC (i.e. 2 in ternary number) for the sum, and ACCTAG for the last carry output which will be the most significant qutrit of the addition result eventually. Therefore, the expected result is obtained from the designed architecture for the Quantum-DNA ternary parallel adder.
320
14.8
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Quantum-DNA Ternary Carry-Lookahead Adder
To develop Quantum-DNA carry-lookahead adder by dividing the whole system into two segments – one for the quantum system and the other for the DNA system, as before, this can be done in two ways. Dividing the system for N-qutrit into (N-1) qutrit in the quantum system and the last one qutrit in the DNA system. Or (N-X) qutrit in the quantum system and X qutrit in the DNA system. Again let us see how to construct it in the 1 st way which is much simpler. Figure 14.10 shows the general organization of a 4-qutrit Quantum-DNA ternary carry-lookahead adder. Here, among 4-qutrit input addition operations, the first 3 operations are occurring in the quantum system, and the last bit addition operation is occurring in the DNA system. The quantum ternary cache memory store the qutrit values of the most significant qutrits of the inputs and the carry value obtained by the combinational operations. The heat transfer circuit transfers the heat from the quantum system, and the DNA system can get the necessary heat from the quantum system.
14.8.1
The Circuit Architecture of Quantum-DNA Ternary CarryLookahead Adder
Figure 14.11 shows the circuit diagram of a Quantum-DNA 3-qutrit ternary carrylookahead adder. The circuit diagram is almost familiar except for the added quantum ternary cache memory as an intermediary quantum qutrit storage device, NMR relaxation at zero Kelvin temperature for data conversion from quantum qutrit to DNA ternary value equivalent sequence, and the heat conductance circuit to transfer heat from the quantum system. The working mechanism of all those systems was explained in previous sections and chapters. Figure 14.11 depicted to understand the working procedures of the 3-qutrit Quantum-DNA ternary carry-lookahead adder.
14.8.2
The Working Principles of Quantum-DNA Ternary CarryLookahead Adder
The working procedures of the first part of the Quantum-DNA system which is the quantum ternary system are the same as those learned in the working procedures of the quantum ternary carry-lookahead adder. As the circuit diagram shows, first 2qutrit addition and the carry input qutrit for the last addition operation is occurring in the quantum system. Then carry qutrit along with the other two input qutrits stored in the quantum ternary cache memory. From the cache memory, they are passing through the NMR relaxation process to become the input of the DNA ternary fulladder when the DNA system is ready. Then the DNA system will perform the DNA ternary full-adder operation and will generate the final sum outputs.
Quantum-DNA Ternary Carry-Lookahead Adder
321
FIGURE 14.10 The General Organizations of Quantum-DNA Ternary 4-Qutrit Carry-Lookahead Adder
322
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
|Cin> |B1> |A1> Quantum Ternary XOR, AND, OR Operations
|B2> |A2>
Heat Transfer Circuit
NMR Relaxation
Anneal >60 o
Anneal >60 o
Anneal >60 o
Cold Storage
Anneal >60 o
Anneal >60 o
DNA Ternary XOR, AND, OR Operations
FIGURE 14.11 The Circuit Diagram of Quantum-DNA Ternary 3-Qutrit Carry-Lookahead Adder Operation
Quantum-DNA Ternary Carry-Skip Adder
14.9
323
Quantum-DNA Ternary Carry-Skip Adder
In the ternary carry-skip adder, a block of ternary full-adders is created, and then determine the block propagates before operating the actual ternary full-adder operations. If the block propagates BP is equal |1> or |2> (for quantum computing in ternary logic), then the output carry will be the same as the carry input given to the block. Here, block propagate, BPi = |P0 > . |P1 > . |P2 > . . . . . |Pi > Where, |Pi > = (Ai QTXOR Bi ) This is how to reduce the time delay to propagate the carry from one block to another. For more explanation, chapter 11 and chapter 13 are recommended again to observe the architecture of both quantum ternary carry-skip adder and DNA ternary carry-skip adder properly. The ternary carry-skip adder is exactly the same as the ternary parallel adder when the BP is not equal |1> or |2>. Therefore, it is needed to design n number of ternary full-adders of an n-qutrit block. And if BP is equal |1> or |2>, it is possible to bypass the value of the carry input qutrit of the block to the carry output using a 3-to-1 ternary multiplexer.
14.9.1
The General Organizations of Quantum-DNA Ternary CarrySkip Adder
The general overview of the circuit diagram for the Quantum-DNA ternary carry-skip adder is depicted in Figure 14.12.
FIGURE 14.12 The Front-View of the Quantum-DNA Ternary Carry-Skip Adder
324
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
From the above Figure 14.12, it is easy to understand that the Quantum-DNA ternary carry-skip adder is going to be built by dividing it into two parts – one part is in the quantum system which consists of connected quantum ternary parallel adders, and the second part is in the DNA system which consists of a 3x1 DNA ternary multiplexer that will bypass the carry output of the block. And a heat transfer circuit is connected to the quantum system to transfer the massive produced heat into the cooler. Moreover, it is needed to transfer the necessary heat to the DNA system to operate the DNA system. Figure 14.13 shows another front view of a 4-qutrit Quantum-DNA ternary carryskip adder. Where the quantum system includes the four quantum ternary full-adders. The first carry input to the block and carry output of the block are stored in a quantum ternary cache memory so that they can be passed to the next operations. The data conversion unit converts the data and delivers the DNA sequences to the DNA system which is a DNA 3-to-1 ternary multiplexer as the inputs. And the DNA multiplexer does the rest of the operations. It bypasses the carry output sequence based on the selection input. And as it is already known, it passes the carry input from the block to the next block only if the value of the BP (block propagate) is either |1> or |2>. Otherwise, the ternary 3-to-1 multiplexer will bypass the last ternary full adder’s carry output as the block’s carry output.
14.9.2
The Circuit Architecture of Quantum-DNA Ternary Carry-Skip Adder
Figure 14.14 shows an inside view of the Quantum-DNA ternary 4-qutrit carry-skip adder operation. The value of Pi is determined first, and the block propagate is determined by the quantum ternary AND operations accordingly. The value of block propagates BP, and the two carry qutrits |C0 > and |C4 > (as the Figure 14.14 shows) will be stored to the quantum ternary cache memory. And the data conversion unit will convert them accordingly. The converted values will be the input of the DNA ternary 3-to-1 multiplexer and will generate one DNA sequence as output. Note that, the block propagate BP is working as the select input of the DNA multiplexer. If BP is CAAGCT or TGGATC (i.e. 1 or 2), then the multiplexer will bypass the value of C0 (1 st carry input to the block) as output. Otherwise, the value of |C4 > will be passed through the DNA ternary 3-to-1 multiplexer. The Quantum system will contain four quantum ternary full-adders, the four quantum ternary XOR operations to determine the value of Pi . It will also have three quantum ternary AND operations to get the output of BP. The three qutrit values (values of |C0 >, |C4 >, and |BP>) will be stored in the quantum ternary cache memory. Here again, the NMR relaxation process can be used to convert them into the corresponding DNA sequences. So, the stored qutrits will be passing through the NMR relaxation process and will become the equivalent DNA sequences. In the DNA system, the rest of the operations are performed according to DNA computing. DNA ternary multiplexer will pass the output according to the select input sequence which
Quantum-DNA Ternary Carry-Skip Adder
FIGURE 14.13 The Front-View of the Quantum-DNA Ternary 4-Qutrit Carry-Skip Adder
325
326
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
FIGURE 14.14 The Circuit Architecture of the Quantum-DNA Ternary 4-Qutrit Carry-Skip Adder is the value of BP. Thus, the bypassed output will be the carry input for the next cascaded block if existed.
14.9.3
The Working Principles of Quantum-DNA Ternary Carry-Skip Adder
The working procedures of the Quantum-DNA ternary carry-skip adder include four main units: quantum system, data storing to cache memory, data conversion, and the DNA system. The operations in the quantum ternary system were discussed in chapter 11. Besides, the working procedures of the DNA circuit have been discussed already in chapter 13. Now it’s easy to understand the working principle of quantumDNA circuits with some of the input sets |A> and |B>.
Quantum-DNA Ternary Multiplier
327
FIGURE 14.15 The General Working Block of a Quantum-DNA Ternary Multiplier
14.10
Quantum-DNA Ternary Multiplier
In this section, the architecture of the Quantum-DNA ternary multiplier operation will be developed. A 2 × 2 qutrit Quantum-DNA ternary multiplier will be designed. The general working block of the Quantum-DNA ternary multiplier is shown in Figure 14.15. Figure 14.16 shows the general working block of a Quantum-DNA ternary 2 × 2 multiplication operation. Where, two inputs |A> and |B> are two-qutrit values in size, and they produce five DNA sequences product values.
FIGURE 14.16 The General Working Block of a Quantum-DNA Ternary 2x2 Multiplier
328
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
The 1-qutrit multiplier is constructed already to implement the ternary multiplication rules. Using the 1-qutrit multiplier, it is possible to design the larger qutrit size ternary multiplication.
14.10.1
The Circuit Architecture of the Quantum-DNA Ternary 2 × 2 Multiplier
In chapter 11, the architecture of the quantum ternary 2 × 2 multiplier is constructed. In chapter 13, the DNA ternary 2 × 2 multiplier is also constructed. So, it is possible to design the architecture of the Quantum-DNA ternary multiplier for two qutrits multiplier operations. Figure 14.17 shows an architecture of the Quantum-DNA ternary 2 × 2 multiplier. The architecture divides the multiplier into two systems – the Quantum system and the DNA system. Quantum system, which includes four 1-qutrit quantum ternary multiplier operations, and four quantum ternary half-adders. The outputs from this quantum system are stored in the quantum cache memory. And here, trap ions are used as the data conversion units. After converting the qutrits into the equivalent DNA sequences, the DNA sequences are entered into the DNA system. Where the DNA system includes one ternary DNA half-adder and two ternary DNA full-adders. Finally, the outputs of the product are obtained in the DNA base sequence form. The heat transfer circuit is not included; the total system will be destroyed immediately due to the presence of the massive heat from the quantum system. So let’s try another circuit that will include the heat conductance circuit as well. The complete architecture of a Quantum-DNA ternary 2x2 multiplier is shown in 14.18. The heat conductance circuit is added and through the heat conductance circuit the generated massive heat from the quantum system will be transferred to cold storage. And notice, this time the NMR relaxation process is used to convert the qutrits into the corresponding DNA sequences. To be mentioned, here the NMR relaxation process will be performed at zero kelvin temperature. The NMR relaxation process and its working principle are described in the earlier chapter. It is also known that the working procedure of the heat conductance circuit. And all the other operations were also described earlier.
14.10.2
The Working Procedure of the Quantum-DNA Ternary 2 × 2 Multiplier
The operational behavior of the designed architecture for the Quantum-DNA ternary 2×2 multiplier is shown in Figure 14.17. Suppose, it is needed to multiply two ternary input values in the Quantum-DNA multiplier, where |A> = |02>, and |B> = |10>. After multiplication operations these inputs will produce P = P4 P3 P2 P1 P0 , where these product values are in the form of DNA sequences. So, the value of |A0 > = |2>, and |A1 > = |0>. And the value of |B0 > = |0>, and |B1 > = |1>. The operations will be described from right to left of Figure 14.17.
329
Quantum-DNA Ternary Multiplier
1-qutrit Quantum 1-qutrit Quantum 1-qutrit Quantum 1-qutrit Quantum Ternary Multiplier Ternary Multiplier Ternary Multiplier Ternary Multiplier Quantum Half Adder Quantum Half Adder
Quantum Half Adder Quantum Half Adder
Trap Ion
DNA Full Adder
DNA Full Adder
DNA Full Adder
FIGURE 14.17 The Architecture of a Quantum-DNA Ternary 2 × 2 Multiplier
330
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Heat Transfer Circuit 1-qutrit Quantum 1-qutrit Quantum 1-qutrit Quantum 1-qutrit Quantum Ternary Multiplier Ternary Multiplier Ternary Multiplier Ternary Multiplier Quantum Half Adder
Quantum Half Adder
NMR Relaxation
Quantum Half Adder
Quantum Half Adder
DNA Full Adder
DNA Full Adder
DNA Full Adder
FIGURE 14.18 The Complete Circuit Architecture of a Quantum-DNA Ternary 2 × 2 Multiplier
Quantum-DNA Ternary Multiplier
331
1. In the quantum system, the 1 st quantum ternary 1-qutrit multiplier will get the input values of |A0 > and |B0 >. Here, |A0 > = |2>, and |B0 > = |0>. Therefore, this multiplier will generate two outputs |m0 > = |0> and |c0 > = |0> . Here, |m0 > is the multiplication product, and |c0 > is the carry value. The value of |m0 > will be the least significant qutrit of the final product. Therefore, the value of |m0 > can be passed to the quantum ternary cache memory. And the value of |c0 > will be work as an input to the 1 st quantum ternary half-adder shown in Figure 14.17 (from the right side of the Figure). 2. The 2nd quantum ternary 1-qutrit multiplier will get the input values of |A1 > and |B0 >. Here, |A1 > = |0>, and |B0 > = |0>. Therefore, this multiplier will generate two outputs |m1 > = |0> and |c1 > = |0>. The value of |m1 > will be work as the 2nd input value to the 1 st quantum ternary halfadder. And the value of |c1 > will be work as an input to the 3rd quantum ternary half-adder. 3. The 3rd quantum ternary 1-qutrit multiplier will get the input values of |A0 > and |B1 >. Here, |A0 > = |2>, and |B1 > = |1>. And, this multiplier will generate two outputs |m2 > = |2> and |c2 > = |0>. The value of |m2 > will be stored to the quantum ternary cache memory which will work as an input to the 1 st DNA ternary half adder eventually. And the value of |c2 > will work as an input to the 2nd quantum ternary half-adder. 4. The 4th quantum ternary 1-qutrit multiplier will get the input values of |A1 > and |B1 >. Here, |A1 > = |0>, and |B1 > = |1>. And, this multiplier will generate two outputs |m3 > = |0> and |c3 > = |0>. The value of |m3 > will be work as another input value to the 2nd quantum ternary half-adder. And the value of |c3 > will work as an input to the 4th quantum ternary half-adder. 5. Now, the 1 st quantum ternary half-adder will get inputs |c0 > = |0> (from step 1), and |m1 > = |0> (from step 2). So, this half-adder will produce two outputs. Here, from the 1 st half adder, |S0 > = |0>, and the carry output will also be |0>. The value of |S0 > will be stored in the quantum ternary cache memory and it will work as another input of the 1 st DNA ternary half-adder further. And the carry value from this half-adder will work as another input value of the 3rd quantum ternary half-adder (according to Figure 14.17). 6. The 2nd quantum ternary half-adder will get inputs |c2 > = |0> (from step 3), and |m3 > = |0> (from step 4). So, this half-adder will produce two outputs, |S1 > = |0>, and the carry output will also be |0> (see the truth table of ternary half-adder). The value of |S1 > will be stored in the cache memory and it will work as an input of the 1 st DNA ternary full-adder eventually. And the carry value from this half-adder will work as another input value of the 4th quantum ternary half-adder (see Figure 14.17).
332
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing 7. The 3rd quantum ternary half-adder will get inputs |c1 > = |0> (from step 2), and also |0> from the carry output of the 1 st half-adder (from step 5). So, this half-adder will produce two outputs, |S2 > = |0>, and the carry output will also be |0> (see the truth table of ternary half-adder). The value of |S2 > will be stored in the cache memory and it will work as an input of the 1 st DNA ternary full-adder. And the carry value from this half-adder will also be stored in the cache memory and will work as an input value of the 2nd DNA ternary full-adder (according to Figure 14.17). 8. The 4th quantum ternary half-adder will get inputs |c3 > = |0> (from step 4), and also |0> from the carry output of the 2nd half-adder (from step 6). So, this half-adder will produce two outputs, |S3 > = |0>, and the carry output will also be |0> (see the truth table of ternary half-adder). The value of |S3 > will be stored in the cache memory and will work as an input of the 2nd DNA ternary full-adder. And the carry value from this half-adder produces the most significant DNA sequence value of the final product value, and thus it will be stored in the cache memory as well. 9. The quantum system operations are done. All the outputs are stored from the quantum system to the quantum ternary cache memory. Now, from the cache memory, all the values will be passed through the NMR relaxation process to convert them into their equivalent DNA base sequences.
10. In the DNA system, The 1 st DNA ternary half-adder will get inputs S0 = ACCTAG (from the converted value from step 5), and also m2 = TGGATC from step 3. So, this half-adder will produce the value of P1 = TGGATC. And a carry out value ACCTAG which will work as a carry input to the 1 st DNA full-adder. 11. Now, the 1 st DNA ternary full-adder operations can be performed. It gets three inputs as, S1 = ACCTAG, S2 = ACCTAG, and also ACCTAG (from step 9). Therefore the sum of the addition will be ACCTAG which is the value of P2 . And the carry will also be ACCTAG which will be the carry input to the 2nd DNA ternary full-adder. 12. The last operation is the 2nd DNA ternary full-adder. It gets the three inputs as - S3 = ACCTAG, ACCTAG from the converted value of step 7, and also ACCTAG from step 10. Therefore, it will also produce sum ACCTAG and carry output as ACCTAG. The sum output will be the value of P3 and the carry output will be the value of P4 . And therefore, both the value as ACCTAG is obtained. 13. And the value of P0 is obtained from the converted DNA sequence of |m0 > = |0> from step 1. Therefore, the value of P0 as ACCTAG is gained. So, finally, all the product values are P0 = ACCTAG, P1 = TGGATC, P2 = ACCTAG, P3 = ACCTAG, and P4 = ACCTAG. After decoding the DNA sequences, the product of the ternary multiplication operation of P = 00020 is obtained, which is absolutely correct for the given input.
Quantum-DNA Ternary Divider
333
FIGURE 14.19 The General Block Diagrams of Quantum-DNA Ternary Dividers
14.11
Quantum-DNA Ternary Divider
The ternary divider is constructed for 1-qutrit and 2-qutrit dividend and divisor for the quantum system in Chapter 11, and the 1-bit and 2-bit sequences dividend and divisor in the DNA system in Chapter 13. Now, in this section, the architecture of the ternary Quantum-DNA cross-platform environment will be constructed. The general block diagrams of the Quantum-DNA ternary dividers are shown in Figure 14.19. From the Figure 14.19, it is seen that the inputs of the divider will be in the form of qutrits but the outputs will be in the form of DNA ternary bit sequences. As usual, the first part of the circuit will contain the quantum ternary system, then quantum ternary cache memory will store the qutrit output values generated from the quantum ternary system. Then the NMR relaxation process will convert the qutrits into the equivalent DNA sequences. And the rest of the operation will perform in the DNA ternary system which will produce the final outputs.
14.11.1
The Construction of the Quantum-DNA Ternary Divider
Figure 14.20 shows the operational circuit diagram of the Quantum-DNA ternary 1-qutrit divider where a part of the division operations is performed in the quantum system, then the quantum ternary cache memory is used to store the qutrits temporarily. NMR relaxation circuits at zero Kelvin temperature are used as data conversion units to convert the qutrits values into the equivalent DNA bit sequences. And then, the DNA ternary system performs the rest of the operations and produces the desired outputs. The upgraded version of that circuit is shown below (figure 14.21) where the heat transfer is also included.
334
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Quantum 1-to-3 Decoders NMR Relaxation DNA OR
Quantum Cache Memory
Anneal >60 o DNA AND
Anneal >60 o Quantum ternary AND & OR Operations Quantum Ternary AND Operation
CAAGCT
FIGURE 14.20 The Circuit Architecture of a Quantum-DNA Ternary 1-Qutrit Divider
335
Cold Storage
Quantum-DNA Ternary Divider
Heat Transfer Circuit
Quantum 1-to-3 Decoders
NMR Relaxation
Quantum Cache Memory
Anneal >60 o Anneal >60 o CAAGCT
Quantum Ternary Quantum ternary AND Operation AND & OR Operations FIGURE 14.21 The Circuit Architecture of a Quantum-DNA Ternary 1-Qutrit Divider Including Heat Conductance Circuit
336
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
The generated excessive heat in the quantum system will be passing through the heat conductance circuit to cold storage. And the division operations are performed according to the previously described working mechanism of Quantum and DNA ternary divider. Similarly, it is possible to construct the general architecture for the Quantum-DNA ternary 2-qutrit divider. Figure 14.22 depicts the general architecture of the Quantum-DNA ternary 2-qutrit divider. In the above architecture, the heat conductance circuit dispels the massive heat produced by the quantum system. The values of |A1>, |A2> will be found from the decoded output of the value |A>. Similarly, the values |B1> and |B2> will be found from the decoded output of the value |B>. In this case, the other output values from the decoder (|A0>, and |B0>) won’t be required to perform the operations. In a similar way, it is possible to design the algorithm for the 2-qutrit Quantum-DNA ternary divider and notice the DNA system, two DNA ternary operations will take place simultaneously.
14.12
Multiple-Valued Quantum-DNA Comparator
A comparator is a circuit that compares two input signals and gives output as which input is larger or smaller or equal. Here, in Quantum-DNA circuit, the input of |A> and |B> is Quantum qubit DNA sequence and is the output of X, Y, and Z is DNA sequence. Table 14.5 shows the truth table of Quantum-DNA 1-bit comparator. Figure 14.23 displays the block diagram of Quantum-DNA 1-bit comparator. Here nine multi-valued DNA AND operations and six multi-valued DNA OR operations are used. The output will be DNA sequences. In the input section, two 1-to-3 TABLE 14.5 Quantum-DNA 1-Bit Comparator Truth Table Inputs |A> |B> |0> |0> |0> |1> |1> |1> |2> |2> |2>
|0> |1> |2> |0> |1> |2> |0> |1> |2>
X AB ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG TGGATC TGGATC ACCTAG
Multiple-Valued Quantum-DNA Comparator
FIGURE 14.22 The Architecture of a Quantum-DNA Ternary 2-Qutrit Divider
337
338
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Heat Transfer Circuit
Quantum Cache Memory
Data Conversion Circuit Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation Multi-Valued DNA AND Operation
Multi-Valued DNA OR Operation Multi-Valued DNA OR Operation
Multi-Valued DNA OR Operation
Multi-Valued DNA OR Operation
Multi-Valued DNA OR Operation
Multi-Valued DNA OR Operation
FIGURE 14.23 Block Diagram of Quantum-DNA 1-Bit Comparator quantum decoders are used to decode the input qubits. Two inputs will be decoded into six through these quantum decoders.
14.12.1
Circuit Architecture of Multiple-Valued Quantum-DNA Comparator
The construction of the Multi-Valued Quantum-DNA 1-qubit comparator circuit is shown in Fig. 14.24. In this circuit, the input, |A> and |B>, at first, pass through two 1-to-3 Decoders separately so that inserted qubit, i.e., |0>, |1>, or |2> can be identified using the output of 1-to-3 decoders. Nine DNA AND operation is used in Quantum-DNA 1-qubit comparator where each input of these AND operations come from the various combinations of the out-
339
Multiple-Valued Quantum-DNA Comparator
NMR Relaxation Quantum 1-to-3 Decoder
Heat Transfer from Quantum to DNA Circuit
Multi-Valued DNA AND & OR Operations
C0C1C2B0B1B2A0A1A2 Anneal >60 o
|A>
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Quantum Cache Memory Quantum 1-to-3 Decoder
|B>
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
FIGURE 14.24 Circuit Architecture of Multi-Valued Quantum-DNA Comparator put of 1-to-3 decoder. However, as the output of Quantum operation will act as an input of DNA operation, thus each qubit is converted to its corresponding DNA molecular sequence by using NMR relaxation technique. Before the conversion Quantum outputs are stored in a Quantum Cache memory shortly to match the speed to operations of different kinds.
340
Multiple-Valued Arithmetic Operations in Quantum-DNA Computing
Finally, based on the value of |A> and |B>, only one line of each 1-to-3 decoder generates sequence TGGATC along the line whereas others provide ACCTAG. Thus, only one DNA AND operation gives the result TGGATC, where other outputs remain inactive. i.e., ACCTAG.
14.12.2 1.
Working Principle of Multiple-Valued Quantum-DNA Comparator
For input sequences |A>, |B> = |0>, |0>, the multi-valued 1-to-3 decoder will perform (|A0> && |B0>) and the 4th AND line will be open. As a result, the output sequence of Y equal TGGATC and remaining lines, X and Z will remain closed, i.e. ACCTAG.
2. For input sequences |A>, |B> = |0>, |1>, the multi-valued 1-to-3 decoder will perform (|A0> && |B1>) and the 1 st AND line will be open. As a result, the output sequence of X equal TGGATC and remaining lines, Y and Z will remain closed, i.e. ACCTAG. 3. For input sequences |A>, |B> = |0>, |2>, the multi-valued 1-to-3 decoder will perform (|A0> && |B2>) and the 2nd AND line will be open. As a result, the output sequence of X equal TGGATC and remaining lines, Y and Z will remain closed, i.e. ACCTAG 4. For input sequences |A>, |B> = |1>, |0>, the multi-valued 1-to-3 decoder will perform (|A1> && |B0>) and the 7th AND line will be open. As a result, the output sequence of Z equal TGGATC and remaining lines, X and Y will remain closed, i.e. ACCTAG. 5. For input sequences |A>, |B> = |1>, |1> the multi-valued 1-to-3 decoder will perform (|A1> && |B1>) and the 5th AND line will be open. As a result, the output sequence of Y equal TGGATC and remaining lines, X and Z will remain closed, i.e. ACCTAG. 6. For input sequences |A>, |B> = |1>, |2>, the multi-valued 1-to-3 decoder will perform (|A1> && |B2>) and the 3rd AND line will be open. As a result, the output sequence of X equal TGGATC and remaining lines, Y and Z will remain closed, i.e. ACCTAG. 7. For input sequences A, B= |2>, |0>, the multi-valued 1-to-3 decoder will perform (|A2> && |B0>) and the 8th AND line will be open. As a result, the output sequence of Z equal TGGATC and remaining lines, X and Y will remain closed, i.e. ACCTAG. 8. For input sequences |A>, |B> = |2>, |1>, the multi-valued 1-to-3 decoder will perform (|A2> && |B1>) and the 9th AND line will be open. As a result, the output sequence of Z equal TGGATC and remaining lines, X and Y will remain closed, i.e. ACCTAG. 9. For input sequences |A>, |B> = |2>, |2>, the multi-valued 1-to-3 decoder will perform (|A2> && |B2>) and the 6th AND line will be open. As a result, the output sequence of Y equal TGGATC and remaining lines, X and Z will remain closed, i.e. ACCTAG.
Summary
341
14.13 Summary Multi-Valued arithmetic circuits in quantum-DNA circuits are presented in this chapter. The combination of a multi-valued quantum circuit and a multi-valued DNA circuit is actually quantum molecular biology. Here one form of quantum molecular biology which is called quantum-DNA computing is described for multi-valued arithmetic circuits. These circuits are discussed already in the quantum and DNA part of this book in previous chapters. All construction procedures and working principles are described here in easy language. Necessary figures are also shown in this chapter. This combination process will bring a revolutionary change in modern science in the computing world.
Bibliography [1] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [2] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [3] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [4] Li, T., Gao, H., Wang, C., Cheng, Z., Xue, J., Zhang, Z., ... & Cao, J. (2022). Oil utilization degree at various pore sizes via different displacement methods. Journal of Petroleum Exploration and Production Technology, 1-17. [5] Giri, S., & Saraswathi, M. N. (2012). Implementation of combinational circuits using ternary multiplexer. International Journal of Computational Engineering Research, 2(2), 457-463.
15 Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
15.1
Introduction
Molecular biology is the field of science concerned with studying the chemical structures and processes of biological phenomena that involve the basic units of life and molecules. The field of molecular biology is focused especially on nucleic acids (e.g., DNA and RNA) and proteins, these molecules interact and behave within cells. Molecular biology emerged in the 1930s. When quantum computing combines with this DNA computing to form a new computing process, it is quantum molecular biology. In this chapter, another form of quantum molecular biology will be discussed with multi-valued logic. In the previous chapter, multi-valued arithmetic operations in quantum-DNA computing are discussed. This chapter will describe multi-valued arithmetic circuits in DNA-quantum circuits. The same operations which were discussed in the previous chapter will be discussed here.
15.2
Establishing DNA-Quantum Cross-Platform for the MultiValued Logic System
The system was divided into four parts. The first part contained the DNA system, then a DNA cache memory where the DNA sequences were stored, then the data conversion unit to convert the DNA information into qubits, and the last part was the quantum system. In the multiple-valued logic system, the same thing will be done. The general organization of the DNA-Quantum cross-platform for the multiple-valued logic system is depicted in Figure 15.1. Every ternary operation in the DNA-Quantum system will contain – 1. Multiple-valued DNA System, DOI: 10.1201/9781003381938-15
343
344
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
FIGURE 15.1 The General Organization Multiple-Valued DNA-Quantum Computing with Data Conversion Circuits, DNA Ternary Cache Memory, and Heat Conductance Circuit 2. Multiple-valued DNA Cache Memory, 3. Data Conversion Unit, and 4. Multiple-valued Quantum System. Among them, the multiple-valued quantum system, multiple-valued DNA system, and the data conversion unit are learned which will remain the same. That means the NMR process can be used, and the trap ion also can be used to convert the DNA information (DNA strands) into the equivalent quantum ternary data (qutrits). Here, to convert DNA sequences to the corresponding qutrits, either the NMR process or trap ions is used. And again, to complete the organization, it is needed to use a heat conductance circuit through which the tremendous heat can be transferred from the quantum system to a cooler. Now, one thing needs to be considered, as DNA system operations will be performed in the first place, it is not possible to provide the required heat to the DNA system from the quantum system, because the heat is generated in the quantum system only when quantum operations are performed. Therefore, it is not possible to provide the required heat to the DNA system from the quantum system. Rather, this heat can be provided from the outside. Another thing to consider now is – the DNA ternary cache memory to store the DNA information. The DNA cache memory is designed already. But that cannot store the DNA sequence for the ternary DNA sequence data unless it is made in a way to allow storing and retrieving the DNA sequences for the ternary logic. So, a DNA cache memory for the ternary system to store the ternary DNA sequences and retrieve the ternary sequences from the DNA ternary cache memory for further process.
345
Multiple-Valued DNA-Quantum Half Adder TABLE 15.1 Truth Table of Multi-Valued DNA-Quantum Half Adder Inputs A B ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
15.3
Outputs |Carry> |Sum> |0> |0> |0> |1> |0> |2> |0> |1> |0> |2> |1> |0> |0> |2> |1> |0> |1> |1>
Multiple-Valued DNA-Quantum Half Adder
A Multi-Valued half adder is a type of adder, an electronic circuit that performs the addition of ternary numbers. Multi-Valued Half Adder is constructed in chapter 11 and chapter 13 in details. Now here to design a half adder in which DNA sequences act as the input however the outputs of this half adder will produce in Quantum qubits. Table 15.1 shows the truth Table of DNA-Quantum Half adder. From the truth table, the equations for the sum and carry are Sum = A0 .B2 + A1 .B1 + A2 .B0 + 1. ( A0 .B1 + A1 .B0 + A2 .B2 ) Carry = 1.( A1 .B2 + A2 .B1 + A2 .B2 ) To design a DNA-Quantum ternary half adder, DNA decoders are used so that it is possible to decode the input sequence into the corresponding bits. Except for the two DNA decoders at the input level, other operations will be conducted using Quantum operations.
15.3.1
Circuit Architecture of Multiple-Valued DNA-Quantum Half Adder
As shown in Figure 15.1, the multi-valued DNA decoder produces 3 outputs line for each input value. If 1-to-3 decoders are not used, it will not be possible to access all combinations of these two inputs. Decoder for input A produces A0, A1, A2, for input B produce B0, B1, B2. Only one output line is true (TGGATC) and the other remains false (ACCTAG) for an input. These nine DNA sequence outputs of the DNA decoder are temporarily stored in DNA cache memory. Then they convert
346
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
into Quantum qubits with the help of trap ions. After the conversion, they act as the inputs of the remaining Quantum operations From the truth table 15.2, the sum of the half adder produces three |2> qubits and three |1> qubits as true values. For these total six true values, six quantum AND operations are designed and each of the outputs of the quantum AND operation will go through quantum OR operation to produce the true output when one of the outputs of the quantum AND operation is true. But as the output |1> is needed in three conditions, a quantum AND operation is executed with a fixed input|1> before the final quantum OR operation which is used to generate the maximum output among |2>, |1> and |0>. In the case of carry of the half adder, three input combinations produce qubit |1> as true values. After minimization, the carry function produces three 1 values. Thus, three quantum AND operations and two quantum OR operations are used. Again. For the purpose of generating maximum qubit at most |1> a quantum AND operation is added at last to get Carry bit. Figure 15.2 shows the circuit architecture of multi-valued DNA-quantum half adder.
15.3.2
Working Principle of Multiple-Valued DNA-Quantum Half Adder
A 2-input ternary DNA-Quantum half-adder contains 2 DNA sequence input as input and 2 output Quantum one for Sum and another for Carry. 1.
When the input sequences A, B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (2, 0, 0). None of the AND operations (AND1-AND9) are connected to the |A0> and |B0> line. As a result, none of the AND gate values will be true. So the output of Sum and Carry both are |0> (0).
2.
When the input sequences A = ACCTAG (0) and B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 2, 0). AND4 is connected to the A0 and B1 line. As a result, the AND4 value (|2>) is also AND with |1> to produces minimum sum |1>. Here, Carry is |0>
3. When the input sequences A = ACCTAG (0) and B = TGGATC (2), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 0, 2). AND1 is connected to the A0 and B2 line. AND1 operation values will be true (|2>) and produces minimum as sum |2> and minimum as carry |0> 4. When the input sequences A = CAAGCT (1) and B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (2, 0, 0). AND5 operation is connected to A1 and B0 lines. As a result, AND5 output will be true (|2>). So AND5 value (|2>) is also AND with |1> and produces minimum as sum |1> and carry is |0>.
347
Multiple-Valued DNA-Quantum Half Adder
B0B1B2A0A1A2
Heat Supplied from outside to DNA circuit
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Multi-Valued DNA 1-to-3 Decoders
Heat Transfer Circuit
Multi-Valued Quantum OR
Multi-Valued Quantum AND
Anneal >60o Anneal >60o
Anneal >60o Anneal >60o
Anneal >60o
Trap Ions
Multi-Valued Quantum AND
Multi-Valued Quantum AND Operations
Multi-Valued Quantum OR Operations
FIGURE 15.2 Circuit Architecture of Multi-Valued DNA-Quantum Half Adder
348
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing 5. When the input sequences A, B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 2, 0). DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 0, 2). AND2 is connected to the A1 and B1 line. AND2 operation value will be true (|2>) and produce minimum as sum |2> and minimum as carry |0>. 6. When the input sequences A = CAAGCT (1), and B = TGGATC (2), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 0, 2). AND7 gate is connected to A1 and B2 lines. As a result, AND7 gate value will be true (|2>). So, the output of differences is |0> and AND7 value (|2>) is also AND with |1> and produces minimum as borrow |1>. 7. When the input sequences A = TGGATC (2), and B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (2, 0, 0). AND3 is connected to the A2 and B0 line. AND3 operation values will be true (|2>) and produce minimum as sum |2> and minimum as carry |0>. 8. When the input sequences A = TGGATC (2), and B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 2, 0). The AND7 gate is connected to A2 and B1 lines. As a result, AND8 gate value will be true (|2>). So, the output of differences is |0> and AND8 value (|2>) is also AND with |1> and produces minimum as borrow |1>. 9. When the input sequences A, B = TGGATC (2), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 0, 2). AND6 and AND9 operation is connected to A2 and B2 lines. As a result, AND6 output will be true (|2>). So AND6 value (|2>) is also AND with |1> and produces a minimum sum |1>. AND9 gate value will be true (|2>). So AND9 value (|2>) is also AND with |1> and produces a minimum as borrow |1>.
15.4
Multiple-Valued DNA-Quantum Full Adder
A Multiple-Valued DNA-Quantum full adder removes the drawback of a MultipleValued DNA-Quantum half adder as it includes carry bit in the addition operation. Hence, there are a total of three DNA inputs A, B, and C and this circuit will generate the output in Quantum qubits. The truth table of DNA-Quantum Full Adder is shown in Table 15.2. As discussed in chapters 11 and 13, the following equations can be obtained. Sum = A2.B0.C0 +A1.B0.C1 + A1. B1.C0+ A0.B1.C1 +A0.B2.C0 + A2.B2.C1 + 1. (A1.B0.C0 + A0.B0.C1 + A0.B1.C0 + A2.B1.C1 + A2.B2.C0 + A1.B2.C1) Carry = 1 (A0. B2. C0+A2.B1. C0+A2.B2.C0 +A1.B1. C1+B2.C1+A2.C1) = 1. ((A0. B2+A2.B1+A2B2).C0 + (A1. B1+ B2+A2).C1)
349
Multiple-Valued DNA-Quantum Full Adder TABLE 15.2 Multi-Valued DNA-Quantum Full Adder Truth Table A ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
15.4.1
Inputs B ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
C ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT
Outputs |Carry> |Sum> |0> |0> |0> |1> |0> |2> |0> |1> |0> |2> |1> |0> |0> |2> |1> |0> |1> |1> |0> |1> |0> |2> |1> |0> |0> |2> |1> |0> |1> |1> |1> |0> |1> |1> |1> |2>
Circuit Architecture of Multiple-Valued DNA-Quantum Full Adder
At first, the multi-valued DNA decoder initially produces three output lines for each input value. It will be impossible to access all combinations of these two inputs if the 1-to-3 decoders are not used. For input A, the decoder produces A0, A1, and A2, while for input B, the decoder produces B0, B1, and B2 and finally for input C, the decoder produces C0 and C1 (Figure 15.3). For an input, only one output line is true (TGGATC), while the other remains false (ACCTAG). The DNA decoder’s eight DNA sequence outputs are temporarily stored in DNA cache memory. Then, with the help of trap ions, they are converted into quantum qubits. The sum of the full adder produces six |2> and six |1> values. Six multi-valued quantum AND operations are used for these six |2> values, and each of the multivalued quantum AND operations output will conduct a multi-valued quantum OR operation to produce the true output when one of the multi-valued quantum AND operation outputs is true. In addition, there are six |1> values in total. Six multivalued quantum AND operations are designed for these six |1> values and each of the
350
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Heat Supplied from outside to DNA circuit
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o Anneal >60 o Anneal >60 o Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
Quantum Heat generated to Cooler
Trap Ions
Multi-Valued Quantum AND Operations
Multi-Valued Quantum OR Operations
Multi-Valued Quantum AND & OR Operations
FIGURE 15.3 Circuit Architecture of Multi-Valued DNA-Quantum Full Adder (Sum)
Multiple-Valued DNA-Quantum Full Adder
351
multi-valued quantum AND operation outputs will perform a multi-valued quantum OR operation to produce the true (|2>) output when one of the multi-valued quantum AND operation outputs is true. However, because the output |1> is required, it is needed to perform the multi-valued quantum AND operation with the output of the multi-valued quantum OR operation as input along with |1>. Finally, multi-valued quantum AND operation produce the minimum value. So, the output of the multivalued quantum AND operation will always |1>. At last, a multi-valued quantum OR operation is used to generate the maximum output among |2>, |0> and |0>, |1> as shown in Figure 15.3. As for carry of the full adder produce nine |1> values. Nine multi-valued quantum AND operations are designed and each of the multi-valued quantum AND operation output will perform multi-valued quantum AND operations to produce the true (|2>) output when one of the outputs of the multi-valued quantum AND operation is true. But as the output |1> is required, it is needed to perform multi-valued quantum AND operation taking the multi-valued quantum OR operation output as input along with |1>. So, the output of the multi-valued quantum AND operation will always 1 for one of the true inputs among nine multi-valued quantum AND operations. The output of this last multi-valued quantum AND operation gives the result of Carry qubit as shown in Figure 15.4. Figure 15.3 shows the circuit architecture of Multi-Valued DNA-Quantum Full Adder (Sum) and Figure 15.4 shows the circuit architecture of Multi-Valued DNAQuantum Full Adder (Carry).
15.4.2
Working Principle of Multiple-Valued DNA-Quantum Full Adder
A DNA-Quantum Full-Adder contains 3 DNA input sequences as input and 2 output Quantum qubit, one for sum and the other for carry. To understand the working principle of DNA-Quantum Full Adder, let’s consider the following case. When the input sequence A, B = ACCTAG (0), and C = CAAGCT (1), DNA decoder generate A0, A1, A2 = (2, 0, 0), B0, B1, B2 = (2, 0, 0) and C0, C1, C2 = (0, 2, 0). The 13th AND gate is connected to the A0 and B0 and C1 line. As a result, the 13th AND gate value, that evaluates A0.B0.C1, will be true (|2>). It is seen that the 13th AND gate is connected to the OR gate, so the output of the OR gate will be true (|2>). This true value (|2>) is also AND with |1> and produces minimum |1> as output. This output will go through the OR gate and generate |1> as sum. In the full-adder carry circuit, it is seen that none of the AND operations and OR operations are connected to A0, B0 and C1 lines. As a result, none of the AND operations and OR operations value will be true. Thus, they produce |0>. This truth value will TAND with |1>, and produce a minimum |0> as output. This output will go through the OR gate and generate |0> as carry.
352
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Heat supplied from outside to DNA circuit Anneal >60o
Trap Ions
DNA 1-to-3 Decoders
Anneal Anneal >60o >60o
Anneal Anneal >60o >60o
Anneal >60o
Annealo Annealo >60 >60
Anneal Anneal >60o >60o
Anneal >60o
Annealo Anneal >60 >60o
Anneal Anneal >60o >60o
Multi-Valued Quantum AND & OR Operations
FIGURE 15.4 Circuit Architecture of Multi-Valued DNA-Quantum Full Adder (Carry)
Multiple-Valued DNA-Quantum Half Subtractor
353
TABLE 15.3 Truth Table of DNA-Quantum Ternary Half Subtractor Inputs A B ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
15.5
Outputs |Borrow> |D> |0> |0> |1> |2> |1> |1> |0> |1> |0> |0> |1> |2> |0> |2> |0> |1> |0> |0>
Multiple-Valued DNA-Quantum Half Subtractor
A ternary half subtractor is a type of subtractor, an electronic circuit that performs the subtractions of ternary numbers. The DNA-Quantum half subtractor can subtract two single ternary digits which is provided as DNA sequence and provide the output, difference and a borrow value in Quantum qubit representation. The truth table below (Table 15.3) shows the outputs of a DNA-Quantum ternary half subtractor. From the truth table, the equations for the difference and borrow can be found as Difference = A0 .B1 + A1 .B2 + A2 .B0 + 1.( A0 .B2 + A1 .B0 + A2 .B1 ) Borrow = 1.( A0 .B1 + A0 .B2 + A1 .B2 ) The general design of a ternary half subtractor is already explained in chapters 11 and 13. However, the major difference in this DNA-Quantum half subtractor is that the DNA Decoder is used at the starting as the inputs as DNA sequences and except that the other operations are designed using Quantum gates as the final output will be in Quantum qubit.
15.5.1
Circuit Architecture of Multiple-Valued DNA-Quantum Half Subtractor
Initially, as Figure 15.5 depicts, multi-valued DNA decoder produces 3 outputs line for each input value. If the 1-to-3 decoders are not used, it will not be possible to access all combinations of these two inputs. Decoder for input A produces A0, A1, A2, for input B produce B0, B1, B2. Only one output line is true (TGGATC) and other remains false (ACCTAG) for an input. These six DNA sequence outputs of the DNA decoder are temporarily stored in DNA cache memory. Then they convert into
354
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Quantum qubits with the help of trap ions. After the conversion, they act as the inputs of the remaining Quantum operations. According to truth table 15.3, the Difference (D) of the half subtractor yields three |2> qubits and three |1> qubits as true values. For these total six true values, six quantum AND operations are used, and each of the quantum AND operation’s outputs will go through a quantum OR operation to produce the true output when one of the quantum AND operation’s outputs is true. However, because the output |1> is required in three conditions, a quantum AND operation with a fixed input|1> is performed before the final quantum OR operation, which is used to generate the maximum output among |2>, |1>, and |0>. In the case of half subtractor borrow (Bout ) three input combinations produce qubit |1> as true values. The circuit architecture of Multi-Valued DNA-Quantum Half Subtractor is shown in Figure 15.5. The carry function produces three 1 values. As a result, three quantum AND operations and two quantum OR operations are employed. Again. A quantum AND operation is added at the end to obtain the borrow qubit in order to generate the maximum qubit at most |1>.
15.5.2
Working Principle of Multiple-Valued DNA-Quantum Half Subtractor
A 2-input multi-valued DNA-Quantum half-subtractor contains 2 DNA sequence input as input and 2 Quantum outputs one for difference and another for borrow. 1. When the input sequences A, B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (2, 0, 0). None of the AND gates are connected to the A0 and B0 line. As a result, none of the AND gate values will be true. So the output of differences and borrow both are |0>. 2. When the input sequences A = ACCTAG (0) and B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 2, 0). D0 and D6 AND gates are connected to the A0 and B1 line. As a result, D0 and D6 AND gates value will be true (|2>). So, the output of differences is |2> and D6 value (|2>) is also AND with |1> and produce minimum as borrow |1>. 3. When the input sequences A = ACCTAG (0) and B = TGGATC (2), DNA decoders generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 0, 2). D3 and D7 AND gates are connected to the A0 and B2 line. As a result, D3 and D7 AND gates value will be true (|2>). So D3 value (|2>) is also AND with |1> and produce minimum as difference |1> and D7 value (|2>) is also AND with |1> and produce minimum as borrow |1>. 4. When the input sequences A = CAAGCT (1) and B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (2, 0, 0). D4 gate is connected to A1 and B0 line. As a result, D4 AND gates value will be true (|2>). So D4 value (|2>) is also AND with |1> and produce minimum as difference |1> and borrow is |0>.
355
Multiple-Valued DNA-Quantum Half Subtractor
Heat supplied Heat supplied from outside from outside DNA circuit to DNAto circuit Trap Ion
Anneal >60o
Anneal Anneal >60o >60o
Anneal Anneal >60o >60o
Anneal >60o
Anneal Anneal >60o >60o Anneal Anneal o o >60 >60
FIGURE 15.5 Circuit Architecture of Multi-Valued DNA-Quantum Half Subtractor
Multi-Valued Quantum AND & OR Operations
Heat transfer circuit
Multi-Valued Quantum AND & OR Operations
DNA 1-to-3 Decoders
356
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing 5. When the input sequences A, B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 2, 0). None of the AND gates (D0-D8) are connected to A1 and B1 lines. As a result, none of the AND gate value will be true. So, the output of differences and borrow both are |0>. 6. When the input sequences A = CAAGCT (1), and B = TGGATC (2), DNA decoders generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 0, 2). D1 and D8 AND gates are connected to A1 and B2 lines. As a result, D1 and D8 AND gates value will be true (|2>). So, the output of differences is |2> and D8 value (|2>) is also AND with |1> and produce minimum as borrow |1>. 7. When the input sequences A = TGGATC (2), and B = ACCTAG (0), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (2, 0, 0). D2 gate is connected to A1 and B0 line. As a result, the D2 AND gate value will be true (TGGATC). So, the output of differences is |2> and borrow is |0>. 8. When the input sequences A = TGGATC (2), and B = CAAGCT (1), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 2, 0). D5 gate is connected to the A2 and B1 line. As a result, D5 AND gates value will be true (|2>). So D5 value (|2>) is also AND with |1> and produce minimum as difference |1> and borrow is |0>. 9. When the input sequences A, B = TGGATC (2), DNA decoders generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 0, 2). None of the AND gates (D0-D8) are connected to the A2 and B2 lines. As a result, none of the AND gate values will be true. So, the output of differences and borrow both are |0>.
15.6
Multiple-Valued DNA-Quantum Full Subtractor
Multi-Valued full subtractor performs subtraction operation taking borrow qubit in consideration, thus it solves the problem that half subtractor cannot overcome. In a Multi-Valued full subtractor, there are a total of three inputs A, B, and C. The truth Table of Multi-Valued DNA-Quantum full subtractor is given in Table 15.4. The difference and borrow as – D = A0.B1.C0 + A1.B2.C0 + A2.B0.C0 + A0.B0.C1 + A1.B1.C1 + A2.B2.C1. 1. (A0.B2.C0 + A1.B0.C0 + A2.B1.C0 + A0.B1.C1 + A1.B2.C1 + A2.B0.C1) = (A0.B1 + A1.B2 + A2.B0).C0 + (A0.B0 + A1.B1 + A2.B2).C1. 1. ((A0.B2 + A1.B0 + A2.B1).C0 + (A0.B1 + A1.B2 + A2.B0).C1)
357
Multiple-Valued DNA-Quantum Full Subtractor TABLE 15.4 Truth Table of DNA-Quantum Ternary Full Subtractor A ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
Inputs B ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
C ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT CAAGCT
Outputs |D> |Bout> |0> |0> |2> |1> |1> |1> |1> |0> |0> |0> |2> |1> |2> |0> |1> |0> |0> |0> |2> |1> |1> |1> |0> |1> |0> |0> |2> |1> |1> |1> |1> |0> |0> |0> |2> |1>
Bout = 1. (A0. B1. C0+A0.B2.C0 + A1.B2.C0 + A0.C1 +B2.C1+A1.B1.C1) = 1. ((A0. B1+A0.B2+A1.B2).C0 + (A0+B2+A1.B1).C1) In chapters 11 and 13, the general design of a ternary full subtractor is already explained. The main difference in this DNA-Quantum full subtractor is that a DNA Decoder is used at the beginning because the inputs will be in DNA sequences, and the other operations will be designed using Quantum gates because the final output will be in a Quantum qubit.
15.6.1
Architecture of Multiple-Valued DNA-Quantum Full Subtractor
At first, the multi-valued DNA decoder initially produces three output lines for each input value. It will be impossible to access all combinations of these two inputs if the 1-to-3 decoders are not used. For input A, the decoder produces A0, A1, and A2, while for input B, the decoder produces B0, B1, and B2 and finally for input C, the decoder produces C0 and C1 (Figure 15.6). For an input, only one output line is true (TGGATC), while the other remains false (ACCTAG). The DNA decoder’s eight DNA sequence outputs are temporarily stored in DNA cache memory. Then,
358
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
with the help of trap ions, they are converted into quantum qubits. Following the conversion, they serve as inputs to the remaining Quantum operations. According to the truth table, the difference of the full Subtractor produces six |2> and six |1> values. Six multi-valued quantum AND operations are designed for these six |2> values, and each of the multi-valued quantum AND operations output will conduct a multi-valued quantum OR operation to produce the true output when one of the multi-valued quantum AND operation outputs is true. In addition, there are six |1> values in total. Six multi-valued quantum AND operations are designed for these six |1> values and each of the multi-valued quantum AND operation outputs will perform a multi-valued quantum OR operation to produce the true (|2>) output when one of the multi-valued quantum AND operation outputs is true. However, because the output |1> is required, the multi-valued quantum AND operation is performed with the output of the multi-valued quantum OR operation as input along with |1>. Finally, the multi-valued quantum AND operation yield the smallest value. As a result, the result of the multi-valued quantum AND operation is always |1>. Finally, as shown in fig. 5.4.6, a multi-valued quantum OR operation is used to generate the maximum output among |2>, |0>, and |0>, |1>. (a). The borrow of the full Subtractor yields nine |1> values. When one of the multivalued quantum AND operation outputs is true, the multi-valued quantum AND operation is performed to produce the true (|2>) output. However, because the output |1> is required, the multi-valued quantum AND operation is performed with the output of the multi-valued quantum OR operation as input along with |1>. The minimum value is produced by the multi-valued quantum AND operation. As a result, the output of the multi-valued quantum AND operation will always be 1 for one of the nine true inputs. The result of this final multi-valued quantum AND operation is the Borrow qubit, as shown in Figure 15.7. Figure 15.6 shows the circuit architecture of multi-valued DNA-Quantum Full Subtractor (Difference) and Figure 15.7 shows the circuit architecture of multi-valued DNA-Quantum Full Subtractor (Borrow)
15.6.2
Working Principle of Multiple-Valued DNA-Quantum Full Subtractor
A ternary DNA-Quantum Full-Subtractor contains 3 DNA input sequences as input and 2 output Quantum qubits, one for sum and another for carry. To understand the working principle of DNA-Quantum Full Subtractor, let’s consider the following case: When the input sequence A, B = ACCTAG (0), and C = CAAGCT (1), DNA decoder generate A0, A1, A2 = (2, 0, 0), B0, B1, B2 = (2, 0, 0) and C0, C1, C2 = (0, 2, 0). The 10th AND gate is connected to the A0 and B0 and C1 line. As a result, the 10th AND gate value, that evaluates A0.B0.C1, will be true (|2>). It is seen that the 13th AND gate is connected to the OR gate, so the output of the OR gate will be true (|2>). This output will go through the last OR gate and generate |2> as difference (D). In the full-subtractor borrow circuit, it is seen that none of the AND operations and OR operations are connected to A0, B0 and C1 lines. As a result, none of the
Multiple-Valued DNA-Quantum Full Subtractor
359
Heat supplied from outside to DNA circuit
Trap Ion
DNA 1-to-3 Decoders
Multi-Valued Quantum AND & OR Operations
Anneal >60o
Anneal >60o
Anneal >60o
Anneal Anneal >60o >60o
Anneal >60o Anneal >60o
Anneal Anneal >60o >60o Anneal o >60
Anneal >60o Anneal Anneal >60o
>60o Anneal Anneal o o >60 >60
FIGURE 15.6 Circuit Architecture of Multi-Valued DNA-Quantum Full Subtractor (Difference)
360
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Heat supplied from outside Trap Ion to DNA circuit
Heat Transfer
DNA 1-to-3 Decoders
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal Anneal >60o >60o
Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Multi-Valued Quantum AND & OR Operations
FIGURE 15.7 Circuit Architecture of Multi-Valued DNA-Quantum Full Subtractor (Borrow)
DNA-Quantum Ternary Parallel Adder
361
AND operations and OR operation value will be true. Thus, they produce |0>. This truth value will TAND with |1>, and produce minimum |0> as output. This output will go through the OR gate and generate |0> as borrow (Bout).
15.7
DNA-Quantum Ternary Parallel Adder
Therefore, now it is known how to construct the ternary parallel adder in crossplatform. So, it will be much easier now. From here, the opposite procedures of everything will be followed as what is done earlier. That means all the quantum ternary systems will be replaced by the corresponding DNA ternary systems and all the DNA ternary systems will be replaced by the corresponding quantum systems. And DNA ternary cache memory is used instead of quantum ternary cache memory. So, let’s see how to construct the ternary parallel adder in the DNA-Quantum cross-platform.
15.7.1
The Architecture of Quantum-DNA Ternary Parallel Adder
The N-bit ternary parallel adder is divided into two distinct segments to keep the architecture simple. So, the architecture will contain N ternary full-adders. It can be divided into two ways – i) N-1 ternary full adders will be in the DNA system and the last ternary full-adder will be in the DNA system, and, ii) N-X ternary full-adders will be in the quantum system and the X ternary full-adders will be in the DNA system. The 1 st approach will be much simpler than the other one.
15.7.2
The General Organizations of the DNA-Quantum Ternary Parallel Adder
Using the first approach, the general organizations of DNA-Quantum 4-bit ternary parallel adder can be constructed which is shown in Figure 15.8. The Figure shows, that three ternary full-adder operations are performed in the DNA system and the last ternary full-adder operation is performed in the quantum system. A DNA ternary cache memory is used to store the bit sequence output and the input sequences for the last full-adder operation. The sequences are converted into quantum ternary bits (qutrits) using the data conversion circuits. Besides, a heat transfer circuit is used to transfer heat from the quantum system to a cooling system. And now it is not possible to take the required heat in the DNA system from the quantum system because the DNA operations will be executed first. That is why the required heat is taken in the DNA system from an external heat source. Figure 15.9 shows the general organizations of the DNA-Quantum ternary N-bit parallel adder.
362
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
FIGURE 15.8 The General Organizations of the DNA-Quantum Ternary 4-Bit Parallel Adder The Figure shows, N-1 ternary full-adder operations are performed in the DNA system and the last ternary full-adder operation is performed in the quantum system. A DNA ternary cache memory is used to store the bit sequence output and the input sequences for the last full-adder operation. The DNA sequences are converted into quantum ternary bits using the data conversion circuits. Besides, a heat transfer circuit is used to transfer heat from the quantum system to a cooling system.
DNA-Quantum Ternary Parallel Adder
363
FIGURE 15.9 The General Organizations of DNA-Quantum Ternary N-Bit Parallel Adder
15.7.3
The Circuit Design of the DNA-Quantum Ternary Parallel Adder
The general organization of the DNA-Quantum ternary 4-bit and N-bit parallel adder is shown in Figures 15.8 and 15.9. And the architecture contains DNA ternary fulladders, DNA ternary cache memory, data conversion circuits, quantum ternary full adders, an external heat source, and the heat conductance circuit. Every component
364
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
was constructed earlier. The DNA ternary cache memory is designed in the earlier chapter. The NMR process or trap ions can be used as a data conversion circuit to convert the DNA sequences into the equivalent quantum ternary bits. And lastly the heat conductance circuit, connect each component to design the DNA-Quantum ternary parallel adder.
15.7.4
The Working Principles of DNA-Quantum Ternary Parallel Adder
There is nothing new to understand the working procedure. All it needs to combine two systems. In the 1 st three DNA ternary full-adders in the DNA system, the input and output mapping will be according to the DNA ternary parallel adder operations. Then the NMR process or trap ions will receive the DNA sequences from a DNA ternary cache memory. It will convert the DNA sequences to the equivalent qutrits. Then the converted qutrits will be the inputs to the quantum ternary full-adder. And eventually, the quantum ternary full-adder will generate the output of the last ternary full-adder operation. Let us test an example. Let the addend and augend qutrits are A and B, respectively. Then, for a 4-bit input the input A will be A3 A2 A1 A0 and the input B will be B3 B2 B1 B0 . Let’s take some value for those inputs and observe the behavior of the circuit. Suppose A = 1020 and B = 1100. Therefore, the values of A0 = ACCTAG, A1 = TGGATC, A2 = ACCTAG, and A3 = CAAGCT. And the values of B0 = ACCTAG, B1 = ACCTAG, B2 = CAAGCT, and B3 = CAAGCT. 1. For the inputs A0 , and B0 both are ACCTAG. And the carry input qubit Cin is also ACCTAG - The first DNA ternary full-adder will get all the inputs as ACCTAG. Therefore, it will produce output ACCTAG as the sum and also ACCTAG as the carry output sequence. This carry will be working as the carry input of the next DNA ternary full-adder. 2. The next input sequences to the second DNA full-adder are A1 = TGGATC, B1 = ACCTAG, and the carry input C0 is also ACCTAG. Therefore, the second DNA ternary full-adder will generate TGGATC as the sum output and again ACCTAG as the carry output of C1 . The value of C1 will be delivered to the next DNA ternary full-adder as a carry input. 3. The input to the third DNA ternary full-adder are A2 = ACCTAG, B1 = CAAGCT, and the carry input C1 is again ACCTAG. Therefore, the third DNA ternary full-adder will generate CAAGCT as the sum output and also again ACCTAG as the carry output of |C2 >. 4. Now the DNA part is done. The carry output of the very last DNA ternary full-adder operation will be stored in a DNA ternary cache memory. And the next addend and augend input sequences are also stored in the DNA ternary cache memory.
DNA-Quantum Ternary Carry-Lookahead Adder
365
5. From cache memory, the values A3 = CAAGCT, B3 = CAAGCT, and C2 = ACCTAG will be delivered to the NMR process or trap ions. From here the DNA sequences values will be converted into the equivalent qutrits. The converted values will be |A3 > = |1>, |B3 > = |1>, and |C2 > = |0>. These values will be the inputs to the last ternary full-adder which is in the quantum system. 6. The final ternary full-adder is in the quantum system. It will receive the value as |A3 > = |1>, |B3 > = |1>, and |C2 > = |0>. Therefore, it will generate the output as |2> for the sum, and |0> for the last carry output which will be the most significant bit of the addition result eventually. Therefore, it is possible to get the expected result from the designed architecture for the DNA-Quantum ternary parallel adder.
15.8
DNA-Quantum Ternary Carry-Lookahead Adder
To develop DNA-Quantum carry-lookahead adder by dividing the whole system into two segments – one for the DNA system and the other for the quantum system, as before, this can be done in two ways. Dividing the system for N-bit into (N-1) bit in the DNA system and the last one bit in the quantum system. Or (N-X) bit in the DNA system and X bit in the quantum system. Again, let us see how to construct it in the 1 st way which is much simpler.
15.8.1
The General Organizations of DNA-Quantum Ternary CarryLookahead Adder
Figure 15.10 shows the general organization of a 4-bit DNA-Quantum ternary carrylookahead adder. Here, among 4-bit input addition operations, the first three operations are occurring in the DNA system, and the last bit addition operation is occurring in the quantum system. The DNA ternary cache memory store the DNA sequence values of the most significant bit of the inputs and the last DNA system’s carry value obtained by the combinational DNA operations. The heat transfer circuit transfers the heat from the quantum system, and the DNA system gets the necessary heat from an external system.
15.8.2
The Circuit Architecture of Quantum-DNA Ternary CarryLookahead Adder
Figure 15.11 shows the circuit diagram of a DNA-Quantum 3-bit ternary carrylookahead adder. And the required heat to perform the operations in the DNA system is provided from an external heat source. The working mechanism of all those
366
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
FIGURE 15.10 The General Organizations of DNA-Quantum Ternary 4-Bit Carry-Lookahead Adder
367
DNA-Quantum Ternary Carry-Lookahead Adder ACCTAG TGGATC
CAAGCT
ACCTAG
CAAGCT
Anneal >60o Anneal >60o
Anneal >60 o
Anneal >60 o
Anneal >60o
Anneal >60 o Anneal >60o
Anneal >60 o
Anneal >60 o
Anneal >60 o
CAAGCT
TGGATC
Anneal >60 o
Anneal >60 o
Anneal >60 o
NMR Cold Storage
Quantum Ternary XOR, AND & OR Operations
FIGURE 15.11 The Circuit Diagram of DNA-Quantum Ternary 3-Bit Carry-Lookahead Adder Operation systems was explained in previous sections and chapters. Figure 15.11 depicted to understand the working procedures of the 3-bit DNA-Quantum ternary carrylookahead adder.
368
15.8.3
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
The Working Principles of DNA-Quantum Ternary CarryLookahead Adder
The working procedures of the first part of the DNA-Quantum system which is the DNA ternary system are the same as it is discussed in the working procedures of the DNA ternary carry-lookahead adder. As the circuit diagram shows, 1 st 2-bit addition and the carry input sequence for the last addition operation is occurring in the DNA system. Then carry bit sequence along with the other two input sequences are stored in the DNA ternary cache memory. From the cache memory, they are passed through the NMR processes to become the input of the quantum ternary full-adder. Then the quantum system will perform the quantum ternary full-adder operation and will generate the final sum outputs.
15.9
DNA-Quantum Ternary Carry-Skip Adder
In the ternary carry-skip adder, a block of ternary full-adder is created, and then the block propagates are determined before operating the actual ternary full-adder operations. If the block propagates BP is equal to 1 or 2 (for DNA computing in ternary logic), then the output carry will be the same as the carry input given to the block. Here, block propagate, BPi = P0 . P1 . P2 . . . . . Pi Where, Pi = (Ai DTXOR Bi ) This is how to reduce the time delay to propagate the carry from one block to another. The ternary carry-skip adder is exactly the same as the ternary parallel adder when the BP is not equal to 1 or 2. Therefore, n number of ternary full-adders are designed of an n-bit block. And if BP is equal to 1 or 2 then it is needed to bypass the value of the carry input bit of the block to the carry output using a 3-to-1 ternary multiplexer.
15.9.1
The General Organizations of DNA-Quantum Ternary CarrySkip Adder
The general overview of the circuit diagram for the DNA-Quantum ternary carry-skip adder is depicted in Figure 15.12. From the Figure 15.12, it is easy to understand that the DNA-Quantum ternary carry-skip adder is going to be built by dividing it into two parts – one part is in the DNA system which is consists of connected DNA ternary parallel adders, and the second part is in the quantum system which is consist of a 3x1 quantum ternary multiplexer that will bypass the carry output of the block. And a heat transfer circuit is connected to the quantum system to transfer the massive produced heat into the cooler. Moreover, the necessary heat can be transferred
DNA-Quantum Ternary Carry-Skip Adder
369
FIGURE 15.12 The Front-View of the DNA-Quantum Ternary Carry-Skip Adder to the DNA system to operate the DNA system. Figure 15.13 shows the front-view of the DNA-Quantum Ternary 4-Bit Carry-Skip Adder. In Figure 15.13, the DNA system includes the four DNA ternary full-adders are shown. The first carry input to the block and carry output of the block are stored in a DNA ternary cache memory so that they can be passed to the next operations. The data conversion unit converts the data and delivers the quantum ternary bits to the quantum system as the inputs which is a quantum 3-to-1 ternary multiplexer. And the quantum multiplexer does the rest of the operations. It bypasses the carry output qutrit based on the selection input. And as it is already known, it passes the carry input from the block to the next block only if the value of the BP (block propagate) is either |1> or |2>. Otherwise, the ternary 3-to-1 multiplexer will bypass the last ternary full adder’s carry output as the block’s carry output.
15.9.2
The Circuit Architecture of the DNA-Quantum Ternary CarrySkip Adder
Figure 15.14 shows an inside view of the DNA-Quantum ternary 4-bit carry-skip adder operation. The value of Pi is determined first, and the block propagate is determined by the DNA ternary AND operations accordingly.
370
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
FIGURE 15.13 The Front-View of the DNA-Quantum Ternary 4-Bit Carry-Skip Adder The value of block propagates BP, and the two carry input sequences C0 and C4 (as the Figure shows) will be stored in the DNA ternary cache memory. And the data conversion unit will convert them accordingly. The converted values will be the input of the quantum ternary 3-to-1 multiplexer and will generate one qutrit as the carry output. Note that, the block propagate BP is working as the select input of the quantum ternary multiplexer. If BP is |1> or |2>, then the multiplexer will bypass
DNA-Quantum Ternary Carry-Skip Adder
371
FIGURE 15.14 Circuit Architecture of the DNA-Quantum Ternary 4-bit Carry-Skip Adder the value of |C0 > (1 st carry input to the block) as output. Otherwise, the value of |C4 > will be passed through the quantum ternary 3-to-1 multiplexer. It is easy to design the circuit diagram by connecting the components shown in Figure 15.14 accordingly. The DNA system will contain four DNA ternary fulladders, the four DNA ternary XOR operations to determine the value of Pi . It will also have three DNA ternary AND operations to get the output of BP. The three DNA sequence values (values of C0 , C4 , and BP) will be stored in the DNA ternary
372
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
cache memory. Here again, the NMR process can be used to convert them into the corresponding quantum ternary bits. So, the stored sequence values will be passing through the NMR process and will become the equivalent qutrits. In the quantum system, the rest of the operations are performed according to quantum computing. A Quantum ternary multiplexer will pass the output according to the select input which is the value of BP. Thus, the bypassed output will be the carry input for the next cascaded block if existed.
15.9.3
The Working Principles of DNA-Quantum Ternary Carry-Skip Adder
The working procedures of the DNA-quantum ternary carry-skip adder include four main units which are discussed already. They are Quantum system, data storing to cache memory, data conversion, and the DNA system. Besides, the working procedures of the circuit is discussed from the very beginning of this parent section.
15.10
DNA-Quantum Ternary Multiplier
In this section, the architecture of the DNA-Quantum ternary multiplier operation will be develped. Before reading this section, as always, it is recommended to read again the ternary multiplier operation in quantum multiple-valued computing and DNA multiple-valued computing which have been explained in Chapter 11 and Chapter 13, respectively. The working mechanism is exactly the same and that is why it is not needed to explain it again in this chapter. A 2x2 bit DNA-Quantum ternary multiplier will be designed. The general working block of the DNA-Quantum ternary multiplier can be shown in Figure 15.15. The DNA 1-bit sequence multiplier is constructed to implement the ternary multiplication rules. Using the 1-bit multiplier it is possible to design the larger bit sequence size ternary multiplication. Figure 15.16 shows the general working block of a DNAQuantum ternary 2 × 2 multiplication operation where two input sequences A and B are two-bit values in size, and they produce five qutrits product values. Figure 15.16 shows that two input sequences A = A1 A0 and B = B1 B0 are multiplied by a DNA-Quantum system and produce the production values in the quantum system where |P> = |P4 P3 P2 P1 P0 >.
15.10.1
The Circuit Architecture of the DNA-Quantum Ternary 2 × 2 Multiplier
Figure 15.17 shows an architecture of the DNA-Quantum ternary 2 × 2 multiplier. The architecture divides the multiplier into two systems – the DNA system and the quantum system. DNA system, which includes four 1-bit DNA ternary multiplier
DNA-Quantum Ternary Multiplier
373
FIGURE 15.15 The General Working Block of a DNA-Quantum Ternary Multiplier operations, and four DNA ternary half-adders. The outputs from this DNA system are stored in the DNA cache memory. And here, trap ions are used as the data conversion units. After converting the DNA sequences into the equivalent qutrits, the qutrits are entered into the quantum system. Where the quantum system includes one ternary quantum half-adder and two ternary quantum full-adders. Finally, the outputs of the product in the form of quantum ternary bits are gained. Figure 15.18 shows the complete architecture of a DNA-Quantum ternary 2 × 2 multiplier. The heat conductance circuit is added and through the heat conductance circuit the generated massive heat from the quantum system will be transferred to cold storage. And notice, this time that the NMR process is used to convert the DNA sequences into the corresponding qutrits. To be mentioned, here the NMR process will be performed at zero kelvin temperature. And all the other operations were also described earlier.
FIGURE 15.16 The General Working Block of a DNA-Quantum Ternary 2 × 2 Multiplier
374
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
DNA Ternary DNA Ternary DNA Ternary DNA Ternary Multiplier Multiplier Multiplier Multiplier
DNA Ternary Half Adder
DNA Ternary Half Adder
DNA Ternary Half Adder
DNA Ternary Half Adder
Trap Ions
Trap Ions
Quantum Ternary Full Adder
Quantum Ternary Full Adder
Quantum Ternary Full Adder
FIGURE 15.17 Circuit Architecture of a DNA-Quantum Ternary 2 × 2 Multiplier
375
DNA-Quantum Ternary Multiplier
Heat Transfer
DNA Ternary DNA Ternary DNA Ternary DNA Ternary Multiplier Multiplier Multiplier Multiplier DNA Ternary Half Adder DNA Ternary Half Adder
DNA Ternary Half Adder DNA Ternary Half Adder
NMR
NMR Quantum Ternary Full Adder
Quantum Ternary Full Adder
Quantum Ternary Full Adder
FIGURE 15.18 The Complete Architecture of a DNA-Quantum Ternary 2 × 2 Multiplier
376
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
15.10.2
The Working Procedure of the DNA-Quantum Ternary 2 × 2 Multiplier
The above Figures have already shown the working procedures of performing multiplication operations of two inputs. Observe the operations on each component. Let’s see the operational behavior of the designed architecture for the DNAQuantum ternary 2 × 2 multiplier, shown in Figure 15.18. Suppose, it is needed to multiply two ternary input values in the DNA-Quantum multiplier, where A = 02, and B = 10. After multiplication operations, these inputs will produce P = P4 P3 P2 P1 P0 , where these product values are in the form of qutrits. Here, the value of A0 = TGGATC, and A1 = ACCTAG. And the value of B0 = ACCTAG, and B1 = CAAGCT. 1. In the DNA system, the 1 st DNA ternary 1-bit multiplier will get the input values of A0 and B0 . Here, A0 = TGGATC, and B0 = ACCTAG. Therefore, this multiplier will generate two outputs m0 = ACCTAG and c0 = ACCTAG. Here, m0 is the multiplication product, and c0 is the carry value. The value of m0 will be the least significant qutrit of the final product. Therefore, it is needed to pass the value of m0 to the DNA ternary cache memory. And the value of c0 will be work as an input to the 1 st DNA ternary half-adder shown in Figure 15.18 (from the right side of the Figure). 2. The 2nd DNA ternary 1-bit multiplier will get the input values of A1 and B0 . Here, A1 = ACCTAG, and B0 = ACCTAG. Therefore, this multiplier will generate two outputs m1 = ACCTAG and c1 = ACCTAG. The value of m1 will be work as the 2nd input value to the 1 st DNA ternary halfadder. And the value of c1 will be work as an input to the 3rd DNA ternary half-adder. 3. The 3rd DNA ternary 1-bit multiplier will get the input values of A0 and B1 . Here, A0 = TGGATC, and B1 = CAAGCT. And, this multiplier will generate two outputs m2 = TGGATC and c2 = ACCTAG. The value of m2 will be stored to the DNA ternary cache memory which will work as an input to the 1 st quantum ternary half adder eventually. And the value of c2 will work as an input to the 2nd DNA ternary half-adder. 4. The 4th DNA ternary 1-bit multiplier will get the input values of A1 and B1 . Here, A1 = ACCTAG, and B1 = CAAGCT. And, this multiplier will generate two outputs m3 = ACCTAG and c3 = ACCTAG. The value of m3 will be work as another input value to the 2nd DNA ternary half-adder. And the value of c3 will work as an input to the 4th DNA ternary halfadder. 5. Now, the 1 st DNA ternary half-adder will get inputs c0 = ACCTAG (from step 1), and m1 = ACCTAG (from step 2). So, this half-adder will produce two outputs. Here, from the 1 st half adder, S0 = ACCTAG, and the carry output will also be ACCTAG. The value of S0 will be stored in the DNA ternary cache memory and it will work as another input of the 1 st quantum
DNA-Quantum Ternary Multiplier
377
ternary half-adder further. And the carry value from this half-adder will work as another input value of the 3rd DNA ternary half-adder (according to Figure 15.18). 6. The 2nd DNA ternary half-adder will get inputs c2 = ACCTAG (from step 3), and m3 = ACCTAG (from step 4). So, this half-adder will produce two outputs, S1 = ACCTAG, and the carry output will also be ACCTAG (see the truth Table of DNA ternary half-adder). The value of S1 will be stored in the cache memory and it will work as an input of the 1 st quantum ternary full-adder eventually. And the carry value from this half-adder will work as another input value of the 4th DNA ternary half-adder (see Figure 15.18). 7. The 3rd DNA ternary half-adder will get inputs c1 = ACCTAG (from step 2), and also ACCTAG from the carry output of the 1 st half-adder (from step 5). So, this half-adder will produce two outputs, S2 = ACCTAG, and the carry output will also be ACCTAG (see the truth Table of ternary half-adder). The value of S2 will be stored in the cache memory and it will work as an input of the 1 st quantum ternary full-adder. And the carry value from this half-adder will also be stored in the cache memory and will work as an input value of the 2nd quantum ternary full-adder (according to Figure 15.18). 8. The 4th DNA ternary half-adder will get inputs c3 = ACCTAG (from step 4), and also ACCTAG from the carry output of the 2nd half-adder (from step 6). So, this half-adder will produce two outputs, S3 = ACCTAG, and the carry output will also be ACCTAG (see the truth Table of ternary halfadder). The value of S3 will be stored in the cache memory and will work as an input of the 2nd quantum ternary full-adder. And the carry value from this half-adder produces the most significant qutrit value of the final product value, and thus it will be stored in the cache memory as well. 9. The DNA system operations are done. All the outputs are stored from the DNA system to the DNA ternary cache memory. Now, from the cache memory, all the values will be passed through the NMR process to convert them into their equivalent quantum ternary bits. 10. In the quantum system, The 1 st quantum ternary half-adder will get inputs |S0 > = |0> (from the converted value from step 5), and also |m2 > = |2> from step 3. So, this half-adder will produce the value of |P1 > = |2>. And a carry out value |0> which will work as a carry input to the 1 st quantum full-adder. 11. Now, the 1 st quantum ternary full-adder operations can be performed. It gets three inputs as, |S1 > = |0>, |S2 > = |0>, and also |0> (from step 9). Therefore the sum of the addition will be |0> which is the value of |P2 >. And the carry will also be |0> which will be the carry input to the 2nd quantum ternary full-adder.
378
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
12. The last operation is the 2nd quantum ternary full-adder. It gets the three inputs as - |S3 > = |0>, |0> from the converted value of step 7, and also |0> from step 10. Therefore it will also produce sum |0> and carry output as |0>. The sum output will be the value of |P3 > and the carry output will be the value of |P4 >. And therefore, both the value as |0> is obtained. 13. And it is possible to get the value of |P0 > from the converted qutrit value of m0 = ACCTAG from step 1. Therefore, the value of |P0 > as |0> is obtained. So, finally, here all the product values – |P0 > = |0>, |P1 > = |2>, |P2 > = |0>, |P3 > = |0>, and |P4 > = |0>. Therefore, there is the product of the ternary multiplication operation of |P> = |00020> in the DNA-Quantum ternary multiplication system, which is absolutely correct for the given inputs.
15.11
DNA-Quantum Ternary Divider
In the DNA-Quantum ternary divider, the first part of the operations will be performed in the DNA system and the last part of the operations will be performed in the quantum system. That implies, the input will be the DNA sequences and the generated output will be the quantum ternary bits. The DNA-Quantum ternary divider block diagrams are shown in Figure 15.19. The above figure shows that for an n-bit DNA-Quantum ternary divider, the dividend and the divisor will be the n-bit DNA sequences, but the outputs (quotient and remainder) will be in the form of n-qutrit.
15.11.1
The Construction of the DNA-Quantum Ternary 2 × 2 Multiplier
As the divider blocks show, a ternary divider circuit is needed to construct, where the components will be the DNA system followed by the DNA ternary cache memory, which will again be followed by the data conversion units to convert the DNA base sequences into the quantum ternary bits. And finally, the converted qutrits will generate the outputs performing the rest of the operations. Figure 15.20 shows the circuit architecture of the DNA-quantum ternary 1-bit divider. The extra part is the DNA ternary cache memory which is used to store the DNA ternary information and the data conversion units which will convert the DNA information into the equivalent quantum ternary bits. It is known that the working mechanism of the 2-bit DNA ternary divider and 2-qutrit quantum ternary divider. Therefore, it is possible to construct the general architecture of the DNA-Quantum ternary 2-bit divider. Figure 15.21 shows the general architecture of the 2-bit DNA-Quantum ternary divider operation.
Multiple-Valued DNA-Quantum Comparator
379
FIGURE 15.19 The General Block Diagrams of DNA-Quantum Ternary Dividers
15.12
Multiple-Valued DNA-Quantum Comparator
As discussed in the previous chapter, the comparator is a circuit that compares two input signals and gives output as which input is larger or smaller, or equal. Here, in the DNA-Quantum circuit, the input of A and B is the DNA sequence and the Quantum qubit is the output of |Y> and |Z> where |X>. Table 15.5 shows the truth table of the DNA-Quantum 1-bit comparator. Figure 15.22 displays the block diagram of the DNA-Quantum 1-bit comparator. Here two DNA decoders are used in the DNA part and in the quantum part, nine multi-valued quantum AND and six multi-valued quantum OR operations are used.
15.12.1
Circuit Architecture of Multiple-Valued DNA-Quantum Comparator
The construction of the Multi-Valued DNA-Quantum 1-qubit comparator circuit is shown in Fig.15.23. In this circuit, the input, A and B, at first, pass through two 1to-3 Decoders separately so that inserted DNA molecular sequence, i.e. ACCTAG, CAAGCT or TGGATC, which represent “1”, “2” and “3”, respectively, can be identified using the output of 1 to 3 decoders. Nine Quantum AND operation is used in DNA-Quantum 1-qubit comparator where each input of these AND operations come from the various combinations of the output of 1-to-3 decoder. However, as the output of DNA operation will act as an input of Quantum operation, thus each DNA molec-
380
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
DNA AND
Anneal >60 o
Anneal >60 o
DNA AND
DNA AND
DNA AND
Anneal >60 o
Anneal >60 o
DNA 1-to-3 Decoders
Anneal >60 o
DNA 1-to-3 Decoders
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
DNA AND
DNA OR
CAAGCT Anneal >60 o
FIGURE 15.20 Circuit Architecture of the DNA-Quantum Ternary 1-Bit Divider ular sequence is converted to its corresponding qubit by using the trap ion technique. Before the conversion DNA outputs are stored in a DNA Cache memory shortly to match the speed to different operations. Finally, based on the value of A and B, only one line of each 1-to-3 decoder generates qubit |2> along the line whereas others
Multiple-Valued DNA-Quantum Comparator
381
FIGURE 15.21 The General Architecture of the DNA-Quantum Ternary 2-Bit Divider provide |0>. Thus only one Quantum OR operation gives the result |2>, where other outputs, remain inactive. i.e. |0>.
15.12.2 1.
Working Principle of Multiple-Valued DNA-Quantum Comparator
For input sequences, A, B =ACCTAG, ACCTAG, the multi-valued 1to-3 decoder will perform (A0 && B0) and the 4th line will be open. As a result, the output qubit of |Y> equal |2> and remaining lines |X> to |Z> will remain closed |0>.
2. For input sequences, A, B =ACCTAG, CAAGCT, the multi-valued 1-to3 decoder will perform (A0 && B1) and the 1 st line will be open. As a
382
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing TABLE 15.5 Truth Table of DNA-Quantum1-Bit Comparator Inputs A
B
ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
|X> A |2> |2> |0> |0> |2> |0> |0> |0>
Outputs |Y> |X> A= B A > B |2> |0> |0> |0> |0> |0> |0> |2> |2> |0> |0> |0> |0> |2> |0> |2> |2> |0>
result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 3. For input sequences, A, B =ACCTAG, TGGATC , the multi-valued 1to-3 decoder will perform (A0 && B2) and the 2nd line will be open. As a result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 4. For input sequences, A, B =CAAGCT, ACCTAG, the multi-valued 1-to3 decoder will perform (A1 && B0) and the 7th line will be open. As a result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>. 5. For input sequences, A, B =CAAGCT, CAAGCT, the multi-valued 1to-3 decoder will perform (A1 && B1) and the 5th line will be open. As a result, the output qubit of |Y> equal |2> and remaining lines |X> to |Z> will remain closed |0>. 6. For input sequences, A, B =CAAGCT, TGGATC , the multi-valued 1to-3 decoder will perform (A1 && B2) and the 3rd line will be open. As a result, the output qubit of |X> equal |2> and remaining lines |Y> to |Z> will remain closed |0>. 7. For input sequences, A, B =TGGATC , ACCTAG, the multi-valued 1to-3 decoder will perform (A2 && B0) and the 8th line will be open. As a result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>. 8. For input sequences, A, B =TGGATC , CAAGCT, the multi-valued 1to-3 decoder will perform (A2 && B1) and the 9th line will be open. As a result, the output qubit of |Z> equal |2> and remaining lines |X> to |Y> will remain closed |0>.
Multiple-Valued DNA-Quantum Comparator
383
FIGURE 15.22 Block Diagram of Multi-Valued DNA-Quantum 1-Bit Comparator 9. For input sequences, A, B =TGGATC, TGGATC, the multi-valued 1-to3 decoder will perform (A2 && B2) and the 6th line will be open. As a result, the output qubit of |Y> equal |2> and remaining lines |X> to |Z> will remain closed |0>.
384
Multiple-Valued Arithmetic Operations in DNA-Quantum Computing
Heat Supplied from outside to DNA circhit with Annel>60C Anneal >60o Anneal >60o
Anneal >60o
DNA 1-to-3 Decoders Anneal >60o
Anneal >60o
DNA 1-to-3 Decoders
Anneal >60o Anneal >60o
Multi-Valued Quantum AND & OR Operations
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 15.23 Circuit Architecture of Multi-Valued DNA-Quantum Comparator
15.13 Summary The cross-platform for the ternary logic operation in Quantum and DNA computing can be formed in two ways namely, Quantum-DNA Ternary system and
Summary
385
DNA-Quantum Ternary system, called quantum molecular biology. In the Ternary Quantum-DNA system, the system is divided into two parts where the first part contains the Quantum ternary system and the second part contains the DNA ternary system. In the DNA-Quantum system, the system is also divided into two parts where the first part contains the DNA ternary system and the second part contains the Quantum ternary system. To store the quantum ternary data also called qutrits, Quantum Ternary Cache Memory is used. And DNA information for ternary data can be stored in the DNA Ternary Cache Memory. The required time to perform the arithmetic operations on the Quantum-DNA or DNA-Quantum system depends on the DNA system only as the DNA system takes a much longer time to perform operations.
Bibliography [1] Britannica, T. (2020). Editors of Encyclopaedia. Argon. Encyclopedia Britannica. [2] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [3] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [4] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [5] Li, T., Gao, H., Wang, C., Cheng, Z., Xue, J., Zhang, Z., ... & Cao, J. (2022). Oil utilization degree at various pore sizes via different displacement methods. Journal of Petroleum Exploration and Production Technology, 1-17.
Part IV
Multiple-Valued Combinational Circuits in Quantum Molecular Biology
Overview
Multi-Valued Quantum computing is a type of computing that performs calculations using the collective properties of quantum states, such as superposition, interference, and entanglement. Quantum computers are machines that are capable of performing quantum computations. Quantum computing makes use of quantum mechanics to make a huge leap forward in computation in order to tackle certain problems. The design, simulation, and development of multi-valued combinational circuits using quantum technology are discussed in the first chapter of this part. The general concept of quantum computing is discussed at the beginning of the book in order to gain a better grasp of it. Quantum gates and basic quantum processes are the foundational elements of quantum combinational Circuits. DNA computing is another type of computing where molecular biology is involved. DNA molecules are used to represent information. A huge amount of data can be stored in multi-valued DNA computing. DNA computing is a new branch of computing that uses DNA, biochemistry, and molecular biology hardware to replace traditional electronic computing. DNA computing’s theory, experiments, and applications are all part of the field research and development. A brief explanation is required before the actual designs. The main focus of this part is on the design of multi-valued computing for various combinational circuits in quantum molecular biology. This part documents everything from the architectures of basic multi-valued quantum and DNA combinational circuit components to the design of each circuit, as well as the main architecture of quantum and DNA combinational circuits and their working principle. Multi-Valued multiplexer, multi-valued demultiplexer, multi-valued encoder, and multi-valued decoder will be discussed in this part in quantum, DNA computing and quantum molecular biology. The first two chapters will be about quantum computing and DNA computing in a multi-valued logic system. The last two chapters of this part are about the crossplatform of these two computers. That means quantum molecular biology. Quantum molecular biology consists of two forms, one is quantum-DNA computing and the other is DNA-quantum computing.
389
16 Multiple-Valued Quantum Combinational Circuits
16.1
Introduction
The qutrit is the information unit of a three-valued quantum system (ternary quantum system). The ternary quantum system, which has the basis states |0>, |1>, and |2>, is a form of the three-dimensional quantum system. These basic states are referred to as qutrit states, and they are represented by three one-dimensional vectors (Equation 16.1). 1 0 0 |0 >= 0 , |1 >= 1 , |2 >= 0 (16.1) 0 0 1 In a ternary quantum system, a qutrit can be defined as a linear superposition of the above-mentioned basis states with the following equation: ψ = α |0> + ß |1> + γ |2> Where α, β and γ are the complex quantities to represent the probability amplitudes of the basis states and ψ is the wave function. This chapter will discuss about the multi-valued quantum multiplexer, demultiplexer, encoder and decoder.
16.2
Multiple-Valued Quantum Multiplexer
One of the most vital block designs in a binary digital system is the multiplexer. It is a device that allows only one input signal from a group of input signals, and the input signal selected by the multiplexer is transmitted into a single medium. Multiplexers, in fact, help to improve the efficiency of the communication system. It enables the transmission of data such as audio, video, and so on from various channels via cables. This circuit is useful for creating multi-valued arithmetic circuits. An n-to-1 multiplexer is composed of three parts. There are three n inputs, one output, and one selector line. A multi-valued Quantum n-to-1 multiplexer is depicted in Figure 16.1.
DOI: 10.1201/9781003381938-16
391
392
Multiple-Valued Quantum Combinational Circuits
FIGURE 16.1 Multi-Valued Quantum n-to-1 Multiplexer Table 16.1 and Figure 16.2, respectively, show the truth table and associative block diagram of Multi-Valued Quantum 3-to-1 Multiplexer. For, Multi-Valued Quantum 3-to-1 Multiplexer, one 1-to-3 Quantum decoder is needed to get the output of selection line S. Additionally, three multi-valued quantum AND and one multi-valued quantum OR operation are required as shown in Figure 16.2. When total inputs are 9 and the selection lines iare 2, as shown in Table 16.2, then it is multi-valued quantum 9-to-1 Multiplexer. Here, among the quantum AND operations, only one AND will provide its input to the output line via quantum OR operation. Table 16.2 shows the 9-to-1 Quantum Multiplexer Truth Table. Figure 16.3 shows the block diagram of multi-valued quantum 9-to-1 multiplexer. For 9-to-1 multiplexer, two quantum decoders and one quantum ternary OR are needed with nine quantum ternary AND operations. The output of nine quantum TABLE 16.1 Truth Table of 3-to-1 Quantum Multiplexer Inputs |S> |0> |1> |2>
Outputs |Y> |I0> |I1> |I2>
393
Multiple-Valued Quantum Multiplexer
FIGURE 16.2 Block Diagram of Multi-Valued Quantum 3-to-1 Multiplexer ternary AND operation will be the input for multi-valued quantum OR operation which will produce the final output. Additionally, to design a Multi-Valued Quantum n-to-1 Multiplexer (Figure 16.4), there will be a 3n input line that will be connected to 3n Quantum AND operation. Then a total of n selection lines will decide which input will pass through the output of Quantum OR operation. The block diagram of multi-valued quantum n-to-1 multiplexer is shown in Figure 16.4. TABLE 16.2 Truth Table of 9-to-1 Quantum Multiplexer Inputs |S1> |S0> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
Outputs |Y> |I0> |I1> |I2> |I3> |I4> |I5> |I6> |I7> |I8>
394
Multiple-Valued Quantum Combinational Circuits
FIGURE 16.3 Block Diagram of Multi-Valued Quantum 9-to-1 Multiplexer
Multiple-Valued Quantum Multiplexer
FIGURE 16.4 Block Diagram of Multi-Valued Quantum n-to-1 Multiplexer
395
396
Multiple-Valued Quantum Combinational Circuits
Multi-Valued Quantum AND Operations Multi-Valued Quantum 3-to-1 Encoder
Multi-Valued Quantum OR Operations
FIGURE 16.5 Circuit Architecture of Multi-Valued Quantum 3-to-1 Multiplexer
16.2.1
Circuit Architecture of Multiple-Valued Quantum Multiplexer
Figure 16.5 shows the construction of multi-valued Quantum 3-to-1 multiplexer circuit. In this circuit, all the inputs |I0> - |I2> connect to three different Quantum AND gates in which another input comes from the Selection line |S>. To select one particular input, qubit |0>, |1> or |2> is providing through |S> based on which one of the three output lines of the Quantum 1-to-3 Decoder gets activated and passes qubit |2> through it. Other output lines of the decoder provide qubit |0>. Thus only one Quantum AND operation is open to take the input to the output. Finally, the Quantum OR operation passes the input that comes via the Quantum AND operation to the output of the multiplexer. The architecture of the Multi-Valued Quantum 9-to-1 Multiplexer is also the same (Figure 16.6). However, as there are nine inputs, |I0> - |I8>, two selection lines are required to select only one input as the result of output |Y>. Figure 16.6 shows the circuit architecture of multi-valued quantum 9-to-1 multiplexer The whole circuit contains two quantum 1-to-3 decoders, eighteen multi-valued quantum AND operations and eight multi-valued quantum OR operations which will produce the final output.
Multiple-Valued Quantum Multiplexer
Multi-Valued Quantum 1-to-3 Decoders
FIGURE 16.6 Circuit Architecture of Multi-Valued Quantum 9-to-1 Multiplexer
397
398
Multiple-Valued Quantum Combinational Circuits
16.2.2 1.
Working Principle of Multiple-Valued Quantum Multiplexer Multi-Valued Quantum 3-to-1 Multiplexer (a) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |0> the multi-valued 3-to-1 multiplexer will activate first Quantum AND operation and provide |I0> through the output of |Y> . All other Quantum AND will remain closed |0>. (b) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |1> the multi-valued 3-to-1 multiplexer will activate second Quantum AND operation and provide |I1> through the output of |Y> . All other Quantum AND will remain closed |0>. (c) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |2> the multi-valued 3-to-1 multiplexer will activate third Quantum AND operation and provide |I2> through the output of |Y> . All other Quantum AND will remain closed |0>.
2. Multi-Valued Quantum 9-to-1 Multiplexer (a) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |0> the multi-valued 9-to-1 multiplexer will activate first Quantum AND operation and provide |I0> through the output of |Y> . All other Quantum AND will remain closed |0>. (b) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |1> the multi-valued 9-to-1 multiplexer will activate second Quantum AND operation and provide |I1> through the output of |Y> . All other Quantum AND will remain closed |0>. (c) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |2> the multi-valued 9-to-1 multiplexer will activate third Quantum AND operation and provide |I2> through the output of |Y> . All other Quantum AND will remain closed |0>. (d) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |0> the multi-valued 9-to-1 multiplexer will activate fourth Quantum AND operation and provide |I3> through the output of |Y> . All other Quantum AND will remain closed |0>. (e) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |1> the multi-valued 9-to-1 multiplexer will activate fifth Quantum AND operation and provide |I4> through the output of |Y> . All other Quantum AND will remain closed |0>. (f) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |2> the multi-valued 9-to-1 multiplexer will activate sixth Quantum AND operation and provide |I5> through the output of |Y> . All other Quantum AND will remain closed |0>. (g) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |0> the multi-valued 9-to-1 multiplexer will activate seventh Quantum AND operation and provide |I6> through the output of |Y> . All other Quantum AND will remain closed |0>.
Multiple-Valued Quantum Demultiplexer
399
(h) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |1> the multi-valued 9-to-1 multiplexer will activate eighth Quantum AND operation and provide |I7> through the output of |Y> . All other Quantum AND will remain closed |0>. (i) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |2> the multi-valued 9-to-1 multiplexer will activate ninth Quantum AND operation and provide |I8> through the output of |Y> . All other Quantum AND will remain closed |0>.
16.3
Multiple-Valued Quantum Demultiplexer
Demultiplexer circuits are among the most important circuits in the design of complex hardware. It maps a single input to multiple outputs. Thereby, a 1-to-n multivalued quantum demultiplexer consists of three main parts: one input, n selection line and 3N outputs as shown in Figure 16.7. The truth table of 1-to-3 demultiplexer is shown in Table: 16.3. Here input is I, outputs are |Y0 >, |Y1 >, |Y2 > and selection lines are S0 , S1 , S2. The selected output equals the input I and all other outputs are 0. Figure 16.8 depicts the 1-to-3 demultiplexer’s block diagram. Depending on the combination chosen, one of the decoder outputs becomes 2 while the others remain 0. One 1-to-3 quantum decoder is needed first, then three multi-valued quantum AND operations are needed to produce the outputs. Table 16.4 shows the truth table of 1-to-9 Demultiplexer. Here 2 selection lines S1 , S2 are needed to select one output line among nine.
FIGURE 16.7 1-to-n Multi-Valued Quantum Demultiplexer
400
Multiple-Valued Quantum Combinational Circuits TABLE 16.3 Truth Table of 1-to-3 Quantum Demultiplexer Inputs |S> |0> |1> |2>
|Y2 > |0> |0> |I>
Outputs |Y1 > |Y0 > |0> |I> |I> |0> |0> |0>
FIGURE 16.8 Block Diagram of Multi-Valued Quantum 1-to-3 Demultiplexer TABLE 16.4 Truth Table of 1-to-9 Quantum Demultiplexer Inputs |S1> |S0> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
|Y0> |I> |0> |0> |0> |0> |0> |0> |0> |0>
|Y1> |0> |I> |0> |0> |0> |0> |0> |0> |0>
|Y2> |0> |0> |I> |0> |0> |0> |0> |0> |0>
Outputs |Y3> |Y4> |Y5> |0> |0> |0> |0> |0> |0> |0> |0> |0> |I> |0> |0> |0> |I> |0> |0> |0> |I> |0> |0> |0> |0> |0> |0> |0> |0> |0>
|Y6> |0> |0> |0> |0> |0> |0> |I> |0> |0>
|Y7> |0> |0> |0> |0> |0> |0> |0> |I> |0>
|Y8> |0> |0> |0> |0> |0> |0> |0> |0> |I>
Circuit Architecture of Multiple-Valued Quantum Demultiplexer
401
Figure 16.9 shows the block diagram of multi-valued Quantum 1-to-9 Demultiplexer. Here the block diagram contains two 1-to-3 quantum decoders and nine multi-valued quantum AND operations to produce final outputs.
16.4
Circuit Architecture of Multiple-Valued Quantum Demultiplexer
The construction of the Multi-Valued Quantum 1-to-3 Demultiplexer circuit is shown in Figure 16.10. In this circuit, the input |I> is directly connected to all the Quantum AND operations as one input. The various outputs of selection line |S> contribute as another input to these AND operations. The result of |S> decides which output line must be activated. To select one particular output, qubit |0>, |1> or |2> is provided through |S> based on which one of the three output lines of the Quantum 1-to-3 Decoder gets activated and passes qubit |2> through it. Other output lines of the decoder provide qubit |0>. Thus only one Quantum AND operation is open to select one output among |Y0> to |Y2>. The architecture of the Multi-Valued Quantum 1-to-9 Demultiplexer also applies the same procedure shown in Figure 16.11. However, as there are nine outputs, |Y0> - |Y8>, two selection lines are required to active only one output among |Y0> - |Y8>, where other outputs remain inactive. i.e. |0>. In the above circuit, inputs are inserted into the quantum 1-to-3 decoders, then they have passed through nine multi-valued quantum AND oprerations and entered into another nine multi-valued quantum AND operations which produced the final outputs.
16.4.1 1.
Working Principle of Multiple-Valued Quantum Demultiplexer Multi-Valued Quantum 1-to-3 Demultiplexer (a) For input sequences |I>, |S> = |2>, |0> the multi-valued 1-to-3 Demultiplexer will activate first Quantum AND and provide |2> through the output of |Y0> to activate it. All other outputs |Y0> - |Y2> will remain close as remaining Quantum AND operation will generate |0>. (b) For input sequences |I>, |S> = |2>, |1> the multi-valued 1-to-3 Demultiplexer will activate second Quantum AND and provide |2> through the output of |Y1> to activate it. All other outputs |Y0> |Y2> will remain close as remaining Quantum AND operation will generate |0>. (c) For input sequences |I>, |S> = |2>, |2> the multi-valued 1-to-3 Demultiplexer will activate third Quantum AND and provide |2>
402
Multiple-Valued Quantum Combinational Circuits
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 16.9 Block Diagram of Multi-Valued Quantum 1-to-9 Demultiplexer
Circuit Architecture of Multiple-Valued Quantum Demultiplexer
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 16.10 Circuit Architecture of Multi-Valued Quantum 1-to-3 Demultiplexer
403
404
Multiple-Valued Quantum Combinational Circuits
Multi-Valued Quantum 1-to-3 Decoders
FIGURE 16.11 Circuit Architecture of Multi-Valued Quantum 1-to-9 Demultiplexer
Circuit Architecture of Multiple-Valued Quantum Demultiplexer
405
through the output of |Y2> to activate it. All other outputs |Y0> |Y2> will remain close as remaining Quantum AND operation will generate |0>. 2. Multi-Valued Quantum 1-to-9 Demultiplexer (a) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |0> the multivalued 1-to-3 Demultiplexer will activate first Quantum AND and provide |2> through the output of |Y0> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (b) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |1> the multivalued 1-to-3 Demultiplexer will activate second Quantum AND and provide |2> through the output of |Y1> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (c) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |2> the multivalued 1-to-3 Demultiplexer will activate third Quantum AND and provide |2> through the output of |Y2> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (d) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |0> the multivalued 1-to-3 Demultiplexer will activate fourth Quantum AND and provide |2> through the output of |Y3> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (e) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |1> the multivalued 1-to-3 Demultiplexer will activate fifth Quantum AND and provide |2> through the output of |Y4> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (f) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |2> the multivalued 1-to-3 Demultiplexer will activate sixth Quantum AND and provide |2> through the output of |Y5> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (g) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |0> the multivalued 1-to-3 Demultiplexer will activate seventh Quantum AND and provide |2> through the output of |Y6> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>. (h) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |1> the multivalued 1-to-3 Demultiplexer will activate eighth Quantum AND and provide |2> through the output of |Y7> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>.
406
Multiple-Valued Quantum Combinational Circuits TABLE 16.5 Truth Table of 3-to-1 Quantum Encoder |D2> |0> |0> |2>
Inputs |D1> |D0> |0> |2> |2> |0> |0> |0>
Outputs |A> |0> |1> |2>
(i) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |2> the multivalued 1-to-3 Demultiplexer will activate ninth Quantum AND and provide |2> through the output of |Y8> to activate it . All other outputs |Y0> - |Y9> will remain close as remaining Quantum AND operation will generate |0>.
16.5
Multiple-Valued Quantum Encoder
Multi-Valued Quantum Encoder is a combinational logic circuit which acts as a multi inputs and multi outputs device as it has 3n input lines and n output lines (Figure 16.12). The encoder is an important part of a digital computer. Multi-Valued Quantum Encoder encodes a decimal number to its equivalent ternary-qubit number. For example, if an input of Multi-Valued Quantum Encoder is decimal value ‘6’, then the encoder will provide qubit |2>|0> as a result. Table 16.5 represents the truth table of 3-to-1 Multi-Valued Quantum Encoder where |D0>, |D1>, and |D2> are the inputs lines and |A> is the output line. Figure 16.13 gives the idea of how a 3-to-1 Multi-Valued Quantum Encoder is designed. As given in the diagram, 3-to-1 Multi-Valued Quantum Encoder needs two
FIGURE 16.12 Multi-Valued Quantum 3n -to-n Encoder
407
Multiple-Valued Quantum Encoder TABLE 16.6 Truth Table of 9-to-2 Quantum Encoder |D8> |0> |0> |0> |0> |0> |0> |0> |0> |2>
|D7> |0> |0> |0> |0> |0> |0> |0> |2> |0>
|D6> |0> |0> |0> |0> |0> |0> |2> |0> |0>
|D5> |0> |0> |0> |0> |0> |2> |0> |0> |0>
Inputs |D4> |0> |0> |0> |0> |2> |0> |0> |0> |0>
|D3> |0> |0> |0> |2> |0> |0> |0> |0> |0>
|D2> |0> |0> |2> |0> |0> |0> |0> |0> |0>
|D1> |0> |2> |0> |0> |0> |0> |0> |0> |0>
|D0> |2> |0> |0> |0> |0> |0> |0> |0> |0>
Outputs |A1> |A0> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
multi-valued quantum AND, one multi-valued quantum NOT and one multi-valued quantum OR operation. For, Multi-Valued Quantum 9-to-2 Encoder, Table 16.6 shows the truth table where |D0> to |D8> are the nine inputs lines and |A0> and |A1> are the outputs. The block diagram of 9-to-2 Multi-Valued Quantum Encoder is displayed in Figure 16.14. In Figure 16.14, six multi-valued quantum OR operations and two multi-valued quantum AND operations are used. Here are nine inputs and two outputs.
16.5.1
Circuit Architecture of Multiple-Valued Quantum Encoder
Figure 16.15 depicts the circuit architecture of multi-valued Quantum 3-to-1 Encoder. When an input line is on, it will generate qubit |2> whereas others will be closed at |0>. Hence, each input line passes through some Quantum operations before conducting the Quantum OR operation. First, input line |D0> pass through a Quantum NOT operation to perform a Standard Ternary Inversion (STI). i.e. qubit |0> will become |2> or vice versa and |D1> conduct a DNA AND operation with qubit |1> as the other input, so that it can generate the out of |A> to |1> whenever |D1> is on. Additionally, |D2> is directly connected to the Quantum OR operation as it produces output |2>. Figure 16.16 shows the circuit architecture of multi-valued quantum 9-to-2 encoder. For a Multi-Valued Quantum 9-to-2 Encoder (Figure 16.16), the input of |D1>, |D2>, |D4>, |D5>, |D7>, and |D8> are used to get the result of |A0> after performing five Quantum OR and one Quantum AND operation. Whereas |D3>, |D4>, |D5>, |D6>, |D7>, and |D8> is needed to get the outcome of |A1> after conducting another five Quantum OR and one Quantum AND operation.
408
Multiple-Valued Quantum Combinational Circuits
Multi-Valued Multi-Valued Multi-Valued
Multi-Valued
FIGURE 16.13 Block Diagram of Multi-Valued Quantum 3-to-1 Encoder
16.5.2
Working Principle of Multiple-Valued Quantum Encoder
1. Multi-Valued Quantum 3-to-1 Encoder (a) To get Output |A> = |0>, the multi-valued 3-to-1 Encoder |D0> will be activated, whereas other input line remain closed, i.e. |0> (b) To get Output |A> = |1>, the multi-valued 3-to-1 Encoder |D1> will be activated, whereas other input line remain closed, i.e. |0> (c) To get Output |A> = |2>, the multi-valued 3-to-1 Encoder |D2> will be activated, whereas other input line remain closed, i.e. |0> 2. Multi-Valued Quantum 9-to-1 Multiplexer (a) To get Output |A1>, |A0> = |0>, |0>, the multi-valued 9-to-2 Encoder |D0> will be activated, whereas other input line remain closed, i.e. |0> (b) To get Output |A1>, |A0> = |0>, |1>, the multi-valued 9-to-2 Encoder |D1> will be activated, whereas other input line remain closed, i.e. |0> (c) To get Output |A1>, |A0> = |0>, |2>, the multi-valued 9-to-2 Encoder |D2> will be activated, whereas other input line remain closed, i.e. |0>
409
Multiple-Valued Quantum Encoder Multi-Valued Multi-Valued Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 16.14 Block Diagram of Multi-Valued Quantum 9-to-2 Encoder (d) To get Output |A1>, |A0> = |1>, |0>, the multi-valued 9-to-2 Encoder |D3> will be activated, whereas other input line remain closed, i.e. |0> (e) To get Output |A1>, |A0> = |1>, |1>, the multi-valued 9-to-2 Encoder |D4> will be activated, whereas other input line remain closed, i.e. |0> (f) To get Output |A1>, |A0> = |1>, |2>, the multi-valued 9-to-2 Encoder |D5> will be activated, whereas other input line remain closed, i.e. |0> (g) To get Output |A1>, |A0> = |2>, |0>, the multi-valued 9-to-2 Encoder |D6> will be activated, whereas other input line remain closed, i.e. |0> (h) To get Output |A1>, |A0> = |2>, |1>, the multi-valued 9-to-2 Encoder |D7> will be activated, whereas other input line remain closed, i.e. |0> (i) To get Output |A1>, |A0> = |2>, |2>, the multi-valued 9-to-2 Encoder |D8> will be activated, whereas other input line remain closed, i.e. |0>
410
Multiple-Valued Quantum Combinational Circuits
FIGURE 16.15 Circuit Architecture of Multi-Valued Quantum 3-to-1 Encoder
16.6
Multiple-Valued Quantum Decoder
Multi-Valued Quantum Decoder is a combinational logic circuit that is a multi-input and multi outputs circuit as it has n input line and 3n output lines. The multi-valued quantum n-to-3n decoder is shown in Figure 16.17. Basically, it decodes ternary qubits to their corresponding decimal number. Two Multi-Valued 1-to-3 Quantum Decoders and nine Multi-Valued Quantum AND (D0-D8) operations are used to create a 2-to-9 Quantum Decoder (Figure 16.18). The truth table for 2-to-9 Quantum Decoders is given in Table 16.7. Figure 16.18 shows the block diagram multi-valued quantum 2-to-9 decoder. Here inputs |A> and |B> are decoded by 1-to-3 quantum decoders. After decoding, three inputs are produced from each input. Single inputs are now multi-valued inputs. So, two inputs are decoded into six inputs. In the case of n number of input Quantum decoder, a total n number of 1-to3 decoder is needed to design an n-to-3n Quantum decoder. Then |D0> to |D3n > can be obtained (Figure 16.19). Figure 16.19 shows the block diagram multi-valued quantum n-to-3 n decoder.
Multiple-Valued Quantum Decoder
411
FIGURE 16.16 Circuit Architecture of Multi-Valued Quantum 9-to-2 Encoder
16.6.1
Circuit Architecture of Multiple-Valued Quantum Decoder
The construction of the Multi-Valued Quantum 2-to-9 decoder circuit is shown in Figure 16.20. In this circuit, the input, |A> and |B>, at first, pass through two 1-to3 Decoders separately so that inserted qubit, i.e. |0>, |1>, or |2> can be identified using the output of 1-to-3 decoders. Nine Quantum AND operation is used in 2-to-9 Quantum Decoder where each input of these AND operations come from the various combinations of the output of 1-to-3 decoder. Based on the value of |A> and |B> only one line of each 1-to-3 decoder generates qubit |2> along the line whereas others provide |0>. Thus only one quantum AND
412
Multiple-Valued Quantum Combinational Circuits TABLE 16.7 Truth Table of Quantum 2-to-9 Decoder |A> |0> |0> |0> |1> |1> |1> |2> |2> |2>
|B> |0> |1> |2> |0> |1> |2> |0> |1> |2>
|D8> |0> |0> |0> |0> |0> |0> |0> |0> |2>
|D7> |0> |0> |0> |0> |0> |0> |0> |2> |0>
|D6> |0> |0> |0> |0> |0> |0> |2> |0> |0>
|D5> |0> |0> |0> |0> |0> |2> |0> |0> |0>
|D4> |0> |0> |0> |0> |2> |0> |0> |0> |0>
|D3> |0> |0> |0> |2> |0> |0> |0> |0> |0>
|D2> |0> |0> |2> |0> |0> |0> |0> |0> |0>
|D1> |0> |2> |0> |0> |0> |0> |0> |0> |0>
|D0> |2> |0> |0> |0> |0> |0> |0> |0> |0>
FIGURE 16.17 Multi-Valued Quantum n-to-3n Decoder operation among |D0> to |D8>, gives the result |2>, where other outputs, |D0>-|D8> remain inactive. i.e. |0>.
16.6.2 1.
Working Principle of Multiple-Valued Quantum Decoder For input sequences |A>, |B> = |0>, |0>, the multi-valued 1-to-3 decoder will perform (|A0> && |B0>) and the |D0> line will be open. As a result, the output qubit of |D0> equal |2> and remaining lines |D1> to |D8> will remain closed |0>.
2. For input sequences |A>, |B> = |0>, |1>, the multi-valued 1-to-3 decoder will perform (|A0> && |B1>) and the |D1> line will be open. As a result, the output qubit of |D1> equal |2> and remaining lines, |D0>, |D2> to |D8> will remain closed|0>.
413
Multiple-Valued Quantum Decoder
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 16.18 Block Diagram Multi-Valued Quantum 2-to-9 Decoder
414
Multi-Valued
Multiple-Valued Quantum Combinational Circuits
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 16.19 Block Diagram Multi-Valued Quantum n-to-3 n Decoder
415
Multiple-Valued Quantum Decoder
Multi-Valued Quantum AND Operations FIGURE 16.20 Circuit Architecture of Multi-Valued Quantum 2-to-9 Decoder
416
Multiple-Valued Quantum Combinational Circuits 3. For input sequences |A>, |B> = |0>, |2>, the multi-valued 1-to-3 decoder will perform (|A0> && |B2>) and the |D2> line will be open. As a result, the output qubit of |D2> equal |2> and remaining lines, |D0>, |D1> and |D3> to |D8> will remain closed |0>. 4. For input sequences |A>, |B> = |1>, |0>, the multi-valued 1-to-3 decoder will perform (|A1> && |B0>) and the |D3> line will be open. As a result, the output qubit of |D3> equal |2> and remaining lines, |D0> to |D2> and |D4> to |D8> will remain closed |0>. 5. For input sequences |A>, |B> = |1>, |1> the multi-valued 1-to-3 decoder will perform (|A1> && |B1>) and the |D4> line will be open. As a result, the output qubit of |D4> equal |2> and remaining lines, |D0> to |D3> and |D5> to |D8> will remain closed |0>. 6. For input sequences |A>, |B> = |1>, |2>, the multi-valued 1-to-3 decoder will perform (|A1> && |B2>) and the |D5> line will be open. As a result, the output qubit of |D5> equal |2> and remaining lines, |D0> to |D4> and |D6> to |D8> will remain closed |0>. 7. For input sequences A, B= |2>, |0>, the multi-valued 1-to-3 decoder will perform (|A2> && |B0>) and the |D6> line will be open. As a result, the output qubit of |D6> equal |2> and remaining lines, |D0> to |D5> and |D7> to |D8> will remain closed |0>. 8. For input sequences |A>, |B> = |2>, |1>, the multi-valued 1-to-3 decoder will perform (|A2> && |B1>) and the |D7> line will be open.As a result, the output qubit of |D7> equal |2> and remaining lines, |D0> to |D6> and |D8> will remain closed |0>. 9. For input sequences |A>, |B> = |2>, |2>, the multi-valued 1-to-3 decoder will perform (|A2> && |B2>) and the |D8> line will be open. As a result, the output qubit of |D8> equal |2> and remaining lines, |D0> to |D7> will remain closed |0>.
16.7 Summary Quantum computing technology with many values is gaining attraction in today’s fast-paced environment. An attempt is made to give architectural approaches for designing various multi-valued quantum combinational circuits in this chapter. Each combinational circuit’s algorithms, such as adder, subtractor, multiplexer, demultiplexer, encoder, decoder, and comparator, are displayed. This chapter looks into specific architecture concepts for multi-valued quantum combinational circuits with great performance. Some combinational circuits are also shown for 2-qubit and Nqubit, together with their design techniques and functioning principles. Multi-Valued Quantum computers, as it is known, generate a lot of heat, which causes disorder
Summary
417
among qubits. As a result, the amount of heat created by these quantum combinational circuits is displayed, giving a clear picture of their efficiency. A speed calculation has also been performed to indicate how much faster they will be if this multi-valued quantum combinational circuit is implemented perfectly. All of these articles have been hypothetically implemented.
Bibliography [1] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [2] Lin, S., Kim, Y. B., & Lombardi, F. (2009). CNTFET-based design of ternary logic gates and arithmetic circuits. IEEE Transactions on Nanotechnology, 10(2), 217-225. [3] Heung, A., & Mouftah, H. T. (1985). Depletion/enhancement CMOS for a lower power family of three-valued logic circuits. IEEE Journal of Solid-State Circuits, 20(2), 609-616. [4] Monfared, A. T., & Haghparast, M. (2017). Design of novel quantum/reversible ternary adder circuits. International Journal of Electronics Letters, 5(2), 149157. [5] Zadeh, R. P., & Haghparast, M. (2011). A new reversible/quantum ternary comparator. Australian Journal of Basic and Applied Sciences, 5(12), 2348-2355.
17 Multiple-Valued DNA Combinational Circuits
17.1
Introduction
A ternary or three-valued logic function has two inputs that can take one of three states (0, 1, or 2) and produces one output signal that can take one of these three states. Two DNA sequences are utilized as inputs and one DNA sequence is used as output in ternary DNA computing. When computing ternary DNA, the sequence ACCTAG is regarded as “0,” the sequence CAAGCT strands as “1” and the sequence TGGATC as “2”. The fluorescence level is utilized to detect the DNA sequence in Ternary DNA computing. Fluorescence is defined as fluorescent molecules temporarily absorbing electromagnetic wavelengths from the visible light spectrum and then emitting light at a lower energy level. When it appears in a living creature, it’s considered biofluorescence. The light that is emitted is a different color than the light that is absorbed as a result of this. An electron is excited by stimulating light, causing its energy to rise to an unstable level.
17.2
Multiple-Valued DNA Multiplexer
A balanced multiplexer is an important component of a digital system that converts multiple inputs to a single output. This circuit is useful for creating multi-valued arithmetic circuits. An n-to-1 multiplexer is composed of three parts. There are three N inputs, one output, and one selector line. A block diagram of multi-valued DNA n-to-1 Multiplexer is depicted in Figure 17.1. Table 17.1 and Figure 17.2, respectively, show the truth table and associative block diagram of Multi-Valued DNA 3-to-1 Multiplexer. Using the truth table (Table 17.1), the block diagram is designed where a 1-to-3 Decoder is used to activate the selection line. In Figure 17.2, the block diagram of multi-valued DNA 3-to-1 multiplexer consists of three multi-valued DNA AND operations and one OR operation. Three inputs and one selection line is decoded into three selection lines by 1-to-3 DNA decoder.
DOI: 10.1201/9781003381938-17
419
420
Multiple-Valued DNA Combinational Circuits
FIGURE 17.1 Multi-Valued n-to-1 DNA Multiplexer TABLE 17.1 Truth Table of Multi-Valued DNA 3-to-1 Multiplexer Inputs S ACCTAG CAAGCT TGGATC
Outputs Y I0 I1 I2
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.2 Block Diagram of Multi-Valued DNA 3-to-1 Multiplexer
Multi-Valued
421
Multiple-Valued DNA Multiplexer TABLE 17.2 Truth Table of Multi-Valued DNA 9-to-1 Multiplexer Inputs S1 S0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
Outputs Y I0 I1 I2 I3 I4 I5 I6 I7 I8
When total inputs are 9 and the selection line is 2, Table 17.2 provides a truth table of Multi-Valued DNA 9-to-1 Multiplexer. Here, among the DNA AND operations, only one DNA AND operation will provide its input to the output line via DNA OR operation. Figure 17.3 gives the block diagram of the Multi-Valued DNA 9-to-1 Multiplexer. Additionally, a block diagram of Multi-Valued DNA n-to-1 Multiplexer is shown in Figure 17.4, there will be a 3n input line which will be connected to 3n DNA AND operation. Then a total of n selection lines will decide which input will pass through the output of DNA OR operation.
17.2.1
Circuit Architecture of Multiple-Valued DNA Multiplexer
Figure 17.5 shows the construction of Multi-Valued DNA 3-to-1 multiplexer circuit. In this circuit, all the inputs I0 - I2 connect to three different DNA AND gates in which another input comes from the Selection line S. To select one particular input, molecular sequence ACCTAG, CAAGCT or TGGATC is provided through S to represent 1, 2, or 3, respectively. Based on this output of the selection line one of the three output lines of the DNA 1-to-3 Decoder gets activated and passes molecular sequence TGGATC through it. Other output lines of the decoder provide molecular sequence ACCTAG. Thus only one DNA AND operation is open to take the input to the output. Finally, the DNA OR operation passes the input that comes via the DNA AND operation to the output of the multiplexer. The circuit architecture of the Multi-Valued DNA 9-to-1 Multiplexer is also the same which is shown in Figure 17.6. However, as there are nine inputs, I0 - I8, two selection lines are required to select only one input as the result of output Y.
422
Multiple-Valued DNA Combinational Circuits
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.3 Block Diagram of Multi-Valued DNA 9-to-1 Multiplexer
17.2.2
Working Principle of Multiple-Valued DNA Multiplexer
The working principle of Multiple-Valued DNA multiplexers are explained in this section.
423
Multiple-Valued DNA Multiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
FIGURE 17.4 Block Diagram of Multi-Valued DNA n-to-1 Multiplexer 1. Multi-Valued DNA 3-to-1 Multiplexer (a) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and ACCTAG which represent 2, 2, 2, and 0, the multi-valued 3-to-1 multiplexer will activate first DNA AND and provide I0 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (b) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and CAAGCT which represent 2, 2, 2, and 1, the multi-valued 3-to-1 multiplexer will activate first DNA AND and provide I1 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (c) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and TGGATC which represent 2, 2, 2, and 2, the multi-valued 3-to-1 multiplexer will activate first DNA AND and provide I2 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. 2. Multi-Valued DNA 9-to-1 Multiplexer (a) When all the input sequences I0-I9 are TGGATC, and S0, S1 = ACCTAG , ACCTAG the multi-valued 9-to-1 multiplexer will activate first DNA AND and provide I0 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. .
424
Anneal >60o
DNA AND DNA OR
DNA AND
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Multi-Valued DNA 1-to-3 Decoders
Anneal >60o
Anneal >60o
Anneal >60o
Multiple-Valued DNA Combinational Circuits
DNA OR
DNA AND FIGURE 17.5 Circuit Architecture of Multi-Valued DNA 3-to-1 Multiplexer (b) When all the input sequences I0-I9 are TGGATC, and S0, S1 = ACCTAG , CAAGCT the multi-valued 9-to-1 multiplexer will activate second DNA AND and provide I1 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (c) When all the input sequences I0-I9 are TGGATC, and S0, S1 = ACCTAG , TGGATC the multi-valued 9-to-1 multiplexer will activate a third DNA AND and provide I2 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (d) When all the input sequences I0-I9 are TGGATC, and S0, S1 = CAAGCT , ACCTAG the multi-valued 9-to-1 multiplexer will activate fourth DNA AND and provide I3 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. . (e) When all the input sequences I0-I9 are TGGATC, and S0, S1 = CAAGCT , CAAGCT the multi-valued 9-to-1 multiplexer will
425
Multiple-Valued DNA Multiplexer
DNA Ternary AND Operations
Multi-Valued DNA Anneal >60o 1-to-3 Decoder Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Multi-Valued DNA Anneal >60o 1-to-3 Decoder Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
DNA Ternary OR Operations Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 17.6 Circuit Architecture of Multi-Valued DNA 9-to-1 Multiplexer
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
426
Multiple-Valued DNA Combinational Circuits
(f)
(g)
(h)
(i)
17.3
activate fifth DNA AND and provide I4 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. When all the input sequences I0-I9 are TGGATC, and S0, S1 = CAAGCT , TGGATC the multi-valued 9-to-1 multiplexer will activate a sixth DNA AND and provide I5 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. When all the input sequences I0-I9 are TGGATC, and S0, S1 = TGGATC, ACCTAG the multi-valued 9-to-1 multiplexer will activate seventh DNA AND and provide I6 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. . When all the input sequences I0-9 are TGGATC, and S0, S1 = TGGATC, CAAGCT the multi-valued 9-to-1 multiplexer will activate eighth DNA AND and provide I7 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. When all the input sequences I0-I9 are TGGATC, and S0, S1 = TGGATC, TGGATC the multi-valued 9-to-1 multiplexer will activate the ninth DNA AND and provide I8 through the output of Y. All other DNA AND will remain closed i.e. ACCTAG.
Multiple-Valued DNA Demultiplexer
Demultiplexer circuits are among the most important circuits in the design of complex hardware. It convets a single input to multiple outputs. Thereby, a 1-to-n MultiValued DNA Demultiplexer consists of three main parts: one input, N selection line and 3N outputs as shown in Figure 17.7. The truth table of Multi-Valued DNA 1-to-3 Demultiplexer is shown in Table 17.3 where only the selected output equals the input I and all other outputs are 0. To
Multi-Valued DNA
FIGURE 17.7 Multi-Valued 1-to-n DNA Demultiplexer
427
Multiple-Valued DNA Demultiplexer TABLE 17.3 Truth Table of 1-to-3 Demultiplexer Inputs S ACCTAG CAAGCT TGGATC
Outputs Y2 ACCTAG ACCTAG I
Y1 ACCTAG I ACCTAG
Y0 I ACCTAG ACCTAG
represent 0, 1, and 2 in the molecular sequence, ACCTAG, CAAGCT and TGGATC are used, respectively. Figure 17.8 depicts the 1-to-3 demultiplexer’s block diagram. Depending on the combination chosen, one of the decoder outputs becomes 2 while the others remain 0. Table 17.4 shows the truth table of multi-valued DNA 1-to-9 Demultiplexer, where 2 selection lines are needed to select one output line among nine. Figure 17.9 gives the block diagram of Multi-Valued DNA 1-to-9 Demultiplexer.
17.3.1
Circuit Architecture of Multiple-Valued DNA Demultiplexer
The construction of the Multi-Valued DNA 1-to-3 Demultiplexer circuit is shown in Figure 17.10. In this circuit, the input I is directly connected to all the DNA AND operations as one input. The various outputs of selection line S contribute as another input of these AND operations. The result of S decides which output line must be activated. To select one particular input, molecular sequence ACCTAG, CAAGCT or TGGATC is provided through S to represent 1, 2, or 3, respectively. Based on this output of the selection line one of the three output lines of the DNA 1-to-3 Decoder
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.8 Block Diagram of Multi-Valued DNA 1-to-3 Demultiplexer
Inputs S1 S0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
Y8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I
TABLE 17.4 Truth Table of 1-to-9 Demultiplexer
Y7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG
Y6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG
Y5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG
Outputs Y4 ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG Y3 ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y2 ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y1 ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y0 I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
428 Multiple-Valued DNA Combinational Circuits
429
Multiple-Valued DNA Demultiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.9 Block Diagram of Multi-Valued DNA 1-to-9 Demultiplexer gets activated and passes molecular sequence TGGATC through it. Other output lines of the decoder provide molecular sequence ACCTAG. Thus only one DNA AND operation is open to select one output among Y0 to Y2. The architecture of the Multi-Valued DNA 1-to-9 Demultiplexer also applies the same procedure (Figure 17.11). However, as there are nine outputs, Y0 - Y8, two selection lines are required to activate only one output among Y0 - Y8, where other outputs remain inactive. i.e. ACCTAG.
17.3.2
Working Principle of Multiple-Valued DNA Demultiplexer
The working principle of Multiple-Valued DNA Demultiplexers are explained in this section. 1.
Multi-Valued DNA 1-to-3 Demultiplexer (a) For input sequences I, S = TGGATC, ACCTAG which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate first DNA
430
Multiple-Valued DNA Combinational Circuits
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o Anneal >60o
DNA AND
Anneal >60o
DNA AND
Anneal >60o
DNA AND
FIGURE 17.10 Circuit Architecture of Multi-Valued DNA 1-to-3 Demultiplexer AND and provide “2”, TGGATC, through the output of Y0 . All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (b) For input sequences I, S = TGGATC, CAAGCT which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate a second DNA AND and provide “2”, TGGATC, through the output of Y1 . All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (c) For input sequences I, S = TGGATC, TGGATC which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate third DNA AND and provide “2”, TGGATC, through the output of Y2. All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. 2. Multi-Valued DNA 1-to-9 Demultiplexer (a) When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, ACCTAG ; the multi-valued 1-to-9 Demultiplexer will activate first DNA AND and provide “2”, TGGATC, through the output of Y0 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (b) When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, CAAGCT ; the multi-valued 1-to-9 Demultiplexer will activate
431
Multiple-Valued DNA Demultiplexer
Multi-Valued DNA AND Operations Anneal >60o Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 17.11 Circuit Architecture of Multi-Valued DNA 1-to-9 Demultiplexer
Anneal >60o
432
Multiple-Valued DNA Combinational Circuits
(c)
(d)
(e)
(f)
(g)
(h)
(i)
second DNA AND and provide “2”, TGGATC, through the output of Y1 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, TGGATC; the multi-valued 1-to-9 Demultiplexer will activate third DNA AND and provide “2”, TGGATC, through the output of Y2 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = CAAGCT , ACCTAG ; the multi-valued 1-to-9 Demultiplexer will activate fourth DNA AND and provide “2”, TGGATC, through the output of Y3 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = CAAGCT, CAAGCT ; the multi-valued 1-to-9 Demultiplexer will activate fifth DNA AND and provide “2”, TGGATC, through the output of Y4 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = CAAGCT, TGGATC; the multi-valued 1-to-9 Demultiplexer will activate sixth DNA AND and provide “2”, TGGATC, through the output of Y5 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = TGGATC, ACCTAG ; the multi-valued 1-to-9 Demultiplexer will activate seventh DNA AND and provide “2”, TGGATC, through the output of Y6 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = TGGATC, CAAGCT ; the multi-valued 1-to-9 Demultiplexer will activate eighth DNA AND and provide “2”, TGGATC, through the output of Y7 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. When the input qubit, I = TGGATC, and S0, S1 = TGGATC, TGGATC; the multi-valued 1-to-9 Demultiplexer will activate ninth DNA AND and provide “2”, TGGATC, through the output of Y8 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG.
433
Multiple-Valued DNA Encoder
FIGURE 17.12 Multi-Valued DNA 3n -to-n Encoder
17.4
Multiple-Valued DNA Encoder
Multi-Valued DNA Encoder is a combinational logic circuit which acts as a multiinputs and multi outputs device as it has 3n input lines and n output lines (Figure 17.12). Encoder is an important part of a digital computer. Multi-Valued DNA Encoder encodes a decimal number to its equivalent ternary-molecular sequence number. For example, if an input of a Multi-Valued DNA Encoder is decimal value ‘6’, then the encoder will provide the molecular sequence ‘TGGATC’ ‘ACCTAG’ as a result. Table 17.5 represents the truth table of 3-to-1 Multi-Valued DNA Encoder where D0, D1, and D2 are the input lines and A is the output line. Figure 17.13 gives the idea of how a 3-to-1 Multi-Valued DNA Encoder is designed. As given in the diagram, 3-to-1 Multi-Valued DNA Encoder needs two DNA AND, one DNA NOT and one DNA OR operation. Table 17.6 shows the truth table for multi-valued DNA 9-to-2 Encoder where D0 to D8 are the nine input lines and A0 and A1 are the outputs. The block diagram of 9-to-2 Multi-Valued DNA Encoder is displayed in Figure 17.14.
TABLE 17.5 Truth Table of Multi-Valued 3-to-1 DNA Encoder Inputs D2 ACCTAG ACCTAG TGGATC
D1 ACCTAG TGGATC ACCTAG
D0 TGGATC ACCTAG ACCTAG
Outputs A ACCTAG CAAGCT TGGATC
D8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
D7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG
D6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG
D5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG
TABLE 17.6 Truth Table of Multi-Valued 9-to-2 DNA Encoder Inputs D4 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG D3 ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D1 ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D0 TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Outputs A1 A0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
434 Multiple-Valued DNA Combinational Circuits
435
Multiple-Valued DNA Encoder Multi-Valued Multi-Valued Multi-Valued
Multi-Valued
FIGURE 17.13 Block Diagram of Multi-Valued DNA 3-to-1 Encoder
17.4.1
Circuit Architecture of Multiple-Valued DNA Encoder
Figure 17.15 depicts the architecture of Multi-Valued DNA 3-to-1 Encoder. As when an input line is on, it will generate a molecular sequence ‘TGGATC’, which represents ‘2’, whereas others will be closed at ‘ACCTAG’, as it represents ‘0’. Hence, each input line passes through some DNA operations before conducting the DNA OR operation. First, input line D0 passes through a DNA NOT operation to
Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.14 Block Diagram of Multi-Valued 9-to-2 DNA Encoder
436
Ternary DNA NOT
Ternary DNA AND Ternary DNA OR
Anneal >60o
Anneal >60o
Anneal >60o
Ternary DNA AND
Anneal o >60
Multiple-Valued DNA Combinational Circuits
FIGURE 17.15 Circuit Architecture of Multi-Valued DNA 3-to-1 Encoder perform a Standard Ternary Inversion (STI). That is, sequence ‘ACCTAG’ will become ‘TGGATC’ or vice versa and D1 conduct a DNA AND operation with the molecular sequence ‘CAAGCT’, which represent ‘1’, as the other input, so that it can generate the out of A to ‘CAAGCT’ whenever D1 is on. Additionally, D2 directly connected to the DNA OR operation as it produces output ‘TGGATC’. For a Multi-Valued DNA 9-to-2 Encoder (Figure 17.16), the input of D1, D2, D4, D5, D7, and D8 are used to get the result of A0 after performing five DNA OR and one DNA AND operation. Whereas D3 to D8 is needed to get the outcome of A1 after conducting another five DNA OR and one DNA AND operation. The Block Diagram of Multi-Valued DNA 9-to-2 Encoder is depicted in Figure 17.16.
17.4.2
Working Principle of Multiple-Valued DNA Encoder
The working principle of Multiple-Valued DNA Encoders are explained in this section. 1. Multi-Valued DNA 3-to-1 Encoder (a) To get Output A = ACCTAG , the multi-valued 3-to-1 Encoder D0 will be activated, whereas other input lines remain closed, i.e. ACCTAG
437
Multiple-Valued DNA Encoder
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 17.16 Circuit Architecture of Multi-Valued DNA 9-to-2 Encoder (b) To get Output A = CAAGCT, the multi-valued 3-to-1 Encoder D1 will be activated, whereas other input lines remain closed, i.e. ACCTAG (c) To get Output A = TGGATC, the multi-valued 3-to-1 Encoder D2 will be activated, whereas other input lines remain closed, i.e. ACCTAG 2. Multi-Valued DNA 9-to-1 Multiplexer (a) To get Output A1, A0 = ACCTAG, ACCTAG, the multi-valued 9to-2 Encoder D0 will be activated, whereas other input lines remain closed, i.e. ACCTAG (b) To get Output A1, A0 = ACCTAG, CAAGCT, the multi-valued
438
Multiple-Valued DNA Combinational Circuits
(c)
(d)
(e)
(f)
(g)
(h)
(i)
17.5
9-to-2 Encoder D1 will be activated, whereas other input lines remain closed, i.e. ACCTAG To get Output A1, A0 = ACCTAG, TGGATC, the multi-valued 9to-2 Encoder D2 will be activated, whereas other input lines remain closed, i.e. ACCTAG To get Output A1, A0 = CAAGCT, ACCTAG, the multi-valued 9to-2 Encoder D3 will be activated, whereas other input lines remain closed, i.e. ACCTAG To get Output A1, A0 = CAAGCT, CAAGCT, the multi-valued 9to-2 Encoder D4 will be activated, whereas other input lines remain closed, i.e. ACCTAG To get Output A1, A0 = CAAGCT, TGGATC, the multi-valued 9to-2 Encoder D5 will be activated, whereas other input lines remain closed, i.e. ACCTAG To get Output A1, A0 = TGGATC , ACCTAG, the multi-valued 9to-2 Encoder D6 will be activated, whereas other input line remain closed, i.e. ACCTAG To get Output A1, A0 = TGGATC, CAAGCT, the multi-valued 9to-2 Encoder D7 will be activated, whereas other input line remain closed, i.e. ACCTAG To get Output A1, A0 = TGGATC , TGGATC, the multi-valued 9to-2 Encoder D8 will be activated, whereas other input line remain closed, i.e. ACCTAG
Multiple-Valued DNA Decoder
The Multi-Valued DNA Decoder is a combinational logic circuit with n input lines and 3n output lines, as shown in Figure 17.17. Essentially, it converts a ternarymolecular DNA sequence to its equivalent decimal value. A 2-to-9 DNA Decoder is built using two Multi-Valued 1-to-3 DNA Decoders and nine Multi-Valued DNA AND (D0-D8) operations (Figure 17.18). Table 17.7 contains the truth table for 2-to-9 DNA Decoders. Figure 17.18 shows the block diagram multi-valued DNA 2-to-9 decoder. Here two inputs are A and B will be decoded into six inputs. Nine multi-valued DNA AND operations are needed here to contruct Multi-Valued DNA 2-to-9 Decoder. Figure 17.19 shows the block diagram multi-valued DNA n-to-3 n Decoder. In the case of n input DNA decoders, a total of n 1-to-3 decoders are required to design an n-to-3n DNA decoder. Then it will be able to get from D0 to D3 n.
Input A B ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
D8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
D7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG
TABLE 17.7 Truth Table of Multi-Valued DNA 2-to-9 Decoder D6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG
D5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG
Output D4 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG D3 ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D1 ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D0 TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Multiple-Valued DNA Decoder 439
440
Multiple-Valued DNA Combinational Circuits
FIGURE 17.17 Multi-Valued DNA n-to- 3 n Decoder
17.5.1
Circuit Architecture of Multiple-Valued DNA Decoder
The construction of the Multi-Valued DNA 2-to-9 decoder circuit is shown in Figure 17.20. In this circuit, the input, A and B, at first, pass through two 1-to-3 Decoders separately so that inserted DNA molecular sequence, i.e. ACCTAG, CAAGCT or TGGATC, which represent “1”, “2” and “3”, respectively, can be identified using the output of 1-to-3 decoders. Nine DNA AND operation is used in 2-to-9 DNA Decoder where each input of these AND operations come from the various combinations of the output of 1-to-3 decoder. Based on the value of A and B only one line of each 1-to-3 decoder generates sequence TGGATC along the line whereas others provide ACCTAG. Thus only one DNA AND operation among D0 to D8, gives the result TGGATC where other outputs, D0-D8 remain inactive. i.e. ACCTAG.
17.5.2
Working Principle of Multiple-Valued DNA Decoder
The working principle of Multiple-Valued DNA Decoders are explained in this section. 1. For input sequences A, B =ACCTAG, ACCTAG, the multi-valued 1-to3 decoder will perform (A0 && B0) and the D0 line will be open. As a result, the output sequence of D0 equal TGGATC and remaining lines, D1 to D8 will remain closed, i.e. ACCTAG. 2. For input sequences A, B =ACCTAG, CAAGCT, the multi-valued 1-to3 decoder will perform (A0 && B1) and the D1 line will be open. As a result, the output sequence of D1 equal TGGATC and remaining lines, D0, D2 to D8 will remain closed, i.e. ACCTAG. 3. For input sequences A, B =ACCTAG, TGGATC, the multi-valued 1-to3 decoder will perform (A0 && B2) and the D2 line will be open. As a
441
Multiple-Valued DNA Decoder
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 17.18 Block Diagram Multi-Valued DNA 2-to-9 Decoder
442
Multi-Valued DNA
Multiple-Valued DNA Combinational Circuits
Multi-Valued
Multi-Valued
Multi-Valued DNA
Multi-Valued DNA
Multi-Valued DNA
FIGURE 17.19 Block Diagram Multi-Valued DNA n-to-3 n Decoder
Anneal >60 o
Anneal >60 o
Multi-Valued DNA 1-to-3 Decoders
FIGURE 17.20 Circuit Architecture of Multi-Valued DNA 2-to-9 Decoder
Anneal >60 o
Anneal >60o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Multiple-Valued DNA Decoder 443
Multi-Valued DNA AND Operations
444
Multiple-Valued DNA Combinational Circuits result, the output sequence of D2 equal TGGATC and remaining lines, D0, D1 and D3 to D8 will remain closed, i.e. ACCTAG. 4. For input sequences A, B =CAAGCT, ACCTAG, the multi-valued 1-to3 decoder will perform (A1 && B0) and the D3 line will be open. As a result, the output sequence of D3 equal TGGATC and remaining lines, D0 to D2, and D4 to D8 will remain closed, i.e. ACCTAG. 5. For input sequences A, B =CAAGCT, CAAGCT, the multi-valued 1-to3 decoder will perform (A1 && B1) and the D4 line will be open. As a result, the output sequence of D4 equal TGGATC and remaining lines, D0 to D3, and D5 to D8 will remain closed, i.e. ACCTAG. 6. For input sequences A, B =CAAGCT, TGGATC, the multi-valued 1-to3 decoder will perform (A1 && B2) and the D5 line will be open. As a result, the output sequence of D5 equal TGGATC and remaining lines, D0 to D4, and D6 to D8 will remain closed, i.e. ACCTAG. 7. For input sequences A, B =TGGATC, ACCTAG, the multi-valued 1-to3 decoder will perform (A2 && B0) and the D6 line will be open. As a result, the output sequence of D6 equal TGGATC and remaining lines, D0 to D5, D7, and D8 will remain closed, i.e. ACCTAG. 8. For input sequences A, B =TGGATC, CAAGCT, the multi-valued 1-to3 decoder will perform (A2 && B1) and the D7 line will be open. As a result, the output sequence of D7 equal TGGATC and remaining lines, D0 to D6, D8 will remain closed, i.e. ACCTAG. 9. For input sequences A, B =TGGATC, TGGATC, the multi-valued 1-to3 decoder will perform (A2 && B2) and the D8 line will be open. As a result, the output sequence of D8 equal TGGATC and remaining lines, D0 to D7 will remain closed, i.e. ACCTAG.
17.6 Summary Multi-Valued DNA computing is gaining popularity as a result of the tread technology. This chapter makes an attempt to provide architectural concepts for the development of different Multi-Valued DNA combinational circuits. Each combinational circuit’s algorithms, such as adder, subtractor, multiplexer, demultiplexer, encoder, decoder, and comparator, are displayed. The architecture designs for high-performance DNA combinational circuits are discussed in this chapter. Some combinational circuits for 2 molecular DNA sequence and N-molecular DNA sequence, as well as their design approaches and operating principles are also shown. As it is known to all, multi-valued DNA computers require a lot of heat to complete the reactions, as a result, the quantity of heat required by these Multi-Valued DNA combinational circuits is shown, providing a clear image of their efficiency. A speed calculation was
Summary
445
also performed to see how much quicker these Multi-Valued DNA combinational circuits would be if they were perfectly implemented. All of these articles have been implemented hypothetically.
Bibliography [1] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [2] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [3] Giri, S., & Saraswathi, M. N. (2012). Implementation of combinational circuits using ternary multiplexer. International Journal of Computational Engineering Research, 2(2), 457-463. [4] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE.
18 Multiple-Valued Quantum-DNA Combinational Circuits
18.1
Introduction
As discussed in the previous chapters, biomolecules and biomolecular processes are meant to apply computational algorithms in DNA computing. Quantum computing involves performing calculations at a scale where quantum mechanical effects are significant. Both of these new computing paradigms have been considered as potential successors to solid-state computers. Both of these qualities could be captured by combining DNA and quantum computers. DNA computers could self-assemble quantum logic circuits from DNA strand-attached gates. Furthermore, quantum computers might be built directly from the physical properties of the DNA molecule. Multi-Valued logic enhances the advantages of this combination. The combination of this quantum computing and DNA computing is called quantum molecular biology. This chapter will describe the combinational circuits in multi-valued quantum-DNA computing.
18.2
Multiple-Valued Quantum-DNA Multiplexer
A balanced multiplexer is an essential component of a digital system that converts multiple inputs to a single output. This circuit is useful for building multi-valued arithmetic circuits. There are three parts of n-to-1 multiplexer. There are 3n inputs, 1 output, and an n selector line. In a multi-valued Quantum-DNA n-to-1 Multiplexer, all the inputs perform some quantum operations then the output of those quantum operations conduct the remaining operations in DNA computing to generate the final output of the Quantum-DNA Multiplexer. Table 18.1 and Figure 18.1, respectively, show the truth table and associative block diagram of Multi-Valued Quantum-DNA 3-to-1 Multiplexer For Multi-Valued Quantum-DNA 3-to-1 Multiplexer, one 1-to-3 Quantum decoder is needed to get the output of selection line S. Additionally, three DNA AND and one DNA OR operation is required as shown in Figure 18.1. To match the speed between Quantum and DNA operation a Quantum cache Memory is used. Data DOI: 10.1201/9781003381938-18
447
448
Multiple-Valued Quantum-DNA Combinational Circuits TABLE 18.1 Truth Table of Multi-Valued 3-to-1 Quantum-DNA Multiplexer Inputs |S> |0> |1> |2>
Outputs Y I0 I1 I2
conversion circuits are used to convert qubits into DNA sequences. A heat transfer circuit is used here to transfer ecvessive heat produced from quantum part to DNA part, because DNA part needs extra heat to conduct computations. When total inputs are 9 and the selection line is 2, as shaown in Table 18.2. Table 18.2 shows the 9-to-1 Quantum-DNA Multiplexer Truth Table. In Multi-Valued Quantum-DNA 9-to-1 Multiplexer, the quantum AND operations will take all inputs and the outputs of these will be passing through the quantum cache memory and data conversion circuit. Finally, these outputs from the quantumpart will be the input to the DNA OR operation. DNA OR operation will produce the final output. Figure 18.2 gives the block diagram of Multi-Valued Quantum-DNA 9-to-1 Multiplexer.
18.2.1
Circuit Architecture of Multiple-Valued Quantum-DNA Multiplexer
Figure 18.3 shows the construction of Multi-Valued Quantum-DNA 3-to-1 multiplexer circuit. In this circuit, all the inputs |I0> - |I2> connect to three different DNA AND gates after performing data conversion, NMR relaxation, via Quantum cache memory in which another input comes from the Selection line |S>. TABLE 18.2 Truth Table of Multi-Valued 9-to-1 Quantum-DNA Multiplexer Inputs |S1> |S0> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
Outputs Y I0 I1 I2 I3 I4 I5 I6 I7 I8
449
Multiple-Valued Quantum-DNA Multiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.1 Block Diagram of Multi-Valued Quantum-DNA 3-to-1 Multiplexer
450
Multiple-Valued Quantum-DNA Combinational Circuits
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.2 Block Diagram of Multi-Valued Quantum-DNA 9-to-1 Multiplexer
Multi-Valued
451
Multiple-Valued Quantum-DNA Multiplexer
NMR Relaxation
Annealo >60 Annealo >60 Annealo >60 Annealo >60
Annealo >60
Quantum Cache Memory
FIGURE 18.3 Circuit Architecture of Multi-Valued Quantum-DNA 3-to-1 Multiplexer To select one particular input, qubit |0>, |1> or |2> is provided through |S> based on which one of the three output lines of the Quantum 1-to-3 Decoder gets activated and passes qubit |2> through it. Other output lines of the decoder provide qubit |0>. Thus only one DNA AND operation is open to take the input to the output. Finally,
452
Multiple-Valued Quantum-DNA Combinational Circuits
the DNA OR operation passes the input that comes via the DNA AND operation to the output of the multiplexer. The architecture of the Multi-Valued Quantum-DNA 9-to-1 Multiplexer is also the same (Figure 18.4). However, as there are nine inputs, |I0> - |I8>, two selection lines are required to select only one input as the result of output Y.
18.2.2
Working Principle of Multiple-Valued Quantum-DNA Multiplexer
1. Multi-Valued Quantum-DNA 3-to-1 Multiplexer (a) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |0> the multi-valued 3-to-1 multiplexer will activate first DNA AND and provide I0 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (b) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |1> the multi-valued 3-to-1 multiplexer will activate the second DNA AND and provide I1 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (c) For input sequences |I0>, |I1>, |I2>, |S> = |2>, |2>, |2>, |2> the multi-valued 3-to-1 multiplexer will activate third DNA AND and provide I2 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. 2. Multi-Valued Quantum 9-to-1 Multiplexer (a) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |0> the multi-valued 9-to-1 multiplexer will activate first DNA AND and provide I0 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (b) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |1> the multi-valued 9-to-1 multiplexer will activate a second DNA AND and provide I1 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (c) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |0>, |2> the multi-valued 9-to-1 multiplexer will activate third DNA AND and provide I2 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (d) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |0> the multi-valued 9-to-1 multiplexer will activate fourth DNA AND and provide I3 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (e) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |1> the multi-valued 9-to-1 multiplexer will activate fifth DNA AND and provide I4 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG.
453
Multiple-Valued Quantum-DNA Multiplexer
Quantum 1-to3 Decoders
Multi-Valued DNA OR Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Multi-Valued Quantum AND
NMR Relaxation
Anneal >60o
Anneal >60o
FIGURE 18.4 Circuit Architecture of Multi-Valued Quantum-DNA 9-to-1 Multiplexer
454
Multiple-Valued Quantum-DNA Combinational Circuits (f) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |1>, |2> the multi-valued 9-to-1 multiplexer will activate sixth DNA AND and provide I5 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (g) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |0> the multi-valued 9-to-1 multiplexer will activate seventh DNA AND and provide I6 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (h) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |1> the multi-valued 9-to-1 multiplexer will activate eighth DNA AND and provide I7 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG. (i) When all the input sequences |I0>- |I9> are |2>, and |S0>,|S1> = |2>, |2> the multi-valued 9-to-1 multiplexer will activate the ninth DNA AND and provide I8 through the output of Y . All other DNA AND will remain closed i.e. ACCTAG.
18.3
Multiple-Valued Quantum-DNA Demultiplexer
Demultiplexer circuits are among the most important circuits in the design of complex hardware. It maps a single input to multiple outputs. Thereby, a 1-to-n QuantumDNA Demultiplexer consists of three main parts: one input, n selection line, and 3n outputs. In a multi-valued Quantum-DNA 1-to-n Demultiplexer, all the inputs perform some Quantum operation then the output of those conduct the remaining operation in DNA to generate the final output of the Quantum-DNA Demultiplexer. The truth table of Multi-Valued Quantum-DNA 1-to-3 Demultiplexer is shown in Table 18.3. Here only the selected output equals the input |I> and all other outputs are 0. To represent qubit |0>, |1>, and |2>, in the molecular sequence ACCTAG, CAAGCT and TGGATC are used, respectively. Figure 18.5 depicts the Quantum-DNA 1-to-3 demultiplexer’s block diagram. Depending on the combination chosen, one of the decoder outputs becomes |2> while the others remain |0>. TABLE 18.3 Truth Table of Multi-Valued Quantum-DNA 1-to-3 Demultiplexer Inputs S |0> |1> |2>
|Y2 > ACCTAG ACCTAG I
Outputs |Y1 > ACCTAG I ACCTAG
|Y0 > I ACCTAG ACCTAG
455
Multiple-Valued Quantum-DNA Demultiplexer
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.5 Block Diagram of Multi-Valued Quantum-DNA 1-to-3 Demultiplexer Table 18.6 shows the truth table of multi-valued Quantum-DNA 1-to-9 Demultiplexer. Here two selection lines (S1 and S2) are needed to select one output line among nine. Figure 18.6 gives the block diagram of Multi-Valued Quantum-DNA 1-to-9 Demultiplexer. Here nine output lines produced by nine multi-valued DNA AND operations. Input I and two selection lines are decoded into six lines by two quantum decoders.
18.3.1
Circuit Architecture of Multiple-Valued Quantum-DNA Demultiplexer
The construction of the Multi-Valued Quantum-DNA 1-to-3 Demultiplexer circuit is shown in Figure 18.7. In this circuit, the input, |I> is directly connected to all the DNA AND operations as one input after going through an NMR relaxation to convert qubits into the molecular sequence. The various outputs of selection line |S> contribute as another input of these DNA AND operations after passing through NMR as well. The result of |S> decides which output line must be activated. To select one particular output, qubit |0>, |1> or |2> is provided through |S> based on which one of the three output lines of the Quantum 1-to-3 Decoder gets activated and passes molecular sequence TGGATC through after NMR. Other
Inputs S1 S0 |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
Y8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I
Y7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG
Y6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG
Y5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG
Outputs Y4 ACCTAG ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG
TABLE 18.4 Truth Table of Multi-Valued Quantum-DNA 1-to-9 Demultiplexer Y3 ACCTAG ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y2 ACCTAG ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y1 ACCTAG I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Y0 I ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
456 Multiple-Valued Quantum-DNA Combinational Circuits
457
Multiple-Valued Quantum-DNA Demultiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.6 Block Diagram of Multi-Valued Quantum-DNA 1-to-9 Demultiplexer
458
Multiple-Valued Quantum-DNA Combinational Circuits
Anneal >60o
Anneal >60o Anneal >60o
FIGURE 18.7 Circuit Architecture of Multi-Valued Quantum-DNA 1-to-3 Demultiplexer
Multiple-Valued Quantum-DNA Demultiplexer
459
output lines of the decoder provide molecular sequence ACCTAG. Thus only one DNA AND operation is open to select one output among Y0 to Y2. The architecture of the Multi-Valued Quantum-DNA 1-to-9 Demultiplexer also applies the same procedure (Figure 18.8). However, as there are nine outputs, Y0 - Y8, two selection lines are required to activate only one output among Y0 - Y8, where other outputs remain inactive. i.e. ACCTAG.
18.3.2 1.
Working Principle of Multiple-Valued Quantum-DNA Demultiplexer Multi-Valued Quantum 1-to-3 Demultiplexer (a) For input sequences |I>, |S> = |2>, |0> the multi-valued 1-to-3 Demultiplexer will activate first DNA AND and provide “2”, TGGATC, through the output of Y0. All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (b) For input sequences |I>, |S> = |2>, |1> the multi-valued 1-to-3 Demultiplexer will activate second DNA AND and provide “2”, TGGATC, through the output of Y1. All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (c) For input sequences |I>, |S> = |2>, |2> the multi-valued 1-to-3 Demultiplexer will activate third DNA AND and provide “2”, TGGATC, through the output of Y2. All other outputs Y0 - Y2 will remain close as remaining DNA AND operation will generate “0”, ACCTAG.
2. Multi-Valued Quantum 1-to-9 Demultiplexer (a) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |0> the multivalued 1-to-3 Demultiplexer will activate first DNA AND and provide “2”, TGGATC, through the output of Y0 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (b) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |1> the multivalued 1-to-3 Demultiplexer will activate second DNA AND and provide “2”, TGGATC, through the output of Y1 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (c) When the input qubit |I> is |2>, and |S0>,|S1> = |0>, |2> the multivalued 1-to-3 Demultiplexer will activate third DNA AND and provide “2”, TGGATC, through the output of Y2 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG.
460
Multiple-Valued Quantum-DNA Combinational Circuits
Multi-Valued DNA AND Quantum 1-to3 Decoders
Anneal >60 o Anneal >60 o
Anneal >60 o
Quantum 1-to3 Decoders
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
FIGURE 18.8 Circuit Architecture of Multi-Valued Quantum-DNA 1-to-9 Demultiplexer
Multiple-Valued Quantum-DNA Encoder
461
(d) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |0> the multivalued 1-to-3 Demultiplexer will activate fourth DNA AND and provide “2”, TGGATC, through the output of Y3 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (e) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |1> the multivalued 1-to-3 Demultiplexer will activate fifth DNA AND and provide “2”, TGGATC, through the output of Y4 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (f) When the input qubit |I> is |2>, and |S0>,|S1> = |1>, |2> the multivalued 1-to-3 Demultiplexer will activate sixth DNA AND and provide “2”, TGGATC, through the output of Y5 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (g) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |0> the multivalued 1-to-3 Demultiplexer will activate seventh DNA AND and provide “2”, TGGATC, through the output of Y6 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (h) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |1> the multivalued 1-to-3 Demultiplexer will activate the eighth DNA AND and provide “2”, TGGATC, through the output of Y7 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG. (i) When the input qubit |I> is |2>, and |S0>,|S1> = |2>, |2> the multivalued 1-to-3 Demultiplexer will activate ninth DNA AND and provide “2”, TGGATC, through the output of Y8 . All other outputs Y0 - Y8 will remain close as remaining DNA AND operation will generate “0”, ACCTAG.
18.4
Multiple-Valued Quantum-DNA Encoder
The Multi-Valued Encoder is a combinational logic circuit with 3n input lines and n output lines that functions as a multi-input and multi-output device. An encoder is a critical component of a digital computer. Table 18.5 represents the truth table of 3-to-1 Multi-Valued Quantum-DNA Encoder where |D0>, |D1> and |D2> are the input lines and A is the output line. Figure 18.9 gives the idea of how a 3-to-1 Multi-Valued Quantum-DNA Encoder is designed. As given in the diagram, 3-to-1 Multi-Valued Quantum-DNA Encoder needs two Quantum AND, one Quantum NOT and one DNA OR operation.
462
Multiple-Valued Quantum-DNA Combinational Circuits TABLE 18.5 Truth Table of Multi-Valued 3-to-1 Quantum-DNA Encoder |D2> |0> |0> |2>
Inputs |D1> |D0> |0> |2> |2> |0> |0> |0>
Outputs A ACCTAG CAAGCT TGGATC
For multi-valued quantum-DNA 9-to-2 Encoder, Table 18.6 shows the truth table where |D0> to |D8> are the nine input lines and A0 and A1 are the outputs. The block diagram of the 9-to-2 Multi-Valued Quantum-DNA Encoder is displayed in Figure 18.10.
18.4.1
Circuit Architecture of Multiple-Valued Quantum-DNA Encoder
Figure 18.11 depicts the architecture of Multi-Valued Quantum-DNA 3-to-1 Encoder. As when an input line is on, it will generate qubit |2> whereas others will be closed at |0>. Hence, each input line passes through some Quantum operations.
Multi-Valued Multi-Valued Multi-Valued Multi-Valued
FIGURE 18.9 Block Diagram of Multi-Valued Quantum-DNA 3-to-1 Encoder
463
Multiple-Valued Quantum-DNA Encoder
Multi-Valued Multi-Valued Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.10 Block Diagram of Multi-Valued Quantum-DNA 9-to-2 Encoder
First, input line |D0> passes through a Quantum NOT operation to perform a Standard Ternary Inversion (STI). i.e., qubit |0> will become |2> or vice versa and |D1> conduct a Quantum AND operation with qubit |1> as the other input so that it can generate the outcome as |1> whenever |D1> is on. Additionally, |D2> is directly connected to the DNA OR operation as it produces output ‘TGGATC’, which represents TABLE 18.6 Truth Table of Multi-Valued 9-to-2 Quantum-DNA Encoder |D8> |0> |0> |0> |0> |0> |0> |0> |0> |2>
|D7> |0> |0> |0> |0> |0> |0> |0> |2> |0>
|D6> |0> |0> |0> |0> |0> |0> |2> |0> |0>
Inputs |D5> |D4> |0> |0> |0> |0> |0> |0> |0> |0> |0> |2> |2> |0> |0> |0> |0> |0> |0> |0>
|D3> |0> |0> |0> |2> |0> |0> |0> |0> |0>
|D2> |0> |0> |2> |0> |0> |0> |0> |0> |0>
|D1> |0> |2> |0> |0> |0> |0> |0> |0> |0>
|D0> |2> |0> |0> |0> |0> |0> |0> |0> |0>
Outputs A1 A0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
464
Multiple-Valued Quantum-DNA Combinational Circuits
Annealo >60
FIGURE 18.11 Circuit Architecture of Multi-Valued Quantum-DNA 3-to-1 Encoder
Multiple-Valued Quantum-DNA Encoder
465
‘2’. DNA OR executes at last to get the output of |A>. However, before conducting the DNA OR operation, Quantum qubits are converted to their equivalent DNA molecular sequences by using NMR relaxation. For a Multi-Valued Quantum-DNA 9-to-2 Encoder (Figure 18.12), the input of |D1>, |D2>, |D4>, |D5>, |D7>, and |D8> are used to get the result of A0 after performing four Quantum OR, one DNA OR and one DNA AND operation. Whereas |D3>, |D4>, |D5>, |D6>, |D7>, and |D8> is needed to get the outcome of |A1> after conducting another four Quantum OR, one DNA OR, and one DNA AND operation. For each case, a Quantum cache memory is placed between Quantum operation and DNA operation, so that the qubits can be held temporarily to match the speed.
18.4.2
Working Principle of Multiple-Valued Quantum-DNA Encoder
1. Multi-Valued Quantum-DNA 3-to-1 Encoder (a) To get Output |A> = |0>, the multi-valued 3-to-1 Encoder D0 will be activated, whereas other input lines remain closed, i.e. ACCTAG (b) To get Output |A> = |1>, the multi-valued 3-to-1 Encoder D1 will be activated, whereas other input lines remain closed, i.e. ACCTAG (c) To get Output |A> = |2>, the multi-valued 3-to-1 Encoder D2 will be activated, whereas other input lines remain closed, i.e. ACCTAG 2. Multi-Valued Quantum-DNA 9-to-2 Encoder (a) To get Output |A1>, |A0> = |0>, |0>, the multi-valued 9-to-2 Encoder D0 will be activated, whereas other input line remain closed, i.e. ACCTAG (b) To get Output |A1>, |A0> = |0>, |1>, the multi-valued 9-to-2 Encoder D1 will be activated, whereas other input line remain closed, i.e. ACCTAG (c) To get Output |A1>, |A0> = |0>, |2>, the multi-valued 9-to-2 Encoder D2 will be activated, whereas other input line remain closed, i.e. ACCTAG (d) To get Output |A1>, |A0> = |1>, |0>, the multi-valued 9-to-2 Encoder D3 will be activated, whereas other input line remain closed, i.e. ACCTAG (e) To get Output |A1>, |A0> = |1>, |1>, the multi-valued 9-to-2 Encoder D4 will be activated, whereas other input line remain closed, i.e. ACCTAG (f) To get Output |A1>, |A0> = |1>, |2>, the multi-valued 9-to-2 Encoder D5 will be activated, whereas other input line remain closed, i.e. ACCTAG
466
Multiple-Valued Quantum-DNA Combinational Circuits
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 18.12 Circuit Architecture of Multi-Valued Quantum-DNA 9-to-2 Encoder
Multiple-Valued Quantum-DNA Decoder
467
(g) To get Output |A1>, |A0> = |2>, |0>, the multi-valued 9-to-2 Encoder D6 will be activated, whereas other input line remain closed, i.e. ACCTAG (h) To get Output |A1>, |A0> = |2>, |1>, the multi-valued 9-to-2 Encoder D7 will be activated, whereas other input line remain closed, i.e. ACCTAG (i) To get Output |A1>, |A0> = |2>, |2>, the multi-valued 9-to-2 Encoder D8 will be activated, whereas other input line remain closed, i.e. ACCTAG
18.5
Multiple-Valued Quantum-DNA Decoder
The Multi-Valued Quantum-DNA Decoder is a combinational logic circuit with n input lines and 3n output lines. Essentially, it converts a ternary qubit to its equivalent decimal value. A Quantum-DNA decoder first performs some Quantum operation on its inputs, then proceeds to the DNA operations after converting the qubit to its corresponding DNA molecule. Table 18.7 contains the truth table for multi-valued quantum-DNA 2-to-9 Decoders. A 2-to-9 Quantum-DNA Decoder is built using two Multi-Valued 1-to-3 Quantum Decoders and nine Multi-Valued DNA AND (D0-D8) operations. Figure 18.13 depicts the block diagram of multi-valued quantum-dna 2-to-9 decoder.
18.5.1
Circuit Architecture of Multiple-Valued Quantum-DNA Decoder
The construction of the Multi-Valued Quantum-DNA 2-to-9 decoder circuit is shown in Figure 18.14. In this circuit, the input, |A> and |B>, at first, pass through two 1to-3 Decoders separately so that inserted qubit, i.e., |0>, |1>, or |2> can be identified using the output of 1-to-3 decoders. Nine DNA AND operation is used in Quantum-DNA 2-to-9 Decoder where each input of these AND operations come from the various combinations of the output of 1-to-3 decoder. However, as the output of Quantum operation will act as an input of DNA operation, thus each qubit is converted to its corresponding DNA molecular sequence by using the NMR relaxation technique. Before the conversion Quantum outputs are stored in a Quantum Cache memory shortly to match the speed to operations of different kinds. Finally, based on the value of |A> and |B>, only one line of each 1-to-3 decoder generates sequence TGGATC along the line whereas others provide ACCTAG. Thus, only one DNA AND operation among D0 to D8, gives the result TGGATC, where other outputs, D0-D8 remain inactive. i.e., ACCTAG.
Input |A> |B> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
D8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
D7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG
D6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG
D5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG
TABLE 18.7 Truth Table of Multi-Valued Quantum-DNA 2-to-9 Decoder Output D4 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG D3 ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D1 ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D0 TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
468 Multiple-Valued Quantum-DNA Combinational Circuits
469
Multiple-Valued Quantum-DNA Decoder
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 18.13 Block Diagram of Multi-Valued Quantum-DNA 2-to-9 Decoder
470
Multiple-Valued Quantum-DNA Combinational Circuits
Multi-Valued DNA AND Operations Quantum 1-to3 Decoder
NMR Relaxation
Anneal >60o Anneal >60o
Anneal >60o
Quantum 1-to3 Decoder
Anneal >60o
Anneal >60o Anneal >60o Anneal >60o Anneal >60o
Anneal >60o
FIGURE 18.14 Circuit Architecture of Multi-Valued Quantum-DNA 2-to-9 Decoder
Multiple-Valued Quantum-DNA Decoder
18.5.2
471
Working Principle of Multiple-Valued Quantum-DNA Decoder
1. For input sequences |A>, |B> = |0>, |0>, the multi-valued 1-to-3 decoder will perform (A0 && B0) and the D0 line will be open. As a result, the output sequence of D0 equal TGGATC and remaining lines, D1 to D8 will remain closed, i.e., ACCTAG. 2. For input sequences |A>, |B> = |0>, |1>, the multi-valued 1-to-3 decoder will perform (A0 && B1) and the D1 line will be open. As a result, the output sequence of D1 equal TGGATC and remaining lines, D0, D2 to D8 will remain closed, i.e. ACCTAG. 3. For input sequences |A>, |B> = |0>, |2>, the multi-valued 1-to-3 decoder will perform (A0 && B2) and the D2 line will be open. As a result, the output sequence of D2 equal TGGATC and remaining lines, D0, D1 and D3 to D8 will remain closed, i.e. ACCTAG. 4. For input sequences |A>, |B> = |1>, |0>, the multi-valued 1-to-3 decoder will perform (A1 && B0) and the D3 line will be open. As a result, the output sequence of D3 equal TGGATC and remaining lines, D0 to D2, and D4 to D8 will remain closed, i.e. ACCTAG. 5. For input sequences |A>, |B> = |1>, |1> the multi-valued 1-to-3 decoder will perform (A1 && B1) and the D4 line will be open. As a result, the output sequence of D4 equal TGGATC and remaining lines, D0 to D3, and D5 to D8 will remain closed, i.e. ACCTAG. 6. For input sequences |A>, |B> = |1>, |2>, the multi-valued 1-to-3 decoder will perform (A1 && B2) and the D5 line will be open. As a result, the output sequence of D5 equal TGGATC and remaining lines, D0 to D4, and D6 to D8 will remain closed, i.e. ACCTAG. 7. For input sequences A, B= |2>, |0>, the multi-valued 1-to-3 decoder will perform (A2 && B0) and the D6 line will be open. As a result, the output sequence of D6 equal TGGATC and remaining lines, D0 to D5, D7, D8 will remain closed, i.e. ACCTAG. 8. For input sequences |A>, |B> = |2>, |1>, the multi-valued 1-to-3 decoder will perform (A2 && B1) and the D7 line will be open. As a result, the output sequence of D7 equal TGGATC and remaining lines, D0 to D6, D8 will remain closed, i.e. ACCTAG. 9. For input sequences |A>, |B> = |2>, |2>, the multi-valued 1-to-3 decoder will perform (A2 && B2) and the D8 line will be open. As a result, the output sequence of D8 equal TGGATC and remaining lines, D0 to D7 will remain closed, i.e. ACCTAG.
472
Multiple-Valued Quantum-DNA Combinational Circuits
18.6 Summary Another novel concept of Multi-Valued Quantum-DNA computing is presented in this chapter, along with possible architectural concepts for building multiple multivalued combinational circuits. Each Multi-Valued Quantum-DNA combinational circuit’s algorithms, such as adder, subtractor, multiplexer, demultiplexer, encoder, decoder, and comparator, are displayed. This chapter goes into specific architecture designs for Multi-Valued Quantum-DNA combinational circuits with exceptional performance. Combinational circuits for 2 qubits and N-qubit are also illustrated, along with their design methodologies and operating principles. Quantum computers, produce a lot of heat, which leads to qubit disorder. DNA computers, on the other hand, require a lot of heat to carry out the reactions. As a result, the quantity of heat that these Multi-Valued Quantum-DNA combinational circuits may require or generate is exhibited, providing a clear image of their efficiency. A speed calculation was also done to see how much faster they would be if these Multi-Valued Quantum-DNA combinational circuits were perfectly implemented. All of these articles have been implemented hypothetically.
Bibliography [1] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [2] Lin, S., Kim, Y. B., & Lombardi, F. (2009). CNTFET-based design of ternary logic gates and arithmetic circuits. IEEE Transactions on Nanotechnology, 10(2), 217-225. [3] Heung, A., & Mouftah, H. T. (1985). Depletion/enhancement CMOS for a lower power family of three-valued logic circuits. IEEE Journal of Solid-State Circuits, 20(2), 609-616. [4] Monfared, A. T., & Haghparast, M. (2017). Design of novel quantum/reversible ternary adder circuits. International Journal of Electronics Letters, 5(2), 149157. [5] Zadeh, R. P., & Haghparast, M. (2011). A new reversible/quantum ternary comparator. Australian Journal of Basic and Applied Sciences, 5(12), 2348-2355.
19 Multiple-Valued DNA-Quantum Combinational Circuits
19.1
Introduction
Biomolecules and biomolecular processes, as explained in earlier chapters, are designed to use computational methods in DNA computing. Quantum computing entails carrying out calculations at a scale where quantum mechanical effects are noticeable. Both of these new computing paradigms have been proposed as solidstate computers’ successors. Both DNA computing and quantum computing have the potential to outperform ordinary digital computers, but considerable technical hurdles must be overcome first. Because of their coherent superposition of states, quantum computers are more powerful than traditional turing machines. DNA computers can be evolved via biotechnology techniques. Combining DNA and quantum computers could capture both of these properties. With this in mind, this chapter is devoted to DNA-Quantum Computing, which combines two distinct technologies. The overall chapter format is similar to the preceding chapter, with the introduction of DNA-Quantum computing at the beginning. Combining DNA and quantum computers could capture both of these properties. Quantum logic circuits could be self-assembled by DNA computers using DNA strand-attached gates. Quantum computers could also be constructed directly from the physical features of the DNA molecule. This chapter will discuss about multi-valued DNA-Quantum multiplexer, demultiplexer, encoder and decoder.
19.2
Multiple-Valued DNA-Quantum Multiplexer
A balanced multiplexer is an essential component of a digital system that converts multiple inputs to a single output. This circuit is useful for building multi-valued arithmetic circuits. There are three parts to an n-to-1 multiplexer. There are 3n inputs, 1 output, and n selector line. In a multi-valued DNA-Quantum n-1 Multiplexer, first, all the inputs perform some DNA operation then the output of those conduct the
DOI: 10.1201/9781003381938-19
473
474
Multiple-Valued DNA-Quantum Combinational Circuits TABLE 19.1 Truth Table of Multi-Valued DNA-Quantum 3-to-1 Multiplexer Inputs S ACCTAG CAAGCT TGGATC
Outputs |Y> |I0> |I1> |I2>
remaining operation in Quantum to generate the final output of the DNA-Quantum Multiplexer. Table 19.1 and Figure 19.1, respectively, show the truth table and associative block diagram of Multi-Valued DNA-Quantum 3-to-1 Multiplexer. For multi-valued DNA-Quantum 3-to-1 Multiplexer, one 1-to-3 DNA decoder is needed to get the output of selection line S. Additionally, three Quantum AND and one Quantum OR operation is required as shown in Figure 19.1. To match the speed between DNA and Quantum operation a DNA cache Memory is used. When total inputs are 9 and the selection line is 2, then the truth table of multivalued Quantum 9-to-1 multiplexer will look like as shown in Table 19.2. Here, among the quantum AND operations, only one AND will provide its input to the output line via quantum OR operation. Figure 19.2 gives the block diagram of the multi-valued quantum 9-to-1 multiplexer. DNA cache memory is used for temporary storage of DNA sequences. Data conversion circuit is used to convert DNA sequences into qubits. TABLE 19.2 Truth Table of Multi-Valued Quantum 9-to-1 Multiplexer Inputs S1 S0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
Outputs |Y> |I0> |I1> |I2> |I3> |I4> |I5> |I6> |I7> |I8>
475
Multiple-Valued DNA-Quantum Multiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 19.1 Block Diagram of Multi-Valued DNA-Quantum 3-to-1 Multiplexer
476
Multiple-Valued DNA-Quantum Combinational Circuits
Heat Transfer Circuit
Multi-Valued DNA AND Multi-Valued DNA AND Multi-Valued DNA AND Multi-Valued DNA AND Multi-Valued DNA AND Multi-Valued DNA AND
FIGURE 19.2 Block Diagram of Multi-Valued DNA-Quantum 9-to-1 Multiplexer
Multi-Valued DNA OR
Multi-Valued DNA AND
Data Conversion Circuit
Multi-Valued DNA AND
DNA Cache Memory
Multi-Valued DNA AND
Multiple-Valued DNA-Quantum Multiplexer
19.2.1
477
Circuit Architecture of Multiple-Valued DNA-Quantum Multiplexer
Figure 19.3 shows the construction of a multi-valued DNA-Quantum 3-to-1 multiplexer circuit. In this circuit, all the inputs I0 - I2 connect to three different DNA AND gates after performing data conversion, trap ion, via DNA cache memory in which another input comes from the Selection line S. To select one particular input, molecular sequence ACCTAG, CAAGCT or TGGATC is provided through S to represent 1, 2, or 3, respectively. Based on this output of the selection line one of the three output lines of the DNA 1-to-3 Decoder gets activated and passes molecular sequence TGGATC through it. Other output lines of the decoder provide molecular sequence ACCTAG. Thus, only one Quantum AND operation is open after the trap ion to take the input to the output. Finally, the Quantum OR operation passes the input that comes via the Quantum AND operation to the output of the multiplexer. The architecture of the Multi-Valued DNA-Quantum 9-to-1 Multiplexer is also the same (Figure 19.4). However, as there are nine inputs (I0 - I8), two selection lines are required to select only one input as the result of output |Y>.
19.2.2
Working Principle of Multiple-Valued DNA-Quantum Multiplexer
1. Multi-Valued DNA-Quantum 3-to-1 Multiplexer (a) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and ACCTAG which represent 2, 2, 2, and 0, the multi-valued 3-to1 multiplexer will activate the first Quantum AND and provide |I0> through the output of |Y> . All other Quantum AND will remain closed |0>. (b) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and CAAGCT which represent 2, 2, 2, and 1, the multi-valued 3to-1 multiplexer will activate the first Quantum AND and provide |I1> through the output of |Y>. All other Quantum AND will remain closed |0>. (c) For input sequences I0, I1, I2, S = TGGATC, TGGATC, TGGATC, and TGGATC which represent 2, 2, 2, and 2, the multi-valued 3to-1 multiplexer will activate first Quantum AND and provide |I2> through the output of |Y>. All other Quantum AND will remain closed |0>. 2. Multi-Valued DNA-Quantum 9-to-1 Multiplexer (a) When all the input sequences I0- I9 are TGGATC, and S0, S1 = ACCTAG, ACCTAG the multi-valued 9-to-1 multiplexer will activate the first Quantum AND and provide |I0> through the output of |Y>. All other Quantum AND will remain closed |0>.
478
Anneal >60o Anneal >60o
Heat Transfer Circuit
Multiple-Valued DNA-Quantum Combinational Circuits
DNA 1-to-3 Decoder
Anneal >60o
Anneal >60o
Anneal >60o
AND
OR
DNA Cache Memory
AND Trap Ion
OR AND FIGURE 19.3 Circuit Architecture of Multi-Valued DNA-Quantum 3-to-1 Multiplexer
479
Multiple-Valued DNA-Quantum Multiplexer
Multi-Valued DNA 1-to-3 Decoders
Multi-Valued DNA AND Opeartions
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Trap Ions
Anneal >60o
Anneal >60o
DNA Cache Memory
Anneal >60o
Quantum OR Operations
Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
FIGURE 19.4 Circuit Architecture of Multi-Valued DNA-Quantum 9-to-1 Multiplexer
480
Multiple-Valued DNA-Quantum Combinational Circuits (b) When all the input sequences I0- I9 are TGGATC, and S0, S1 = ACCTAG, CAAGCT the multi-valued 9-to-1 multiplexer will activate the second Quantum AND and provide |I1> through the output of |Y> . All other Quantum AND will remain closed |0>. (c) ces I0- I9 are TGGATC, and S0, S1 = ACCTAG , TGGATC the multi-valued 9-to-1 multiplexer will activate the third Quantum AND and provide |I2> through the output of |Y> . All other Quantum AND will remain closed |0>. (d) When all the input sequences I0- I9 are TGGATC, and S0, S1 = CAAGCT, ACCTAG the multi-valued 9-to-1 multiplexer will activate the fourth Quantum AND and provide |I3> through the output of |Y>. All other Quantum AND will remain closed |0>. . (e) When all the input sequences I0- I9 are TGGATC, and S0, S1 = CAAGCT, CAAGCT the multi-valued 9-to-1 multiplexer will activate the fifth Quantum AND and provide |I4> through the output of |Y>. All other Quantum AND will remain closed |0>. (f) When all the input sequences I0- I9 are TGGATC, and S0, S1 = CAAGCT, TGGATC the multi-valued 9-to-1 multiplexer will activate a sixth Quantum AND and provide |I5> through the output of |Y> . All other Quantum AND will remain closed |0>. (g) When all the input sequences I0- I9 are TGGATC, and S0, S1 = TGGATC, ACCTAG the multi-valued 9-to-1 multiplexer will activate seventh Quantum AND and provide |I6 > through the output of |Y> . All other Quantum AND will remain closed |0>. (h) When all the input sequences I0- I9 are TGGATC, and S0, S1 = TGGATC, CAAGCT the multi-valued 9-to-1 multiplexer will activate eighth Quantum AND and provide |I7> through the output of |Y> . All other Quantum AND will remain closed |0>. (i) When all the input sequences I0- I9 are TGGATC, and S0, S1 = TGGATC, TGGATC the multi-valued 9-to-1 multiplexer will activate the ninth Quantum AND and provide |I8> through the output of |Y>. All other Quantum AND will remain closed |0>.
19.3 Multiple-Valued DNA-Quantum Demultiplexer Demultiplexer circuits are among the most important circuits in the design of complex hardware. It maps a single input to multiple outputs. Thereby, a 1-to-N DNAQuantum Demultiplexer consists of three main parts: one input, an N selection line and 3N outputs. In a multi-valued DNA-Quantum 1-to-N Demultiplexer, all the inputs perform some DNA operation then the output of those DNA part will conduct the
481
Multiple-Valued DNA-Quantum Demultiplexer TABLE 19.3 Truth Table of Multi-Valued DNAQuantum 1-to-3 Demultiplexer Inputs S ACCTAG CAAGCT TGGATC
|Y2 > |0> |0> |I>
Outputs |Y1 > |Y0 > |0> |I> |I> |0> |0> |0>
remaining operation in Quantum part to generate the final output of the DNAQuantum Demultiplexer. The truth table of Multi-Valued DNA-Quantum 1-to-3 Demultiplexer is shown in Table 19.3 where only the selected output equals the input I and all other outputs are 0. To represent 0, 1, and 2 in the molecular sequence, ACCTAG, CAAGCT and TGGATC are used, respectively. Figure 19.5 depicts the block diagram of multi-valued 1-to-3 demultiplexer. Depending on the chosen combination, one of the decoder outputs becomes 2 while the others remain 0. Here one selection line will be decoded into three by DNA 1-to-3 decoder. Three multi-valued quantum AND operations are needed to produce the final outputs.
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 19.5 Block Diagram of Multi-Valued DNA-Quantum 1-to-3 Demultiplexer
482
Multiple-Valued DNA-Quantum Combinational Circuits
TABLE 19.4 Truth Table of Multi-Valued DNA-Quantum 2-to-9 Demultiplexer Inputs S1 S0 ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
|Y0> |I> |0> |0> |0> |0> |0> |0> |0> |0>
|Y1> |0> |I> |0> |0> |0> |0> |0> |0> |0>
|Y2> |0> |0> |I> |0> |0> |0> |0> |0> |0>
Outputs |Y3> |Y4> |Y5> |0> |0> |0> |0> |0> |0> |0> |0> |0> |I> |0> |0> |0> |I> |0> |0> |0> |I> |0> |0> |0> |0> |0> |0> |0> |0> |0>
|Y6> |0> |0> |0> |0> |0> |0> |I> |0> |0>
|Y7> |0> |0> |0> |0> |0> |0> |0> |I> |0>
|Y8> |0> |0> |0> |0> |0> |0> |0> |0> |I>
Table 19.4 shows the truth table of multi-valued DNA-Quantum 2-to-9 Demultiplexer where 2 selection lines are needed to select one output line among nine. Figure 19.6 gives the block diagram of Multi-Valued DNA-Quantum 2-to-9 Demultiplexer.
19.3.1
Circuit Architecture of Multiple-Valued DNA-Quantum Demultiplexer
The construction of the Multi-Valued DNA-Quantum 1-to-3 Demultiplexer circuit is shown in Figure 19.7. In this circuit, the input I is directly connected to all the quantum AND operations as one input after going through a trap ion to convert the molecular sequence into the qubit. The various outputs of selection line S contribute as another input of these quantum AND operations after passing through the trap ion as well. The result of S decides which output line must be activated. To select one particular input, molecular sequence ACCTAG, CAAGCT or TGGATC is provided through S to represent 0, 1, or 2, respectively. Based on this output of the selection line one of the three output lines of the DNA 1-to-3 Decoder gets activated and passes molecular sequence TGGATC through it. Other output lines of the decoder provide molecular sequence ACCTAG. Thus only one Quantum AND operation is open to select one output among |Y0> to |Y2>. The architecture of the Multi-Valued DNA-Quantum 2-to-9 Demultiplexer also applies the same procedure (Figure 19.8). However, as there are nine outputs, |Y0> – |Y8>, two selection lines are required to activate only one output among |Y0> – |Y8>, where other outputs remain inactive. i.e. |0>. Figure 19.7 shows the circuit architecture of multi-valued DNA-Quantum 1-to-3 demultiplexer and Figure 19.8 shows the circuit architecture of multi-valued DNA-Quantum 2-to-9 demultiplexer.
483
Multiple-Valued DNA-Quantum Demultiplexer
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 19.6 Block Diagram of Multi-Valued DNA-Quantum 2-to-9 Demultiplexer
484
Multiple-Valued DNA-Quantum Combinational Circuits
Heat Supplied from Multi-Valued DNA outside to DNA circuit 1-to-3 Decoders Anneal >60o Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Trap Ions
FIGURE 19.7 Circuit Architecture of Multi-Valued DNA-Quantum 1-to-3 Demultiplexer
485
Multiple-Valued DNA-Quantum Demultiplexer
Anneal >60 o
Anneal >60 o
Anneal >60 o
Multi-Valued DNA 1-to-3 Decoder Anneal >60 o
Multi-Valued Quantum AND Operations
Anneal >60 o
Trap Ions
Anneal >60 o
Anneal >60 o
Anneal >60 o
Multi-Valued DNA 1-to-3 Decoder Anneal >60 o
Anneal >60 o
FIGURE 19.8 Circuit Architecture of Multi-Valued DNA-Quantum 2-to-9 Demultiplexer
19.3.2 1.
Working Principle of Multiple-Valued DNA-Quantum Demultiplexer Multi-Valued DNA 1-to-3 Demultiplexer (a) For input sequences I, S = TGGATC, ACCTAG which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate the first Quantum AND and provide |2> through the output of |Y0> to activate it . All other outputs |Y0> - |Y2> will remain close as the remaining Quantum AND operation will generate |0>.
486
Multiple-Valued DNA-Quantum Combinational Circuits (b) For input sequences I, S = TGGATC, CAAGCT which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate a second Quantum AND and provide |2> through the output of |Y1> to activate it . All other outputs |Y0> - |Y2> will remain close as the remaining Quantum AND operation will generate |0>. (c) For input sequences I, S = TGGATC, TGGATC which represent 2, and 0, the multi-valued 1-to-3 Demultiplexer will activate the third Quantum AND and provide |2> through the output of |Y2> to activate it . All other outputs |Y0> - |Y2> will remain close as the remaining Quantum AND operation will generate |0>. 2. Multi-Valued DNA 1-to-9 Demultiplexer (a) When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, ACCTAG; the multi-valued 2-to-9 Demultiplexer will activate the first Quantum AND and provide |2> through the output of |Y0> to activate it. All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (b) When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, CAAGCT; the multi-valued 2-to-9 Demultiplexer will activate the second Quantum AND and provide |2> through the output of |Y1> to activate it. All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (c) When the input qubit, I = TGGATC, and S0, S1 = ACCTAG, TGGATC; the multi-valued 2-to-9 Demultiplexer will activate the third Quantum AND and provide |2> through the output of |Y2> to activate it . All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (d) When the input qubit, I = TGGATC, and S0, S1 = CAAGCT, ACCTAG; the multi-valued 2-to-9 Demultiplexer will activate the fourth Quantum AND and provide |2> through the output of |Y3> to activate it. All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (e) When the input qubit, I = TGGATC, and S0, S1 = CAAGCT, CAAGCT; the multi-valued 2-to-9 Demultiplexer will activate the fifth Quantum AND and provide |2> through the output of |Y4> to activate it. All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (f) When the input qubit, I = TGGATC, and S0, S1 = CAAGCT , TGGATC; the multi-valued 2-to-9 Demultiplexer will activate the sixth Quantum AND and provide |2> through the output of |Y5> to activate it . All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (g) When the input qubit, I = TGGATC, and S0, S1 = TGGATC, ACCTAG; the multi-valued 2-to-9 Demultiplexer will activate the seventh
487
Multiple-Valued DNA-Quantum Demultiplexer
Quantum AND and provide |2> through the output of |Y6> to activate it . All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (h) When the input qubit, I = TGGATC, and S0, S1 = TGGATC, CAAGCT; the multi-valued 2-to-9 Demultiplexer will activate the eighth Quantum AND and provide |2> through the output of |Y7> to activate it . All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>. (i) When the input qubit, I = TGGATC, and S0, S1 = TGGATC, TGGATC; the multi-valued 2-to-9 Demultiplexer will activate ninth Quantum AND and provide |2> through the output of |Y8> to activate it . All other outputs |Y0> - |Y9> will remain close as the remaining Quantum AND operation will generate |0>.
19.3.3
Multiple-Valued DNA-Quantum Encoder
The Multi-Valued Encoder is a combinational logic circuit with 3n input lines and n output lines that functions as a multi-input and multi-output device. An encoder is a critical component of a digital computer. Table 19.5 represents the truth table of 3-to-1 Multi-Valued DNA-Quantum Encoder where D0, D1, and D2 are the input lines and |A> is the output line. Figure 19.9 shows the block diagram of 3-to-1 Multi-Valued DNA Encoder. As given in the diagram, 3-to-1 Multi-Valued DNA-Quantum Encoder needs two DNA AND, one DNA NOT and one Quantum OR operation. For multi-valued DNA-Quantum 9-to-2 Encoder, the truth table is shown in Table 19.6 where D0 to D8 are the nine input lines and |A0> and |A1> are the outputs. The block diagram of 9-to-2 Multi-Valued DNA-Quantum Encoder is displayed in Figure 19.10.
19.3.4
Circuit Architecture of Multiple-Valued DNA-Quantum Encoder
Figure 19.11 depicts the architecture of Multi-Valued DNA-Quantum 3-to-1 Encoder. As when an input line is on, it will generate a molecular sequence ‘TGGATC’, TABLE 19.5 Truth Table of Multi-Valued DNA-Quantum 3-to-1 Encoder D2 ACCTAG ACCTAG TGGATC
Inputs D1 ACCTAG TGGATC ACCTAG
D0 TGGATC ACCTAG ACCTAG
Outputs |A> |0> |1> |2>
D8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
D7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG
D6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG
D5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG
Inputs D4 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG
TABLE 19.6 Truth Table of Multi-Valued DNA-Quantum 9-to-2 Encoder D3 ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D1 ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D0 TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Outputs |A1> |A0> |0> |0> |0> |1> |0> |2> |1> |0> |1> |1> |1> |2> |2> |0> |2> |1> |2> |2>
488 Multiple-Valued DNA-Quantum Combinational Circuits
489
Multiple-Valued DNA-Quantum Demultiplexer
Multi-Valued Multi-Valued Multi-Valued Multi-Valued
FIGURE 19.9 Block Diagram of Multi-Valued DNA-Quantum 3-to-1 Encoder which represents ‘2’, whereas others will be closed at ‘ACCTAG’, as it represents ‘0’. Hence, each input line passes through some DNA operations. First, input line D0 passes through a DNA NOT operation to perform a Standard Ternary Inversion (STI), i.e. sequence ‘ACCTAG’ will become ‘TGGATC’ or vice versa and D1 conduct a DNA AND operation with the molecular sequence ‘CAAGCT’, which represents ‘1’, as the other input. Additionally, D2 is directly connected to the Quantum OR operation as it produces output |2>. Quantum OR executes at last to get the output of |A>. However, before conducting the Quantum OR operation, DNA molecular sequences are converted to their equivalent qubit using trap ions. For a Multi-Valued DNA-Quantum 9-to-2 Encoder (Figure 19.12), the input of D1, D2, D4, D5, D7, and D8 are used to get the result of |A0> after performing four DNA OR, one Quantum OR, and one Quantum AND operation. Whereas D3 to D8 is needed to get the outcome of |A1> after conducting another four DNA OR, one Quantum OR, and one Quantum AND operation. For each case, a DNA cache memory is placed between DNA operation and Quantum operation, so that the molecular sequence can be held temporarily to match the speed.
490
Multiple-Valued DNA-Quantum Combinational Circuits
Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 19.10 Block Diagram of Multi-Valued DNA-Quantum 9-to-2 Encoder
19.3.5
Working Principle of Multiple-Valued DNA-Quantum Encoder
1. Multi-Valued DNA-Quantum 3-to-1 Encoder (a) To get Output A = ACCTAG , the multi-valued 3-to-1 Encoder |D0> will be activated, whereas other input lines remain closed, i.e. |0> (b) To get Output A = CAAGCT, the multi-valued 3-to-1 Encoder |D1> will be activated, whereas other input lines remain closed, i.e. |0> (c) To get Output A = TGGATC, the multi-valued 3-to-1 Encoder |D2> will be activated, whereas other input lines remain closed, i.e. |0> 2. Multi-Valued DNA-Quantum 9-to-1 Multiplexer (a) To get Output A1, A0 = ACCTAG, ACCTAG, the multi-valued 9to-2 Encoder |D0> will be activated, whereas other input lines remain closed, i.e. |0>
491
DNA AND
Anneal >60 o
Anneal >60 o
DNA NOT
Anneal >60 o
Multiple-Valued DNA-Quantum Demultiplexer
DNA AND
Quantum OR
CAAGCT
FIGURE 19.11 Circuit Architecture of Multi-Valued DNA-Quantum 3-to-1 Encoder (b) To get Output A1, A0 = ACCTAG, CAAGCT, the multi-valued 9to-2 Encoder |D1> will be activated, whereas other input lines remain closed, i.e. |0> (c) To get Output A1, A0 = ACCTAG, TGGATC, the multi-valued 9to-2 Encoder |D2> will be activated, whereas other input lines remain closed, i.e. |0> (d) To get Output A1, A0 = CAAGCT, ACCTAG, the multi-valued 9to-2 Encoder |D3> will be activated, whereas other input lines remain closed, i.e. |0> (e) To get Output A1, A0 = CAAGCT, CAAGCT, the multi-valued 9to-2 Encoder |D4> will be activated, whereas other input lines remain closed, i.e. |0>
492
Multiple-Valued DNA-Quantum Combinational Circuits
Heat Supplied from outside to DNA circhit with Annel>60C
Multi-Valued DNA OR Anneal >60o
Anneal >60o
Anneal >60o
Anneal >60o
Generated Heat of Quantum circuit will be used here to cool down it
Trap Ions
Anneal >60o
Anneal >60o
Multi-Valued Quantum OR & AND
Anneal >60o
Anneal >60o
FIGURE 19.12 Circuit Architecture of Multi-Valued DNA-Quantum 9-to-2 Encoder (f) To get Output A1, A0 = CAAGCT, TGGATC, the multi-valued 9to-2 Encoder |D5> will be activated, whereas other input lines remain closed, i.e. |0> (g) To get Output A1, A0 = TGGATC , ACCTAG, the multi-valued 9to-2 Encoder |D6> will be activated, whereas other input lines remain closed, i.e. |0>
493
Multiple-Valued DNA-Quantum Decoder TABLE 19.7 Truth Table of Multi-Valued DNA-Quantum 2-to-9 Decoder Input A B ACCTAG ACCTAG ACCTAG CAAGCT ACCTAG TGGATC CAAGCT ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC ACCTAG TGGATC CAAGCT TGGATC TGGATC
|D8> |0> |0> |0> |0> |0> |0> |0> |0> |2>
|D7> |0> |0> |0> |0> |0> |0> |0> |2> |0>
|D6> |0> |0> |0> |0> |0> |0> |2> |0> |0>
Output |D5> |D4> |D3> |0> |0> |0> |0> |0> |0> |0> |0> |0> |0> |0> |2> |0> |2> |0> |2> |0> |0> |0> |0> |0> |0> |0> |0> |0> |0> |0>
|D2> |0> |0> |2> |0> |0> |0> |0> |0> |0>
|D1> |0> |2> |0> |0> |0> |0> |0> |0> |0>
|D0> |2> |0> |0> |0> |0> |0> |0> |0> |0>
(h) To get Output A1, A0 = TGGATC, CAAGCT, the multi-valued 9to-2 Encoder |D7> will be activated, whereas other input lines remain closed, i.e. |0> (i) To get Output A1, A0 = TGGATC , TGGATC, the multi-valued 9to-2 Encoder |D8> will be activated, whereas other input lines remain closed, i.e. |0>
19.4
Multiple-Valued DNA-Quantum Decoder
The Multi-Valued DNA-Quantum Decoder is a combinational logic circuit with n input lines and 3n output lines. Essentially, it converts a ternary-molecular DNA sequence to its equivalent decimal value. A DNA-Quantum decoder first performs some DNA operation on its inputs, then proceeds to Quantum operation after converting the DNA molecule to its corresponding qubit. Table 19.7 contains the truth table for 2-to-9 DNA Decoders. Figure 19.13 shows the block diagram multi-valued DNA-Quantum 2-to-9 Decoder. A 2-to-9 DNA Decoder is built using two Multi-Valued 1-to-3 DNA Decoders and nine Multi-Valued Quantum AND (D0-D8) operations (Figure 19.13).
19.4.1
Circuit Architecture of Multiple-Valued DNA-Quantum Decoder
The construction of the Multi-Valued DNA-Quantum 2-to-9 decoder circuit is shown in Figure 19.14. In this circuit, the input, A and B, at first, pass through two 1-to-3 Decoders separately so that inserted DNA molecular sequence, i.e. ACCTAG,
494
Multiple-Valued DNA-Quantum Combinational Circuits
Heat Transfer Circuit
Data Conversion Circuit Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 19.13 Block Diagram Multi-Valued DNA-Quantum 2-to-9 Decoder CAAGCT or TGGATC, which represent “0”, “1” and “2”, respectively, can be identified using the output of 1-to-3 decoders. Nine Quantum AND operation is used in DNA-Quantum 2-to-9 Decoder where each input of these AND operations come from the various combinations of the output of 1-to-3 decoder. However, as the output of DNA operation will act as an input
Multiple-Valued DNA-Quantum Decoder
495
of Quantum operation, thus each DNA molecular sequence is converted to its corresponding qubit by using the trap ion technique. Before the conversion DNA outputs are stored in a DNA Cache memory shortly to match the speed to different operations. Finally, based on the value of A and B, only one line of each 1-to-3 decoder generates qubit |2> along the line whereas others provide |0>. Thus only one Quantum AND operation among |D0> to |D8>, gives the result |2>, where other outputs, |D0>-|D8> remain inactive. i.e. |0>.
19.4.2
Working Principle of Multiple-Valued DNA-Quantum Decoder
1. For input sequences A, B =ACCTAG, ACCTAG, the multi-valued 1-to-3 decoder will perform (|A0> && |B0>) and the |D0> line will be open. As a result, the output qubit of |D0> equal |2> and remaining lines |D1> to |D8> will remain closed |0>. 2. For input sequences A, B =ACCTAG, CAAGCT, the multi-valued 1-to3 decoder will perform (|A0> && |B1>) and the |D1> line will be open. As a result, the output qubit of |D1> equal |2> and remaining lines, |D0>, |D2> to |D8> will remain closed|0>. 3. For input sequences A, B =ACCTAG, TGGATC , the multi-valued 1-to3 decoder will perform (|A0> && |B2>) and the |D2> line will be open. As a result, the output qubit of |D2> equal |2> and remaining lines, |D0>, |D1> and |D3> to |D8> will remain closed |0>. 4. For input sequences A, B =CAAGCT, ACCTAG, the multi-valued 1-to3 decoder will perform (|A1> && |B0>) and the |D3> line will be open. As a result, the output qubit of |D3> equal |2> and remaining lines, |D0> to |D2> and |D4> to |D8> will remain closed |0>. 5. For input sequences A, B =CAAGCT, CAAGCT, the multi-valued 1-to3 decoder will perform (|A1> && |B1>) and the |D4> line will be open. As a result, the output qubit of |D4> equal |2> and remaining lines, |D0> to |D3> and |D5> to |D8> will remain closed |0>. 6. For input sequences A, B =CAAGCT, TGGATC , the multi-valued 1-to3 decoder will perform (|A1> && |B2>) and the |D5> line will be open. As a result, the output qubit of |D5> equal |2> and remaining lines, |D0> to |D4> and |D6> to |D8> will remain closed |0>. 7. For input sequences A, B =TGGATC , ACCTAG, the multi-valued 1-to3 decoder will perform (|A2> && |B0>) and the |D6> line will be open. As a result, the output qubit of |D6> equal |2> and remaining lines, |D0> to |D5> and |D7> to |D8> will remain closed |0>. 8. For input sequences A, B =TGGATC , CAAGCT, the multi-valued 1to-3 decoder will perform (|A2> && |B1>) and the |D7> line will be
496
Heat Supplied from outside to DNA circhit with Annel>60C Anneal >60 o
Anneal >60 o
Multi-Valued DNA 1-to-3 Decoder Anneal >60 o
Anneal >60 o
Multi-Valued Quantum AND
Multiple-Valued DNA-Quantum Combinational Circuits
Anneal >60 o
Trap Ions
DNA Cache Memory Anneal >60 o
Anneal >60 o
Anneal >60 o
Multi-Valued DNA 1-to-3 Decoder Anneal >60 o
Anneal >60 o
FIGURE 19.14 Circuit Architecture of Multi-Valued DNA-Quantum 2-to-9 Decoder open.As a result, the output qubit of |D7> equal |2> and remaining lines, |D0> to |D6> and |D8> will remain closed |0>. 9. For input sequences A, B =TGGATC , TGGATC, the multi-valued 1-to3 decoder will perform (|A2> && |B2>) and the |D8> line will be open. As a result, the output qubit of |D8> equal |2> and remaining lines, |D0> to |D7> will remain closed |0>.
Summary
497
19.5 Summary In this chapter, a new concept is proposed of Multi-Valued DNA-Quantum computing with the possible architectural ideas for constructing various multi-valued combinational circuits. The algorithms for each Multi-Valued DNA-Quantum combinational circuit, i.e., adder, subtractor, multiplexer, demultiplexer, encoder, decoder, and comparator are shown. This chapter delves into specific architecture designs for high-performance Multi-Valued DNA-Quantum combinational circuits. Some combinational circuits are also shown for 2 qubits and N-qubit, together with their design techniques and functioning principles. Quantum computers generate a lot of heat, which causes disorder among qubits. On the other hand, DNA computers need a lot of heat to execute the reactions. As a result, the amount of heat that can be needed or can be generated by these Multi-Valued DNA-Quantum combinational circuits is displayed, giving a clear picture of their efficiency. A speed calculation has also been performed to indicate how much faster they will be if these Multi-Valued DNAQuantum combinational circuits are implemented perfectly. All of these articles have been hypothetically implemented.
Bibliography [1] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [2] Giri, S., & Saraswathi, M. N. (2012). Implementation of combinational circuits using ternary multiplexer. International Journal of Computational Engineering Research, 2(2), 457-463. [3] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [4] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17).
Final Remarks
Multiple-valued quantum computers provide a higher degree of security, parallel processing capability, and computation speed. Multiple-valued quantum computing, which has become an intriguing notion in recent years, can solve many intractable traditional multiple-valued computer issues. Multiple-valued DNA (deoxyribose nucleic acid) computing stands out among traditional computer systems because of its parallel processing, large storage capacity, and ability to execute nano-level multiplevalued computing. Traditional computer technologies demand a greater amount of processing power than DNA computing. Logic gates have special qualities in multiple-valued DNA computing, such as stability and reusability. The ability of a DNA computer to solve traditional NP problems in polynomial time has drawn a lot of attention. Multiple-valued DNA has the potential to store a significant amount of data. As a result, multiple-valued quantum molecular biology may be able to solve the data storage challenge, which is a big problem in the modern age. This book is a great resource for the multiple-valued logic in quantum, DNA, quantum-DNA, and DNA-quantum computing for researchers, students, and academicians. It will quench the thirst of beginners to advanced-level readers. Multiple-valued quantum molecular biology is completely a new and innovative approach introduced to get the advantages of both multi-valued quantum and DNA computing. Multi-valued quantum molecular biology means multiple-valued quantum-DNA and multiple-valued DNA-quantum computing can be obtained by merging multiple-valued quantum and multiple-valued DNA computing and have the capacity to execute parallel operations, which is one of the finest advantages of multiple-valued quantum and DNA computing. This book is a great source for the researchers of quantum and DNA computing. Trap ion, quadrupole trap ion, NMR, NMR relaxation, quantum and DNA cache memory, and heat transfer circuits are used here in the multiple-valued quantumDNA and DNA-quantum computing. The architecture and detailed design with figures of these technologies are explained in this book, which are very important for the students and researchers to be able to work in this field. The arithmetic logic unit (ALU) is the heart of a computer and arithmetic operations are the root of all computations. This book describes the arithmetic operations in multi-valued quantum and DNA computing. Combinational logic circuits in quantum, DNA, quantum-DNA, and DNA-quantum are explained in this book, which is important for students and researchers in the future world of nanotechnology.
499
Index
multiple-valued quantum divider, 184
molecular biology, 29 molecule, 27 multiple-valued quantum carry skip adder, 184 multiple-valued quantum full subtractor, 184 multiple-valued quantum half subtractor, 184 multiple-valued quantum multiplier, 184 multiplexer, 419 multi-valued logic, 16
adenine, 27 borrow, 84 carry, 80 classical computers, 129 combinatorics, 119 comparator, 184 cooler, 60 cytosine, 27 data management, 143 decoder, 438 demultiplexer, 426 deoxyribonucleic, 30 DNA, 27 DNA NOT operation, 236 DNA ternary NAND, 241 DNA ternary NOR, 243 DNA ternary OR, 241 DNA ternary XNOR, 247 DNA ternary XOR, 245 DNA-quantum, 60 DNase, 31
nano-computing, 61 negative ternary inverter, 238 NMR, 50 NMR relaxation, 50 NP-Complete, 61 nuclei, 131 nucleotides, 120 photon, 126 physics, 11 positive ternary inverter, 238 quadrupole trap, 134 quandrupole ion trap, 134 quantum, 5, 6 quantum biology, 48 quantum mechanics, 9 quantum molecular biology, 48 quantum OR operation, 173 quantum physics, 6 quantum ternary AND operation, 169, 171 quantum ternary cache, 146 quantum ternary half-adder, 185
encoder, 433 entanglement, 13 enzyme, 30 fluorescence, 31, 105 guanine, 27 heat calculation, 80 interference, 14 501
502 quantum ternary NAND operation, 171 quantum ternary NOR operation, 174 quantum ternary shift gates, 165 quantum ternary XOR operation, 175 quantum-DNA, 60 qubit, 12 qutrit, 19 radiofrequency, 131
Index speed calculation, 89 standard ternary inverter, 238 subtractor, 86 sum, 80 supercomputers, 83 superposition, 12 ternary computer, 164 ternary toffoli gate, 166 thymine, 27
Multiple-Valued Computing in Quantum Molecular Biology This book mainly focuses on the design methodologies of various quantum circuits, DNA circuits, DNA-quantum circuits, and quantum-DNA circuits. In this text, the author has compiled various design aspects of multiple-valued logic DNA-quantum and quantum-DNA sequential circuits, memory devices, programmable logic devices, and nanoprocessors. Multiple-Valued Computing in Quantum Molecular Biology: Sequential Circuits, Memory Devices, Programmable Logic Devices, and Nanoprocessors is Volume 2 of a two-volume set, and consists of four parts. This book presents various design aspects of multiple-valued logic DNA-quantum and quantum-DNA sequential circuits, memory devices, programmable logic devices, and nanoprocessors. Part I discusses multiple-valued quantum and DNA sequential circuits such as D flip-flop, SR latch, SR flip-flop, JK flip-flop, T flip-flop, shift register, ripple counter, and synchronous counter, which are described, respectively, with the applications and working procedures. After that, multiple-valued quantum-DNA and DNA-quantum sequential circuits such as D flip-flop, SR flip-flop, JK flip-flop, T flip-flop, shift register, ripple counter, and synchronous counter circuits are explained with working procedures and architecture. Part II discusses the architecture and design procedure of memory devices such as random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), and cache memory, which are sequentially described in multiple-valued quantum, DNA, quantum-DNA, and DNA-quantum computing. In Part III, the author examines the architectures and working principles of programmable logic devices such as programmable logic array (PLA), programmable array logic (PAL), field programmable gate array (FPGA), and complex programmable logic device (CPLD) in multiple-valued quantum, DNA, quantum-DNA, and DNA-quantum computing. Multiplevalued quantum, DNA, quantum-DNA, and DNA-quantum nanoprocessors are designed with algorithms in Part IV. Furthermore, the basic components of ternary nanoprocessors such as T-RAM, ternary instruction register, ternary incrementor circuit, ternary decoder, ternary multiplexer, ternary accumulator in quantum, DNA, quantum-DNA, and DNA-quantum computing are also explained in detail. This book will be of great help to researchers and students in quantum computing, DNA computing, quantum-DNA computing, and DNA-quantum computing.
Multiple-Valued Computing in Quantum Molecular Biology
Sequential Circuits, Memory Devices, Programmable Logic Devices, and Nanoprocessors, Volume 2
Hafiz Md. Hasan Babu
First edition published 2024 by CRC Press 6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742 and by CRC Press 4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN CRC Press is an imprint of Taylor & Francis Group, LLC © 2024 Hafiz Md. Hasan Babu Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, access www.copyright. com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works that are not available on CCC please contact [email protected] Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for identification and explanation without intent to infringe. Library of Congress Control Number: 2023942122 ISBN: 978-1-032-46487-9 (hbk) ISBN: 978-1-032-46490-9 (pbk) ISBN: 978-1-003-38192-1 (ebk) DOI: 10.1201/9781003381921 Typeset in Nimbus Roman by KnowledgeWorks Global Ltd.
To my respected great parents and also to my lovely wife, daughter, and son, who made it possible to write this book
Contents
Author
xxi
Preface
xxiii
Acknowledgments
xxv
Acronyms
xxvii
Introduction
xxix
Fundamentals of Multiple-Valued Quantum Molecular Biology 0.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0.2 Multiple-Valued Logic . . . . . . . . . . . . . . . . . . . . . . . 0.3 Multiple-Valued Computing . . . . . . . . . . . . . . . . . . . . 0.4 Molecular Biology . . . . . . . . . . . . . . . . . . . . . . . . . 0.5 Quantum Molecular Biology . . . . . . . . . . . . . . . . . . . 0.6 Fundamental Operations of Multiple-Valued Quantum Computing 0.7 Quantum Ternary Logic . . . . . . . . . . . . . . . . . . . . . . 0.7.1 Why Ternary Logic in Quantum Computing? . . . . . . 0.8 Quantum Fundamental Gates in Multi-Valued Logic . . . . . . . 0.8.1 Quantum Ternary Shift Gates . . . . . . . . . . . . . . . 0.8.2 Quantum Ternary C2 NOT Gate . . . . . . . . . . . . . 0.9 Quantum Multi-Valued Basic Logic Operations . . . . . . . . . 0.9.1 Ternary Quantum-AND Operation . . . . . . . . . . . . 0.9.2 Ternary Quantum-NAND Operation . . . . . . . . . . . 0.9.3 Ternary Quantum-OR Operation . . . . . . . . . . . . . 0.9.4 Ternary Quantum-NOR Operation . . . . . . . . . . . . 0.9.5 Ternary Quantum XOR Operation . . . . . . . . . . . . 0.9.6 Ternary Quantum XNOR Operation . . . . . . . . . . . 0.10 Fundamental Operations in Multiple-Valued DNA Computing . . 0.10.1 Ternary DNA-NOT Operation . . . . . . . . . . . . . . 0.10.2 Ternary DNA-AND Operation . . . . . . . . . . . . . . 0.10.3 Ternary DNA NAND Operation . . . . . . . . . . . . . 0.10.4 Ternary DNA-OR Operation . . . . . . . . . . . . . . . 0.10.5 Ternary DNA-NOR Operation . . . . . . . . . . . . . . 0.10.6 Ternary DNA-XOR Operation . . . . . . . . . . . . . . 0.10.7 Ternary DNA XNOR Operation . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
1 1 1 2 2 3 3 4 4 5 5 8 8 9 10 11 12 13 14 15 16 17 17 18 20 21 21 vii
viii
Contents 0.11 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I
22 23
Multi-Valued Sequential Circuits in Quantum Molecular Biology 25
Overview
27
1
29 29 30 31 32 32 34 34 35 35 36 37 38 38
Multiple-Valued Sequential Circuits in Quantum Computing 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Multi-Valued Quantum D Flip Flop . . . . . . . . . . . . . . . . 1.2.1 General Organization of Multi-Valued D Flip Flop . . . . 1.2.2 Circuit Architecture of Multi-Valued Quantum D Flip-Flop 1.2.3 Working Principle of Multi-Valued Quantum D Flip-Flop 1.2.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3 Multi-Valued Quantum SR Latch . . . . . . . . . . . . . . . . . . 1.3.1 General Organization of Multi-Valued Quantum SR Latch 1.3.2 Circuit Architecture of Multi-Valued Quantum SR Latch . 1.3.3 Working Principle of Multi-Valued Quantum SR Latch . . 1.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.4 Multi-Valued Quantum SR Flip Flop . . . . . . . . . . . . . . . . 1.4.1 General Organization of Multi-Valued Quantum SR Latch 1.4.2 Circuit Architecture of Multi-Valued Quantum SR Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.4.3 Working Principle of Multi-Valued Quantum SR Flip Flop 1.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5 Multi-Valued Quantum JK Flip Flop . . . . . . . . . . . . . . . . 1.5.1 General Organization of Multi-Valued Quantum JK Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5.2 Circuit Architecture of Multi-Valued Quantum JK Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5.3 Working Principle of Multi-Valued Quantum JK Flip Flop 1.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6 Multi-Valued Quantum T Flip Flop . . . . . . . . . . . . . . . . . 1.6.1 General Organization of Multi-Valued Quantum T Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6.2 Circuit Architecture of Multi-Valued Quantum T Flip Flop 1.6.3 Working Principle of Multi-Valued Quantum T Flip Flop . 1.6.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7 Multi-Valued Quantum Shift Register . . . . . . . . . . . . . . . . 1.7.1 General Organization of Multi-Valued Quantum Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7.2 Circuit Architecture of Multi-Valued Quantum Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7.3 Working Principle of Multi-Valued Quantum Shift Register
39 40 41 42 42 44 44 46 46 47 48 49 49 50 51 52 53
ix
Contents 1.7.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum Ripple Counter . . . . . . . . . . . . . . . 1.8.1 General Organization of Multi-Valued Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8.2 Circuit Architecture of Multi-Valued Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8.3 Working Principle of Multi-Valued Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.9 Multi-Valued Quantum Synchronous Counter . . . . . . . . . . . 1.9.1 General Organization of Multi-Valued Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.9.2 Circuit Architecture of Multi-Valued Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . 1.9.3 Working Principle of Multi-Valued Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.9.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54 55
Multi-Valued Sequential Circuits in DNA Computing 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Multi-Valued DNA D Flip Flop . . . . . . . . . . . . . . . . . . 2.2.1 General Organization of Multi-Valued DNA D Flip Flop 2.2.2 Circuit Architecture of Multi-Valued DNA D Flip Flop . 2.2.3 Working Principle of Multi-Valued DNA D Flip Flop . . 2.2.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 Multi-Valued DNA SR Latch . . . . . . . . . . . . . . . . . . . 2.3.1 General Organization Multi-Valued DNA SR Latch . . . 2.3.2 Circuit Architecture of Multi-Valued DNA SR Latch . . 2.3.3 Working Principle of Multi-Valued DNA SR Latch . . . 2.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . 2.4 Multi-Valued DNA SR Flip Flop . . . . . . . . . . . . . . . . . 2.4.1 General Organization of Multi-Valued DNA SR Flip Flop 2.4.2 Circuit Architecture of Multi-Valued DNA SR Flip-Flop 2.4.3 Working Principle of Multi-Valued DNA SR Flip-Flop . 2.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . 2.5 Multi-Valued DNA JK Flip-Flop . . . . . . . . . . . . . . . . . 2.5.1 General Organization of Multi-Valued DNA JK Flip Flop 2.5.2 Circuit Architecture of Multi-Valued DNA JK Flip-Flop 2.5.3 Working Principle of Multi-Valued DNA JK Flip Flop . 2.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . 2.6 Multi-Valued DNA T Flip-Flop . . . . . . . . . . . . . . . . . . 2.6.1 General Organization of Multi-Valued DNA T Flip-Flop 2.6.2 Circuit Architecture of Multi-Valued DNA T Flip-Flop .
67 67 68 69 70 71 71 72 72 73 74 75 76 77 78 79 80 81 81 83 84 85 85 86 87
1.8
2
. . . . . . . . . . . . . . . . . . . . . .
55 57 58 59 60 60 62 63 64 65 65
x
Contents 2.6.3 Working Principle of Multi-Valued DNA T Flip-Flop . . . 2.6.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.7 Multi-Valued DNA Shift Register . . . . . . . . . . . . . . . . . 2.7.1 General Organization of Multi-Valued DNA Shift Register 2.7.2 Circuit Architecture of Multi-Valued DNA Shift Register . 2.7.3 Working Principle of Multi-Valued DNA Shift Register . . 2.7.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8 Multi-Valued DNA Ripple Counter . . . . . . . . . . . . . . . . . 2.8.1 General Organization of Multi-Valued DNA Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8.2 Circuit Architecture of Multi-Valued DNA Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.8.3 Working Principle of Multi-Valued DNA Ripple Counter . 2.8.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9 Multi-Valued DNA Synchronous Counter . . . . . . . . . . . . . 2.9.1 General Organization of Multi-Valued DNA Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9.2 Circuit Architecture of Multi-Valued DNA Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9.3 Working Principle of Multi-Valued DNA Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.9.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 2.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
Multi-Valued Sequential Circuits in Quantum-DNA Computing 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Multi-Valued Quantum-DNA D Flip Flop . . . . . . . . . . . . . 3.2.1 General Organization of Multi-Valued Quantum-DNA D Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.2 Circuit Architecture of Multi-Valued Quantum-DNA D Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.3 Working Principle of Multi-Valued Quantum-DNA D FlipFlop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Multi-Valued Quantum-DNA SR Latch . . . . . . . . . . . . . . 3.3.1 General Organization Multi-Valued Quantum-DNA SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 Circuit Architecture of Multi-Valued Quantum-DNA SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Working Principle of Multi-Valued Quantum-DNA SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4 Multi-Valued Quantum-DNA SR Flip Flop . . . . . . . . . . . . .
88 89 89 90 92 93 94 95 95 97 98 99 100 101 101 103 104 105 105 107 107 108 109 110 112 113 114 115 116 117 119 120
xi
Contents 3.4.1
3.5
3.6
3.7
3.8
3.9
General Organization of Multi-Valued Quantum-DNA SR Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.2 Circuit Architecture of Multi-Valued Quantum-DNA SR Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.3 Working Principle of Multi-Valued Quantum-DNA SR Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum-DNA JK Flip-Flop . . . . . . . . . . . . . 3.5.1 General Organization of Multi-Valued Quantum-DNA JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5.2 Circuit Architecture of Multi-Valued Quantum-DNA JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5.3 Working Principle of Multi-Valued Quantum-DNA JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum-DNA T Flip-Flop . . . . . . . . . . . . . 3.6.1 General Organization of Multi-Valued Quantum-DNA T Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.2 Circuit Architecture of Multi-Valued Quantum-DNA T Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.3 Working Principle of Multi-Valued Quantum-DNA T FlipFlop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.6.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum-DNA Shift Register . . . . . . . . . . . . 3.7.1 General Organization of Multi-Valued Quantum-DNA Shift Register . . . . . . . . . . . . . . . . . . . . . . . . 3.7.2 Circuit Architecture of Multi-Valued Quantum-DNA Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.7.3 Working Principle of Multi-Valued Quantum-DNA Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.7.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum-DNA Ripple Counter . . . . . . . . . . . 3.8.1 General Organization of Multi-Valued Quantum-DNA Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . 3.8.2 Circuit Architecture of Multi-Valued Quantum-DNA Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . 3.8.3 Working Principle of Multi-Valued Quantum-DNA Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.8.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . Multi-Valued Quantum-DNA Synchronous Counter . . . . . . . . 3.9.1 General Organization of Multi-Valued Quantum-DNA Synchronous Counter . . . . . . . . . . . . . . . . . . . . 3.9.2 Circuit Architecture of Multi-Valued Quantum-DNA Synchronous Counter . . . . . . . . . . . . . . . . . . . . . .
120 122 123 125 125 126 127 129 130 131 132 134 135 137 138 139 140 142 143 144 145 146 148 150 151 151 153
xii
Contents 3.9.3
Working Principle of chronous Counter . . 3.9.4 Example . . . . . . 3.10 Summary . . . . . . . . . . . Bibliography . . . . . . . . . . . . 4
Multi-Valued . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Quantum-DNA Syn. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Multi-Valued Sequential Circuits in DNA-Quantum Computing 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Multi-Valued DNA-Quantum D Flip Flop . . . . . . . . . . . . . 4.2.1 General Organization of Multi-Valued DNA-Quantum D Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.2 Circuit Architecture of Multi-Valued DNA-Quantum Using D Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.3 Working Principle of Multi-Valued DNA-Quantum D FlipFlop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Multi-Valued DNA-Quantum SR Latch . . . . . . . . . . . . . . . 4.3.1 General Organization Multi-Valued DNA-Quantum SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Circuit Architecture of Multi-Valued DNA-Quantum SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.3 Working Principle of Multi-Valued DNA-Quantum SR Latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Multi-Valued DNA-Quantum SR Flip Flop . . . . . . . . . . . . . 4.4.1 General Organization of Multi-Valued DNA-Quantum SR Flip Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.2 Circuit Architecture of Multi-Valued DNA-Quantum SR Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.3 Working Principle of Multi-Valued DNA-Quantum SR Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Multi-Valued DNA-Quantum JK Flip-Flop . . . . . . . . . . . . . 4.5.1 General Organization of Multi-Valued DNA-Quantum JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.2 Circuit Architecture of Multi-Valued DNA-Quantum JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.3 Working Principle of Multi-Valued DNA-Quantum JK Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.6 Multi-Valued DNA-Quantum T Flip-Flop . . . . . . . . . . . . . 4.6.1 General Organization of Multi-Valued DNA-Quantum T Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . . 4.6.2 Circuit Architecture of Multi-Valued DNA-Quantum T Flip-Flop . . . . . . . . . . . . . . . . . . . . . . . . . .
155 158 158 158 161 161 162 163 164 165 167 167 168 169 171 172 173 174 175 176 178 178 179 181 182 184 185 186 187
xiii
Contents 4.6.3
Working Principle of Multi-Valued DNA-Quantum T FlipFlop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.6.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7 Multi-Valued DNA-Quantum Shift Register . . . . . . . . . . . . 4.7.1 General Organization of Multi-Valued DNA-Quantum Shift Register . . . . . . . . . . . . . . . . . . . . . . . . 4.7.2 Circuit Architecture of Multi-Valued DNA-Quantum Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7.3 Working Principle of Multi-Valued DNA-Quantum Shift Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8 Multi-Valued DNA-Quantum Ripple Counter . . . . . . . . . . . 4.8.1 General Organization of Multi-Valued DNA-Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . 4.8.2 Circuit Architecture of Multi-Valued DNA-Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . 4.8.3 Working Principle of Multi-Valued DNA-Quantum Ripple Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 4.9 Multi-Valued DNA-Quantum Synchronous Counter . . . . . . . . 4.9.1 General Organization of Multi-Valued DNA-Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . 4.9.2 Circuit Architecture of Multi-Valued DNA-Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . 4.9.3 Working Principle of Multi-Valued DNA-Quantum Synchronous Counter . . . . . . . . . . . . . . . . . . . . . . 4.9.4 Example . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
II
192 193 195 197 198 198 199 201 203 203 204 205 207 209 210 210
Multiple-Valued Memory Devices in Quantum Molecular Biology 211
Overview 5
189 191 191
Multiple-Valued Quantum Memory Devices 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Multiple-Valued Quantum Random Access Memory . . . . 5.2.1 Basic Definitions . . . . . . . . . . . . . . . . . . 5.2.2 Block Diagram . . . . . . . . . . . . . . . . . . . 5.2.3 Architecture of Basic Components . . . . . . . . . 5.2.4 Circuit Architecture of Multiple-Valued Quantum Memory . . . . . . . . . . . . . . . . . . . . . . . 5.3 Multiple-Valued Quantum Read-Only Memory . . . . . . . 5.3.1 Basic Definitions . . . . . . . . . . . . . . . . . .
213
. . . . . . . . . . . . . . . . . . . . RAM . . . . . . . . . . . .
215 215 216 218 218 218 226 228 229
xiv
Contents 5.3.2
Block Diagram of Multiple-Valued Quantum Read-Only Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.3 Circuit Architecture of Multiple-Valued Quantum ROM . 5.4 Multiple-Valued Quantum Programmable Read-Only Memory . . 5.4.1 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . 5.4.2 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . 5.4.3 Circuit Architecture of Multiple-Valued Quantum PROM 5.5 Multiple-Valued Quantum Cache Memory . . . . . . . . . . . . . 5.5.1 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . 5.5.2 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . 5.5.3 Architecture of Basic Components . . . . . . . . . . . . . 5.5.4 Circuit Architecture of Multiple-Valued Quantum Cache Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Multiple-Valued DNA Memory Devices 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Multiple-Valued DNA Random Access Memory . . . . . . . 6.2.1 Block Diagram . . . . . . . . . . . . . . . . . . . . 6.2.2 Architecture of Basic Components . . . . . . . . . . 6.2.3 Circuit Architecture of Multiple-Valued DNA RAM . 6.2.4 Working Principle of Multi-Valued DNA RAM . . . 6.3 Multiple-Valued DNA Read-Only Memory . . . . . . . . . . 6.3.1 Basic Definition . . . . . . . . . . . . . . . . . . . . 6.3.2 Block Diagram . . . . . . . . . . . . . . . . . . . . 6.3.3 Circuit Architecture of Multiple-Valued DNA ROM . 6.3.4 Design Procedure . . . . . . . . . . . . . . . . . . . 6.3.5 Working Principle . . . . . . . . . . . . . . . . . . . 6.4 Multiple-Valued DNA Programmable Read-Only Memory . 6.4.1 Basic Definitions . . . . . . . . . . . . . . . . . . . 6.4.2 Block Diagram . . . . . . . . . . . . . . . . . . . . 6.4.3 Circuit Architecture of Multiple-Valued DNA PROM 6.4.4 Design Procedure . . . . . . . . . . . . . . . . . . . 6.4.5 Working Principle . . . . . . . . . . . . . . . . . . . 6.5 Multiple-Valued DNA Cache Memory . . . . . . . . . . . . 6.5.1 Block Diagram . . . . . . . . . . . . . . . . . . . . 6.5.2 Architecture of Basic Components . . . . . . . . . . 6.5.3 Circuit Architecture of Multiple-Valued DNA Cache Memory . . . . . . . . . . . . . . . . . . . . . . . . 6.5.4 Working Principle . . . . . . . . . . . . . . . . . . . 6.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
230 230 237 238 238 238 244 245 245 246 248 252 252
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
255 255 256 257 259 266 267 268 270 271 272 274 275 279 280 280 280 281 283 286 287 287
. . . .
. . . .
. . . .
289 289 292 292
Contents 7
8
xv
Multiple-Valued Quantum-DNA Memory Devices 7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Multiple-Valued Quantum-DNA Random Access Memory . . . . 7.2.1 General Organization of Multiple-Valued Quantum-DNA RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.2 Architecture of Basic Components of Multiple-Valued Quantum-DNA RAM . . . . . . . . . . . . . . . . . . . . 7.2.3 Circuit Architecture of Multi-Valued Quantum-DNA RAM 7.2.4 Working Principle . . . . . . . . . . . . . . . . . . . . . . 7.3 Multiple-Valued Quantum-DNA Read-Only Memory . . . . . . . 7.3.1 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . 7.3.2 General Organization of Multiple-Valued Quantum-DNA ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.3 Architecture of Basic Components of Multiple-Valued Quantum-DNA ROM . . . . . . . . . . . . . . . . . . . . 7.3.4 Circuit Architecture of Multiple-Valued Quantum-DNA ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.5 Working Principle . . . . . . . . . . . . . . . . . . . . . . 7.4 Multiple-Valued Quantum-DNA Programmable Read Only Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.1 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . 7.4.2 General Organization of Multiple-Valued Quantum-DNA PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.3 Basic Components of Multiple-Valued Quantum-DNA PROM Memory . . . . . . . . . . . . . . . . . . . . . . . 7.4.4 Circuit Architecture of Multiple-Valued Quantum-DNA PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.5 Working Principle . . . . . . . . . . . . . . . . . . . . . . 7.5 Multiple-Valued Quantum-DNA Cache Memory . . . . . . . . . . 7.5.1 General Organization of Multiple-Valued Quantum-DNA Cache Memory . . . . . . . . . . . . . . . . . . . . . . . 7.5.2 Circuit Architecture of Multiple-Valued Quantum-DNA Cache Memory . . . . . . . . . . . . . . . . . . . . . . . 7.5.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 7.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
295 295 296
Multiple-Valued DNA-Quantum Memory Devices 8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Multiple-Valued DNA-Quantum Random Access Memory . . . . 8.2.1 Circuit Architecture of Multiple-Valued DNA-Quantum RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2.2 Working Principle . . . . . . . . . . . . . . . . . . . . . . 8.3 Multiple-Valued DNA-Quantum Read Only Memory . . . . . . .
319 319 319
297 297 298 298 298 300 300 302 302 304 307 307 308 309 309 310 314 314 314 314 316 317
319 320 322
xvi
Contents 8.3.1
Circuit Architecture of Multiple-Valued DNA-Quantum ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.2 Design Procedure . . . . . . . . . . . . . . . . . . . . . . 8.3.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 8.4 Multiple-Valued DNA-Quantum Programmable Read Only Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.4.1 Circuit Architecture of Multiple-Valued DNA-Quantum PROM . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.4.2 Design Procedure . . . . . . . . . . . . . . . . . . . . . . 8.4.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 8.5 Multiple-Valued DNA-Quantum Cache Memory . . . . . . . . . . 8.5.1 Working Principle of Multiple-Valued DNA-Quantum Cache Memory . . . . . . . . . . . . . . . . . . . . . . . 8.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
322 323 325 329 330 330 332 335 336 338 338
III Multiple-Valued Programmable Logic Devices in Quantum Molecular Biology
339
Overview
341
9
343 343 343 343 344 345 347 347 349 351 351 352 353 355 357 359 361 362 362 364 364
Multiple-Valued Programmable Logic Devices in Quantum Computing 9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 Multiple-Valued Quantum Programmable Logic Array . . . . . . . 9.2.1 General Organization of Multi-Valued Quantum PLA . . . 9.2.2 Circuit Architecture of Multi-Valued Quantum PLA . . . . 9.2.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 9.3 Multiple-Valued Quantum Programmable Array Logic . . . . . . . 9.3.1 General Organization of Multi-Valued Quantum PAL . . . 9.3.2 Circuit Architecture of Multi-Valued Quantum PAL . . . . 9.3.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 9.4 Multi-Valued Quantum Field Programmable Gate Array . . . . . . 9.4.1 General Organization of Multi-Valued Quantum FPGA . . 9.4.2 Circuit Architecture of Basic Components . . . . . . . . . 9.4.3 Circuit Architecture of Multi-Valued Quantum FPGA . . . 9.4.4 Working Principle . . . . . . . . . . . . . . . . . . . . . . 9.5 Multi-Valued Quantum Complex Programmable Logic Devices . . 9.5.1 General Organization of Multi-Valued Quantum CPLD . . 9.5.2 Circuit Architecture of Multi-Valued Quantum CPLD . . . 9.5.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 9.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xvii
Contents 10 Multiple-Valued Programmable Logic Devices in DNA Computing 10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.2 Multiple-Valued DNA Programmable Logic Array . . . . . . 10.2.1 General Organization of Multiple-Valued DNA PLA . 10.2.2 Circuit Architecture of Multi-Valued DNA PLA . . . . 10.2.3 Working Principle . . . . . . . . . . . . . . . . . . . . 10.3 Multiple-Valued DNA Programmable Array Logic . . . . . . 10.3.1 General Organization Multiple-Valued DNA PAL . . . 10.3.2 Architecture of Ternary DNA PAL . . . . . . . . . . . 10.3.3 Working Principle . . . . . . . . . . . . . . . . . . . . 10.4 Multi-Valued DNA Field Programmable Gate Array . . . . . . 10.4.1 Architecture of Basic Components . . . . . . . . . . . 10.4.2 General Organization of Multi-Valued DNA FPGA . . 10.4.3 Circuit Architecture of Multi-Valued DNA FPGA . . . 10.4.4 Working Procedure . . . . . . . . . . . . . . . . . . . 10.5 Multi-Valued DNA Complex Programmable Logic Devices . . 10.5.1 General Organization of Multi-Valued DNA CPLD . . 10.5.2 Circuit Architecture of Multi-Valued DNA CPLD . . . 10.5.3 Working Procedure . . . . . . . . . . . . . . . . . . . 10.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
11 Multiple-Valued Programmable Logic Devices in Quantum-DNA Computing 11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Multiple-Valued Quantum-DNA Programmable Logic Array . . . 11.2.1 General Organization of Multi-Valued Quantum-DNA PLA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.2 Circuit Architecture of Multiple-valued Quantum-DNA PLA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 11.3 Multiple-Valued Quantum-DNA Programmable Array Logic . . . 11.3.1 General Organization of Multi-Valued Quantum-DNA PAL 11.3.2 Circuit Architecture of Multi-Valued Quantum-DNA PAL 11.3.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 11.4 Multi-Valued Quantum-DNA Field Programmable Gate Array . . 11.4.1 Circuit Architecture of Multi-Valued Quantum-DNA FPGA 400 11.4.2 Working Principle . . . . . . . . . . . . . . . . . . . . . . 11.5 Multi-Valued Quantum-DNA Complex Programmable Logic Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.5.1 Circuit Architecture of Multi-Valued Quantum-DNA CPLD 403 11.5.2 Working Principle . . . . . . . . . . . . . . . . . . . . . . 11.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
367 367 367 368 369 369 371 372 372 373 375 375 378 379 381 384 384 385 387 389 390
391 391 391 392 393 395 395 396 397 398 400
401 403
406 407 407
xviii
Contents
12 Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing 12.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2 Multiple-Valued DNA-Quantum Programmable Logic Array . . . 12.2.1 General Organization of Multiple-Valued DNA-Quantum PLA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2.2 Circuit Architecture of Multi-Valued DNA-Quantum PLA 12.2.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 12.3 Multiple-Valued DNA-Quantum Programmable Array Logic . . . 12.3.1 General Organization of Multi-Valued DNA-Quantum PAL 12.3.2 Circuit Architecture of Multi-Valued DNA-Quantum PAL 12.3.3 Working Principle . . . . . . . . . . . . . . . . . . . . . . 12.4 Multi-Valued DNA-Quantum Field Programmable Gate Array . . 12.4.1 Circuit Architecture of Multiple-Valued DNA-Quantum FPGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.4.2 Working Procedure . . . . . . . . . . . . . . . . . . . . . 12.5 Multi-Valued DNA-Quantum Complex Programmable Logic Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.5.1 Circuit Architecture of Multiple-Valued DNA-Quantum CPLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.5.2 Working Procedure . . . . . . . . . . . . . . . . . . . . . 12.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
409 409 409 410 411 412 413 413 415 416 417 418 419 422 422 426 428 428
IV Multiple-Valued Nano-Processors in Quantum Molecular Biology 431 Overview 13 Multiple-Valued Quantum Nano Processor 13.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 13.2 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . . 13.3 Block Diagram of Complete 2-Qubit Ternary Nano Processor 13.4 Basic Components of Quantum Ternary Nano Processor . . 13.4.1 Quantum Ternary RAM . . . . . . . . . . . . . . . . 13.4.2 Quantum Ternary Instruction Register (IR) . . . . . . 13.4.3 Quantum Ternary Program Counter . . . . . . . . . 13.4.4 Ternary 2-Qubit Incrementor . . . . . . . . . . . . . 13.4.5 Ternary Quantum Decoder . . . . . . . . . . . . . . 13.4.6 Ternary Quantum ALU . . . . . . . . . . . . . . . . 13.4.7 Ternary Quantum Multiplexer . . . . . . . . . . . . 13.4.8 Ternary Quantum Accumulator . . . . . . . . . . . . 13.5 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 13.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
433
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
435 435 436 436 438 438 442 446 447 448 448 448 451 452 452 452
xix
Contents 14 Multiple-Valued DNA Nano Processor 14.1 Introduction . . . . . . . . . . . . . . . . . . . . . . 14.2 Basic Definitions . . . . . . . . . . . . . . . . . . . 14.3 Block Diagram of Ternary 2-Bit DNA Nano Processor 14.4 Basic Components of Ternary DNA Nano Processor . 14.4.1 Ternary DNA RAM . . . . . . . . . . . . . . 14.4.2 Ternary 2-Bit DNA Instruction Register (IR) . 14.4.3 Ternary DNA Program Counter . . . . . . . . 14.4.4 Ternary 2-Bit DNA Incrementor Circuit . . . 14.4.5 Ternary DNA Decoder . . . . . . . . . . . . 14.4.6 Ternary DNA ALU . . . . . . . . . . . . . . 14.4.7 Ternary DNA Multiplexer . . . . . . . . . . 14.4.8 Ternary DNA Accumulator . . . . . . . . . . 14.5 Applications . . . . . . . . . . . . . . . . . . . . . . 14.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
455 455 455 456 457 458 461 465 466 466 467 467 467 470 470 471
15 Multiple-Valued Quantum-DNA Nano-Processor 15.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.2 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 15.3 Block Diagram of Complete Ternary 2-Qubit Quantum-DNA Nano Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.4 Basic Components of Ternary Quantum-DNA Nano Processor . . 15.4.1 Quantum Ternary RAM . . . . . . . . . . . . . . . . . . . 15.4.2 Ternary DNA CPU . . . . . . . . . . . . . . . . . . . . . 15.5 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
473 473 474
16 Multiple-Valued DNA-Quantum Nano-Processor 16.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.2 Basic Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 16.3 Block Diagram of Complete Ternary 2-Bit DNA-Quantum Nano Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.4 Basic Components of Ternary DNA-Quantum Nano Processor . . 16.4.1 Ternary DNA RAM . . . . . . . . . . . . . . . . . . . . . 16.4.2 Ternary Quantum CPU . . . . . . . . . . . . . . . . . . . 16.5 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
481 481 482
Final Remarks
487
Index
489
474 477 477 478 478 478 479
482 484 485 485 485 485 486
Author
Dr. Hafiz. Md. Hasan Babu is currently working as a Professor in the Department of Computer Science and Engineering, University of Dhaka as well as the Dean in the Faculty of Engineering and Technology of the University of Dhaka, Bangladesh. In addition, at present, he is a member (part-time) of Bangladesh Accreditation Council, Ministry of Education of the Government of the People’s Republic of Bangladesh. He is also the Director of the Board of Directors of Bangladesh Submarine Cable Company Limited. Dr. Hasan Babu was the Chairman of the Department of Computer Science and Engineering at the University of Dhaka from 2003–2006 and Pro-ViceChancellor of the National University of Bangladesh from 2016–2020. He was also a professor and Founding Chairman of the Department of Robotics and Mechatronics Engineering, University of Dhaka. Dr. Hasan Babu obtained his PhD in electronics and computer science from Japan under the Japanese Government Scholarship and received his MSc in computer science and engineering from the Czech Republic under the Czech Government Scholarship. He also received the DAAD Research Fellowship from Germany. Dr. Hasan Babu was awarded the Dr. M.O. Ghani Memorial Gold Medal by the Bangladesh Academy of Sciences in 2017 for his excellent research in the progress of physical sciences in Bangladesh. In addition, he was awarded the UGC Gold Medal Award-2017 in the mathematics, statistics, and computer science categories for his research on quantum multiplier-accumulator devices. He is currently an associate editor of the research journal IET Computers and Digital Techniques published by the Institution of Engineering and Technology of the United Kingdom. He was a member of Prime Minister’s ICT Task Force in Bangladesh. xxi
xxii
Author
Dr. Hasan Babu was also President of the Bangladesh Computer Society from 2017–2020. Presently, he is President of the International Internet Society, Bangladesh chapter. Professor Dr. Hasan Babu has published more than 100 research papers. Three of his research papers have received the best research awards in international conferences. In addition, he has published the following four textbooks by three famous UK and US publishers for graduate and post-graduate students: 1. Hafiz Md. Hasan Babu, Quantum Computing: A Pathway to Quantum Logic Design, IOP (Institute of Physics) Publishing, 2020, Bristol, UK 2. Hafiz Md. Hasan Babu, Reversible and DNA Computing, Wiley Publishers, 2021, UK 3. Hafiz Md. Hasan Babu, VLSI Circuits and Embedded Systems, CRC Press/Taylor & Francis, 2022, USA 4. Md. Jahangir Alam, Guoqing Hu, Hafiz Md. Hasan Babu and Huazhong Xu, Control Engineering Theory and Applications, CRC Press/Taylor & Francis, 2022, USA
Preface
Multiple-valued logic improves the computation power. It provides more security, performs high-speed computations, and provides high-storage capacity, etc. over two-valued quantum computing. Quantum computing achieves tremendous processing power, low energy consumption, and exponential speed above traditional computers by regulating the behavior of minuscule physical things such as atoms, electrons, photons, and other microscopic particles. With the advent of nanotechnology, quantum computing vibrates an incredibly immense role in developing more compact and less power-consuming computers. The quantum computer is a completely new notion from regular computing, and it does not employ binary logic. Multiple-valued quantum computing is an exciting topic for multiple-valued computing systems since it addresses many problematic multiple-valued traditional computer concerns. Multiple-valued DNA (deoxyribonucleic acid) computational systems are used to introduce many forms of biological computing systems. DNA encodes a biological organism’s genetic information. It is constituted of polymer chains, which are commonly referred to as DNA strands. The information in DNA is stored as a code made up of four chemical bases: adenine (A), guanine (G), cytosine (C), and thymine (T). When compared to silicon-based conventional computers, DNA operations consume less power, and DNA-based logic gates can be reused once they have completed an operation. DNA computing is a new branch of computing that replaces traditional electronic computing with DNA, biochemistry, and molecular biology hardware. DNA computing carries the promise of cheap, huge, accessible data storage and an exponential increase in computing power and speed. Multiple-valued computing in quantum molecular biology can be introduced to get the advantages of both quantum and DNA computing. This book, Multiple-Valued Computing in Quantum Molecular Biology starts from Part V, Chapter 20. Volume 1 of this book consists of four parts and 19 chapters. This book is Volume 2 where another four parts will explain the rest of the topics. Each part contains four chapters. At the beginning of Part V, multiple-valued quantum and DNA sequential circuits such as D flip-flop, SR latch, SR flip-flop, JK flip-flop, T flip-flop, shift register, ripple counter, and synchronous counter are described respectively with applications and working procedures. After that, multiple-valued quantum-DNA and DNA-quantum sequential circuits such as D flip-flop, SR flip-flop, JK flip-flop, T flip-flop, shift register, ripple counter, and synchronous counter circuits are explained with working procedure and architecture.
xxiii
xxiv
Preface
In Part VI, the architecture and design procedure of memory devices such as Random Access Memory (RAM), Read-Only Memory (ROM), Programmable ReadOnly Memory (PROM), and cache memory are sequentially described in multiplevalued quantum, DNA, quantum-DNA, and DNA-quantum computing. In Part VII, programmable logic devices such as Programmable Logic Array (PLA), Programmable Array Logic (PAL), Field Programmable Gate Array (FPGA), and Complex Programmable Logic Device (CPLD) in multiple-valued quantum, DNA, quantum-DNA, and DNA-quantum computing are described with their architecture and working principles. Multiple-valued quantum, DNA, quantum-DNA, and DNA-quantum nano processors are designed with algorithms in Part VIII. The basic components of ternary nano processors, such as T-RAM, Ternary Instruction Register, Ternary Program Counter, ternary incrementor circuit, ternary decoder, ternary multiplexer, Ternary Arithmetic Logic Unit, ternary accumulator in quantum, DNA, quantum-DNA, and DNA-quantum computing, are also explained in detail in Part VIII.
Acknowledgments
I would like to express my sincerest gratitude and special appreciation to the various researchers in the field of multiple-valued computing in quantum molecular biology. The contents in this book have been compiled from a wide variety of research, where the researchers are pioneers in their respective fields. All research articles related to the contents are listed at the end of each chapter. I am grateful to my great parents and dear family members for their endless support. Most of all, I want to thank my lovely wife, Mrs. Sitara Roshan, sweet daughter, Ms. Fariha Tasnim, and sweet son, Md. Tahsin Hasan, for their invaluable cooperation to help me complete this book. Finally, I am also thankful to all of those, especially my beloved students Nitish Biswas, Md. Tareq Hasan, and Rownak Borhan Himel, who have provided immense support and valuable time to help me finish this book.
xxv
Acronyms
ALU BCD CLB CPLD CPU CU DNA EMR FPGA IR LUT MUX MVL NMR NTI PAL PC PCR PLA PROM PTI RAM ROM SIPO SISO SPLD STI TG
arithmetic logic unit binary coded decimal configurable logic block complex programmable logic device central processing unit control unit deoxyribonucleic acid electron magnetic resonance field programmable gate array instruction register look up table multiplexer multiple-valued logic nuclear magnetic resonance negative ternary inverter programmable array logic program counter polymerase chain reaction programmable logic array programmable read-only memory positive ternary inverter random access memory read only memory serial-in parallel-out serial-in serial-out simple programmable logic devices standard ternary inverter toffoli gate
xxvii
Introduction
Multiple-valued quantum computing is a blend of quantum physics and theoretical computer science that allows this computing to be more unique and faster than current silicon-based multiple-valued computing systems. Multiple-valued quantum computing is an exciting topic for multiple-valued computing systems since it addresses many problematic multiple-valued traditional computer concerns. In classical computing, Shor’s factorization method and Grover’s search algorithm are challenging tasks that multiple-valued quantum computing handles in polynomial time. Multiple-valued DNA (deoxyribonucleic acid) computational systems are used to introduce many forms of biological computing systems. DNA encodes a biological organism’s genetic information. It is constituted of polymer chains, which are commonly referred to as DNA strands. The information in DNA is stored as a code made up of four chemical bases: adenine (A), guanine (G), cytosine (C), and thymine (T). Human DNA consists of about 3 billion bases, and more than 99 percent of those bases are the same in all people. The order, or sequence, of these bases, determines the information available for building and maintaining an organism, similar to the way in which letters of the alphabet appear in a certain order to form words and sentences. DNA contains features that make it possible to imitate traditional reasoning operations. Single-stranded DNA naturally migrate toward complementary sequences to create double-stranded complexes, whereas double-stranded DNA want to be in a double-stranded state. DNA computers have clear advantages over conventional computers when applied to problems that can be divided into separate, non-sequential tasks. The reason is that DNA strands can hold so much data in memory and conduct multiple operations at once, thus solving decomposable problems much faster. DNA has a massive data storage capacity and could store information for a long period. It is a stable molecule until it is subjected to extreme conditions. When compared to silicon-based conventional computers, DNA operations consume less power, and DNA-based logic gates can be reused once they have completed an operation. In a magnetic field, the nucleus absorbs and emits electromagnetic radiation, which is known as nuclear magnetic resonance (NMR). Radio frequency (RF) is used in NMR to create a powerful magnetic field that excites the nuclei of molecules and causes them to exist in superposition. Quantum coherence and quantum entanglement are based on the superposition concept. Coherence in NMR refers to a physical state in which several spins line up and circle at the same speed around the direction of the magnetic field. The reversal of the NMR process is known as NMR relaxation. NMR relaxation qubits are set to the ground state to get the original molecule. In this case, EMR production must be stopped, and the molecules must lose energy to return xxix
xxx
Introduction
to their ground state configuration. Reverse Nuclear Magnetic Resonance (RNMR) is a method that is performed at two temperatures: room temperature and zero kelvin. NMR and RNMR may aid in the conversion of a DNA molecular sequence to a qubit and a qubit to a DNA molecular sequence. Multiple-valued computing in quantum molecular biology can be introduced to get the advantages of both quantum and DNA computing.
Fundamentals of Multiple-Valued Quantum Molecular Biology
0.1
Introduction
The study of quantum computing is concerned with the development of computerbased technologies based on the ideas of quantum theory. Quantum theory explains how energy and matter behave on the quantum (atomic and subatomic) level. Quantum computing uses a mixture of qubits to carry out certain computational operations. All of these are completed much more quickly than with their conventional computing equipment. On the other hand, DNA computing uses biological molecules to do computations rather than standard silicon chips. Instead of using the binary alphabet (1 and 0) used by conventional computers, DNA computing uses the four-character genetic alphabets (A-adenine, G-guanine, C-cytosine, and T-thymine). The ability to produce tiny DNA molecules with any random sequence makes this possible. Any DNA operation’s input can be represented by DNA molecules having a certain sequence. By performing laboratory procedures on the molecules, the instructions are carried out, and the outcome is characterized as a characteristic of the finished collection of molecules. Massively parallel computations and significant connections between computers and biological systems are promised by DNA computing. DNA computing is capable of doing millions of tasks at once. Combining the benefits of DNA computing and quantum computing will maximize their benefits. In order to create two new computing processes that can be referred to as quantum molecular biology, these two computing systems can be combined. Quantum-DNA computing and DNA-quantum computing are also components of this quantum molecular biology. It is already known that using these two together is advantageous for a two-valued system. Therefore, these two processes can also be combined in a multiple-valued system. Multiple-valued quantum, multiplevalued DNA, multiple-valued quantum-DNA, and multiple-valued DNA-quantum computing will all be covered in this book.
0.2
Multiple-Valued Logic
Nearly all of the digital circuits used in modern technology are based on binary logic. Although widely utilized, binary circuits have several drawbacks; hence, 1
2
Fundamentals of Multiple-Valued Quantum Molecular Biology
solutions like Multiple-Valued Logic (MVL) have been sought after. Non-classical logics include many-valued logics. They adopt the truth-functionality principle, which states that the truth of a compound sentence is determined by the truth values of its component sentences, making them similar to classical logic (and so remains unaffected when one of its component sentences is replaced by another sentence with the same truth value). However, they are fundamentally different from classical logic in that they permit a wider range of truth degrees and do not limit the number of truth values to just two. The multiple-valued system is more difficult to implement than the two-valued system. It is more costly, more space-consuming, requires more computational time, and generates more heat than the two-valued system. Quantum and DNA computing can be used to implement in the multiple-valued system. The reason quantum and DNA computers can solve complicated problems is that they generate multiple viable solutions at once. This is known as parallel processing. Quantum and DNA computing are already used to implement two-valued operations. Now, this chapter will explain how DNA computing constructs the operations for multi-valued systems.
0.3 Multiple-Valued Computing Designing with multiple-valued logic has drawn a lot of attention in the previous three decades. Multiple-valued logic (MVL) emerged as a separate study in the early 1920s, thanks to a Polish philosopher named Lukasiewicz, whose goal was to add a third value to the binary system. The Lukasiewicz system is the result of this investigation. Emil Post, an American mathematician, invented multiple-valued algebra, sometimes known as post algebra, in response to this technique. Computations like addition, multiplication, etc. can be done in multi-valued logic, and this is actually multi-valued computing.
0.4 Molecular Biology Molecular biology is a branch of biology that studies the chemical structures and processes of biological phenomena involving molecules, the basic units of life. The study of molecular biology is concerned with nucleic acids (such as DNA and RNA) and proteins—macromolecules that are critical to biological processes—and how they interact and behave within cells. In the 1930s, molecular biology emerged from the associated disciplines of biochemistry, genetics, and biophysics, and it is still strongly tied with those fields today. For molecular biology, various methodologies have been established, while researchers in the discipline may also use procedures and techniques that are native to genetics and other closely related fields. Molecular
Quantum Molecular Biology
3
biology, in particular, uses techniques like X-ray diffraction and electron microscopy to better understand the three-dimensional structure of biological macromolecules. Molecular biologists study the molecular basis of genetic processes, mapping the location of genes on specific chromosomes, associating these genes with specific characteristics of an organism, and isolating, sequencing, and modifying specific genes using genetic engineering (recombinant DNA technology). Techniques including Polymerase Chain Reaction (PCR), western blotting, and microarray analysis can be used in these approaches. The field of molecular biology began in the 1940s intending to reveal the basic three-dimensional structure of proteins. In the early 1950s, as knowledge of protein structure grew, the structure of deoxyribonucleic acid (DNA), the genetic blueprint found in all living things, as described in 1953. With more investigation, scientists were able to learn more about not only DNA and ribonucleic acid (RNA), but also the chemical sequences within these substances that tell cells and viruses how to build proteins. Molecular biology remained a pure science with few practical applications until the 1970s when enzymes that could cut and reassemble portions of DNA in bacteria’s chromosomes were found. Because it allows manipulation of the genetic sequences that determine the basic features of organisms, recombinant DNA technology has became one of the most active disciplines of molecular biology.
0.5 Quantum Molecular Biology Quantum physics and molecular biology jointly form quantum molecular biology. Quantum computing and DNA computing can be combined to gain the advantages of both. This combination is called quantum molecular biology. Quantum molecular biology is defined as quantum-DNA computing and DNA-quantum computing. Quantum molecular biology is the field of study that investigates processes in living organisms that cannot be accurately described by the classical laws of physics. This means that quantum theory has to be applied to understand those processes. All matter, including living matter, is subject to the laws of physics. Here quantum molecular biology is defined as computations using qubits or DNA sequences. DNA molecular sequences or qubits are used here to represent information. In quantum computing, qubits are used to represent information or data, and in DNA computing, DNA molecules are used to represent information or data. So, quantum molecular biology is a kind of computing technology which can be quantum-DNA computing or DNA-quantum computing.
0.6 Fundamental Operations of Multiple-Valued Quantum Computing Multi-Valued quantum computing is a challenging field for researchers. Two-valued quantum computing is not so old, but multi-valued quantum computing is a new
4
Fundamentals of Multiple-Valued Quantum Molecular Biology
topic to discuss. The benefits of working with other number systems over the binary number system are known. It is possible to work with more data with less effort in a multiple-valued system. Possibilities in which there are no middle options between true and false are familiar to computer scientists, computer engineers, applied mathematicians, and physicists. The soft logic of probability is familiar to statisticians, while the logic of uncertainty is familiar to physicists. When attempting to determine whether the status of a computer system is go, wait, or stop, the lack of better options is inconvenient and critical. These intermediate choices are the focus of multiplevalued logic. The difficulty in checking, correcting, or modifying over complicated flowcharts created by computer programmers is a severe disadvantage.
0.7 Quantum Ternary Logic The qubits are known to all and have two states – |0> and |1>. The information unit in a three-valued quantum system (ternary quantum system) is termed as qutrit. The ternary quantum system represents one type of three-dimensional quantum system with the basis states |0>, |1>, and |2>. These qutrit states basis states are called and 1 0 0 can be represented by 3 × 1 vectors: |0> = 0 , |1> = 1 , and |2> = 0 0 0 1 In a ternary quantum system, a qutrit can be defined as a linear superposition of the above-mentioned basis by the following equation: ψ = α |0> + ß |1> + γ |2>; where α, β, and γ are the complex quantities to represent the probability amplitudes of the basis states and ψ is the wave function.’
0.7.1
Why Ternary Logic in Quantum Computing?
A ternary computer (sometimes known as a trinary computer) is a computer that does computations using ternary logic (three possible values) rather than binary logic (two possible values). In ternary quantum computing the superposition will be formed in the range of |0> to |2>. Ternary computing has many basic benefits over binary computing; some are given below: 1. Higher data throughput 2. Access to additional instructions 3. Back-compatibility with legacy binary codes 4. Preventing malware and viruses 5. Providing more security However, the usual aim of ternary computers has not met with overwhelming success thus far, because they are not as efficient as binary computers in computing
Quantum Fundamental Gates in Multi-Valued Logic
5
binary codes, which are widely used and appear to be nearly ubiquitous. Besides, constructing the ternary operational circuits is much more difficult than the binary operational circuit.
0.8 Quantum Fundamental Gates in Multi-Valued Logic In the two-valued quantum computing, several quantum fundamental gates for reversible logic are learned which include the Pauli gate, Pauli-X gate, Hadamard gate, Toffoli gate, Fredkin gate, Deutsch gate, and Swap gate. All of them will not work in the ternary quantum system. The fundamental quantum gates which will work in ternary quantum computing are as follows: 1. Quantum Ternary Shift Gates 2. Quantum Ternary Toffoli Gates 3. Quantum Ternary C2 NOT Gate These three forms of quantum ternary gates are discussed in the next section.
0.8.1
Quantum Ternary Shift Gates
Six ternary permutation matrices are widely used which are termed Quantum Ternary Shift Gates: 1. Z (+ 0) is the primary state. Its columns correspond to 0, 1, and 2, respectively. 2. Transform Z (+ 1) shifts the qutrit states by 1. 3. Transform Z (+ 2) shifts the qutrit states by 2. 4. Transform Z (12) swaps (permutes) the qutrit states |1> and |2>. 5. Transform Z (01) swaps the qutrit states |0> and |1>. 6. Transform Z (02) swaps the qutrit states |0> and |2>. Those transformations are depicted as follows.
(1-Qutrit Ternary Permutation Transformations) 1 0 0 0 0 1 0 1 0 Z3 (+0) = 0 1 0 Z3 (+1) = 1 0 0 Z3 (+2) = 0 0 1 0 0 1 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 Z3 (12) = 0 0 1 Z3 (01) = 1 0 0 Z3 (02) = 0 1 0 0 1 0 0 0 1 1 0 0
6
Fundamentals of Multiple-Valued Quantum Molecular Biology TABLE 0.1 Operations of 1-Qutrit Permutation Gates/Ternary Shift Gates A 0 1 2
Z(0)=A Z(+1)=A+1 Z(+2)=A+2 Z (12)=2A 0 1 2 1 1 2 0 0 2 0 1 2
Z (1)=2A+1 1 0 2
Z (02)=2A+2 2 1 0
Table 0.1 shows the result of the operations. From Table 0.1 and the matrix transformations, it is easy to understand the operations in the ternary shift gates. Figure 0.1 shows the general diagram of the ternary shift gates. Figure 0.1 (a) shows the Z(+1) operations, where the given input will be shifted to the next one (i.e. |0> will become |1>, |1> will become |2>, and |2> will become to |0>). Figure 0.1 (b) shows the Z(+2) operations, where the given input will be shifted by +2 (i.e. |0> will become |2>, |1> will become |0>, and |2> will become to |1>). Figure 0.1 (c) shows the Z (02) operations, where if the given input is |0> it will be swapped by |2> and vice versa. Note that input |1> will not affect this gate. That means input |1> will pass as |1> itself (i.e. no swapping). Figure 0.1 (d) shows the Z (01) operations, in the same way, if the given input is |0> it will be swapped by |1> and vice versa. And, now input |2> will not affect this gate. That means input |2> will pass as |2> itself (i.e. no swapping). And Figure 0.1 (e) shows the Z (12) operations, where if the given input is |1> it will be swapped by |2> and vice versa. Eventually, input |0> will not affect this gate. That means input |0> will pass as |0> itself (i.e. no swapping). 0.8.1.1
Quantum Ternary Toffoli Gates
The Ternary Toffoli gate is another quantum ternary gate. Its inputs are A, B, and C, where A and B are the controlling inputs and C is the controlled input. Its outputs are
FIGURE 0.1 The General Architecture of the Ternary Permutation Gates
Quantum Fundamental Gates in Multi-Valued Logic
7
FIGURE 0.2 Symbol of Generalized 3-Qutrit Ternary Permutation Operations P=A Q=B R = Z transforms of C; if A = X1 and B = X2 R = C; otherwise The symbol of the generalized 3-qutrit Ternary Permutation/Shift operations is shown in Figure 0.2. As shown in Figure 0.2, the outputs of the ternary Toffoli gate are P, Q, and R. The outputs P and Q are equal to A and B, and the output R is equal to the Z transform of C if the inputs A and B are equal to X1 and X2, where Z = {+1, +2, 01, 02, 12}. Otherwise, the output R is equal to the input C. Figure 0.3 shows the Toffoli gate for one controlled input. Here, the gate will open only if the controlled qutrit is |2>.
FIGURE 0.3 Ternary 1-bit Controlled Operation
8
Fundamentals of Multiple-Valued Quantum Molecular Biology
FIGURE 0.4 The General Structure Ternary 3-qutrit C2 NOT Gate
0.8.2
Quantum Ternary C2 NOT Gate
In ternary logic, several multi-qutrit control operations are possible. A 3-qutrit C 2 NOT which is used for realizing the simplification rules for ternary minterms as C2 NOT (A, B, C) = NOT(C); if A != B and A,B != 0 C2 NOT (A, B, C) = C; otherwise where A, B are control inputs and C is the target input. Here, the final NOT (C) will provide the (+1) operation of the given input. Figure 0.4 shows the symbol of the ternary C2 NOT gate. There might be confusion in this gate because it is called C2 NOT gate but isn’t doing the actual NOT operation. This gate will only activate if the input A = |1> and B = |2> or input A = |2> and B = |1> (see the logical expression). And if the control inputs fulfill the condition and input C is |0>, it will perform a Z (+1) operation and produce output |1>, and for input C as |1> and |2>, it will produce |2> and |0>, respectively.
0.9
Quantum Multi-Valued Basic Logic Operations
Quantum ternary logic functions are those functions that have significance if a third value is acquainted with the quantum binary logic. Quantum computing in the ternary logic system is quite interesting. Here, |0>, |1>, and |2> denote the ternary levels for basic logic gates to represent false, undefined, and true, respectively. The basic operations of quantum ternary logic can be defined as follows: yOR = max(x, y) yNOR = max(x, y) yAND = min(x, y) yNAND = min(x, y) yXOR = sum(x, y) yXNOR = sum(x, y) Where, x, y = {0, 1, 2}
9
Quantum Multi-Valued Basic Logic Operations TABLE 0.2 Truth Table for Ternary AND, NAND, OR, NOR, XOR, XNOR Input 1 0 0 0 1 1 1 2 2 2
Input 2 0 1 2 0 1 2 0 1 2
AND 0 0 0 0 1 1 0 1 2
NAND 2 2 2 2 1 1 2 1 0
OR 0 1 2 1 1 2 2 2 2
NOR 2 1 0 1 1 0 0 0 0
XOR 0 1 2 1 2 0 2 0 1
XNOR 2 1 0 1 0 2 0 2 1
The truth table of those operations is shown in Table 0.2. Assume every operation is in the quantum system. For convenience, classical names are used. The truth Table of Quantum Ternary AND, NAND, OR, NOR, XOR, and XNOR logic operations for ternary logic is presented in the above Table. For AND logic operation its output value depends on the minimum value of its inputs. Similarly, in the case of the OR logic operation, its output value depends on the maximum value of its inputs. For the XOR operation, its output value is the sum of the value of its inputs. Therefore, the outputs of Quantum Ternary NAND, NOR, and XNOR logic operations become the inverted of quantum ternary AND, OR, and XNOR logic operations.
0.9.1
Ternary Quantum-AND Operation
Quantum ternary AND operation is defined as YQAND = min (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The truth table of quantum ternary AND operation is given in Table 0.3. TABLE 0.3 Truth Table of Quantum Ternary AND Operations |0> |1> |2>
|0> |0> |0> |0>
|1> |0> |1> |1>
|2> |0> |1> |2>
10
Fundamentals of Multiple-Valued Quantum Molecular Biology
FIGURE 0.5 Circuit Diagram of Quantum Ternary AND Operation 0.9.1.1
Design Architecture of Ternary Quantum-AND Operation
The circuit diagram of the Quantum Ternary AND operation is shown in Figure 0.5; both (a) and (b) show the circuit diagram of the Quantum Ternary AND operation. Any of those can be used. The Quantum Ternary AND operation require the shifting operations that include Z (+1) and Z (+2) shifting. Where one Z (+2) operation is controlled by both inputs and will open only if the value of both inputs is |2>. And following a C2 NOT gate is used which will work only if the inputs A and B met conditions of A! =B and A, B! = |0>. And the following Z (+1) operation is controlled by both inputs and will open only if the value of both inputs is |1> (Figure 0.5 (a)). This will give the expected outputs that were shown in the truth table. Figure 0.5 (b) is the equivalent of Figure 0.5 (a), but requires more quantum ternary gates.
0.9.2
Ternary Quantum-NAND Operation
As it is known how to design the quantum ternary AND operation, it is understandable that only a NOT operation is required to get the result of quantum NAND operation. Quantum NAND operation is defined as YQNAND = (min(X, Y)) where X and Y are the input from {|0>, |1>, |2>}. Table 0.4 shows the truth table of Quantum Ternary NAND Operations. From the truth table, it can be understood that this operation will not affect the quantum ternary AND output value |1>. If the output value |0> it will convert it to the |2> and vice versa.
11
Quantum Multi-Valued Basic Logic Operations TABLE 0.4 Truth Table of Quantum Ternary NAND Operations |0> |1> |2>
0.9.2.1
|0> |2> |2> |2>
|1> |2> |1> |1>
|2> |2> |1> |0>
Design Architecture of Ternary Quantum-NAND Operation
The quantum ternary NAND operation is nothing but the AND operation. Therefore, the only need is to invert the output of the quantum ternary AND operation outputs. The circuit diagram of Quantum Ternary NAND operation is shown in Figure 0.6. The output can be inverted in two ways. Figures 0.6 (a) and 0.6 (b) both can perform quantum ternary NAND operations. Because Z(02) swapping is the same as quantum NOT operation.
0.9.3
Ternary Quantum-OR Operation
Quantum OR operation is defined as YQOR = max (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary OR operation are shown in Table 0.5. 0.9.3.1
Design Architecture of Ternary Quantum-OR Operation
The Quantum Ternary OR operation requires the shifting operations that include Z(+1) and Z(+2) shifting. Where two Z(+1) operation is not controlled, and two Z(+1) operation is controlled by two input. And two Z(+2) operation is controlled
FIGURE 0.6 Circuit Diagram of Quantum Ternary NAND Operation
12
Fundamentals of Multiple-Valued Quantum Molecular Biology TABLE 0.5 Truth Table of Quantum Ternary OR Operations |0> |1> |2>
|0> |0> |1> |2>
|1> |1> |1> |2>
|2> |2> |2> |2>
FIGURE 0.7 The Circuit Diagram of Quantum Ternary OR Operation by respective one input (input |B> for the first Z(+2), and input |A> for the second Z(+2)). And, a two-input controlled C2 NOT gate is also required to get the expected result that was shown above in the truth table. The circuit diagram of The Quantum Ternary OR operation is shown in Figure 0.7.
0.9.4
Ternary Quantum-NOR Operation
Quantum Ternary NOR operation is defined as YQNOR = (max(X, Y)), where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary NOR operation are shown in Table 0.6. TABLE 0.6 Truth Table of Quantum Ternary NOR Operations |0> |1> |2>
|0> |2> |1> |0>
|1> |1> |1> |0>
|2> |0> |0> |0>
13
Quantum Multi-Valued Basic Logic Operations
FIGURE 0.8 The Circuit Diagram of Quantum Ternary NOR Operation 0.9.4.1
Design Architecture of Ternary Quantum-NOR Operation
The Quantum Ternary NOR NOR operation is nothing but the OR operation. Therefore, it is needed to invert the output of the quantum ternary OR operation’s outputs. Therefore the circuit diagram will be the same as the quantum ternary OR operation with an extra NOT operation at the end. The circuit diagram of Quantum Ternary NOR operation is shown in Figure 0.8.
0.9.5
Ternary Quantum XOR Operation
Quantum Ternary XOR operation is defined as YQXOR = sum (X, Y), where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary XOR operation are shown in Table 0.7. TABLE 0.7 Truth Table of Quantum Ternary XOR Operation |0> |1> |2>
|0> |0> |1> |2>
|1> |1> |2> |0>
|2> |2> |0> |1>
14
Fundamentals of Multiple-Valued Quantum Molecular Biology
FIGURE 0.9 The Circuit Diagram of Quantum Ternary XOR Operation TABLE 0.8 Truth Table of Quantum Ternary XNOR Operations |0> |1> |2>
0.9.5.1
|0> |2> |1> |0>
|1> |1> |0> |2>
|2> |0> |2> |1>
Design Architecture of Ternary Quantum XOR Operation
The circuit diagram of the Quantum Ternary XOR operation is shown in Figure 0.9. The Quantum Ternary XOR operation requires the shifting operations that include Z (+1) and Z (+2) shifting. Where two Z (+1) operation is not controlled, and two Z (+2) operation is controlled by respective one input. And one Z (+2) operation is controlled by both inputs. And, two two-input controlled C2 NOT gate is also required to get the expected result.
0.9.6
Ternary Quantum XNOR Operation
Quantum Ternary XNOR operation is defined as YQXNOR =sum(X , Y) , where X and Y are the input from {|0>, |1>, |2>}. The operations in the quantum ternary XOR operations are shown in Table 0.8. 0.9.6.1
Design Architecture of Ternary Quantum XNOR Operation
The Quantum Ternary XNOR operation is nothing but the ternary QXOR operation. Therefore, it is needed to invert the output of the quantum ternary XOR operation’s outputs. In order to do that, an inverter is needed to add to the QXOR’s circuit. The circuit diagram of the quantum ternary XNOR operation is shown in Figure 0.10.
Fundamental Operations in Multiple-Valued DNA Computing
15
FIGURE 0.10 The Circuit Diagram of Quantum Ternary XNOR Operation Z (O2) shift operation is added which will invert the output value of the quantum ternary XNOR operations. Quantum NOT operation can be added instead of Z (02) as shown earlier.
0.10
Fundamental Operations in Multiple-Valued DNA Computing
In this section, the fundamental operations will be implemented in ternary logic in DNA computing. NOT, OR, NOR, AND, NAND, XOR, XNOR, etc. will be implemented in DNA computing with ternary logic system. DNA ternary logic functions are those functions that have significance if a third value is acquainted with the DNA binary logic. Here, ACCTAG, CAAGCT, and TGGATC will represent 0, 1, and 2 in ternary logic which denotes the ternary levels for basic logic operations to represent false, undefined, and true, respectively. The basic operations of DNA ternary logic can be defined as follows: yOR = max(x, y) yNOR = max(x, y) yAND = min(x, y) yNAND = min(x, y) yXOR = sum(x, y) yXNOR = sum(x, y) where, x, y = {0, 1, 2}. But in this case, 0, 1, and 2 are used for simplicity. The actual values are the DNA strands which are ACCTAG, CAAGCT, and TGGATC as mentioned before. The truth table of those DNA operations is shown in Table 0.9. Assume every operation is in the quantum system. For convenience, classical names are used.
16
Fundamentals of Multiple-Valued Quantum Molecular Biology TABLE 0.9 Truth Table for Ternary AND, NAND, OR, NOR, XOR, XNOR Operations Input 1 0 0 0 1 1 1 2 2 2
Input 2 0 1 2 0 1 2 0 1 2
AND 0 0 0 0 1 1 0 1 2
NAND 2 2 2 2 1 1 2 1 0
OR 0 1 2 1 1 2 2 2 2
NOR 2 1 0 1 1 0 0 0 0
XOR 0 1 2 1 2 0 2 0 1
XNOR 2 1 0 1 0 2 0 2 1
The truth table of DNA Ternary AND, NAND, OR, NOR, XOR, and XNOR logic operations for ternary logic is depicted in the Table 0.1. For AND logic operation its output value depends on the minimum value of its inputs. Similarly, in the case of the OR logic operation, its output value depends on the maximum value of its inputs. For the XOR operation, its output value is the sum of the value of its inputs. Therefore, the outputs of DNA Ternary NAND, NOR, and XNOR logic operations become the inverted of quantum ternary AND, OR, and XNOR logic operations.
0.10.1
Ternary DNA-NOT Operation
It is known about the NOT operation principle that the NOT operation will simply invert the input value. Here in ternary DNA logic, the invert of ACCTAG is TGGATC and vice versa. And the invert value of CAAGCT is CAAGCT itself. DNA-AND operation is defined as YDNOT (X) = X , where X is the input from {ACCTAG, CAAGCT, TGGATC}. 0.10.1.1
Design Procedure of DNA Ternary NOT Operation
Figure 0.11 shows the architecture of the DNA ternary NOT operation. As it is said earlier, the architecture will not be complex in DNA ternary logic implementation. Here no base sequence is needed in the test tube. The fluorescent level will deterTABLE 0.10 Truth Table of DNA Ternary Standard NOT Operations X ACCTAG CAAGCT TGGATC
X TGGATC CAAGCT ACCTAG
Fundamental Operations in Multiple-Valued DNA Computing
17
FIGURE 0.11 The Operational Diagram of DNA Ternary NOT Operation mine the output. The Annealing temperature should be more than 60◦ C for the DNA ternary NOT operations.
0.10.2
Ternary DNA-AND Operation
DNA ternary AND operation is defined as YDT AND = min(X, Y), where X and Y are the input from {0, 1, 2}. Table 0.11 shows the truth table of DNA ternary AND operations. 0.10.2.1
Design Procedure of DNA Ternary AND Operation
Figure 0.12 shows the architecture of the DNA ternary AND operation. Where two input sequences will add to the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary AND operations.
0.10.3
Ternary DNA NAND Operation
DNA ternary NAND operation is defined as YDT NAND = min( X, Y ), where X and Y are the input from {0, 1, 2}. The truth table of DNA ternary NAND operations is shown in Table 0.12. TABLE 0.11 Truth Table of DNA Ternary AND Operations ACCTAG CAAGCT TGGATC
ACCTAG ACCTAG ACCTAG ACCTAG
CAAGCT ACCTAG CAAGCT CAAGCT
TGGATC ACCTAG CAAGCT TGGATC
18
Fundamentals of Multiple-Valued Quantum Molecular Biology TABLE 0.12 Truth Table of DNA Ternary NAND Operations ACCTAG CAAGCT TGGATC
0.10.3.1
ACCTAG TGGATC TGGATC TGGATC
CAAGCT TGGATC CAAGCT CAAGCT
TGGATC TGGATC CAAGCT ACCTAG
Design Procedure of DNA Ternary NAND Operation
From Table 0.12, it is found that the DNA ternary NAND operation is the inverted output of the DNA ternary AND operation. The DNA ternary NOT operation is designed which inverts an input. Therefore, the DNA ternary NAND operation can be constructed by adding STI to the DNA ternary AND operation which is shown in Figure 0.13. Figure 0.13 shows that the DNA ternary NAND is constructed using one DNA ternary AND operation followed by one DNA ternary NOT operation.
0.10.4
Ternary DNA-OR Operation
DNA ternary OR operation is defined as YDT OR = max (X, Y), where X and Y are the input from {0, 1, 2}. Table 0.13 shows the truth table of DNA ternary OR operations. 0.10.4.1
Design Procedure of DNA Ternary OR Operation
Figure 0.14 shows the architecture of the DNA ternary OR operation, where two input sequences will mix into the test tube and the fluorescence level will produce
FIGURE 0.12 The Operational Diagram of DNA Ternary AND operation
Fundamental Operations in Multiple-Valued DNA Computing
FIGURE 0.13 The Operational Diagram of DNA Ternary NAND Operation TABLE 0.13 Truth Table of DNA Ternary OR Operations ACCTAG CAAGCT TGGATC
ACCTAG ACCTAG CAAGCT TGGATC
CAAGCT CAAGCT CAAGCT TGGATC
TGGATC TGGATC TGGATC TGGATC
FIGURE 0.14 The Operational Diagram of DNA Ternary OR operation
19
20
Fundamentals of Multiple-Valued Quantum Molecular Biology
FIGURE 0.15 The Operational Diagram of DNA Ternary NOR Operation the output based on the input sequence. The annealing temperature is more than 60o C for the DNA ternary OR operations.
0.10.5
Ternary DNA-NOR Operation
DNA ternary NOR operation is defined as YDT NOR = max( X, Y ), where X and Y are the input from {0, 1, 2}. Table 0.14 shows the truth table of DNA ternary NOR operations. 0.10.5.1
Design Procedure of DNA Ternary NOR Operation
From Table 0.14 it is found that DNA ternary NOR operation is the inverted output of the DNA ternary OR operation. The DNA ternary NOT operation is designed which inverts an input. Therefore, it is possible to construct the DNA ternary NOR operation by adding STI to the DNA ternary OR operation, which is shown in Figure 0.15. Figure 0.15 shows that the DNA ternary NOR is constructed using one DNA ternary OR operation followed by one DNA ternary NOT operation. TABLE 0.14 Truth Table of DNA Ternary NOR Operations ACCTAG CAAGCT TGGATC
ACCTAG TGGATC CAAGCT ACCTAG
CAAGCT CAAGCT CAAGCT ACCTAG
TGGATC ACCTAG ACCTAG ACCTAG
Fundamental Operations in Multiple-Valued DNA Computing
21
TABLE 0.15 Truth Table of DNA Ternary XOR Operations ACCTAG CAAGCT TGGATC
0.10.6
ACCTAG ACCTAG CAAGCT TGGATC
CAAGCT CAAGCT TGGATC ACCTAG
TGGATC TGGATC ACCTAG CAAGCT
Ternary DNA-XOR Operation
DNA ternary XOR operation is defined as YDT XOR = sum (X, Y), where X and Y are the input from {0, 1, 2}. Table 0.15 shows the truth table of DNA ternary XOR operations. 0.10.6.1
Design Procedure of DNA Ternary XOR Operation
Figure 0.16 shows the architecture of the DNA ternary XOR operation, where two input sequences will mix to the test tube and the fluorescence level will produce the output based on the input sequence. The annealing temperature is more than 60◦ C for the DNA ternary XOR operations.
0.10.7
Ternary DNA XNOR Operation
DNA ternary XNOR operation is defined as YDT NOR = sum(X, Y), where X and Y are the input from {0, 1, 2}. Table 0.16 shows the truth table of DNA ternary XNOR operations. 0.10.7.1
Design Procedure of DNA Ternary XNOR Operation
From Table 0.16, it is found that DNA ternary XNOR operation is the inverted output of the DNA ternary XOR operation. The DNA ternary NOT operation is designed which inverts an input. Therefore it is possible to construct the DNA ternary XNOR
FIGURE 0.16 The Operational Diagram of DNA Ternary XOR Operation
22
Fundamentals of Multiple-Valued Quantum Molecular Biology TABLE 0.16 Truth Table of DNA Ternary XNOR Operations ACCTAG CAAGCT TGGATC
ACCTAG TGGATC CAAGCT ACCTAG
CAAGCT CAAGCT ACCTAG TGGATC
TGGATC ACCTAG TGGATC CAAGCT
FIGURE 0.17 The Operational Diagram of DNA Ternary XNOR Operation operation by adding STI to the DNA ternary XOR operation which is shown in Figure 0.17.
0.11
Summary
This chapter has focused on multi-valued quantum computing with some basic operations. The ternary quantum system represents one type of three-dimensional quantum system with the basis states |0>, |1>, and |2>. These basis states are called qutrit states. A ternary computer is a computer that does computations using ternary logic (three possible values) rather than binary logic (two possible values). The fundamental quantum gates that will work in ternary quantum computing are Quantum Ternary Shift Gates, Quantum Ternary Toffoli Gates, and Quantum Ternary C2 NOT Gates, where quantum ternary shift gates are working along with the Toffoli gate. This chapter has presented basic multi-valued quantum operations with their architectures and working principles. Necessary figures are also shown in their description for better understanding. This chapter has also presented the ternary logic in the DNA computing system, that means establishing basic gates and fundamental operations in the ternary system. The circuit diagram of different DNA Computing operations in the multiplevalued system is discussed with necessary figures. As always, the design principles
Summary
23
and working principles of the operations are shown. To be mentioned, DNA computing in multiple-valued logic is theoretically easier than in the two-valued logic system. Because no DNase Enzyme will be used to detect the DNA strands bond in the ternary system.
Bibliography [1] Hallworth, R. P., & Heath, F. G. (1962). Semiconductor circuits for ternary logic. In Proceedings of the IEE-Part C: Monographs, 109(15), 219-225. [2] Dhande, A. P., & Ingole, V. T. (2005, March). Design and implementation of 2 bit ternary ALU slice. In Proc. Int. Conf. IEEE-Sci. Electron., Technol. Inf. Telecommun (Vol. 17). [3] Zheng, X., Yang, J., Zhou, C., Zhang, C., Zhang, Q., & Wei, X. (2019). Allosteric DNAzyme-based DNA logic circuit: Operations and dynamic analysis. Nucleic Acids Research, 47(3), 1097-1109. [4] Freier, S. M., Kierzek, R., Jaeger, J. A., Sugimoto, N., Caruthers, M. H., Neilson, T., & Turner, D. H. (1986). Improved free-energy parameters for predictions of RNA duplex stability. In Proceedings of the National Academy of Sciences, 83(24), 9373-9377. [5] Breslauer, K. J., Frank, R., Bl¨ocker, H., & Marky, L. A. (1986). Predicting DNA duplex stability from the base sequence. In Proceedings of the National Academy of Sciences, 83(11), 3746-3750. [6] Marella, S. T., & Parisa, H. S. K. (2022). Introduction to Quantum Computing. IntechOpen. doi: 10.5772/intechopen.94103. [7] Miller, M. D., & Thornton, M. A. (2008). MVL concepts and algebra. In Multiple Valued Logic: Concepts and Representations (pp. 21-42). Springer, Cham. [8] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [9] Mandal, S. B., Chakrabarti, A., & Sur-Kolay, S. (2011, May). Synthesis techniques for ternary quantum logic. In 2011 41st IEEE International Symposium on Multiple-Valued Logic (pp. 218-223). IEEE. [10] Di, Y., Zhang, J., & Wei, H. (2008). Cartan decomposition of a two-qutrit gate. Science in China Series G: Physics, Mechanics and Astronomy, 51(11), 16681676.
Part I
Multi-Valued Sequential Circuits in Quantum Molecular Biology
Overview
Multi-Valued quantum computing is one of the most exciting and new scientific disciplines to emerge in the world today. Quantum computers are still a pipe dream, and they are not yet scalable. The researchers are attempting to suggest a quantum circuit that will be used in the fabrication of quantum processors, memory devices, and other devices. Multiple-valued DNA computing is also an exciting scientific field to develop in the world today, yet it is still in its early stages. In the current state of technology, multi-valued DNA computers are still a pipe dream too. The researchers hope to construct a multi-valued DNA circuit that can be used in the production of multi-valued DNA processors, memory devices, and other devices as a result of their research. The combination of these two exciting fields is a new creation that has been introduced in this book. This combination is quantum molecular biology. The sequential circuit is a special type of circuit that has a series of inputs and outputs. The outputs of the sequential circuits depend on both the combination of present inputs and previous outputs. The previous output is treated as the present state. Sequential circuits consist of present inputs and the previous outputs used as inputs which finally produce the output result. These circuits are so much important and used in shift registers, flip flops, clocks counters, etc. In this part, sequential circuits are implemented in multi-valued quantum, DNA, quantum-DNA and DNAquantum computing. The topics to be discussed are D flip flop, SR latch, SR flip flop, JK flip flop, T flip flop, Shift register, Ripple counter, Synchronous counter. All these sequential circuits will be described here with their general organization, circuit architecture, working principle and examples. All necessary figures will be shown also. Sequential logic is used to construct finite-state machines, a basic building block in all digital circuitry. Virtually all circuits in practical digital devices are a mixture of combinational and sequential logic.
27
1 Multiple-Valued Sequential Circuits in Quantum Computing
1.1
Introduction
The theory of multi-valued quantum mechanics is one of the most prominent scientific theories of the twentieth century. In addition, to give answers to some outstanding questions, it has had an impact on many modern technologies by expressing a new line of scientific thinking. Scientists and computer scientists such as Paul A. from the Thomas J. Watson Research Center, Charles H. Bennet of IBM, Benioff of Argonne National Laboratory in Illinois, David Deutsch from the University of Oxford, and Richard P. Feynman of Caltech investigated the possibility of Multi-Valued quantum computational devices based on Multi-Valued quantum mechanics during the 1970s and early 1980s. In 1982, Feynman attempted to develop a completely new type of computer system based on notions from multi-valued quantum physics theory. The author created an abstract model to explain how a multi-valued quantum system could be used to perform computations, and also how such a machine could be used as a simulator for multi-valued quantum physics problems. Researchers in the field of quantum physics, on the other hand, have the opportunity to conduct several multi-valued quantum physics experiments within the multi-valued quantum mechanical computer. He went on to explain that multi-valued quantum computers are capable of solving some multi-valued quantum physics problems that are now intractable by conventional computing methods. Deutsch established in 1985 that multi-valued quantum computers are capable of performing tasks that are well above the capabilities of traditional computers. A number theory difficulty known as factorization was solved in multi-valued quantum computers in 1994 by Peter Shor, who proved how the issue would be addressed in multi-valued quantum computers. He also disclosed the fact that regular computers answer issues in exponentially growing time, whereas multi-valued quantum computers solve problems in polynomial time, as opposed to traditional computers. Under Multi-Valued quantum theory and the sequence of discoveries in multi-valued quantum computation that have occurred over the century, multi-valued quantum computers may be more powerful than conventional computers. Scientists have been paying particular attention to multi-valued quantum computation in recent years as a result of the findings of this research. DOI: 10.1201/9781003381921-1
29
30
Multiple-Valued Sequential Circuits in Quantum Computing
Multi-Valued quantum computing is the use of the collective features of multivalued quantum states, such as superposition and entanglement, to carry out computations. A Multi-Valued quantum computation system is a machine that does multivalued quantum calculations on a large number of variables. Multi-Valued quantum computing systems include multi-valued quantum circuit models, multi-valued quantum Turing machines, adiabatic multi-valued quantum computers, one-way multivalued quantum computers, and many types of multi-valued quantum cellular automata, to name a few examples. Currently, the multi-valued quantum circuit, which is based in part on the multivalued quantum bit, or “qubit,” which is comparable to the bit in conventional processing, is the most widely used model of quantum computation. An individual qubit can be in either a superposition state, which is between 0 and 1 or in a multi-valued quantum state, which is either 1 or 0. With regards to measurements, however, it is always a zero or one, depending on the likelihood involved. The likelihood of each outcome is determined by the multi-valued quantum state of the qubit right before the measurement is performed. Making a physical multi-valued quantum computer is a long-term aim that involves developing high-quality qubits using technologies such as transoms, ion traps, and topological multi-valued quantum computers. These qubits may be constructed differently depending on the computing model employed by the entire multi-valued quantum computer, such as multi-valued quantum logic gates, multi-valued quantum annealing, or adiabatic multi-valued quantum computation, among other things. There are now several significant barriers in the way to the development of viable multi-valued quantum computing systems. The fact that qubits suffer from multivalued quantum decoherence and state integrity makes it extremely difficult to sustain their multi-valued quantum states in the long run. Because of this, multi-valued quantum computers require error correction as well as computation. According to church theory, while both multi-valued quantum computing and conventional computing are capable of solving identical tasks, multi-valued quantum computers require less time. Although physicists have known since 1920 that the universe of subatomic particles is a world unto itself, they have been unable to prove it. The discovery that multi-valued quantum particles might be used in calculations, on the other hand, took nearly 50 years for computer scientists to make. The current state of affairs is that Google, IBM, and NASA are all working on the development of a real-world multivalued quantum computing system, and researchers all over the world are striving to discover a way to make it a reality.
1.2 Multi-Valued Quantum D Flip Flop In essence, a Multi-Valued Quantum D flip flop is a two-state timed flip flop. The qubit inputs of a quantum D-type flip flop are operated with a delay in a single clock cycle. The Multi-Valued Quantum D flip flop is also referred to as a delay flip flop.
Multi-Valued Quantum D Flip Flop
31
One of the primary limitations of the Quantum SR NAND Gate Bistable circuit is that the indeterminate input condition of SET = “|0>” and RESET = “|0>” is prohibited. This condition overrides the feedback latching action by forcing both qubits’ outputs to logic “|1>,” and whichever input goes to logic “|1>” first loses control of the latch, while the other input, which is still at logic “|0>,” controls the latch’s ultimate state. A quantum Data Latch, quantum Delay flip flop, quantum Dtype Bistable, quantum D-type Flip Flop, or simply a Multi-Valued Quantum D flip flop can be created by connecting an inverter between the “SET” and “RESET” qubit inputs. The Multi-Valued Quantum D flip flop is by far the most important of all quantum timed flip-flops. When a quantum inverter (quantum NOT gate) is added between the Set and Reset inputs, the two inputs |S> and |R> become complements of each other, ensuring that the two inputs |S> and |R> are never equal (|0> or |1>) at the same time, allowing us to control the toggle action of the flip-flop with just one |D> (Data) input. The Data input, designated “|D>,” is then used in place of the “Set” signal, with the inverter generating the complementary “Reset” input, resulting in a levelsensitive quantum D-type flip-flop from a level-sensitive SR-latch, with |S> = |D> and |R> = |D>. The proposed quantum D flip-flop circuit contains only one qubit input, which must be in a coherence state to perform the quantum computing function. As a result, the circuit must operate in an undefined environment. The coherence state will be disturbed if any particles arise. Heat will be generated by the quantum D flip-flop, which must be removed fast to cool down the circuit and stabilize the coherence state.
1.2.1
General Organization of Multi-Valued D Flip Flop
The ternary quantum D flip flop is one of the most crucial circuits when compared to other timed type flip flips. The ternary quantum D flip flop ensures that the ternary quantum SR flip flop’s two inputs are never the same. The block diagram of multivalued quantum D flip flop is shown in Figure 1.1. There are two inputs to ternary quantum D flip flops: one for data and one for a clock. Multi-Valued Quantum D flip flops with multi-valued outputs have two outputs that are logically opposite. The clock input helps to synchronize the circuit with an external signal. A ternary quantum D flip flop’s output can take one of two possible forms. Data input is directed to a ternary quantum NAND operation circuit in this blog diagram, while data input is reversed and routed to another ternary quantum NAND operation circuit. Both NAND procedures need the clock pulse as an input. The ternary quantum SR latch receives the result of two ternary quantum NAND operations. The ternary quantum D flip flop is constructed using the ternary quantum SR latch. This property is used to induce a delay in the circuit’s data flow. The ternary quantum SR Latch is made up of two ternary quantum NAND operations. The remaining two outputs of the ternary quantum SR Latch function were uncovered. A ternary quantum D flip flop’s output can be one of two types, one of which is
32
Multiple-Valued Sequential Circuits in Quantum Computing
Ternary NAND Operations
Ternary NAND Operations
Ternary NAND Operations
Ternary NAND Operations
FIGURE 1.1 Block Diagram of Multi-Valued Quantum D Flip Flop logically inverse to the other. The ternary quantum D flip flop will continue to function if the clock is enabled; else, the ternary quantum D flip flop will stop working.
1.2.2
Circuit Architecture of Multi-Valued Quantum D Flip-Flop
The D flip-flop has a single qubit input and is built with Quantum NAND operations and a Quantum SR latch. The ternary clock qubit input determines the multi-valued Quantum D flip-flop. One ternary qubit input is visible in the circuit, as shown in the diagram. The one line of this ternary qubit input will be directed into a multi-valued Quantum NAND operation, referred to as the S input in Circuit. In this multi-valued Quantum NAND operation, ternary |S> qubit input and clock qubit input are used. Figure 1.2 shows the multi-valued quantum D flip-flop circuit. When a Ternary |X> qubit is fed into another line, it performs a multi-valued Quantum NOT operation first. In a multi-valued Quantum NAND operation, this Quantum NOT operation was entered as R. The two-qubit inputs R and Clock are used in this ternary Quantum NAND operation. The output of the ternary Quantum NAND operations is used as an input in the multi-valued Quantum SR latch. With these two ternary inputs, the SR latch will be done. The outputs of ternary |Q> and |Q > will be the final output of a multi-valued Quantum SR latch. |Q> always produces the inverse of |Q >.
1.2.3
Working Principle of Multi-Valued Quantum D Flip-Flop
There were two inputs SET and RESET in the Multi-Valued Quantum SR flip flop. However, in a D flip-flop, one ternary input and one line of input are referred to as a SET, and by attaching a Quantum NOT gate to the other line input, the D flip-flop is referred to as being RESET. Because the multi-valued SR latch is no longer available when both inputs are LOW, this complement removes the ambiguity inherent in it. One input is called a data input in multi-valued Quantum D flip-flops. If the data input is high, the flip-flop becomes SET, but if it is low, such as |0>, the flip-flop changes to state and becomes RESET.
33
Multi-Valued Quantum D Flip Flop
FIGURE 1.2 Multi-Valued Quantum D Flip-Flop Circuit However, since the output of the flip flop changes with each pulse provided to this data input, this would be somewhat meaningless. To avoid this, a ternary input named “CLOCK” or “ENABLE” is used to isolate the data input from the latching circuitry of the flip flop once the necessary data is stored. When the clock input is active, the condition of the |X> input is exclusively replicated to the output |Q>. This is then used to create a D Flip Flop, which is a sequential device. So long as the clock input is HIGH, the “multi-valued D flip flop” will store and output whatever logic level is provided to its data terminal. The “set” and “reset” inputs of the flip-flop are both kept at logic level “|1>” after the clock input becomes LOW, preventing the flip-flop from changing state and storing whatever data was present on its output before the clock transition. In other words, the output is “latched” at one of three logic levels: “|0>” or “|1> or |2>.” Table 1.1 shows the truth table of multi-valued quantum D flip-flop. TABLE 1.1 Truth Table of Multi-Valued Quantum D Flip-Flop |Clk> ↓ >> |0> ↑>>|1> ↑ >>|1> ↑ >> |1>
|x> X |0> |1> |2>
|Q> Q |0> |1> |2>
|Q > Q |1> |0> |0>
Description Memoryno change Reset Q>>0 Set Q>> Set Q>>
34
1.2.4
Multiple-Valued Sequential Circuits in Quantum Computing
Example
In a ternary quantum D flip-flop operational circuit, one input is qubit input |x>. Assume this input is |0>. This input will perform a ternary quantum NAND operation with the clock input |1>. Then the output will be |1>. Then qubit input will perform ternary quantum NOT operation and then again it will perform ternary quantum NAND operation. After the ternary NOT operation the input will be |1>. The clock input is |1>. Now the output will be |0> after performing ternary quantum NAND operation. Two ternary quantum NAND operations produce output that will be entered into an input in the ternary quantum SR latch operational circuit. This ternary quantum SR latch operational circuit output will count as a final output in the ternary quantum D flip-flop operational circuit. So, here the two outputs are |S> = |1> and |R>= |0> which will be the inputs for the ternary quantum SR latch. The final outputs are |Q>= |1> and |0> which the inverse output of |Q>. This is the final output of ternary quantum D flip-flop operational circuit and these outputs clarify that the correct output is produced by the ternary quantum D flip-flop operational circuit.
1.3 Multi-Valued Quantum SR Latch There are two types of memory elements, depending on the triggering that is used to operate it. A latch is one of them, and a flip-flop is the other. Flip-flops are edge sensitive, whereas latches work with an enable signal and are level sensitive. A synchronous tool is a Multi-Valued Quantum SR Latch. It doesn’t use any control signals, instead of relying on the state of the |s> and |R> inputs. A Multi-Valued Quantum SR Latch is created by combining two ternary quantum NAND operations. Nonetheless, a multi-valued Quantum SR Latch can be created by combining two ternary quantum NOR operations. Two-qubit inputs are switched and negated in the Multi-Valued Quantum SR Latch. The Multi-Valued Quantum SR Latch is also known as the SET RESET latch. Received 2 outputs from a two-qubit input in the Multi-Valued Quantum SR Latch. This output is the inverse of the previous one. This study presented a Multi-Valued Quantum SR Latch, which was constructed using two ternary Quantum NAND operation circuits. The input line is swapped between two ternary Quantum NAND operations in this proposed Multi-Valued Quantum SR Latch, but it is not negated. In quantum computers, the Multi-Valued Quantum SR Latch serves as memory, and it has a variety of uses in a quantum processor. MultiValued Quantum SR Latch will be utilized on this device as a memory unit if some embedded systems are created employing the quantum device.
Multi-Valued Quantum SR Latch
35
FIGURE 1.3 Block Diagram of Multi-Valued Quantum SR Latch
1.3.1
General Organization of Multi-Valued Quantum SR Latch
One of the most prevalent memory devices is the Multi-Valued Quantum SR Latch, which has an effect on the output as long as it is active. A Multi-Valued Quantum SR Latch’s main qualities are that one qubit input behaves like a SET and another qubit input behaves like a RESET. Figure 1.3 shows the block diagram of multi-valued quantum SR Latch. The Multi-Valued Quantum NAND operation is depicted in this block diagram as a basic component of the Multi-Valued Quantum SR Latch. It is a Multi-Valued Quantum SR latch made up of two basic processes. There are two input lines in the Multi-Valued Quantum SR latch, one for |s> and one for |R>. The ternary outputs |Q> and |Q > were generated from these two ternary qubit inputs. The output of the first multi-valued quantum NAND operation is used as an input for the second multi-valued quantum NAND operation, and the output of the second multi-valued quantum NAND operation is used as an input for the first multi-valued quantum NAND operation. If the input of |S> is |1>, the SR latch is activated; however, if the input of |R> is |1>, the SR latch is not having any influence on the output. In MultiValued Quantum SR Latch, a value of |1> cannot be used to activate two inputs.
1.3.2
Circuit Architecture of Multi-Valued Quantum SR Latch
Level-sensitive Multi-Valued Quantum SR Latches are constructed using only one fundamental operation, the ternary quantum NAND operational circuit. Figure 1.4 depicts the circuit architecture of multi-valued quantum SR Latch. The Multi-Valued Quantum SR Latch has two ternary qubit inputs, as can be seen in the illustration above. |S> entered as an input in the first Multi-Valued Quantum NAND operation and the output of the second Multi-Valued Quantum NAND operation |Q> entered as an input in the second Multi-Valued Quantum NAND operation There are two v+ gates, one v gate, and a CNOT gate present in the Multi-Valued
36
Multiple-Valued Sequential Circuits in Quantum Computing
FIGURE 1.4 Circuit Architecture of Multi-Valued Quantum SR Latch Quantum NAND operation. The architecture of Multi-Valued Quantum NAND is briefly discussed already. It is primarily obtained |Q> as a result of this Multi-Valued Quantum NAND operation. Second, the multi-valued quantum NAND operation is performed on the ternary inputs |R> and |Q>, with the output |Q >. Ancillary qubit |1> is used in each multivalued quantum NAND operation. In quantum systems, this is a logical bit that is used to repair errors.
1.3.3
Working Principle of Multi-Valued Quantum SR Latch
In a Multi-Valued Quantum SR Latch, the state of the |S> and |R> inputs is all that matters. It is unaffected by control signals. |S> input is treated as a SET instruction, while |R> input is treated as a RESET instruction. The output |Q> will be |1> or |2>if the SET input of a Multi-Valued Quantum SR Latch is high, and the opposing output |0> will be the value of |Q> if the SET input is low. The value of |Q> is |1> or |2> when the RESET input is high, and |Q> is |0> when the RESET input is low. The “memory” of the latch is essentially reset. The latch “latches” stay in their previously set or reset state when both inputs are low. When both the SET and RESET inputs are high, the problem arises. As demonstrated in the circuit, the outputs |Q> and Q will have the inverse value. The circuit causes a “race condition” when the SET and RESET inputs |1> / |2> are both used together. Both gates must be identical in order for the device to be “metastable,” or to remain in an undetermined state indefinitely. In actuality, only one gate will win if the proposed circuit is constructed; however, predicting which gate would win is challenging. As a result, a Multi-Valued Quantum SR Latch cannot have both the SET and RESET inputs set to high.
37
Multi-Valued Quantum SR Latch TABLE 1.2 Truth Table of Multi-Valued Quantum SR Latch |S> |0> |0> |1> |0> |2> |1> |2>
|R> |0> |1> |0> |2> |0> |1> |2>
|Q> |Q > Latched |1> |0> |0> |1> |2> |0> |0> |2> Metastable Metastable
When the device is turned on, the same thing happens since both outputs, |Q> and |Q>, are low. Because of the disparities between the two gates, the device will swiftly depart the metastable state, but it’s difficult to predict which of |Q> and |Q> will end up high. SR flip-flops must always be set to a known starting state before being used to avoid erroneous actions; users should not expect that they will initialize to a low state. The truth table of multi-valued quantum SR Latch is shown in Table 1.2. The Multi-Valued Quantum SR Latch is solved by the flip flop explained in the flip flop chapter. On the other hand, the Multi-Valued Quantum SR Latch is still an important part of a CPU or embedded device. The quantum circuit creates a lot of heat, which makes isolating the qubit into a superposition state challenging. As a result, cooling the circuit is required to isolate the qubit into a superposition for a working quantum circuit. Any external particle can cause the qubit’s coherence to be disrupted, causing it to become decoherent. The Multi-Valued Quantum SR Latch can only work if all of this is retained.
1.3.4
Example
Assume that the quantum operation contains both the ternary qubits |0> and |1> for SR Latch. SET instructions will be sent to one qubit input, while RESET instructions will be sent to the other. |0> will be used as a SET instruction in this case, and it will perform the ternary Quantum NAND operation as specified in the circuit. The ultimate output is |0> as a result of this. A ternary quantum NAND operation’s output principle states that if one of the inputs is |0>, then the output will be |0> as well. In addition to completing the ternary quantum NAND operation, qubit input |1> now serves as a reset instruction and is placed into the circuit. If |Q>=|1> then |Q > will be |0>. As it is known, one output is always the inverse of the other one. Multi-Valued Quantum SR with many values each ternary qubit input is handled by multi-valued Latch in the same way. However, because the computations were being done in the quantum superposition state, a lot of heat was generated during
38
Multiple-Valued Sequential Circuits in Quantum Computing
the process. The outcome will be decoherent because the computation is done in the coherence state.
1.4
Multi-Valued Quantum SR Flip Flop
Unlike Multi-Valued Quantum Combinational Logic circuits, multi-valued Quantum Sequential Logic circuits have some form of built-in “Memory” that changes state based on the real signals fed into its inputs at the time. For instance, Multi-Valued Quantum SR Flip Flops have a 1 qubit memory bistable. The SR flip flop has the same SET and RESET inputs. The SET input produces a |1>, whereas the RESET input produces a |0>. The SET RESET flip flop is an abbreviation for the Multi-Valued Quantum SR Flip Flop. From the present state with an output, the reset input is used to return the flip flop to its initial state. The Multi-Valued NAND gate SR flip flop is a simple flip flop in which both outputs provide feedback to the input. In a memory circuit, this circuit is used to store one data bit. Set, RESET, and a found output are the three inputs. Because Multi-Valued Quantum SR Flip Flops have two inputs, most of which are from the outside, a two-qubit model will be employed. It produces more heat than quantum D flip flops at start since it uses two qubits. The basic gate in the middle determines the computation time of this Multi-Valued Quantum SR Flip Flop. In a wide range of processors and embedded devices, Multi-Valued Quantum SR Flip Flops are used. Although the proposed flip-flop produces some garbage, an errorcorrecting auxiliary qubit gives the desired output. The proposed quantum circuit will be more swiftly and effectively implemented in the actual world, addressing a wide range of challenges.
1.4.1
General Organization of Multi-Valued Quantum SR Latch
The Multi-Valued Quantum SR Flip Flop is also known as a SET - RESET flip-flop. The quantum SR latch clearly has a two-qubit input as a result of this. Figure 1.5 shows the block diagram of multi-valued quantum SR latch. The Multi-Valued Quantum SR Flip Flop has two ternary inputs, |S> and |R>, as well as a clock input, |clock>. To begin, two ternary qubits |S> and |R> were combined in a Multi-Valued quantum NAND operation using clock input. The MultiValued Quantum NAND operation is performed via ternary input |S> and input |clock>. In addition, |R> and |clock> inputs conduct another Multi-Valued quantum NAND operation in concurrently. Because they happen in parallel, these two multivalued quantum NAND operations take the same amount of time. Then, using the Multi-Valued Quantum NAND operations ternary output and the final ternary output |Q>, then another Multi-Valued Quantum NAND operation is performed and get the result |Q>. Similar to |R> input lines Multi-Valued quantum NAND operations output and the final output |Q>, the quantum NAND operation is performed and the
Multi-Valued Quantum SR Flip Flop
39
FIGURE 1.5 Block Diagram of Multi-Valued Quantum SR Latch |Q> is produced. Actually, the created output enters Multi-Valued quantum SR latch and discovers the |Q> and |Q > after the first Multi-Valued quantum NAND operations are completed. The outputs |Q> and |Q> have the opposite value. The block diagram depicts all of the procedures involved in the proposed multi-valued quantum SR latch. During the procedure, all ternary qubits must be in the superposition state, which means they must be coherent. The superposition state will dissolve if any particle from the environment arrives close enough.
1.4.2
Circuit Architecture of Multi-Valued Quantum SR Flip Flop
The SR flip-flop in a quantum computer is mostly used as a SET RESET flip-flop. Figure 1.6 shows the multi-valued quantum SR Flip Flop circuits. The proposed Multi-Valued Quantum SR Flip Flop circuit has two ternary inputs |S> and |R>, as well as an additional clock input. Four Multi-Valued Quantum NAND operation circuits make up the Multi-Valued Quantum SR. At first, the ternary |S> and clock inputs perform one Multi-Valued quantum NAND operation. Shift operation +2, C2 NOT, and CNOT are the three main operations that make up the Multi-Valued Quantum NAND operation circuit. The Multi-Valued quantum NAND operation is performed using the inputs |R> and |clk>. Two of the outputs from the Multi-Valued Quantum NAND operations were used as inputs to the quantum SR latch. Multi-Valued quantum SR latch is performed using these two inputs.
40
Multiple-Valued Sequential Circuits in Quantum Computing
FIGURE 1.6 Multi-Valued Quantum SR Flip Flop Circuits One output of previous Multi-Valued quantum NAND operations comes from the |S> input line in the Multi-Valued quantum SR latch, and one of the output SR flipflop |Q> conducts the Multi-Valued quantum NAND operation and creates the output |Q>. The output from Multi-Valued Quantum NAND operation, which is based on |R> input and |Q> output, enters as an input in Multi-Valued Quantum NAND operation and creates the output of Multi-Valued Quantum SR Flip Flop as |Q>, just as it did previously.
1.4.3
Working Principle of Multi-Valued Quantum SR Flip Flop
A Multi-Valued Quantum SR Flip Flop has two-qubit inputs |S> and |R>. Once the qubit input becomes coherent and reaches a superposition state, the quantum operation is executed. Because the Quantum circuit generates a lot of heat, it needs to transmit heat. In a Multi-Valued Quantum SR Flip Flop, the |S> input first switches to superposition and becomes coherent. The ternary quantum NAND operation is then conducted with the |S> input and the clock qubit input |clk>. After finishing the ternary quantum NAND operation, it generates an output. The |R> input with the |clk> input also performs the ternary quantum NAND operation. The quantum SR latch employed the final outputs of both quantum NAND operations as inputs. One input appears to be high, while the other appears to be low. In a quantum SR latch, which is unaffected by control signals, the state of the |S> and |R> inputs is all that matters. The |S> input is treated as a SET command, while the |R> input is treated as a RESET command. If the SET input of the Quantum SR latches becomes high, the output |Q> becomes |1>, and the opposite output |0> becomes the value of |Q>. The value of |Q> is |1> when the RESET input is high, and it is |0> when the RESET
41
Multi-Valued Quantum SR Flip Flop
input is low. The latch’s “memory” is essentially wiped clean. When both inputs are low, the latch “latches” stay in the set or reset state. When both the SET and RESET inputs are high, the actual issue develops. As demonstrated in the circuit, the outputs |Q> and |Q> will have polarized values. The circuit generates a “race scenario” when the SET and RESET inputs |1> are utilized. In order for the gadget to be “metastable,” which implies it will be in an undetermined state for an infinite length of time, both gates must be identical. In actuality, only one gate will win if the proposed circuit is constructed; however, predicting which gate would win is challenging. As a result, with a Quantum SR latch, having both the SET and RESET inputs high is prohibited. When the device is turned on, both ternary outputs, |Q> and |Q>, are low, resulting in a condition that is identical to the one described above. The device will quickly leave the metastable state due to the differences between the two gates, but it’s difficult to predict which of |Q> and |Q> will end up high. To avoid spurious operations, it needs always to set SR flip-flops to a known beginning state before using them; it is nor possible to assume that they will initialize to a low state. The truth table of multi-valued quantum SR flip flop is shown in Table 1.3.
1.4.4
Example
Assume that the ternary inputs |0> and |1> are received in order for the Multi-Valued Quantum SR Flip Flop operational circuit to create the correct output. The |0> input end is wired into the |S> input end, while the |1> input end is wired into the |R> input end. The fact that the |R> input is set to |1> shows that the operation is a reset. Assume that the clock is turned on and that the input to the clock is |1>. First, use the |clk> input to perform the quantum NAND operation. In a quantum NAND operation, the outcome is |1> if just one of the inputs is |0>; otherwise, the output will be |0>. So, |S>= |0> and |clk>=|1>, then the Intermediate Output is |1>. Another |clk> and |R> input is then used to complete the ternary quantum NAND operation. The |clk> input is |1> in this example, and the |R> input is also |1>. Then the Intermediate Output is |0> TABLE 1.3 Truth Table of Multi-Valued Quantum SR Flip Flop |S> |0> |0> |1> |0> |2> |1> |2>
|R> |0> |1> |0> |2> |0> |1> |2>
|Q> No Change |0> |1> |0> |2> Invalid Invalid
|Q> |1> |0> |2> |0>
42
Multiple-Valued Sequential Circuits in Quantum Computing
These two ternary input qubits, |1> and |0>, will then be fed into the quantum SR latch as input. They will carry out the quantum SR latch operation. The SR latch operation circuit is made up of a series of quantum NAND operation circuits. So the final outputs are |Q>=|0> and Q>=|1>. This suggested Multi-Valued Quantum SR Flip Flop circuit now has outputs |0> and |1> for the inputs |0> and |1>. This is the needed input for the specified input in a Multi-Valued Quantum SR Flip Flop. Heat is generated by Multi-Valued Quantum SR Flip Flops, however it has no influence on the output.
1.5 Multi-Valued Quantum JK Flip Flop The most often used flip-flop in flip-flop designs will be the Multi-Valued Quantum JK flip-flop . The letters J and K are not abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are distinct letters chosen by creator Jack Kilby to distinguish the flip-flop design from others. Regardless of the fact that Jack Kilby invented the digital electronics JK flip flop. The suggested Multi-Valued Quantum JK flip flop is not the same as the digital JK flip flop in terms of how it works. The sequential operation of the Multi-Valued Quantum JK flip flop is identical to that of the preceding quantum SR flip flop, with the same “Set” and “Reset” inputs. The difference this time is that the “Multi-Valued Quantum JK flip flop” has no improper or banned quantum SR Latch input states even though S and R are both at logic “1.” The Multi-Valued Quantum JK flip flop clearly does not address the issues with the quantum SR flip flop. The Multi-Valued Quantum JK flip flop is essentially a gated quantum SR flip flop with clock qubit input circuitry to avoid the illegal or invalid output state that can occur when both inputs |S> and |R> are equal to logic level “1.” Because of the extra time input, a Multi-Valued Quantum JK flip flop has four possible input combinations: “|1>,” “logic |0>,” “no change,” and “toggle.” As observed in the preceding chapter, a Multi-Valued Quantum JK flip flop has the same symbol as a quantum SR Bistable Latch. The Multi-Valued Quantum JK flip flop, like all flip flops, generates a lot of heat that must be dissipated for the process to work effectively. The Multi-Valued Quantum JK flip flop will not require as much power as other quantum circuits. Once all of the molecules are in superposition and coherence mode, the qubit may simply do the operation. In the Multi-Valued Quantum JK flip flop, a lot of trash values are found, and it is needed to investigate them further to understand what they are. This approach does not take the trash value into consideration.
1.5.1
General Organization of Multi-Valued Quantum JK Flip Flop
The Multi-Valued Quantum JK flip flop is the most commonly utilized flip flop in quantum processor construction. The two ternary qubit inputs of the Multi-Valued
43
Multi-Valued Quantum JK Flip Flop
|J> Ternary NAND Operation
Ternary NAND Operation
Ternary NAND Operation
Ternary NAND Operation
|0> |Q>
|K>
Ternary NAND Operation
Ternary NAND Operation
Ternary NAND Operation
Ternary NAND Operation
|0>
|Q>
FIGURE 1.7 Block Diagram of Multi-Valued Quantum JK Flip Flop Operation Quantum JK flip flop are designated |J> and |K>. Figure 1.7 shows the block diagram of multi-valued quantum JK flip flop operation The ternary qubit input |J> and |k> are used in the Multi-Valued Quantum JK flip flop. Many Multi-Valued quantum NAND operations make up this Multi-Valued Quantum JK flip flop. After performing a couple of basic Multi-Valued quantum NAND operations, the ternary output of this operation is entered into the SR flip flop, yielding the ternary outputs |Q> and |Q>. First, the Multi-Valued quantum NAND operation is performed using the ternary inputs |J> and |clk>. The output of the MultiValued quantum NAND operation and the output of the Multi-Valued Quantum JK flip flop |Q > executes another Multi-Valued quantum NAND operation, resulting in the ternary output |S>. Because the ternary input is shared, both |K> and |clk> can be used. The Multi-Valued quantum NAND operation is also performed with ternary inputs. The |Q> output of the Multi-Valued Quantum JK flip flop conducts another Multi-Valued quantum NAND operation and creates the ternary output designated |R>. The Multi-Valued quantum SR flip flop takes these |S> and |R> and produces two ternary outputs |Q> and |Q>. There are four multi-valued quantum NAND operations in a multi-valued quantum SR flip flop. |S> ternary input and |clk> clock input Multi-Valued quantum NAND operation is performed using ternary input, as well as |R> ternary input and shared |clk> ternary input. The Multi-Valued quantum NAND operation is also performed via ternary input. The ternary output of these two NAND operations is used as a ternary input in the multi-valued quantum SR latch. The Multi-Valued quantum NAND operation is performed by two |Q> and one ternary input as well as |Q > and another ternary input in Multi-Valued quantum SR latches. Finally, the Multi-Valued Quantum JK flip flops final ternary output |Q> and |Q > is received after all of this quantum process.
44
Multiple-Valued Sequential Circuits in Quantum Computing
NAND
NAND
|J>
NAND
NAND
|0> |Q> NAND
NAND
NAND
NAND
|K> |Q>
|0>
FIGURE 1.8 Multi-Valued Quantum JK Flip Flop Operation Circuit
1.5.2
Circuit Architecture of Multi-Valued Quantum JK Flip Flop
Two ternary qubit inputs and one clock shared input make up the Multi-Valued Quantum JK flip flop. The clock also affects the Multi-Valued Quantum JK flip flop. If the clock is enabled, the circuit will be enabled as well; otherwise, it will not. The multivalued quantum JK flip flop operation circuit is shown in Figure 1.8. |J> and |K> are ternary inputs. The Multi-Valued quantum NAND operation will be performed differently by both values with the shared |clk> input. Multi-Valued quantum NAND is performed using the ternary inputs |J> and |clk>. Multi-Valued quantum basic gates were used to perform a NAND operation. An ancillary bit was employed for error correction here. The value of an auxiliary bit in Quantum NAND operations is |1>. A ternary output qubit after performing the Multi-Valued quantum NAND operation is acquired with |J> and |clk>, and the Multi-Valued quantum NAND operation is performed with this ternary output qubit and the ternary output of the flip-flop |Q> to get the ternary output |S>. The |R> ternary output is produced by the same procedure’s |K>, |clk>, and |Q> ternary inputs. Multi-Valued quantum NAND operations make up the majority of these circuits. The Multi-Valued quantum SR flip-flop operation is done on this |S> and |R> input. The proposed essential component of multi-valued quantum computing is multi-valued quantum NAND operation, which is used in multi-valued quantum SR flip flop operation circuit design.
1.5.3
Working Principle of Multi-Valued Quantum JK Flip Flop
The two-qubit circuit is the multi-valued quantum JK flip flop. The JK flip flop is the most often utilized flip flop in multi-valued quantum computing. The ternary input
45
Multi-Valued Quantum JK Flip Flop
|J> and |K> of a Multi-Valued Quantum JK flip flop performs two Multi-Valued quantum processes in tandem. The Multi-Valued quantum NAND operation is performed with |J> and a shared ternary input |clk>. The Multi-Valued Quantum NAND operation is then performed on one ternary output of the Multi-Valued Quantum JK flip flop, yielding |S>.The |K> and |clk> ternary inputs are processed first in the Multi-Valued quantum NAND operation. Then, using the ternary output of the Multi-Valued Quantum JK flip flop |Q> as well as the result of the Multi-Valued quantum first NAND operation, another Multi-Valued quantum NAND operation is performed, yielding |R>. The steps for creating |S> and |R> are carried out simultaneously. Multi-Valued quantum operations are known for doing many operations simultaneously, and this is exactly what is happening here. The Multi-Valued Quantum SR flip flop operation is then conducted on these |S> and |R> ternary inputs. The Multi-Valued Quantum SR flip flop is likewise based on the Multi-Valued Quantum NAND operation, which is used in this case. Two ternary outputs are discovered after doing the multi-valued quantum SR flip-flop operation. The opposite of one ternary output is the other. This Multi-Valued Quantum JK flip flop solves the Multi-Valued Quantum SR flip flop problem. In the fifth chapter, the multi-valued quantum SR flip-flop is briefly described. Initially, molecules entered a state of superposition and formed qubits. When a qubit is in a superposition state, it is coherent. The flip flop process will be continued until the qubits are coherent. The operation will be disturbed if an outside particle breaks the coherence and causes the qubit to become decoherent. If the heat in the circuit is not reduced, the operation in this circuit will likewise come to a halt. Table 1.4 shows the truth table of multi-valued quantum JK flip flop. Assume that the Multi-Valued Quantum JK flip flop’s truth table is always enabled by the clock input. It works like a quantum SR latch circuit when any of the inputs is |0>, but when both inputs are |1> or |2>, it toggles to create the output, according to the truth table. TABLE 1.4 Truth Table of MultiValued Quantum JK Flip Flop |J> |0> |0> |1> |0> |2> |1> |1> |2>
|K> |0> |1> |0> |2> |2> |1> |1> |2>
|Q> |Q> No Change |0> |1> |1> |0> |2> |0> |0> |2> |1> |0> |0> |1> |2> |0>
46
Multiple-Valued Sequential Circuits in Quantum Computing
The JK flip flop is a better-performing timed SR flip flop. The “race” issue, however, persists. This problem happens when the state of the output |Q> is changed before the clock input’s timing pulse has chance to go “Off.”
1.5.4
Example
Assume that the ternary qubit input is |0> and |1> for the purposes of testing the proposed Multi-Valued Quantum JK flip flop circuit. The Multi-Valued Quantum JK flip flop will work if and only if the clock input is high or |1>. Qubits |0> and |clk> will conduct the quantum NAND operation if the clock input is high. Then Intermediate Output will be |1> The input |1> and the |clk> inputs are working in parallel in addition to complete the quantum NAND operation and creating the appropriate Intermediate Output |0> Two independent multi-valued quantum NAND operations are now carried out using these two intermediate qubit outputs. The Intermediate Output ternary qubit |1> and the final output of the Multi-Valued Quantum JK flip flop |Q> perform the quantum NAND operation. Assume that |Q> is the most recent state |1>. The truth table’s output is |S>=|0>. Now, the quantum NAND operation is then conducted on the Multi-Valued Quantum JK flip flop’s intermediate output |0> and final output |Q>= |0>. The result is |R>=|1>. These qubits named |S> and |R> will now execute the quantum SR flip-flop operation, according to the Multi-Valued Quantum JK flip flop circuit. So the final output will be |0> and |1> A quantum suggestion was eventually made. The JK flip-flop supplies the required qubit inputs |0> and |1>, indicating that the suggested circuit yields the ideal output in theory.
1.6 Multi-Valued Quantum T Flip Flop Multi-Valued quantum T flip–flop is also known as “Multi-Valued Quantum Toggle Flip–flop.” In a Multi-Valued Quantum SR flip–flop, just one input, called the Trigger qubit input or Toggle input, should be sent to the flip–flop to avoid the intermediate state. Toggling is defined as “changing the next state output to complement the current state output.” The quantum T flip–flop is built by making minor adjustments to the quantum JK flip–flop. Because the quantum T flip–flop has just one qubit input, a quantum JK flip–flop can be converted to a quantum T flip–flop by joining the |J> and |K> inputs and giving them the label |T>. T flip flops, like any other ternary quantum operation circuit, struggle to generate more heat. This Multi-Valued Quantum T flip flop will learn if and only if the heat is reduced to near-zero levels. The ternary quantum AND and NOR operations are the most basic components of a Multi-Valued Quantum T flip flop. Basic ternary quantum gates make up this fundamental component. This ternary quantum process is extraordinarily fast when compared to the operation of classical computers.
Multi-Valued Quantum T Flip Flop
47
FIGURE 1.9 Block Diagram of Multi-Valued Quantum T Flip Flop
1.6.1
General Organization of Multi-Valued Quantum T Flip Flop
The problem of multi-valued quantum JK and multi-valued quantum SR flip-flops is solved with the Multi-Valued Quantum T flip-flop. Multi-Valued Quantum T flip flops have a single ternary input |T>. Figure 1.9 shows the block diagram of multivalued quantum T flip flop. Two quantum AND operations share a single ternary qubit input |T>. Ternary |clk> input and ternary |T> output produce two ternary qubit outputs by performing two multi-valued quantum AND operations in tandem. As inputs, these ternary outputs are fed into multi-valued quantum SR flip-flops. Two multi-valued quantum AND operations and two multi-valued quantum NOR operations are used to create these multi-valued quantum SR flip-flops. Two ternary qubit inputs are used in this multi-valued quantum SR flip-flop. First, the multi-valued quantum AND operation is performed on the output of the previous multi-valued quantum AND operation and the output of the multi-valued quantum SR flip-flop |Q >. |S> is the name of the ternary output. Then |Q> executes the multi-valued quantum AND operation on another output of the previous operation. Ternary qubit |R> is the ternary output of these multi-valued quanta AND operations. The multi-valued quantum NOR gate constructs a multi-valued quantum SR latch with ternary input |S> and ternary input |R>. The multi-valued quantum NOR operation is performed by the ternary output of the quantum SR latch |Q> and |S>. The multi-valued quantum NOR operation is performed in parallel by |R> and |Q >. Finally, from the Multi-Valued Quantum T flip flop, the ternary output of |Q> and |Q > are received. These multi-valued Quantum T flip flops produce two ternary outputs that are opposite to one another. Depending on the ternary input qubit, these ternary outputs are truly toggled.
48
Multiple-Valued Sequential Circuits in Quantum Computing
Ternary AND
Ternary AND
Ternary AND
Ternary AND
Ternary AND
Ternary AND
FIGURE 1.10 Multi-Valued Quantum T Flip Flop Operation Circuit
1.6.2
Circuit Architecture of Multi-Valued Quantum T Flip Flop
The multi-valued quantum JK flip flop problem is solved by the multi-valued Quantum T flip flop, which has only one input labeled “T.” This quantum flip flop action’s main application is toggling. Figure 1.10 shows the multi-valued quantum T flip flop operation circuit. In the Multi-Valued quantum T flip flop operation circuit, design some ternary quantum AND operation circuits and some ternary quantum NOR operation circuits. A closer look reveals that the Multi-Valued Quantum T flip flop design is very similar to the quantum JK flip flop. Quantum JK flip-flop operation has a number of challenges that Multi-Valued Quantum T flip-flop operation solves. Multi-Valued Quantum T flip-flops have a shared input, whereas Quantum JK flip-flops have a two-qubit input. Between two Multi-Valued Quantum T flip flops is a quantum SR flip-flop. This flip-flop was made using two concurrent quantum techniques. The quantum SR flip-flop is slightly different from the SR flip-flop explained in the previous chapter. The quantum SR latch in this quantum SR flip-flops concept was created using two quantum AND operations and a quantum NOR SR latch. However, the input and output will be the same as in the quantum SR flip-flop working circuit described earlier. The Multi-Valued Quantum T flip flop has two parallel ternary quantum processes built-in. Then, in the multi-valued quantum SR flip-flop section, two quantum, AND operations are connected in parallel, and two quantum NOR operations are set up in parallel in the multi-valued quantum SR latches. Although it’s just a theoretical circuit, the Multi-Valued Quantum T flip flop design retains quantum parallelism’s features. This circuit architecture can be altered depending on the qubit origin, heat, and temperature.
49
Multi-Valued Quantum T Flip Flop
1.6.3
Working Principle of Multi-Valued Quantum T Flip Flop
A few features distinguish the Multi-Valued Quantum T flip flop from the quantum JK flip flop. Multi-Valued Quantum T flip flops are used to toggle when it is needed. Only one input, |T>, and one clock, |clk>, are available in this operational circuit. If the clock input is |1>, the circuit will be turned on; otherwise, it will be turned off. As a result, the Multi-Valued Quantum T flip flop operation was enabled, and the basic operation started to work. This circuit, like any other circuit, will function if the qubit is in a coherent state. This circuit must be kept at a temperature close to 0 degrees Fahrenheit to prevent any particles from disrupting coherence and making it decoherent. The ternary quantum AND operation, which is the most basic operation in ternary quantum computing, is performed first in the Multi-Valued Quantum T flip flop operational circuit. Two ternary quantum AND operations execute simultaneously, requiring the same amount of time because the |T> and |clk> inputs are shared. This output is then used as an input for a quantum SR flip-flop. In this quantum, the SR flip-flop performs two ternary quantum AND operations in tandem. The ternary quantum SR flip-flop, whose output is passed into the ternary quantum SR latch as input, is the first of two ternary quantum AND operations that operate simultaneously. In this case, a ternary quantum NOR SR latch is employed. The ternary quantum NOR SR latch is built using two ternary quantum NOR operations. The Quantum SR latch performs two NOR operations simultaneously, each taking the same amount of time. After completing all of the operations, it is possible to retrieve the output of the Multi-Valued Quantum T flip flop operation circuit. This technique produces two outputs, one of which is diametrically opposed to the other. Table 1.5 shows the truth table of multi-valued quantum T flip flop In a Multi-Valued Quantum T flip flop, an auxiliary bit will be employed for error correction, and this flip flop may produce trash, however, this is not the subject of the study.
1.6.4
Example
Assume the clock input is set to |1> and the value of input |T> is set to |0>. To begin, two simultaneous ternary quantum AND operations will be executed. Two outputs are created after two ternary quantum AND operations, both of which are |0>. TABLE 1.5 Truth Table of Multi-Valued Quantum T Flip Flop |T> |0> |1> |0> |2> |1>
|Q> |0> |0> |1> |1> |1>
|Q > |1> |1> |0> |0> |0>
50
Multiple-Valued Sequential Circuits in Quantum Computing
These two |0> were sent into a multi-valued quantum SR flip-flop as an input. Two ternary quantum AND operations are also running in parallel here. Following these processes, each ternary quantum AND operation generates an output |0>. Because, as it is known that if the input to any ternary quantum AND operation is |0>, the output will be |0> as well. The ternary quantum NOR SR latch is then fed two outputs as inputs. These two inputs then perform the ternary quantum NOR operation in parallel. The result of each of these procedures is |0> as it is known from NOR operation characteristics.
1.7 Multi-Valued Quantum Shift Register In a Multi-Valued Quantum flip flop, a single bit of two-valued qubit data (|1>or |0>) is stored. To store many qubits of data, however, additional Multi-Valued Quantum flip-flops are necessary. N Multi-Valued Quantum flip flops must be linked in a specific order to store n qubits of data. This data is stored in a Multi-Valued Quantum Register, which is a device. It is made up of a series of quantum flip flops that are used to store data in multiple qubits. Information contained in these multi-valued quantum registers can be communicated using multi-valued quantum shift registers. A Multi-Valued Quantum Shift Register is a set of flip flops that can store multiple bits of data. The qubits contained in such multi-valued quantum registers can be made to travel inside and out of them by applying clock pulses to them. An n-qubit Multi-Valued Quantum Shift register can be constructed by connecting n quantum flip-flops, each of which stores a single qubit of data. Quantum registers called “Multi-Valued Quantum Shift left registers” shift the qubits to the left. Quantum registers that shift the qubits to the right are known as “Multi-Valued Quantum Shift Right Registers.” Multi-Valued Quantum Shift registers are basically of four types. These are: 1. Multi-Valued Quantum Serial In Serial Out shift register 2. Multi-Valued Quantum Serial In parallel Out shift register 3. Multi-Valued Quantum Parallel In Serial Out shift register 4. Multi-Valued Quantum Parallel In parallel Out shift register A multi-valued quantum shift register is created in this work that converts serial data into quantum data using a Quantum D flip-flop operating circuit. The quantum Serial-In Serial-Out shift register is a form of Multi-Valued Quantum Shift Register that allows one qubit of serial input at a time over a single data line and generates a serial output. Due to the fact that there is only one qubit output, data exits the Multi-Valued Quantum Shift register one qubit at a time in a serial pattern, hence the moniker quantum Serial-In Serial-Out Shift Register. In this circuit, four Quantum D flip-flops are connected in a serial method. Because each multi-valued Quantum flip flop receives the same clock signal, they are all synced with one another. A MultiValued Quantum Shift right register accepts serial data from the quantum flip flop’s
51
Multi-Valued Quantum Shift Register
|X>
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
Ternary Quantum NAND
|Q>
FIGURE 1.11 Block Diagram of Multi-Valued Quantum Shift Register left side, as seen in the circuit above. The primary function of a QSISO is to act as a delay element.
1.7.1
General Organization of Multi-Valued Quantum Shift Register
A Multi-Valued Quantum Shift register is created using four quantum D flip-flop operational circuits. A Multi-Valued Quantum Shift register is employed as a basic component for data shift, and a quantum D flip-flop is used to make it happen. Figure 1.11 shows the block diagram of multi-valued quantum shift register. Multi-Valued Quantum D flip flops have two inputs: one for data and the other for the clock. Multi-Valued Quantum D flip flips have logically opposing results. The clock input aids in the circuit’s synchronization with an external signal. The output of a Quantum D flip flop can have two different values. In this block diagram, data input is sent to a Ternary Quantum NAND operation circuit, while data input reverse is sent to another Ternary Quantum NAND operation circuit. The clock pulse input is used by both NAND operations. The result of two Ternary Quantum NAND operations is fed into the Quantum SR Latch. The SR latch is used to make the D flip flop. This characteristic is used to create a delay in the data flow of the circuit. Two Ternary Quantum NAND Operations make up the multi-valued Quantum SR Latch. The multi-valued Quantum SR Latch function’s final two outputs were discovered. A Quantum D flip flop can output two different forms of data, one of which is logically
52
Multiple-Valued Sequential Circuits in Quantum Computing
inverse to the other. If the clock is enabled, the quantum D flip flop will continue to function; otherwise, the quantum D flip flop will stop operating. In the Multi-Valued Quantum Shift register block diagram, operational circuits for quantum D flip-flops are also connected through serial connection. The MultiValued Quantum Shift register is built around the quantum D flip-flop operating circuit.
1.7.2
Circuit Architecture of Multi-Valued Quantum Shift Register
|X>
FIGURE 1.12 Circuit Architecture of Multi-Valued Quantum Shift Register
Ternary Quantum NAND Operations
The Multi-Valued Quantum Shift Register uses four D flip-flops as well as a Ternary Quantum AND Gate. These are used by the Shift Register to produce four qubit outputs. The D flip-flop uses Ternary Quantum NAND and Quantum SR latch operations to create a single qubit input. The circuit architecture of multi-valued quantum shift register is shown in Figure 1.12. The multi-valued quantum D flip-flop requires the clock qubit input. The circuit has one qubit input, as shown in the diagram. In-Circuit, one line of this ternary qubit input will be channeled into a Ternary Quantum NAND operation, which will
|Q>
Multi-Valued Quantum Shift Register
53
be referred to as |S> input. Ternary |S> qubit input and Clock qubit input is used to perform Ternary Quantum NAND. Another line receives the |X> qubit, which executes a Ternary Quantum NOT operation first. The R designation was given to this Ternary Quantum NOT operation, which was included in the Ternary Quantum NAND operation. In this Ternary Quantum NAND operation, the two-qubit inputs R and Clock are employed. As an input, the Ternary Quantum NAND operations’ output is passed to the Quantum SR latch. An SR latch will be created using these two inputs. The final output of |Q> and |Q > will be the Quantum SR latch’s output. |Q> will always result in the inverse of |Q >. Earlier in the book, in the chapter titled Quantum SR Latch, the Quantum SR latch is explored. After processing the inputs in a multi-valued Quantum D flipflop, it outputs one output. The multi-valued Quantum D flip-output flop is used as a clock input for the next multi-valued Quantum D flip-flop. As a result, the output of a Multi-Valued Quantum Shift register is a single qubit.
1.7.3
Working Principle of Multi-Valued Quantum Shift Register
Multi-Valued Quantum Shift registers are a type of register in which both qubit data loading and data retrieval from the Multi-Valued Quantum Shift register happen in serial mode. The positive edge of the clock pulse is sensitive in this research synchronous quantum SISO shift register. At the qubit input of the first quantum flipflop, the data word to be stored is fed bit by bit. Furthermore, the outputs of the preceding ones influence the qubit inputs of all subsequent flip-flops, for example, the input of quantum D flip-flop number-2 is driven by the output of quantum D flipflop number-1. Finally, the data saved in the quantum register is serially retrieved from the output pin of the nth quantum D flip-flop. All of the quantum flip-flops in the quantum register are cleared at first by setting their clear pins to high. Following that, the incoming data word is serially fed into quantum D Flip-flop number-1. As soon as the first leading edge of the clock occurs, the qubit arriving at the first pin is placed into quantum D flip-flop number-1. B1 is placed in quantum D flip-flop number-2 at the second clock tick, while a new bit enters quantum flip-flop number-2. Every rising edge of the clock pulse results in a similar shift in data qubits. This means that the data in the quantum register shifts a single bit to the right with every clock pulse. Following the qubit data transmission, the first qubit of an input word appears at the output of the nth flip-flop during the nth clock tick, as discussed previously. The serial output of the next succeeding qubits of the qubit input data word can be obtained by applying additional clock cycles. Table 1.6 shows the truth table of multi-valued quantum shift register. It creates one output after processing the inputs in a Quantum D flip-flop. The output is fed into the following Quantum D flip-flop as a clock input. A Multi-Valued Quantum Shift Register generates one final qubit output as a result.
54
Multiple-Valued Sequential Circuits in Quantum Computing TABLE 1.6 Truth Table of Multi-Valued Quantum Shift Register |Clk> ↓ >> |0> ↑ >> |1> ↑ >> |1>
1.7.4
|x> X |0> |1>
|Q> Q |0> |1>
|Q > Q |1> |0>
Description Memoryno change Reset Q >> 0 Set Q >>
Example
There is only one ternary qubit input required to conduct the required operation in the Multi-Valued Quantum Shift register. If and only if the clock input is enabled, the Multi-Valued Quantum Shift register will activate. Multi-Valued Quantum Shift registers were presented in this study to shift one qubit data into the correct location. Assume that the Multi-Valued Quantum Shift register operation will be performed by |1>|1>|1>|1>|0> data. To begin, |0> will conduct a multi-valued quantum D flip flop number-1 operation, with the result being |0>. Then this |0>, as well as like every other qubit, will shift to the right side for the first time. Then |1> will be placed into the Multi-Valued Quantum Shift register, which will conduct the midway quantum D flip-flop operation, and then the data will be shifted once on the right side, like the previous one. After that, in the same way as these previous two steps, |1> performs the midway quantum D flip-flop operation in the Multi-Valued Quantum Shift register in the necessary time. Then each piece of data will be shifted once more. It shows that every time qubit data shifts to the right, it shifts once. The operational circuit of a Multi-Valued Quantum Shift Register will do n+1 operations, and the final data table will be like the table below. Table 1.7 shows data shifting process in multi-valued quantum shift register. Because no data is accessible at the n+1 operation time, |0> appears in the truth table, and one data qubit is shifted once on the right side according to the Multi-Valued Quantum Shift register concept. The final data after the n+1 operation is |0>|1>|1>|1>, these results only demonstrated that the Multi-Valued Quantum Shift register produces the right output while adhering to the quantum principle. The TABLE 1.7 Data Shifting Process in Multi-Valued Quantum Shift Register |clk> |0> |1> |1> |1> |1> |1>
|x> |0> |0> |1> |1> |1> |1>
|Q> |0> |0> |1> |1> |1> |0>
|Q1> |0> |0> |0> |1> |1> |1>
|Q2> |0> |0> |0> |0> |1> |1>
|Q3> |0> |0> |0> |0> |0> |1>
Multi-Valued Quantum Ripple Counter
55
Multi-Valued Quantum Shift Register can produce some junk values, however this is not the focus of this research.
1.8
Multi-Valued Quantum Ripple Counter
A Multi-Valued quantum counter is basically used to count the number of clock pulses applied to a multi-valued quantum flip-flop. It can also be used for MultiValued quantum Frequency divider, Multi-Valued quantum time measurement, Multi-Valued quantum frequency measurement, Multi-Valued quantum distance measurement and also for generating square waveforms. In this, the multi-valued quantum flip-flops are Multi-Valued quantum asynchronous counters and are supplied with different clock signals, there may be a delay in producing output. Also, a few numbers of multi-valued quantum logic gates are needed to design asynchronous counters. So they are elementary in design and also are less expensive. An n-qubit ripple counter can count up to 2n states. It is also known as MOD n counter. It is known as a ripple counter because of the way the clock pulse ripples its way through the flip-flops. It is an asynchronous counter. Different flip-flops are used with a different clock pulse. All the flip-flops are used in toggle mode. Only one flip-flop is applied with an external clock pulse and another flip-flop clock is obtained from the output of the previous flip-flop. The flip-flop applied with an external clock pulse acts as LSB (Least Significant qubit) in the counting sequence. A counter may be an up counter that counts upwards or can be a down counter that counts downwards or can do both, i.e., count up as well as count downwards depending on the input control. The sequence of counting usually gets repeated after a limit Multi-Valued quantum Ripple Counter is made out of four JK flip flops. Using these multi-valued quantum JK Flip flops, the multi-valued quantum Ripple Counter creates four qubit outputs. Here in JK flip flop, J and K are not shortened abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are autonomous letters chosen by its inventor Jack Kilby to distinguish the flip-flop design from other types. Though Jack Kilby invented the digital electronics JK flip flop. Multi-Valued quantum Ripple Counter is an asynchronous counter. It is created using multi-valued quantum JK flip flops and these flip flops are only controlled by clock pulse input. Multi-Valued quantum ripple counter produces much heat to produce the molecule’s superposition state and also produces some garbage value.
1.8.1
General Organization of Multi-Valued Quantum Ripple Counter
Multi-Valued quantum Ripple Counter uses four multi-valued quantum JK flip flop to create four qubit outputs. Multi-Valued quantum JK flip flop has the two-qubit input named as |J> and |K>. Figure 1.13 shows the block diagram of multi-valued quantum ripple counter.
56
Multiple-Valued Sequential Circuits in Quantum Computing
Ternary NAND Ternary NAND Ternary NAND
Ternary NAND
Ternary NAND Ternary NAND Ternary NAND
Ternary NAND
Ternary NAND Ternary NAND Ternary NAND
Ternary NAND
Ternary NAND Ternary NAND Ternary NAND Ternary NAND
Ternary NAND Ternary NAND Ternary NAND Ternary NAND
Ternary NAND Ternary NAND Ternary NAND Ternary NAND
Ternary NAND Ternary NAND Ternary NAND
Ternary NAND
Ternary NAND Ternary NAND
Ternary NAND
Ternary NAND
JK Flip-Flop JK Flip-Flop JK Flip-Flop JK Flip-Flop
FIGURE 1.13 Block Diagram of Multi-Valued Quantum Ripple Counter Multi-Valued quantum JK flip-flop has the qubit input |J> and |k>. This MultiValued quantum JK flip flop consists of many Ternary quantum NAND operations. At first basic Ternary quantum NAND operation performs a couple of then this operation output is entered into the SR flip flop as well as got the output |Q> and |Q > First of all |J> and |clk> input perform the Ternary quantum NAND operation. The output of the Ternary quantum NAND operation and output of the Multi-Valued quantum JK flip flop |Q > performs another Ternary quantum NAND operation and produces the output named as |S>. |clk> input is shared so |K> and |clk> input also performs the Ternary quantum NAND operation. This Ternary quantum NAND operations output and |Q> output of the Multi-Valued quantum JK flip flop performs another Ternary quantum NAND operation as well as produces the output named as |R>. These |S> and |R> entered into the Multi-Valued quantum SR flip flop and produce two outputs |Q> and |Q >. In Multi-Valued quantum SR flip flop, it has four Ternary quantum NAND operations. |S> input and |clk> input performs Ternary quantum NAND operation as well as |R> input and shared |clk> input also perform the Ternary quantum NAND operation. These two NAND operations output entered the Multi-Valued quantum SR latch as input. In Multi-Valued quantum, SR latches two |Q> and one input as well as |Q> and other inputs perform the Ternary quantum NAND operation. Finally, after all of this Multi-Valued quantum operation, got the Multi-Valued quantum JK flip flop’s final output |Q> and |Q >. After processing the inputs in a Multi-Valued quantum JK flip flop, the output of the flip flop is going to be stored as an output of the multi-valued quantum Ripple
57
Multi-Valued Quantum Ripple Counter
Ternary Quantum Ternary Quantum NAND Operations NAND Operations
Ternary Quantum NAND Operations
Ternary Quantum NAND Operations
FIGURE 1.14 Circuit Architecture of Multi-Valued Quantum Ripple Counter Counter. A multi-valued quantum ripple counter can be performed as an up counter and also a down counter. Here Multi-Valued quantum every Multi-Valued quantum JK flip-flops output |Q> enters another Multi-Valued quantum JK flip-flop as a clock pulse. This |clk> will decide thus the Multi-Valued quantum JK flip-flop operational circuit will perform or not. Every Multi-Valued quantum JK flip-flop operational circuit will produce the final output.
1.8.2
Circuit Architecture of Multi-Valued Quantum Ripple Counter
Multi-Valued quantum Ripple Counter uses four multi-valued quantum JK flip flops to create four qubit outputs. Multi-Valued quantum JK flip flop has a two-qubit input and one clock shared input. Multi-Valued quantum JK flip flops also depend on the clock. If the clock is enabled then the circuit will enable, otherwise not. Figure 1.14 shows the circuit architecture of multi-valued quantum ripple-counter. In Multi-Valued quantum ripple counter there’s one clock input and one logic input which is shared in both |J> and |K> input port. Input |J> and input |K> both the value will perform the Ternary quantum NAND operation with the shared |clk> input differently. |J> and |clk> input performs the Ternary quantum NAND operation. NAND operation made by using multi-valued quantum basic gates. Basic gates
58
Multiple-Valued Sequential Circuits in Quantum Computing
in mainly multi-valued quantum computing are V, V+, and CNOT gates. For error correction here used an ancillary qubit. In Quant NAND operation the value of an ancillary qubit in |1>. After |J> and |clk> perform the Ternary quantum NAND operation, produced an output qubit, and this output qubit and the output of the flip flop |Q> perform the Ternary quantum NAND operation and produce the output |S>. Like in the same procedure |K>, |clk>, and |Q> input produces the |R> output. These operation circuits are mainly Ternary quantum NAND operations. This |S> and |R> input is performed the Multi-Valued quantum SR flip-flop operation. In Multi-Valued quantum SR flip flop operational circuit architecture, the proposed basic component of multi-valued quantum computing is Ternary quantum NAND operation. After processing the inputs in a Multi-Valued quantum JK flip flop, the output of the flip flop is going to be stored as an output of the multi-valued quantum Ripple Counter. Multi-Valued quantum ripple counter intermediate architectures four multivalued quantum JK flip-flops connected in serial connection using the logical qubit input. Every clock input as |clk> enters every qubit and from the 2nd Multi-Valued quantum JK flip-flop |clk> input is previous Multi-Valued quantum Jk flip-flops first output |Q>. With the same architecture, Multi-Valued quantum ripple counter can be performed as an up counter, or as a down counter, but clock pulse as |clk> need to sometimes have a positive edge triggered and sometimes a negative edge triggered.
1.8.3
Working Principle of Multi-Valued Quantum Ripple Counter
In the Multi-Valued quantum ripple counter, there are four multi-valued quantum JK flip-flop operational circuits. These Multi-Valued quantum JK flip-flop operational circuits are connected in serial connection. In this Multi-Valued quantum ripple counter, there is one clock input and a logic input which are shared into the port |J> and |K> of Multi-Valued quantum JK flip-flop operational circuit. The inputs |J> and |K> of a Multi-Valued quantum Jk flip-flop conduct two Multi-Valued quantum processes in parallel. The Ternary quantum NAND operation is performed using |J> and shared input |clk>. The Ternary quantum NAND operations are then completed, and one of the Multi-Valued quantum JK flip flop’s outputs executes the Ternary quantum NAND operation, producing |S>. The |K> and |clk > inputs are performed first in the Ternary quantum NAND operation. The output of the Multi-Valued quantum JK flip-flop |Q>, as well as the result of the Multi-Valued quantum first NAND operation, are then used to perform another Ternary quantum NAND operation, yielding |R>. The steps for creating |S> and |R> are carried out simultaneously. It is known that one of the distinctive properties of multi-valued quantum operations is that they may do several operations at the same time, and this is exactly what is happening. The Multi-Valued quantum SR flip flop operation is then conducted on these |S> and |R> inputs. The Ternary quantum NAND operation, which is employed here, is also used to make multi-valued quantum SR flip flops. Two outputs are discovered after conducting the multi-valued quantum SR flip-flop operation. The opposite of one output is the opposite of the other.
59
Multi-Valued Quantum Ripple Counter TABLE 1.8 Truth Table of Multi-Valued Quantum Ripple Counter |clk> |0> |1> |1>
|Q0 > |0> |1> |0>
|Q1 > |0> |1> |0>
|Q2 > |0> |1> |0>
|Q3 > |0> |1> |0>
Here if the |clk> is |0> then the Multi-Valued quantum JK flip-flop will not be triggered but if |clk> is |1> or |2> the Multi-Valued quantum JK flip-flop will be triggered and it will toggle the output. First of all Multi-Valued quantum JK flipflop operational circuit gets |clk> value is |1> or |2> and toggles the output value from the previous state value. Then the output of the initial Multi-Valued quantum JK flip-flop will be |clk> input of the next Multi-Valued quantum JK flip-flop. If the |clk> value is |1> or |2> then the output value will be toggled, otherwise, the output will be the previous state output. Maintaining the same procedure every multi-valued quantum JK flip-flop operated in the multi-valued quantum ripple counter. MultiValued quantum JK flip-flop is toggled very much, that’s why in the Multi-Valued quantum ripple counter Multi-Valued quantum JK flip-flop operational circuit here is used as a basic component. Table 1.8 shows the truth table of multi-valued quantum ripple counter. Ternary value |2> will work as like high input such as |1> in multi-valued quantum ripple counter.
1.8.4
Example
To check the Multi-Valued quantum ripple counter proposed circuit, assume a clock signal is |1> and the logical qubit is high. So, if initially the clock signal |1> is delivered, then for the first Multi-Valued quantum JK flip-flop operational circuit, it will be |1>. According to the working principle of Multi-Valued quantum ripple counter, if clock input value is |1>, then the previous state value will be toggled. Then, from the first multi-valued quantum JK flip-flop, we get one output, which is |1>. This |1> will be the clock input for the second Multi-Valued quantum JK flip-flop circuit according to the architecture of the Multi-Valued quantum ripple counter. As with the previous multi-valued quantum JK flip-flop, for the third and fourth multi-valued quantum flip-flops, the principle is the same. For both of the flip-flops, the clock value will be the previous multi-valued quantum JK flip-flop’s output. Hence, from the above truth table (Table 1.8), we can see that the proposed multivalued quantum ripple counter is correct theoretically. Multi-Valued quantum JK flip-flop used here for toggling. This Multi-Valued quantum ripple counter produces much heat when the molecule’s normal state becomes a superposition state. MultiValued quantum ripple-counter’s full operation needs to be in an environment where other particles are totally prohibited to maintain the coherence state.
60
1.9
Multiple-Valued Sequential Circuits in Quantum Computing
Multi-Valued Quantum Synchronous Counter
A ternary Quantum counter is a ternary Quantum gadget that can count any specific event based on how many times the event(s) has occurred. This ternary Quantum counter, which is based on a ternary Quantum clock signal, can count and store the number of times any given event or process has occurred in a ternary Quantum logic system or computer. A sequential ternary Quantum logic circuit with a single clock input and many qubit outputs is the most frequent type of ternary Quantum counter. The outputs of the qubits are two-valued decimal numbers. Each clock pulse either adds to or subtracts from the total. A multi-valued Quantum Synchronous circuit is anything that is timesynchronized with others. Multi-Valued Quantum Synchronous signals have the same clock rate as single-valued Quantum Synchronous signals, and all clocks are synchronized with the same reference clock. The qubit output of the ternary Quantum counter is directly coupled to the input of the next following counter, forming a chain system. As a result of this chain system propagation delay, counting delays develop throughout the counting stage. The clock qubit input across all ternary Quantum flipflops in a Multi-Valued Quantum Synchronous counter uses the same source and generates the same clock signal at the same time in a Multi-Valued Quantum Synchronous counter. As a result, a Multi-Valued Quantum Synchronous counter is a ternary Quantum counter that uses the same clock signal from the same source at the same time. Four JK flip flips and two ternary Quantum AND Gates make up a Multi-Valued Quantum Synchronous Counter. The Multi-Valued Quantum Synchronous Counter generates four qubit outputs using these ternary Quantum JK Flip flops and ternary Quantum AND Gates. A Multi-Valued Quantum Synchronous counter generates a lot of heat, and this circuit operation must take place in a ternary Quantum computing environment.
1.9.1
General Organization of Multi-Valued Quantum Synchronous Counter
Four ternary Quantum JK flip flops are used to create four qubit outputs in the MultiValued Quantum Synchronous Counter. The two-qubit inputs of the ternary Quantum JK flip flop are designated |J> and |K>. Figure 1.15 shows the block diagram of multi-valued quantum synchronous counter. The qubit inputs |J> and |k> are used in the Ternary Quantum JK flip-flop. Many ternary Quantum NAND operations make up this ternary Quantum JK flip flop. After performing a couple of simple ternary Quantum NAND operations, the output of this operation is entered into the SR flip flop, yielding the output |Q> and |Q >. First, the ternary Quantum NAND operation is performed using the |J> and |clk> inputs. The output of the ternary Quantum NAND operation and the output of the ternary Quantum JK flip flop |Q > is used to execute another ternary Quantum NAND operation, yielding the output |S>. Because the |clk> input is shared, the ternary Quantum NAND operation is performed on both the |K> and |clk> inputs. The ternary
Multi-Valued Quantum Synchronous Counter
61
FIGURE 1.15 Block Diagram of Multi-Valued Quantum Synchronous Counter Quantum JK flip flop’s |Q> output conducts another ternary Quantum NAND operation and yields the |R> output. These |S> and |R> are fed into the ternary Quantum SR flip flop, which generates two |Q> and |Q >. There are four ternary Quantum NAND operations in a ternary Quantum SR flip flop. The ternary Quantum NAND operation is performed by the |S> input and shared |clk> input, as well as the |R> input and shared |clk> input. The output of these two NAND operations was used as input to the ternary Quantum SR latch. The ternary Quantum NAND operation is performed by two |Q> and one input as well as |Q > and other inputs in ternary Quantum SR latches. Finally, the ternary Quantum JK flip flops final output |Q> and |Q > are received after all of this ternary Quantum operation. The output of a ternary Quantum JK flip flop will be stored as an output of the Multi-Valued Quantum Synchronous Counter after it has processed the inputs. Using four ternary Quantum JK flip flops, the Multi-Valued Quantum Synchronous Counter generates four qubit outputs. All four ternary Quantum JK flip flops get their clock inputs from the same source. All of the flip flops work ternary synchronously for this. The second and third flip flops each have one output that goes through ternary Quantum AND Gates.
62
Multiple-Valued Sequential Circuits in Quantum Computing
1.9.2
Circuit Architecture of Multi-Valued Quantum Synchronous Counter
Four ternary Quantum JK flip flops create four qubit outputs in the Multi-Valued Quantum Synchronous Counter. The two-qubit input and one clock shared input of a ternary Quantum JK flip flop. The clock also affects ternary Quantum JK flip-flops. The circuit will turn on if the clock is turned on; else, it will not. Figure 1.16 shows the circuit architecture of multi-valued quantum synchronous counter. Both inputs |J> and |K> will conduct the ternary Quantum NAND operation differently using the shared |clk> input. The ternary Quantum NAND operation is performed with inputs |J> and |clk>. Ternary Quantum basic gates are used in the NAND operation. v, V+, and CNOT gates are the most basic gates in ternary Quantum computing. An auxiliary bit was employed for error correction here. The value of an auxiliary bit in Quant NAND operations is |1>. After the ternary Quantum NAND operation is performed by |J> and |clk>, there is an output qubit as well as the output of the flip flop |Q>. Produce the output |S> by performing the ternary Quantum NAND operation. The |R> output is produced by the same technique that creates the
JK Flip-Flop
JK Flip-Flop
Quantum Ternary Quantum Ternary NAND Operations NAND Operations
JK Flip-Flop
Quantum Ternary NAND Operations
JK Flip-Flop
Quantum Ternary NAND Operations
Quantum Ternary AND Operation Quantum Ternary AND Operation
FIGURE 1.16 Circuit Architecture of Multi-Valued Quantum Synchronous Counter
Multi-Valued Quantum Synchronous Counter
63
|K>, |clk>, and |Q> inputs. The majority of these operating circuits are ternary Quantum NAND operations. The ternary Quantum SR flip-flop operation is done on this |S> and |R> input. The proposed basic component of ternary Quantum computing is ternary Quantum NAND operation, which is also used in ternary Quantum SR flip flop operation circuit architecture. The output of a ternary Quantum JK flip flop will be stored as an output of the Multi-Valued Quantum Synchronous Counter after the inputs have been processed in the flip flop. Using four ternary Quantum JK flip flops, the Multi-Valued Quantum Synchronous Counter produces four qubit outputs. All four ternary Quantum JK flip flops share a clock input. All of the flip flops operate in tandem to do this. The second and third flip flops each have one output that goes via a ternary Quantum AND Gate.
1.9.3
Working Principle of Multi-Valued Quantum Synchronous Counter
One logical qubit input and one clock input are shared in a Multi-Valued Quantum Synchronous counter. The main component of a multi-valued Quantum Synchronous counter is a ternary Quantum JK flip-flop operational circuit. The two-qubit circuit is a ternary Quantum JK flip flop. In ternary quantum computing, the JK flip flop is the most commonly utilized flip flop. The inputs |J> and |K> of the ternary Quantum JK flip-flop perform two ternary Quantum operations in simultaneously. The ternary Quantum NAND operation is performed with |J> and shared input |clk>. Then, one output of the ternary Quantum JK flip flop conducts the ternary Quantum NAND operation and produces |S>. The |K> and |clk > inputs are processed first, just like in ternary Quantum NAND. The output of the ternary Quantum JK flip-flop |Q> is then combined with the result of the ternary Quantum first NAND operation to generate |R>. The steps for creating |S> and |R> run in parallel. It is known that ternary Quantum operations have the iconic feature of doing many operations simultaneously, and this is exactly what is happening here. The ternary Quantum SR flip flop operation is then conducted on the |S> and |R> inputs. The ternary Quantum SR flip flop is also created using the ternary Quantum NAND operation. Two outputs are found after conducting the ternary Quantum SR flip-flop operation. One output is diametrically opposed to another. The ternary Quantum JK flip flop solves the ternary Quantum SR flip flop problem. The 5th chapter briefly covers the ternary Quantum SR flip-flop. When the clock value is |1>, the Ternary Quantum JK flip-flop is triggered. As a result, the counter clock in Multi-Valued Quantum Synchronous must always be high. Counters must be toggled according to the principle, which is why the ternary Quantum JK flip-flop is ideal for Multi-Valued Quantum Synchronous counters. When the ternary Quantum JK flip-flop operational circuit is triggered, its output is shared with the second ternary Quantum JK flip-flop operational circuit. The outputs of the first and second ternary Quantum JK flip-flops are then sent into the ternary Quantum AND operation circuit, which conducts the ternary Quantum AND operation. The ternary Quantum JK flipflop operation is performed with the output from the ternary Quantum AND
64
Multiple-Valued Sequential Circuits in Quantum Computing TABLE 1.9 Truth Table of Multi-Valued Quantum Synchronous Counter clk |0> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1>
|Q0 > |0> |0> |0> |0> |0> |0> |0> |0> |1> |1> |1> |1> |1> |1> |1> |1> |0>
|Q1 > |0> |0> |0> |0> |1> |1> |1> |1> |0> |0> |0> |0> |1> |1> |1> |1> |0>
|Q2 > |0> |0> |1> |1> |0> |0> |1> |1> |0> |0> |1> |1> |0> |0> |1> |1> |0>
|Q3 > |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0>
operation. The first ternary Quantum AND operation’s output is then used to execute another ternary Quantum AND operation, as is the third ternary Quantum JK flip-flop operation’s result. As a result, the preceding ternary Quantum AND operations output is shared as two inputs into the ternary Quantum JK flip-flops, and the ternary Quantum JK flip-flop operational circuit is completed. The Multi-Valued Quantum Synchronous counter circuit is mostly used as a finite counter. When the clock value is |2>, the Ternary Quantum JK flip-flop is triggered. As a result, the counter clock in Multi-Valued Quantum Synchronous must always be high. Counters must be toggled according to the principle, which is why the ternary Quantum JK flip-flop is ideal for Multi-Valued Quantum Synchronous counters. As usual, all the operation performance is the same for |2> as like ternary input |1>. Table 1.9 shows the truth table of multi-valued quantum synchronous counter.
1.9.4
Example
Assume that the input qubit enters into the Multi-Valued Quantum Synchronous counter with the value |1>. The core component of Multi-Valued Quantum Synchronous counters is a ternary Quantum JK flip-flop operational circuit, thus the circuit clock value is also |1> when triggered. Both |J> and |K> inputs are now |1> in the first ternary Quantum JK flip-flop. The flip-flop is activated and the value toggles if two values are |1>. Now |Q0 > is |1> in comparison to the prior state |0>.
Summary
65
However, following the initial ternary Quantum JK flip-flop, the value of |Q0 > became |0>. Then, in the second ternary Quantum JK flip-flop operation, |Q0 > is inserted as an input, and the circuit is not triggered. Then again | Q1 > and |Q0 > performs the ternary Quantum AND operation. As shown by the ternary Quantum AND operation, if any input is |0>, the resulting output will be |0>. The third ternary Quantum JK flip-flop operational circuit will then receive |0> as an input. If two inputs are both |0>, the ternary Quantum JK flip-flop will not be triggered, as seen in this circuit. Again third ternary Quantum flip-flop’s output |Q2 > and previous ternary Quantum AND operations produced output performs ternary Quantum AND operation again. Because the previous ternary Quantum AND operation output is |0> in this proposed circuit, the output of this ternary Quantum AND operation will also be |0>. As a result, |0> will be the fourth ternary Quantum JK flip-flop operation’s input, and it will also produce |0>.
1.10
Summary
Sequential circuits are a useful section in quantum computing. Quantum D flip-flop is used to build a quantum asynchronous counter. Multi-Valued quantum D flip-flop can be used in the register, multiplexer, frequency divider, etc. quantum circuits. This Quantum D flip-flop is very essential to prepare the quantum computing processor. Multi-Valued quantum SR latch operational circuits are utilized as a memory device in computers and, in certain cases, in IoT devices. Latches are used in the construction of memory devices like flip-flops. Quantum SR flip-flops are made utilizing the quantum SR latch operational circuit in quantum computing. Multi-Valued quantum sequential circuits are an essential part of quantum electronics.
Bibliography [1] Muthukrishnan, A., & Stroud Jr, C. R. (2000). Multi-Valued logic gates for quantum computation. Physical Review A, 62(5), 052309. [2] Biswas, R., Jiang, Z., Kechezhi, K., Knysh, S., Mandra, S., O’Gorman, B., & Wang, Z. (2017). A NASA perspective on quantum computing: Opportunities and challenges. Parallel Computing, 64, 81-98. [3] Greenberger, D., Hentschel, K., & Weinert, F. Experimental Observation of Decoherence. https://citeseerx.ist.psu.edu/document?repid=rep1&type= pdf&doi=8d2bcbbf9d856b33c770ec7bc3dbf419e03efba3. [4] Di´osi, L. (2011). A Short Course in Quantum Information Theory: An Approach from Theoretical Physics (Vol. 827). Springer.
2 Multi-Valued Sequential Circuits in DNA Computing
2.1
Introduction
Multi-Valued DNA Computing is one of the most exciting and challenging research topics in the present world. Multi-Valued DNA computing is a branch of bio-molecular computing where Multi-Valued DNA molecule sequence is used to perform a logical operation or arithmetical operation. It is already known that the first theory of Multi-Valued DNA computation was proposed by Leonard Adleman in 1994. He put his experimental theory to the test with a seven-point Hamiltonian path problem or also called the traveling salesman problem. The salesman in this problem needs to find the shortest path between seven cities whose distances are known in such a way that he crosses no city twice and returns to the original city. The most stable form of nucleic acid is called deoxyribonucleic acid (MultiValued DNA). Each of the Multi-Valued DNA strands forms helical structures that are long polymers of millions of linked nucleotides. These nucleotides consist of one of four nitrogen bases, a five-carbon sugar, and a phosphate group. The nitrogen bases – A (Adenine), T (Thymine), G (Guanine), and C (Cytosine) encode the genetic information while the others provide structural stability. The strands are linked to each other by the base-pairing rule, T with A and C with G. The arrangement of these bases is important as they decide the functionality of different genes. Although the practice has inspired a great deal of interest among science and technology circles, Multi-Valued DNA computing has never been implemented on any broad scale, as its processing is considerably less efficient than that of standard hardware configuration. The Adleman Multi-Valued DNA computer’s achievement is evidence that Multi-Valued DNA could be used to analyze complex math equations. This initial Multi-Valued DNA machine is very far from intimidating computers built on silicone in terms of efficiency, nevertheless. Computer scientists at Davis and Caltech University of California have formulated Multi-Valued DNA molecules that can be self-assembled into frameworks by using six-bit inputs to effectively run their programs. Microsoft also has a programming language for Multi-Valued DNA DOI: 10.1201/9781003381921-2
67
68
Multi-Valued Sequential Circuits in DNA Computing
computing which will help make Multi-Valued DNA computing functional once bioprocessor technology is progressing to the stage where it can operate more sophisticated algorithms.
2.2 Multi-Valued DNA D Flip Flop A Multi-Valued DNA D flip flop is essentially a two-state timed flip flop. In one clock cycle, the qubit molecular input sequences of a ternary DNA D-type flip flop are actuated with a delay. A delay flip flop is another term for the Multi-Valued DNA D flip flop. The indeterminate molecular input sequence condition of SET = “TGGATC” and RESET = “TGGATC” is banned in the basic ternary DNA SR NAND Gate Bistable circuit, which is one of its fundamental drawbacks. This condition forces both qubit output sequences to logic “ACCTAG,” overriding the feedback latching action, and whichever molecular input sequence goes to logic “ACCTAG” first loses control, while the other molecular input sequence, which is still at logic “TGGATC,” controls the latch’s final state. However, an inverter may be connected between the “SET” and “RESET” qubit molecular input sequences to create a ternary DNA Data Latch, ternary DNA Delay flip flop, ternary DNA D-type Bistable, ternary DNA Dtype Flip Flop, or simply a Multi-Valued DNA D flip flop as it is most often known. By far the most essential of all the ternary DNA timed flip-flops is the MultiValued DNA D flip flop. The |S> and |R> molecular input sequences become complements of each other when a ternary DNA inverter (ternary DNA NOT gate) is added between the Set and Reset molecular input sequences, ensuring that the two molecular input sequences |S> and |R> are never equal (TGGATC or ACCTAG) to each other at the same time, allowing us to control the toggle action of the flip-flop with just one |D> (Data) molecular input sequence. The Data molecular input sequence, labeled “|D>,” is then utilized in place of the “Set” signal, and the inverter is used to create the complementary “Reset” molecular input sequence, resulting in a level-sensitive ternary DNA D-type flip-flop from a level-sensitive SR-latch, with |S> = |D> and |R> = |D>. The proposed Multi-Valued DNA D flip flop circuit has just one qubit molecular input sequence, and the qubit molecular input sequence must be in a coherence state in order to conduct the ternary DNA computational function. As a result, the circuit must exist in an environment that does not exist. If any particle emerges, the coherence state will be disrupted. The Multi-Valued DNA D flip flop will generate heat, which must be removed quickly in order to cool down the circuit and stabilize the coherence state.
69
TGGATC
Multi-Valued DNA D Flip Flop
TGGATC
ACCTAG
FIGURE 2.1 Block Diagram of Multi-Valued DNA D Flip Flop
2.2.1
General Organization of Multi-Valued DNA D Flip Flop
When compared different types of flip flops, the D flip flop is the most significant filp flop among them. D flip flop verifies that the two molecular input sequences of the SR flip flop are never the same. Figure 2.1 shows the block diagram of multi-valued DNA D Flip Flop. D flip flops have two molecular input sequences: one for data and the other for clock. D flip flops have two output sequences that are logically opposite to one another. The clock molecular input sequence aids in the circuit’s synchronization with an external signal. The output sequence of a D flip flop can have two potential values. This blog diagram shows that data molecular input sequence is sent to a Ternary DNA NAND operation circuit, while the reversal of data molecular input sequence is routed to another Ternary DNA NAND operation circuit. The clock pulse molecular input sequence is used by both NAND processes. The result of two Ternary DNA NAND operations is fed into the SR Latch. The SR latch is used to build the D flip flop. This attribute is utilized to create a delay in the data flow in the circuit. Two Ternary DNA NAND Operations create the SR Latch. The remaining two output sequences are discovered of the ternary DNA SR Latch function. The output sequence of a D flip flop can be of two sorts, one of which is logically inverse to the other. If the clock is enabled, the multi-valued DNA D flip flop will continue to function; otherwise, the multi-valued DNA D flip flop will cease to function.
70
TGGATC
Anneal ACCTAG ↑ >> ACCTAG
|x> X TGGATC ACCTAG CGGATC
|Q> Q TGGATC ACCTAG CGGATC
|Q > Q ACCTAG TGGATC TGGATC
Description Memoryno change Reset Q >> 0 Set Q >> Set Q >>
72
Multi-Valued Sequential Circuits in DNA Computing
Then molecule sequence input will perform ternary DNA NOT operation and then again it will perform ternary DNA NAND operation. So, x = ACCTAG and clk = ACCTAG will produce output TGGATC. Two ternary DNA NAND operations produced output will be entered into an input in the ternary DNA SR latch operational circuit. This ternary DNA SR latch operational circuit output will count as a final output in ternary DNA D flip-flop operational circuit. Here, S = ACCTAG and R = TGGATC will produce output ACCTAG and TGGATC. This is the final output of ternary DNA D flip-flop operational circuit and these outputs clarify that correct output is produced by ternary DNA D flip-flop operational circuit.
2.3 Multi-Valued DNA SR Latch Based on the triggering that is suited to operate it, there are two types of memory elements. One of them is a latch, and the other is a flip-flop. Latches operate with enable signal, level-sensitive, whereas flip-flops are edge sensitive. A Multi-Valued DNA SR Latch is an asynchronous tool. It operates without the use of control signals, relying solely on the state of the |s> and |R> molecular ternary input sequences. Two ternary DNA NAND operations can make a MultiValued DNA Latch. Nevertheless, two ternary DNA NOR operations can also make a Multi-Valued DNA SR Latch. In Multi-Valued DNA SR Latch, two-qubit molecular ternary input sequences are swapped and negated. Multi-Valued DNA SR Latch can be said as SET RESET latch. In Multi-Valued DNA SR Latch from two-qubit molecular ternary input sequence, got two ternary output sequences. This ternary output sequence is reversed to one another. This research proposed a Multi-Valued DNA SR Latch, and two ternary DNA NAND operation circuits designed for this ternary SR Latch. This proposed Multi-Valued DNA SR Latch has the molecular ternary input sequence line swapped between two ternary DNA NAND operations, but it is not negated. Multi-Valued DNA SR Latch works as memory stuff in ternary DNA computers, and it has several applications in a ternary DNA processor. If it is possible to design some embedded system using the ternary DNA device, then Multi-Valued DNA SR Latch will be used on this device as a memory unit. Multi-Valued DNA SR Latch is level sensitive and has few disadvantages, and this will be recovered by the ternary DNA flip flop, which is described earlier.
2.3.1
General Organization Multi-Valued DNA SR Latch
The Multi-Valued DNA SR Latch is one of the most common memory devices, and it has an effect on the ternary output sequence as long as it is active. The essential properties of a Multi-Valued DNA SR Latch are that one qubit molecular ternary
Multi-Valued DNA SR Latch
73
FIGURE 2.3 Block Diagram of Multi-Valued DNA SR Latch input sequence behaves like a SET and another qubit molecular ternary input sequence behaves like a RESET. Figure 2.3 depicts the block diagram of multi-valued DNA SR Latch . The Multi-Valued DNA SR Latch is made up of two fundamental processes, which are depicted in this block diagram of the Multi-Valued DNA SR Latch. There are two molecular ternary input sequence lines in the Multi-Valued DNA SR Latch, one for |s> and the other for |R>. Two ternary output sequences are obtained from this two-qubit molecular ternary input sequence: |Q> and Q. The ternary output sequence of the first ternary DNA NAND operation is used as molecular ternary input sequence in the second ternary DNA NAND operation, and the ternary output sequence of the second ternary DNA NAND operation is used as a molecular ternary input sequence in the first ternary DNA NAND operation. If the molecular ternary input sequence of |S> is ACCTAG, the ternary SR Latch is activated; however, if the molecular ternary input sequence of |R> is ACCTAG, the ternary SR Latch has no influence on the ternary output sequence. In a Multi-Valued DNA SR Latch, a value of ACCTAG cannot be used to activate two molecular ternary input sequences.
2.3.2
Circuit Architecture of Multi-Valued DNA SR Latch
Multi-Valued DNA SR Latches are level sensitive and are built using only one fundamental operation, the ternary DNA NAND function. Figure 2.4 shows the circuit architecture of multi-valued DNA SR Latch.
74
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Multi-Valued Sequential Circuits in DNA Computing
FIGURE 2.4 Circuit Architecture of Multi-Valued DNA SR Latch As seen in the diagram above, the Multi-Valued DNA SR Latch has two-qubit molecular ternary input sequences. In the first ternary DNA NAND operation, the molecular ternary input sequence S and the ternary output sequence of the second ternary DNA NAND operation Q are both entered as molecular ternary input sequences. The ternary output sequence of this ternary DNA NAND operation is mostly Q. Second, the ternary DNA NAND operation is performed on the molecular ternary input sequences R and Q, yielding Q as the ternary output sequence. The base sequence ACCTAG is employed in every ternary DNA NAND operation.
2.3.3
Working Principle of Multi-Valued DNA SR Latch
The state of the S and R molecular ternary input sequences is all that matters in a Multi-Valued DNA SR Latch. It acts independently of control signals. S molecular ternary input sequence behaves as if it were a SET instruction, and R molecular ternary input sequence behaves as if it were a RESET instruction. If the SET molecular ternary input sequence of a Multi-Valued DNA SR Latch is high, the ternary output sequence Q will be ACCTAG or CGGATC and the opposing ternary output sequence TGGATC will be the value of Q. When the RESET molecular ternary input sequence is high, the value of |Q> is ACCTAG or CGGTAC, and when the RESET molecular ternary input sequence is low, the value of Q is TGGATC. The latch’s
75
Multi-Valued DNA SR Latch
“memory” is basically reset. When both molecular ternary input sequences are low, the latch “latches” stay in their previously set or reset state. The actual problem comes when both the molecular ternary input sequences SET and RESET go high. The ternary output sequences Q and Q will have the opposite value as shown in the circuit. When the SET and RESET molecular ternary input sequences ACCTAG or CGGATC are used together, the circuit creates a “race situation.” In order for the device to be “metastable,” which implies it will remain in an indeterminate state indefinitely, both gates must be identical. In reality, if the suggested circuit is to be manufactured, one gate will win; however, determining which gate won is difficult. Because of this, having both the SET and RESET molecular ternary input sequences high is forbidden in a Multi-Valued DNA SR Latch. The same thing happens when the device is switched on, since both ternary output sequences, Q and Q, are low. The device will quickly leave the metastable state due to the differences between the two gates, but it’s difficult to forecast which of Q and Q will end up high. To avoid erroneous actions, multi-valued DNA SR flip-flops must always be set to a known starting state before being used; users should not assume that they would initialize to a low state. Table 2.2 shows the truth table of multi-valued DNA SR Latch. The flip flop discussed in the flip flop chapter solves the difficulty of the Multi-Valued DNA SR Latch. The Multi-Valued DNA SR Latch, on the other hand, is still a vital component of a CPU or embedded device. The ternary DNA circuit generates a lot of heat, making it difficult to isolate the qubit into a superposition state. As a result, the circuit is needed to be cooled to isolate the qubit into a superposition for an able ternary DNA circuit. Any type of external particle can disrupt the qubit’s coherence and cause it to become decoherent. If all of this is preserved, the Multi-Valued DNA SR Latch can truly function.
2.3.4
Example
Presume that the qubits TGGATC and ACCTAG are both present in the ternary DNA SR Latch. One qubit molecular ternary input sequence will be used for SET instructions, while the other will be used for RESET instructions. Here, TGGATC will be TABLE 2.2 Truth Table of Multi-Valued DNA SR Latch |S> TGGATC TGGATC ACCTAG TGGTAC CGGTAC ACCTAG CGGATC
|R> TGGATC ACCTAG TGGATC CGGTAC TGGATC ACCTAG CGGTAC
|Q> Latched ACCTAG TGGATC CGGATC TGGATC Metastable Metastable
|Q > TGGATC ACCTAG TGGATC CGFGATC
76
Multi-Valued Sequential Circuits in DNA Computing
used as a SET instruction, and it will conduct the ternary DNA NAND operation according to the suggested circuit idea. As a result, the final ternary output sequence is TGGATC. The ternary output sequence principle of a ternary DNA NAND operation is that if one of the molecular ternary input sequences is TGGATC, the ternary output sequence will also be TGGATC. As a corollary, whether Q is TGGATC or ACCTAG, the ternary output sequence will be ACCTAG. Qubit molecular ternary input sequence ACCTAG now functions as a reset instruction and is inserted into the circuit, as well as performing the ternary DNA NAND operation. Multi-Valued DNA SR Latch operates in the same mechanism with each qubit molecular ternary input sequence. However, because all of the computations took place in the ternary DNA superposition state, a lot of heat was generated throughout the process. All computation takes place in the coherence state, and the result will be decoherent.
2.4 Multi-Valued DNA SR Flip Flop Ternary DNA Sequential Logic circuits, unlike ternary DNA Combinational Logic circuits, include some type of built-in “Memory” that changes state depending on the real signals supplied to its molecular ternary input sequences at the moment. Multi-Valued DNA SR flip-flops, for example, have a 1 molecule sequence memory bistable. The SET and RESET molecular ternary input sequences of the ternary SR flip flop are the same. The ternary output sequence of the SET molecular ternary input sequence is a ACCTAG or CGGTAC, whereas the ternary output sequence of the RESET molecular ternary input sequence is a TGGATC. The Multi-Valued DNA SR flip flop is often referred to as the SET RESET flip flop. The reset molecular ternary input sequence is used to restore the flip flop to its starting state from the current state with a ternary output sequence. The NAND gate ternary SR flip flop is a basic flip flop with both ternary output sequences providing feedback to its opposite molecular ternary input sequence. This circuit is used to store a single data bit in a memory circuit. The three molecular ternary input sequences are SET, RESET, and a found ternary output sequence. A two-qubit model will be used since Multi-Valued DNA SR flip flops have two molecular ternary input sequences that are mostly from the outside. Because using two-qubits, it generates more heat at first than ternary DNA D flip flops. The computation time of this Multi-Valued DNA SR flip-flop is determined by the fundamental gate in its middle. Multi-Valued DNA SR flip flops may be found in a wide range of processors and embedded systems. Although the suggested flip-flop can generate some trash, an error-correcting auxiliary qubit provides the desired ternary output sequence. The real-world
Multi-Valued DNA SR Flip Flop
77
FIGURE 2.5 Block Diagram of Multi-Valued DNA SR Flip-Flop Circuit implementation of the suggested ternary DNA circuit will address a wide range of issues more quickly and effectively.
2.4.1
General Organization of Multi-Valued DNA SR Flip Flop
A SET - RESET flip-flop is a common name for a Multi-Valued DNA SR flip-flop. As a result, it is evident that the Multi-Valued DNA SR latch has a two-qubit molecular ternary input sequence. Figure 2.5 shows the block diagram of multi-valued DNA SR Flip-Flop Circuit. The major molecular ternary input sequences of a Multi-Valued DNA SR flip flop are S and R, as well as one clock molecular ternary input sequence called clock. First, a ternary DNA NAND operation with clock molecular ternary input sequence was performed the S and R. The ternary DNA NAND operation is performed on molecular ternary input sequence S and molecular ternary input sequence clock. A ternary DNA NAND operation is also performed in parallel by the R and clock molecular ternary input sequences. Because the two ternary DNA NAND operations are performed in parallel, they take the same amount of time. Then, using ternary DNA NAND operations ternary output sequence from the S molecular ternary input sequence lines and the final ternary output sequence Q, another ternary DNA NAND operation will be executed and generate the ternary output sequence Q. Similarly,
78
Anneal ” and RESET = “|0>” is banned in the basic Multi-Valued Quantum SR NAND Gate Bistable circuit, which is one of its fundamental drawbacks. This condition forces both Multi-Valued DNA molecule sequence outputs to logic “ACCTAG,” overriding the feedback latching action, and whichever input goes to logic “ACCTAG” first loses control, while the other input, which is still at logic “TGGATC,” controls the latch’s final state. However, an inverter may be connected between the “SET” and “RESET” qubit inputs to create a Multi-Valued Quantum-DNA Data Latch, Multi-Valued Quantum-DNA Delay flip flop, Multi-Valued Quantum-DNA D-type Bistable, Multi-Valued Quantum-DNA Dtype Flip Flop, or simply a Multi-Valued Quantum-DNA D Flip Flop as it is most often known. By far the most essential of all the Multi-Valued Quantum-DNA timed flip-flops is the Multi-Valued Quantum-DNA D Flip Flop. The |S> and |R> inputs become complements of each other when a Multi-Valued Quantum inverter (ternary Quantum NOT gate) is added between the Set and Reset inputs, ensuring that the two inputs |S> and |R> are never equal (|0> or |1>) to each other at the same time, allowing us to control the toggle action of the flip-flop with just one |D> (Data) input.
Multi-Valued Quantum-DNA D Flip Flop
109
The Data input, labeled “|D>,” is then utilized in place of the “Set” signal, and the inverter is used to create the complementary “Reset” input, resulting in a levelsensitive Multi-Valued Quantum D-type flip-flop from a level-sensitive SR-latch, with |S> = |D> and |R> = |D>. The proposed Multi-Valued Quantum-DNA D flip-flop circuit has just one qubit input, and the qubit input must be in a coherence state in order to conduct the MultiValued Quantum computational function. As a result, the circuit must exist in an environment that does not exist. If any particle emerges, the coherence state will be disrupted. The Multi-Valued Quantum D flip-flop will generate heat, which must be removed quickly in order to cool down the circuit and stabilize the coherence state. Hence Multi-Valued Quantum-DNA flip-flops have two portions based on the principle of the Multi-Valued Quantum-DNA circuit. Multi-Valued Quantum -MultiValued DNA D flip-flop operational circuit’s first portion was constructed using Multi-Valued Quantum principle and second portion was constructed using MultiValued DNA computing principle. Multi-Valued Quantum circuit’s portion produced qubit and stored into Multi-Valued Quantum cache memory. These qubits perform NMR relaxation process operation and make them normal molecules. Then these molecules perform Multi-Valued DNA computing operations. Multi-Valued DNA computing is very good for memory storage and Multi-Valued Quantum computing has a super-fast computation speed.
3.2.1
General Organization of Multi-Valued Quantum-DNA D FlipFlop
When compared different types of flip flops, the Multi-Valued Quantum-DNA D flip flop is treated as the most significant flip flop among them. Multi-Valued QuantumDNA D flip-flop verifies that the two inputs of the Multi-Valued Quantum-DNA SR flip flop are never the same. Figure 3.1 shows the block diagram of multi-valued Quantum-DNA D Flip Flop. In Multi-Valued Quantum-DNA D flip-flop operational circuit there is one input which is |x>. There is another |clk> input is also there. Multi-Valued Quantum-DNA D flip flops have two output molecule sequences that are logically opposite to one another. The clock qubit input aids in the circuit’s synchronization with an external signal. The output of a Multi-Valued Quantum-DNA D flip flop can have two potential values. This block diagram of Multi-Valued Quantum-DNA D flip-flop operational circuit shows that data input is sent to a ternary Quantum NAND operation circuit, while the reversal of data input is routed to another ternary Quantum NAND operation circuit. The clock pulse input is used by both ternary Quantum NAND operation processes. The result of two ternary Quantum NAND operations is fed into Multi-Valued Quantum cache memory. Multi-Valued Quantum cache memory is made by using some Multi-Valued Quantum register and it saves the Multi-Valued Quantum qubit data. When the accurate time appears then these qubit servers into the NMR machine and it performs NMR relaxation process as well as making molecules from the qubit. The Multi-Valued DNA SR latch is used to build the Multi-Valued Quantum-DNA D flip flop . This attribute is utilized to create a delay in the data flow
110
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Quantum Ternary NAND
|X> |0>
R
|0>
Quantum Ternary NAND
DNA Ternary NAND DNA Ternary NAND
TGGATC
TGGATC
FIGURE 3.1 Block Diagram of Multi-Valued Quantum-DNA D Flip Flop in the circuit. Two ternary DNA NAND Operations create the Multi-Valued DNA SR Latch. The proposed circuit discovered the remaining two output molecules of the Multi-Valued DNA SR Latch function. The output of a Multi-Valued QuantumDNA D flip flop can be of two sorts, one of which is logically inverse to the other. If the clock is enabled, the Multi-Valued Quantum-DNA D flip flop will continue to function; otherwise, the Multi-Valued Quantum-DNA D flip flop will cease to function.
3.2.2
Circuit Architecture of Multi-Valued Quantum-DNA D Flip-Flop
The Multi-Valued Quantum-DNA D flip-flop has a single qubit input and is developed using ternary Quantum NAND operations, ternary DNA NAND gate and a Multi-Valued DNA SR latch. Figure 3.2 depicts the multi-valued Quantum-DNA D Flip-Flop operation circuit The clock qubit input affects the Multi-Valued Quantum-DNA D flip-flop. The diagram has one qubit input. One line of this qubit input will be directed into the Multi-Valued Quantum-DNA NAND operation known as |S> input in Circuit. In this
111
Anneal qubit input and the Clock qubit input are used in a ternary Quantum NAND operation. When a |X> qubit traverses another line, it first undertakes a ternary Quantum NOT operation. This ternary Quantum NOT operation was dubbed R when it was entered into the ternary Quantum NAND operation. The R and Clock qubit inputs are used in this ternary Quantum NAND operation. The output of these ternary Quantum NAND operations are getting stored into Multi-Valued Quantum cache memory by using the line. Multi-Valued Quantum cache memory made by shift register where qubit data stored in some sub-array. When the actual time appears the Multi-Valued Quantum cache memory serves the qubit into the NMR relaxation process using line. Qubit first of all performs the NMR relaxation process where EMR emission is totally prohibited. Hence qubit is converted into molecule sequence and then performs the Multi-Valued DNA SR latch operation. In Multi-Valued DNA SR latch operation two ternary DNA NAND operations perform parallely and produce the final molecules sequence. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued DNA circuit needs to process the input. For that reason, it would be best to transfer the heat
112
Multi-Valued Sequential Circuits in Quantum-DNA Computing
into Multi-Valued DNA circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued DNA circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and MultiValued DNA circuits. A maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued Quantum-DNA T flip-flop circuit is constructed fully.
3.2.3
Working Principle of Multi-Valued Quantum-DNA D Flip-Flop
There are two inputs in the Multi-Valued Quantum-DNA SR flip flop: SET and RESET. Alternatively, in a Multi-Valued Quantum-DNA D flip-flop, one input and the input’s one line are referred to as a SET, and by coupling a Multi-Valued Quantum-DNA NOT gate towards the other line input, proposed circuit may designate the Multi-Valued Quantum-DNA D flip-flop as a RESET. This complement resolves the contradiction inherent in the Multi-Valued Quantum-DNA SR latch when both inputs are LOW because that circumstance is no longer feasible. Multi-Valued Quantum-DNA D flip-flops have a single qubit input, which is sometimes alluded to as a data qubit input. If this qubit data input is high, the Multi-Valued Quantum-DNA flip-flop becomes SET; if the data input is low, such as |0>, the flip-flop changes state and becomes RESET. However, this would be pretty futile because the output of the flip flop will always vary with each pulse delivered to this data input. To circumvent this, an extra input known as the “CLOCK” or “ENABLE” input is used to separate the data input from the latching circuitry of the flip flop after the appropriate data has been stored. The result is that the |X> input condition is only replicated to the output |Q> while the clock input is active. This then serves as the foundation for yet another sequential gadget known as a Multi-Valued Quantum-DNA D Flip Flop. As long as the clock input is HIGH, the “Multi-Valued Quantum-DNA D flip flop” will store and output any logic level that is applied to its data terminal. Once the clock input is changed to LOW, the flip-”set” flop’s and “reset” inputs are both kept at logic level “|1>,” preventing the flip-flop from altering the underlying and preserving whatever statistics are available on its output prior to the clock transition. In other words, either logic “|0>” or logic “|1>” latches the output. Table 3.1 shows the truth table of multi-valued Quantum-DNA D Flip Flop. This proposed Multi-Valued Quantum-DNA D flip-flop operational circuit’s first half of the portion is constructed using the Multi-Valued Quantum computing TABLE 3.1 Truth Table of Multi-Valued Quantum-DNA D Flip Flop |Clk> ↓ >> |0> ↑ >> |1> ↑ >> |1>
|x> X |0> |1>
Q Q TGGATC ACCTAG
Q Q ACCTAG TGGATC
Description Memoryno change Reset Q >> 0 Set Q >>
Multi-Valued Quantum-DNA D Flip Flop
113
principle and the rest of the portion is constructed using the Multi-Valued DNA computing principle. First of all two quantum NAND operations performed and produced two outputs which are stored in Multi-Valued Quantum cache memory. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when required it serves the data into the NMR relaxation process. In this Multi-Valued Quantum-DNA D flip-flop, two-qubit is stored in Multi-Valued Quantum cache memory. This qubit performs the NMR Relaxation process because Multi-Valued DNA circuits need molecular sequence. NMR relaxation process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs Multi-Valued DNA SR latch operation. Multi-Valued DNA SR latch operation has two basic components: ternary DNA NAND operation. Ternary DNA NAND operation performs in a parallel way in a Multi-Valued DNA SR latch operation and produced two required outputs. MultiValued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued DNA operation is performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two ternary Quantum NAND operations perform so it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, this proposed circuit needs to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, this proposed circuit transfers the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between ternary Quantum AND Multi-Valued DNA circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued Quantum-DNA D flip-flop can produce two output molecular sequences.
3.2.4
Example
Suppose the qubit input is |1> is one for Multi-Valued Quantum-DNA D flip-flop operational circuit where |clk> input is high. First of all clock qubit input and |1>
114
Multi-Valued Sequential Circuits in Quantum-DNA Computing
will perform ternary Quantum NAND operations. So, |X> = |1> and |clk> = |1>, then |S> = |0> Then input |1> performs ternary Quantum NOT gate operation and the output and clock input perform ternary Quantum NAND operation. These two ternary Quantum NAND operations parallely. So, |X> = |0> and |clk> = |1>, then |R> = |1> Hence produced these two output |S> and |R> will be stored in Multi-Valued Quantum cache memory. For this research used an array to store the qubit data. Then this qubit in accurate time performs the NMR Relaxation process operation first. NMR relaxation process operation makes the qubit convert into molecule sequence. These molecule sequences will perform the Multi-Valued DNA SR latch operation. So, S = TGGATC and R= ACCTAG, then the final outputs are ACCTAG and TGGATC. This Multi-Valued Quantum output given the confirmation that produced output molecule sequence is accurate for Multi-Valued Quantum-DNA flip-flop operational circuit.
3.3 Multi-Valued Quantum-DNA SR Latch Based on the triggering that is suited to operate it, there are two types of memory elements: one of them is a Multi-Valued Quantum-DNA SR latch, and the other one is a Multi-Valued Quantum-DNA flip-flop. Multi-Valued Quantum-DNA latches operate with enable signal, level-sensitive, whereas Multi-Valued Quantum-DNA flip-flops are edge sensitive. A Multi-Valued Quantum-DNASR latch is an asynchronous tool. It operates without the use of control signals, relying solely on the state of the |S> and |R> inputs. Two Multi-Valued Quantum NAND operations can make a Multi-Valued Quantum-DNA SR latch. Nevertheless, two Multi-Valued Quantum NOR operations can also make a Multi-Valued Quantum SR Latch. In Multi-Valued Quantum-DNA SR latch, operational circuits half of the portion is constructed using the Multi-Valued Quantum computing principle and the rest of the portion is constructed by Multi-Valued DNA computing principle. This proposed Multi-Valued Quantum-DNASR latch operational circuit is made by one MultiValued Quantum NAND operational circuit and one Multi-Valued DNA NAND gate. Multi-Valued Quantum computing computation speed is so high compared to MultiValued DNA computing for that case this proposed circuit has intermediate cache memory to store the Multi-Valued Quantum qubit data. Multi-Valued Quantum computing produces qubit which performs the NMR relaxation process where EMR emit is prohibited to make qubit molecules. In the Multi-Valued Quantum-DNA SR latch, two-qubit inputs are swapped and negated. Multi-Valued Quantum-DNASR latch can be said as SET RESET latch. In Multi-Valued Quantum-DNASR latch from two-qubit input, this circuit produced two outputs. This output is reversed to one another. This research proposed a
115
Multi-Valued Quantum-DNA SR Latch
Multi-Valued Quantum-DNASR Latch, and two Multi-Valued Quantum NAND operation circuits designed this SR latch. This proposed Multi-Valued QuantumDNASR latch has the input line swapped between two operational circuits where one is Multi-Valued Quantum NAND operational circuit and the other is Multi-Valued DNA NAND gate, but it is not negated. Multi-Valued Quantum-DNASR latch works as memory stuff in Multi-Valued Quantum-DNA computers, and it has several applications in a Multi-Valued Quantum-DNA processor. If this proposed circuit has designed some embedded system using the Multi-Valued Quantum-DNA operational device, then Multi-Valued Quantum-DNA SR latch will be used on this device as a memory unit. Multi-Valued Quantum-DNA SR latch is level sensitive and has few disadvantages, and this will be recovered by the Multi-Valued Quantum-DNA flip flop.
3.3.1
General Organization Multi-Valued Quantum-DNA SR Latch
The Multi-Valued Quantum-DNA SR latch is one of the most common memory devices, and it has an effect on the output as long as it is active. The essential properties of a Multi-Valued Quantum-DNA SR latch are that one qubit input behaves like a SET and another qubit input behaves like a RESET. Figure 3.3 depicts the block diagram of multi-valued Quantum-DNA SR Latch. The Multi-Valued Quantum SR latch is made up of two fundamental processes, which are depicted in this block diagram of the Multi-Valued Quantum SR latch. There are two input lines in the Multi-Valued Quantum SR latch, one for |s> and
Quantum Ternary AND
FIGURE 3.3 Block Diagram of Multi-Valued Quantum-DNA SR Latch
ACCTAG
S
ACCTAG
E
Quantum Ternary AND
Ternary DNA AND
R
Ternary DNA AND
Heat Transfer Circuit
116
Multi-Valued Sequential Circuits in Quantum-DNA Computing
the other for |R>. Two outputs are obtained from this two-qubit input: |Q> and |Q>. The output of the first Multi-Valued Quantum NAND operation is used as an input in the second Multi-Valued Quantum NAND operation, and the output of the second Multi-Valued Quantum NAND operation is used as an input in the first Multi-Valued Quantum NAND operation. If the input of |S> is |1>, the SR latch is activated; however, if the input of |R> is |1>, the SR latch has no influence on the output. In a Multi-Valued Quantum SR latch, a value of |1> cannot be used to activate two inputs. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNASR Latch Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into MultiValued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NOR SR latch performs where two Multi-Valued DNA NOR gates perform in parallel ways and input comes from Multi-Valued Quantum circuit portion. After that operation, this proposed circuit finally found the output molecular sequence from the Multi-Valued Quantum-DNA SR latch.
3.3.2
Circuit Architecture of Multi-Valued Quantum-DNA SR Latch
Multi-Valued Quantum SR latches are level sensitive and are built using only one fundamental operation, the Multi-Valued Quantum NAND function. Figure 3.4 displays the circuit architecture of multi-valued Quantum-DNA SR Latch Multi-Valued Quantum-DNA SR Latch operation circuit is constructed using one principle that is the first portion will be constructed by using Multi-Valued Quantum circuit and the second portion will be constructed by using Multi-Valued DNA computing circuit. This circuit also has Multi-Valued Quantum cache memory and a Heat transfer circuit to achieve the best output at the end. In this circuit, input is qubit and output is the molecular sequence. There are two inputs in the Multi-Valued Quantum NAND gate. In this circuit those inputs are |S>, |R>, and |E> as clock qubit input which is shared into the Multi-Valued Quantum NAND operational circuit and Multi-Valued DNA NAND gates through an intermediate process. Two operations are constructed parallelly. These Multi-Valued Quantum NAND operations circuit output line are connected into the Multi-Valued Quantum cache memory. This is the first portion of the circuit and is fully designed by using the principle of MultiValued Quantum computing. Multi-Valued Quantum cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued Quantum array. When the time arrives Multi-Valued Quantum cache memory supplies the data into the “NMR Relaxation” process. Multi-Valued Quantum cache memory supply line fully connected to NMR Relaxation process as well as here EMR emit is fully prohibited. Then the output line of the NMR relaxation process is connected to the Multi-Valued DNA NAND gate. Two outputs of the process are connected to two different Multi-Valued DNA NAND gates. MultiValued DNA NAND gates one output comes from produced output of Multi-Valued
117
Anneal
|0>
Anneal
|0>
Anneal , |R>, and |E> which is shared between the MultiValued Quantum NAND operational circuit as well as Multi-Valued DNA NAND gate. Multi-Valued Quantum circuit operation will be happening in close to zero temperature because qubits need a coherence state. The superposition state will be stable if this circuit is full of prohibited particles from other environment particles. The Multi-Valued Quantum NAND operations and Multi-Valued DNA NAND gate operation will be performed parallelly. This Multi-Valued Quantum NAND operation produces some garbage value but in this proposed circuit this topic is avoidable. The Multi-Valued Quantum NAND Operation has one output. These qubit outputs go to the Multi-Valued Quantum Cache Memory which is basically made out of Shift Register. This Multi-Valued Quantum Cache Memory is built using the rules of Multi-Valued Quantum computing. This Cache Memory will store the qubit output from the NAND gate and will serve it when needed. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when required it serves the data into the “NMR relaxation” process. In this Multi-Valued Quantum-DNASR Latch, two qubits are stored in Multi-Valued Quantum cache memory. This qubit performs the”NMR relaxation” process because Multi-Valued DNA circuits need molecular sequence. This process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs the Multi-Valued DNA NAND operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued DNA operation is performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum NAND operations perform, so, it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, this proposed circuit needs to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, this proposed circuit transfers the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the MultiValued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between Multi-Valued Quantum and Multi-Valued DNA circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued Quantum-DNASR Latch
119
Multi-Valued Quantum-DNA SR Latch TABLE 3.2 Truth Table of Multi-Valued QuantumDNA SR Latch |S> |0> |0> |1> |1>
|R> |0> |1> |0> |1>
|Q > Latched ACCTAG TGGATC TGGATC ACCTAG Metastable |Q>
can produce two output molecular sequences. Table 3.2 depicts the truth table of multi-valued Quantum-DNA SR Latch. The Multi-Valued Quantum-DNA SR latch, on the other hand, is still a vital component of a CPU or Multi-Valued Quantum-DNA-based embedded device. The Multi-Valued Quantum circuit generates a lot of heat, making it difficult to isolate the qubit into a superposition state. As a result, it needs to cool the circuit to isolate the qubit into a superposition for an able Multi-Valued Quantum circuit. Any type of external particle can disrupt the qubit’s coherence and cause it to become decoherent. If all of this is preserved, the Multi-Valued Quantum-DNA SR latch can truly function.
3.3.4
Example
Presume that the qubits |0> and |1> are both present in the Multi-Valued Quantum SR Latch. One qubit input will be used for SET instructions, while the other will be used for RESET instructions. Here, |0> will be used as a SET instruction, and it will conduct the Multi-Valued Quantum NAND operation according to the suggested circuit idea. Here the initial state assumes the molecule sequence is ACCTAG for RESET. This molecule sequence performs NMR process operation and by EMR it becomes qubit. Suppose here ACCTAG = “TRUE” so the qubit will be |1> As a result, the final output is |0>. The output principle of a Multi-Valued Quantum NAND operation is that if one of the inputs is |0>, the output will also be |1>. As a corollary, whether |Q> is |0> or |1>, the output will be |1>. Qubit input |1> now functions as a reset instruction and is inserted into the circuit, as well as performing the NAND operation. But Another NAND operation is made by the Multi-Valued DNA computing principle. Multi-Valued DNA NAND gate needs Multi-Valued DNA molecule sequence to perform the Multi-Valued DNA NAND gate operation. For that cause qubit |1> and input |R> stores in Multi-Valued Quantum cache memory to make up the speed with Multi-Valued DNA NAND gate. Then these two qubits perform the NMR relaxation process and make them as molecule sequence. Then these molecule sequence performs the Multi-Valued DNA NAND gate operation. Multi-Valued Quantum-DNA SR Latch operates in the same mechanism with each qubit input. However, because all of the computations took place in the MultiValued Quantum superposition state, a lot of heat was generated throughout the
120
Multi-Valued Sequential Circuits in Quantum-DNA Computing
process. All computations take place in the coherence state, and the result will be decoherent, that’s why heat transfers into the Multi-Valued DNA portion but this heat is not enough for the Multi-Valued DNA operational circuit according to demand.
3.4
Multi-Valued Quantum-DNA SR Flip Flop
Multi-Valued Quantum-DNA Sequential Logic circuits, unlike Multi-Valued Quantum-DNA Combinational Logic circuits, include some type of built-in “Memory” that changes state depending on the real signals supplied to its inputs at the moment. Multi-Valued Quantum-DNA SR flip-flops, for example, have a |1> qubit memory bistable. The SET and RESET inputs of the Multi-Valued Quantum-DNA SR flip flop are the same. The output of the SET input is a |1>, whereas the output of the RESET input is a |0>. The Multi-Valued Quantum-DNA SR flip flop is often referred to as the SET RESET flip flop. The reset input is used to restore the flip flop to its starting state from the current state with an output. The ternary Quantum NAND operational circuit SR flip flop is a basic flip flop with both outputs providing feedback to its opposite input. This circuit is used to store a single data bit in a memory circuit. The three inputs are: SET, RESET, and a found output. A two qubit model will be used since Multi-Valued Quantum-DNA SR flip flops have two inputs that are mostly from the outside. Because using two-qubits, it generates more heat at first than Multi-Valued QuantumDNA D flip flops. The computation time of this Multi-Valued Quantum-DNA SR flip-flop is determined by the fundamental gate in its middle. Multi-Valued Quantum SR flip flops may be found in a wide range of processors and embedded systems. Although the suggested flip-flop can generate some trash, an error correcting auxiliary qubit provides the desired output. The real-world implementation of the suggested Multi-Valued Quantum circuit will address a wide range of issues more quickly and effectively.
3.4.1
General Organization of Multi-Valued Quantum-DNA SR Flip-Flop
Multi-Valued Quantum-DNA SR flip-flop toggles the input independently. MultiValued Quantum SR flip-flop takes two qubit inputs |S> and |R>. In Multi-Valued Quantum SR flip-flop, the output of one operation is used by the other operation. Multi-Valued Quantum SR flip-flop depends on it. Figure 3.5 shows the block diagram of multi-valued quantum-DNA SR flip-flop circuits. Multi-Valued Quantum-DNA SR flip-flop needs two-qubit input and one shared input which is also a qubit. In one ternary Quantum NAND operation |R> and in another ternary Quantum NAND operation |S> is taken as inputs. A qubit input |E> is shared by both NAND operations. These ternary Quantum NAND operations perform in parallel way, according to the Multi-Valued Quantum computing principle. These outputs will be temporarily
DNA Ternary NAND
S Quantum
Ckl
R
Ternary NAND
DNA Ternary NAND
Quantum Ternary NAND
TGGATC TGGATC
121
Multi-Valued Quantum-DNA SR Flip Flop
NMR Relaxation FIGURE 3.5 Block Diagram of Multi-Valued Quantum-DNA SR Flip-Flop Circuits stored in a Multi-Valued Quantum Cache Memory. As the ternary Quantum NAND operations and the ternary DNA NAND operations are held in different times, it is necessary to store the outputs of the ternary Quantum NAND operations in a MultiValued Quantum Cache Memory. As this block diagram depicts, the final output will be the Multi-Valued DNA molecule sequence. So the outputs from the Multi-Valued Quantum Cache Memory will be gone through the “NMR Relaxation” process and after that one qubit will go to Multi-Valued Quantum NOR operation as input. Like the same other output, another qubit from the Multi-Valued Quantum Cache Memory will come as input in another Multi-Valued Quantum NOR operation. Then finally two Multi-Valued Quantum NOR operations will parallelly be performed and it is the last operation of Multi-Valued Quantum computing according to the Multi-Valued Quantum-DNA SR flip-flop circuit block diagram. In this portion, the conversion of the qubit happens after getting out of the ternary DNA NAND gate, the output becomes Multi-Valued DNA molecular sequence. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why
122
Multi-Valued Sequential Circuits in Quantum-DNA Computing
in Multi-Valued Quantum-DNA SR flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing ternary DNA NAND SR flip-flop performs where two ternary DNA NAND gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence are found from the Multi-Valued Quantum-DNA SR flip-flop.
3.4.2
Circuit Architecture of Multi-Valued Quantum-DNA SR Flip-Flop
Multi-Valued Quantum-DNA SR flip-flop operation circuit is constructed using one principle, that is, this circuit’s first portion will be constructed by using Multi-Valued Quantum circuit and the second portion will be constructed by using Multi-Valued DNA computing circuit. This circuit also has Multi-Valued Quantum cache memory and a Heat transfer circuit to achieve the best output at the end. Figure 3.6 depicts the circuit architecture of multi-valued Quantum-DNA SR Flip-Flop.
S
DNA Ternary NAND
Quantum Ternary NAND
DNA Ternary NAND
Quantum R Ternary NAND
NMR Relaxation FIGURE 3.6 Circuit Architecture of Multi-Valued Quantum-DNA SR Flip-Flop
TGGATC
TGGATC
Multi-Valued Quantum-DNA SR Flip Flop
123
In this circuit, at first the inputs are qubits and the outputs are the molecular sequence. There are two inputs in the ternary Quantum NAND gate. In this circuit those inputs are |S>, |R>, and |E> which is shared between the two ternary Quantum NAND gates. Two Multi-Valued Quantum operations are constructed parallelly. These two ternary Quantum NAND operations circuit output lines are connected into the Multi-Valued Quantum cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued Quantum computing. MultiValued Quantum cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued Quantum array. When the time arrives Multi-Valued Quantum cache memory supplies the data into the “NMR Relaxation” process. Multi-Valued Quantum cache memory supply line fully connected to “NMR Relaxation” process as well as here EMR emission is fully prohibited. Then the output line of the “NMR Relaxation” process is connected to the ternary DNA NAND gate. Two outputs of the process are connected to two different ternary DNA NAND gates. Ternary DNA NAND gates another input come from the output which is ACCTAG and TGGATC molecular sequences. Hence this ternary DNA NAND gates’ final output line is the final output of Multi-Valued Quantum-DNA SR flip-flop. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued DNA circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued DNA circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued DNA circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and MultiValued DNA circuits. Maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued Quantum-DNA SR flip-flop circuit is constructed fully.
3.4.3
Working Principle of Multi-Valued Quantum-DNA SR Flip-Flop
Multi-Valued Quantum-DNA SR flip-flop is working using two principles: the MultiValued Quantum computing principle and the Multi-Valued DNA computing principle. There are two inputs in the ternary Quantum NAND gate in this circuit. In this circuit, those inputs are |S>, |R>, and |E>, which are shared between the two AND gates. Multi-Valued Quantum circuit operation will be happening in close to zero temperature because qubits need to coherence state. The superposition state will be stable if this circuit is full of prohibited from other environment particles. The two ternary Quantum NAND operations will be performed parallelly. This ternary Quantum NAND operation produce some garbage value but in this proposed circuit this topic is avoidable. Each of the ternary Quantum NAND Operation has one output. These qubit outputs go to the Multi-Valued Quantum Cache Memory which is basically made out of Shift Register. This Multi-Valued Quantum Cache Memory is built using the rules of Multi-Valued Quantum computing. This Cache Memory will store the qubit output from the AND gate and will serve it when needed. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when requires it serves the data into
124
Multi-Valued Sequential Circuits in Quantum-DNA Computing
the “NMR Relaxation” process. In this Multi-Valued Quantum-DNA SR flip-flop, two qubits are stored in Multi-Valued Quantum cache memory. This qubit performs the”NMR Relaxation” process because Multi-Valued DNA circuits need molecular sequence. This process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs the ternary DNA NAND operation. The final output sequence and output sequence from other ternary DNA NAND operations perform ternary DNA NAND operation for each of the MultiValued DNA NOT gates. These two NOR operations perform parallelly. This structure is basically a ternary DNA NAND flip-flop operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued DNA operation is performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two ternary Quantum NAND operations perform so it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction capture the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between ternary Quantum NAND Multi-Valued DNA circuits. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully the Multi-Valued Quantum-DNA SR flip-flop can produce two output molecular sequences. Table 3.3 shows the truth table of multi-valued Quantum-DNA SR Flip-Flop. TABLE 3.3 Truth Table of Multi-Valued Quantum-DNA SR Flip-Flop |S> |0> |0> |1> |1>
|R> |0> |1> |0> |1>
|Q> |Q> No Change TGGATC ACCTAG ACCTAG TGGATC Invalid
Multi-Valued Quantum-DNA JK Flip-Flop
3.4.4
125
Example
Assume that this study effort receives the inputs |0> and |1> in order to ensure that the Multi-Valued Quantum SR flip-flop operational circuit produces the right output. The |0> input end is connected to the |S> input end, while the |1> input end is connected to the |R> input end. The fact that the |R> input is |1> indicates that it is for a reset operation. Assume that the clock is activated and that the clock’s input is |1>. First, do the ternary Quantum NAND operation using the |clk> input. If just one of the inputs is |0> in a ternary Quantum NAND operation, the result is |1>. The ternary Quantum NAND operation is then performed using another |clk> and |R> input. In this case, the |clk> input is |1>, and the |R> input is also |1>. The output is |0>. Then, as the input to the Multi-Valued Quantum-DNA SR latch, these two input qubits, |1> and |0>, will be inputted. The Multi-Valued Quantum-DNA SR latch operation will be performed by them. A collection of ternary Quantum-DNA NAND operation circuits makes up the SR latch operation circuit. |1> and |0> will be converted to ACCTAG and TGGATC and the output will be TGGATC and ACCTAG.
3.5 Multi-Valued Quantum-DNA JK Flip-Flop In flip-flop designs, the Multi-Valued Quantum JK flip-flop will be the most extensively utilized flip-flop. J and K are not abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are independent letters chosen by the inventor Jack Kilby to identify the flip-flop design from others. Despite the fact that the digital electronics JK flip flop was created by Jack Kilby. The functioning concept of the proposed Multi-Valued Quantum JK flip flop differs from that of the digital JK flip flop. The Multi-Valued Quantum JK flip flop’s sequential operation is identical to that of the prior Multi-Valued Quantum SR flip flop, with the same “Set” and “Reset” inputs. The distinction this time is that even though S and R are both at logic “1,” the “Multi-Valued Quantum JK flip flop” has no incorrect or prohibited Multi-Valued Quantum SR Latch input states. It is evident that the Multi-Valued Quantum JK flip flop does not solve the disadvantages of the Multi-Valued Quantum SR flip flop. The Multi-Valued Quantum JK flip flop is essentially a gated Multi-Valued Quantum SR flip flop with the addition of clock qubit input circuitry to avoid the unlawful or invalid output state that can arise when both inputs |S> and |R> are equal to logic level “1.” A Multi-Valued Quantum JK flip-flop has four potential input combinations due to the extra timed input: “|1>,” “logic |0>,” “no change,” and “toggle.” A Multi-Valued Quantum JK flip flop has the same symbol as a Multi-Valued Quantum SR Bistable Latch, as seen in the preceding chapter. The Multi-Valued Quantum JK flip flop, like other flip flops, generates a lot of heat, which must be dissipated in order for the operation to run properly. As compared to other Multi-Valued Quantum
126
Multi-Valued Sequential Circuits in Quantum-DNA Computing
circuits, the Multi-Valued Quantum JK flip flop will not require as much power. The qubit may simply conduct the operation once all of the molecules are in superposition state and coherence mode. A lot of junk values are received in the Multi-Valued Quantum JK flip flop, and it is needed to do more investigation to figure out what they are. The trash value is not taken into account in this procedure.
3.5.1
General Organization of Multi-Valued Quantum-DNA JK Flip-Flop
Multi-Valued Quantum-DNA JK flip-flop toggles the input. Multi-Valued QuantumDNA JK flip-flops have two-qubit inputs and clock qubit input. Multi-Valued Quantum JK flip-flop relies on Clock qubit input. Figure 3.7 shows the multi-valued Quantum-DNA JK Flip-Flop circuits block diagram. Multi-Valued Quantum-DNA JK flip-flop needs one qubit input and one clock input which is also a qubit. There is a qubit input |J> and another qubit input |K> which will enter into two different AND Gates. One |clk> input is shared by both of those
|J> |0> CLK |K>
|0>
Quantum Ternary NAND Quantum Ternary NAND
Quantum Ternary NAND Quantum Ternary NAND
Quantum Cache Memory
DNA Ternary NAND DNA Ternary NAND
DNA Ternary NAND DNA Ternary NAND
NMR Relaxation FIGURE 3.7 Block Diagram of Multi-Valued Quantum-DNA JK Flip-Flop Circuits
TGGATC TGGATC
Heat Transfer Circuit
Multi-Valued Quantum-DNA JK Flip-Flop
127
Multi-Valued Quantum NAND gates. These Multi-Valued Quantum NAND operations perform parallelly according to the Multi-Valued Quantum computing principle. These Multi-Valued Quantum NAND operations output lines are entered as input lines into another couple of Multi-Valued Quantum NAND operations. These Multi-Valued Quantum NAND operations’ one input is the previous output qubit and the other is the final output of the Multi-Valued Quantum-DNA JK flip-flop. As this block diagram depicts, the final output will be the Multi-Valued DNA molecule sequence. So this molecular sequence will be gone through the NMR process and NMR will make this sequence a qubit, as well as this qubit, will go to Multi-Valued Quantum NAND operation as input. Like the same other output, the molecular sequence will come as input in another Multi-Valued Quantum NAND operation. Then finally two Multi-Valued Quantum NAND operations will parallelly be performed and it is the last operation of Multi-Valued Quantum computing according to the MultiValued Quantum-DNA jk flip-flop circuit block diagram. These two Multi-Valued Quantum NAND operations produce two-qubit which will be stored in Multi-Valued Quantum Cache memory. Then this Multi-Valued Quantum cache memory serves the qubit into the Multi-Valued DNA computing circuit’s portion. These qubits need to be molecular sequence first of all so qubits are performed here first of all NMR relaxation process. In the NMR relaxation process, emitting EMR is strictly prohibited. After the NMR relaxation process qubits are relaxing their state and are converted into the molecular sequence. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing is very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNA JK flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NAND SR latch performs where two MultiValued DNA NAND gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation and finally found the output molecular sequence from Multi-Valued Quantum-DNA JK flip-flop. Here, the outputs of the Multi-Valued DNA NAND gates again goes through “NMR” process which are taken as inputs for the Multi-Valued Quantum NAND operations.
3.5.2
Circuit Architecture of Multi-Valued Quantum-DNA JK Flip-Flop
Multi-Valued Quantum-DNA JK Flip-Flop operation circuit is constructed using one principle that is this circuit’s first portion will be constructed by using Multi-Valued Quantum circuit and the second portion will be constructed by using Multi-Valued DNA computing circuit. This circuit also has Multi-Valued Quantum cache memory and a Heat transfer circuit to achieve the best output at the end. Figure 3.8 shows the multi-valued Quantum-DNA JK Flip-Flop operation circuit. In this circuit, input is qubit and output is the molecular sequence. Clock input |clk> is shared into two Multi-Valued Quantum NAND operations. Two
128
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Ternary Quantum NAND
Anneal . Hence the clock input enables this circuit to start to work and first of all, it will perform the Multi-Valued Quantum circuit operation. Multi-Valued Quantum circuit operation will be happening in close to zero temperature because qubits need a coherence state. The superposition state will be stable if this circuit is full of prohibited particles from other environment particles. The |clk> input will be shared and perform two Multi-Valued Quantum NAND operations parallelly. This Multi-Valued Quantum NAND operation produces some garbage value but in this proposed circuit this topic is avoidable. Multi-Valued Quantum NAND operations produce two output qubits in the same amount of time. This qubit one of each will perform another two Multi-Valued Quantum NAND operations parallelly. The first qubit and final output of Multi-Valued Quantum-DNA JK Flip-Flop will perform Multi-Valued Quantum NAND operation. Another qubit and another output sequence of the Multi-Valued Quantum-DNA JK Flip-Flop will perform the Multi-Valued Quantum NAND operation. These two operations will perform parallelly. But the final output of Multi-Valued Quantum-DNA JK Flip-Flop is a molecular sequence. The molecular sequence cannot perform the Multi-Valued Quantum NAND operation. For that reason, Multi-Valued Quantum NAND operations need a qubit to perform the operation. So, that’s why Multi-Valued Quantum molecular sequence performs first of all NMR process and then it converts them molecular sequence into a qubit. Then these qubits and the previous output qubits perform two Multi-Valued Quantum NAND operations parallelly and produce the output of two Multi-Valued Quantum NAND operations parallelly. These two outputs of two qubits enter into the Multi-Valued Quantum cache memory.
130
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when required, it serves the data into the NMR relaxation process. In this Multi-Valued Quantum-DNA JK Flip-Flop, twoqubit is stored in Multi-Valued Quantum cache memory. This qubit performs the NMR Relaxation process because Multi-Valued DNA circuits need molecular sequence. NMR relaxation process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs the Multi-Valued DNA NAND operation. The final output sequence and molecular sequence from cache perform Multi-Valued DNA NAND operation. Another final output sequence and previous output from cache also perform another Multi-Valued DNA NAND operation. These two NAND operations perform parallelly. This structure is basically Multi-Valued DNA NAND latch operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast and on the other hand Multi-Valued DNA operation performs very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum NAND operation performs so it produces much heat. But Multi-Valued Quantum circuit needs to be in close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction capture the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between Multi-Valued Quantum NAND Multi-Valued DNA circuits. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. Table 3.4 shows the truth table of multi-valued quantum-DNA JK flip-flop.
3.5.4
Example
For the purpose of testing the proposed Multi-Valued Quantum JK flip-flop circuit, assume that the qubit input is |0> and |1>. If and only if the clock input is high or |1>, the Multi-Valued Quantum JK flip flop will function. If the clock input is high, the Multi-Valued Quantum NAND operation will be performed by inputs |J>= |0> and |clk>=|1>. Then Intermediate Output = |1> In addition to performing the Multi-Valued Quantum NAND operation and producing the appropriate output, the inputs are |K>= |1> and |clk>= |1>, then the Intermediate Output =|0>.
Multi-Valued Quantum-DNA T Flip-Flop
131
TABLE 3.4 Truth Table of Multi-Valued Quantum-DNA JK Flip-Flop J |0> |0> |1> |2> |1> |1>
k |0> |1> |0> |0> |1> |1>
Q |Q> No Change TGGATC ACCTAG ACCTAG TGGATC TGGATC CGGTAC TGGATC ACCTAG ACCTAG TGGATC
These two intermediate qubit outputs are now used to conduct two independent Multi-Valued Quantum NAND operations. The Multi-Valued Quantum NAND operation is performed by the qubit |0> and the final output of the Multi-Valued QuantumDNA JK flip-flop |Q>. Assume that the most recent state |Q> is |1> and the first intermediate output |1> will produce the output |S>=|0>. The Multi-Valued Quantum NAND operation is then performed on the intermediate output |0> and the final output of the Multi-Valued Quantum JK flip flop |Q>=|0> and produce the output |R>=|1>. According to the suggested circuit of Multi-Valued Quantum JK flip-flop, these qubits labeled |S> and |R> will now conduct the Multi-Valued DNA SR flip-flop operation and the final output will be TGGATC and ACCTAG.
3.6 Multi-Valued Quantum-DNA T Flip-Flop Multi-Valued Quantum-DNA T flip-flop is also known as “Multi-Valued QuantumDNA Toggle Flip-flop”. To avoid the occurrence of the intermediate state in MultiValued Quantum-DNA SR flip-flop, only one input should be provided to the flip-flop called the Trigger qubit input or Toggle input. Toggling means ‘Changing the next state output to complement the present state output’. The Multi-Valued QuantumDNA T flip–flop can be designed by making simple modifications to the MultiValued Quantum-DNA JK flip-flop. The Multi-Valued Quantum-DNA T flip–flop is a single qubit input device and hence by connecting |J> and |K> inputs together and giving them with single input called |T>, a Multi-Valued Quantum-DNA JK flip-flop can be converted into a Multi-Valued Quantum-DNA T flip-flop. Hence in Multi-Valued Quantum-DNA flip-flops have two portions based on the principle of the Multi-Valued Quantum-DNA circuit. In Multi-Valued QuantumDNA T flip-flop circuit, some portions are made by Multi-Valued Quantum computing principle and the rest of the portions are made by Multi-Valued DNA computing principle. Multi-Valued Quantum computing and multi-valued DNA computing are connected via the NMR relaxation process. For Time consistency, it is needed to use
132
Multi-Valued Sequential Circuits in Quantum-DNA Computing
the Multi-Valued Quantum cache memory in this circuit. The Multi-Valued Quantum circuit portion produces so much heat according to the Multi-Valued Quantum computing principle that’s why this circuit can transfer a small amount of heat into the Multi-Valued DNA computing circuit portion. According to Multi-Valued DNA computing, it needs a vast amount of heat to perform the calculation. In Multi-Valued Quantum-DNA T flip-flop circuit have one input which is a qubit input named |T>. This input performs first of all Multi-Valued Quantum operations and is then stored in Multi-Valued Quantum cache memory. When the perfect time arrived it will perform the NMR relaxation and convert into Multi-Valued DNA molecular sequence as well as perform the Multi-Valued DNA computing operation. Finally, after all of this process, Multi-Valued Quantum-DNA T flip-flop produces the output as Multi-Valued DNA molecular sequence. A most vital part in this Multi-Valued Quantum T flipflop that is from Multi-Valued DNA molecule sequence, it is needed to make a qubit first and this qubit will be entered here in the circuit as an input. Multi-Valued Quantum -Multi-Valued DNA T flip-flop toggles and it required much time compared to Multi-Valued Quantum t flip-flop but required less compared to Multi-Valued DNA T flip-flop. Multi-Valued Quantum-DNA T flip-flop circuits Multi-Valued Quantum circuit portion performs so fast but Multi-Valued DNA circuit portion much slower. In Multi-Valued Quantum-DNA T flip-flop bunch of Multi-Valued Quantum AND operations performs according to Multi-Valued Quantum computing principle and a bunch of Multi-Valued DNA NOR gate performs in Multi-Valued DNA computing portion in the circuit. Multi-Valued Quantum-DNA T flip-flop removes the problem of Multi-Valued Quantum-DNA SR flip-flop.
3.6.1
General Organization of Multi-Valued Quantum-DNA T Flip-Flop
Multi-Valued Quantum-DNA T flip-flop toggles the input and Multi-Valued Quantum-DNA Jk flip-flop’s extended version is Multi-Valued Quantum-DNA T flip-flop architecturally. Multi-Valued Quantum-DNA T flip-flops have one qubit input and clock qubit input. Multi-Valued Quantum T flip-flop relies on Clock qubit input. Figure 3.9 depicts the block diagram of multi-valued Quantum-DNA T FlipFlop. Multi-Valued Quantum-DNA T flip-flop needs one qubit input and one clock input which is also a qubit. One qubit input |T> and |clk> are shared into two Multi-Valued Quantum AND operations. These Multi-Valued Quantum AND operations perform parallelly according to the Multi-Valued Quantum computing principle. Then, multi-valued Quantum AND operations output lines are entered as input lines into another couple of Multi-Valued Quantum AND operations. finally, multivalued Quantum AND operations’ one input is the previous output qubit and the other is the final output of the Multi-Valued Quantum-DNA T flip-flop. As this block diagram depicts, the final output will be the Multi-Valued DNA molecule sequence. So this molecular sequence will be gone through the NMR process and NMR will make this sequence a qubit, as well as this qubit, will go to Multi-Valued Quantum AND operation as input. Like the same other output, the molecular sequence
133
Multi-Valued Quantum-DNA T Flip-Flop
Heat Transfer Circuit
|T>
Quantum Ternary AND
Quantum Ternary AND
Quantum Ternary AND
Quantum Ternary AND
Ternary DNA NOR
Quantum Cache Memory
Ternary DNA NOR
ACCTAG
ACCTAG
NMR Relaxation
FIGURE 3.9 Block Diagram of Multi-Valued Quantum-DNA T Flip-Flop will come as input in another Multi-Valued Quantum AND operation. Then finally two Multi-Valued Quantum AND operations will parallelly perform and it is the last operation of Multi-Valued Quantum computing according to the Multi-Valued Quantum-DNA T flip-flop circuit block diagram. These two Multi-Valued Quantum AND operations produce two-qubit which will be stored in Multi-Valued Quantum Cache memory. Then this Multi-Valued Quantum cache memory serves the qubit into the Multi-Valued DNA computing circuit’s portion. These qubits need to be molecular sequence first of all so qubits are performed here first of all NMR relaxation process. In the NMR relaxation process, emitting EMR is strictly prohibited. After the NMR relaxation process qubits are relaxing their state and are converted into the molecular sequence. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNA T flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into MultiValued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NOR SR latch performs where two Multi-Valued
134
Heat Transfer Circuit
Quantum Cache Memory
Anneal and clock input is |clk>. Multi-Valued Quantum-DNA T flip-flop won’t enable if the clock input is not |0>. Hence the clock input enables this circuit to start to work and first of all, it will perform the Multi-Valued Quantum circuit operation. Multi-Valued Quantum circuit operation will be happening in close to zero temperature because qubits need a coherence state. The superposition state will be stable if this circuit is full of prohibited from other environment particles. |T> and |clk> input will be shared and perform two Multi-Valued Quantum AND operations in parallel way. This Multi-Valued Quantum AND operation produces some garbage value but in this proposed circuit this topic is avoidable. Multi-Valued Quantum AND operation produces two output qubits in the same amount of time. This qubit one of each will perform another two MultiValued Quantum AND operations in parallel way. The first qubit and final output of Multi-Valued Quantum-DNA T flip-flop will perform Multi-Valued Quantum AND operation. Another qubit and another output sequence of the Multi-Valued Quantum-DNA T flip-flop will perform the Multi-Valued Quantum AND operation.
136
Multi-Valued Sequential Circuits in Quantum-DNA Computing
These two operations will perform in parallel way. But the final output of MultiValued Quantum-DNA T flip-flop is a molecular sequence. The molecular sequence cannot perform the Multi-Valued Quantum AND operation. For that reason, MultiValued Quantum AND operation need a qubit to perform the operation. So, that’s why Multi-Valued Quantum molecular sequence performs first of all NMR process and then it converts them molecular sequence into a qubit. Then these qubits and the previous output qubits perform two Multi-Valued Quantum AND operations in parallel way. and produce the output of two Multi-Valued Quantum AND operations in parallel way. These two outputs of two qubits enter into the Multi-Valued Quantum cache memory. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when requires it serves the data into the NMR relaxation process. In this Multi-Valued Quantum-DNA T flip-flop, two-qubit is stored in Multi-Valued Quantum cache memory. This qubit performs the NMR Relaxation process because Multi-Valued DNA circuits need molecular sequence. NMR relaxation process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs the Multi-Valued DNA NOR operation. The final output sequence and molecular sequence from cache perform Multi-Valued DNA NOR operation. Another final output sequence and previous output from cache also perform another Multi-Valued DNA NOR operation. These two NOR operation performs in parallel way. This structure basically Multi-Valued DNA NOR latches operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued DNA operation performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum AND operations perform so it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction capture the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between Multi-Valued Quantum and Multi-Valued DNA circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and
137
Multi-Valued Quantum-DNA T Flip-Flop TABLE 3.5 Truth Table of Multi-Valued Quantum-DNA T Flip-Flop |T> |0> |1> |0> |1>
Q ( Multi-Valued DNA Sequence) TGGATC TGGATC ACCTAG ACCTAG
Q ( Multi-Valued DNA Sequence) TGGATC ACCTAG TGGATC TGGATC
architecture fully then Multi-Valued Quantum-DNA T flip-flop can produce two output molecular sequences. Table 3.5 shows truth table of multi-valued Quantum-DNA T Flip-Flop.
3.6.4
Example
Multi-Valued Quantum-DNA T flip-flop needs one qubit input and one clock input. Clock inputs value is |1> then this Multi-Valued Quantum-DNA flip-flop will be enabled. Assume clock input value is |1> here and the qubit input is |1>. These qubit input and clock input will, first of all, perform two Multi-Valued Quantum AND operations parallelly. Output will be |1>. So, from two Multi-Valued Quantum AND operations, it is found that two-qubit which |1> respectively. Assume one output sequence is Q and the other is Q. Hence here if the Q sequence is ACCTAG then Q will be the TGGATC sequence as supposed. Qubit |1> and output sequence Q as well as another output qubit |1> and Q will perform Multi-Valued Quantum AND operation. But molecular sequence cannot perform Multi-Valued Quantum AND operation directly. For that reason, these two sequences, first of all, perform the NMR process and make them qubit, and then perform the Multi-Valued Quantum AND operation with respective other input in parallel way. ACCTAG will convert as a qubit and assume it as |1> and opposite TGGATC as |0> suppose. So |1> and ACCTAG or |1> will perform Multi-Valued Quantum AND operation and |1> and TGGATC or |0> will perform Multi-Valued Quantum AND operation in parallel way. These outputs |1> and |0> will be stored in Multi-Valued Quantum cache memory. Multi-Valued Quantum cache memory will serve this output as input into the Multi-Valued DNA circuit when the right time arrives. These qubits will perform first of all NMR relaxation process where these qubits will become in decoherence state whereas the qubit will be relaxed and converted into molecule sequence. In the NMR relaxation process, EMR emits is fully prohibited. After performing the NMR relaxation process these output |1> and |0> will be converted as molecule sequences named ACCTAG and TGGATC respectively. These two molecule sequence performs the Multi-Valued DNA SR latch operation where two Multi-Valued DNA NOR gate performs operation in parallel way. So, ACCTAG and TGGATC will produce the final output ACCTAG and TGGATC.
138
Multi-Valued Sequential Circuits in Quantum-DNA Computing
3.7 Multi-Valued Quantum-DNA Shift Register A single qubit of two-valued qubit data (|1>or |0>) can be stored in a Multi-Valued Quantum-DNA flip flop. However, many Multi-Valued Quantum-DNA flip-flops are required to store multiple qubits of data. To store n qubits of data, N Multi-Valued Quantum-D flip flops must be coupled in a certain order. A Multi-Valued QuantumDNA register is a gadget that stores this type of data. It consists of a sequence of Multi-Valued Quantum-DNA flip flops used to store multiple qubits of data. Multi-Valued Quantum-DNA shift registers enable the information stored in these Multi-Valued Quantum registers to be transmitted. A Multi-Valued QuantumDNA shift register is a collection of flip flops that stores several qubits of information. By applying clock pulses to the qubits contained in such Multi-Valued QuantumDNA registers, they may be made to move inside them and in and out of them. By linking n Multi-Valued Quantum flip-flops and n number of Multi-Valued DNA flipflops, each of which stores a single qubit of data or molecule sequence of data, an n Multi-Valued Quantum-DNA shift register may be built. “Multi-Valued QuantumDNA Shift left registers” are Multi-Valued Quantum-DNA registers that will shift the qubits or molecules to the left. “Multi-Valued Quantum-DNA Shift right registers” are Multi-Valued Quantum-DNA registers that will shift the qubits or molecule sequence to the right. Multi-Valued Quantum-DNA Shift registers are basically of 4 types. These are: 1. Multi-Valued Quantum-DNA Serial In Serial Out shift register 2. Multi-Valued Quantum-DNA Serial In parallel Out shift register 3. Multi-Valued Quantum-DNA Parallel In Serial Out shift register 4. Multi-Valued Quantum-DNA Parallel In parallel Out shift register In this study, a shift register is built utilizing a Multi-Valued Quantum D flip-flop operational circuit and a Multi-Valued DNA D flip-flop operational circuit to convert serial data into Multi-Valued Quantum data and Multi-Valued DNA molecule sequence data. The Multi-Valued Quantum-DNA Serial-In Serial-Out shift register is a type of Multi-Valued Quantum-DNA shift register that permits serial input one qubit or one molecule sequence at a time over a single data line and outputs a serial output. The data exits the Multi-Valued Quantum-DNA shift register one qubit at a time in a serial pattern since there is only one qubit output, thus the term Multi-Valued Quantum-DNA Serial-In Serial-Out Shift Register. Four Multi-Valued Quantum-DNA D flip-flops are linked in a serial fashion in this circuit. Because the same clock signal is supplied to each Multi-Valued Quantum-DNA flip flop, they are all synchronized with one another. The circuit below in the architecture section is an example of a Multi-Valued Quantum-DNA shift right register, which accepts serial data from the Multi-Valued Quantum flip flop’s left side and Multi-Valued DNA flip-flops left side. In Multi-Valued Quantum-DNA flip-flop qubit is entered into as an input in the circuit and performs the required operation. Multi-Valued Quantum computing computation speed is much higher than Multi-Valued DNA computing computational
Multi-Valued Quantum-DNA Shift Register
139
speed. For that case qubits are stored in Multi-Valued Quantum cache memory. When actually the time arrives then qubit first of all performs the NMR relaxation process and makes the qubit into molecule sequence. Then this molecule sequence performs the Multi-Valued DNA flip-flop operation. Multi-Valued Quantum circuit produces much heat and heat needs to be removed to maintain the coherence state and MultiValued DNA computing circuit needs huge heat to enable the circuit to perform. In that case, this circuit used a heat transfer circuit to transfer the heat into the MultiValued DNA circuits.
3.7.1
General Organization of Multi-Valued Quantum-DNA Shift Register
Three Multi-Valued Quantum D flip-flop operational circuits and One Multi-Valued DNA D flip-flop circuits are used to make a Multi-Valued Quantum-DNA shift register. As a fundamental component, a Multi-Valued Quantum-DNA Shift register is utilized for data shift, and a Multi-Valued Quantum D flip-flop and Multi-Valued DNA D flip-flop is used to make it happen. Figure 3.11 depicts the block diagram of Multi-Valued Quantum-DNA Shift Register. Two inputs are used in Multi-Valued Quantum D flip flops: one for data and the other for the clock. The outputs of Multi-Valued Quantum D flip flops are logically opposite one another. The circuit’s synchronization with an external signal is aided by the clock input. A Multi-Valued Quantum D flip flop’s output can have two possible values. Data input is directed to a Multi-Valued Quantum NAND operation circuit in this block diagram, while data input reverse is routed to another Multi-Valued Quantum NAND operation circuit. Both Multi-Valued Quantum NAND operations procedures use the clock pulse input. Multi-Valued Quantum SR Latch receives the result of two Multi-Valued Quantum NAND operations. The D flip flop is constructed using the SR latch. This property is used to induce a delay in the circuit’s data flow. Multi-Valued Quantum SR Latch is made up of two Multi-Valued Quantum NAND Operations. The final two outputs of the Multi-Valued Quantum SR Latch function were uncovered. A Multi-Valued Quantum D flip flop may provide two types of output, one of which is logically inverse to the other. The Multi-Valued Quantum D flip flop will continue to function if the clock is enabled; otherwise, the Multi-Valued Quantum D flip flop will stop working. Multi-Valued Quantum D flip-flop operational circuits are also coupled through serial connection in the Multi-Valued Quantum shift register block diagram. The Multi-Valued Quantum D flip-flop operational circuit is the fundamental component of the Multi-Valued Quantum shift register. After processing the qubit input in the Multi-Valued Quantum Shift Register output of the shift register is stored in Multi-Valued Quantum Cache Memory. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNA Shift Register Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into
140
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Quantum Ternary NAND
Quantum Ternary NAND
Quantum Ternary NAND
Quantum Ternary NAND
NMR Relaxation
Ternary Quantum Cache Memory
Quantum Ternary NAND
Quantum Ternary NAND
Quantum Ternary NAND
Quantum Ternary NAND
Do not emit EMR
Quantum Ternary NAND
Quantum Ternary NAND
|X>
Quantum Ternary NAND
Quantum Ternary NAND
Heat Tranfer Circuit
Ternary DNA NAND Ternary DNA NAND
Ternary DNA NAND
Ternary DNA NAND
Ternary DNA NAND
ACCTAG
D Flip-Flop
D Flip-Flop D Flip-Flop D Flip-Flop FIGURE 3.11 Block Diagram of Multi-Valued Quantum-DNA Shift Register Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NOR SR latch performs where two MultiValued DNA NOR gates perform in parallel way. and input comes from Multi-Valued Quantum circuit portion. After that operation and finally found the output molecular sequence from Multi-Valued Quantum-DNA Shift Register.
3.7.2
Circuit Architecture of Multi-Valued Quantum-DNA Shift Register
Four D flip-flops and a Multi-Valued Quantum AND Gate are used in the MultiValued Quantum Shift Register. Shift Register generates four qubit outputs using these. The D flip-flop has a single qubit input and is developed using Multi-Valued Quantum NAND and Multi-Valued Quantum SR latch operations. Figure 3.12 depicts the circuit architecture of multi-valued Quantum-DNA Shift Register.
141
Multi-Valued Quantum-DNA Shift Register
Quantum Cache Memory
D Flip-Flop D Flip-Flop D Flip-Flop
Anneal > |1> ↑ >> |1>
|x> X |0> |1>
Q Q TGGATC ACCTAG
Q Q ACCTAG TGGATC
Description Memoryno change Reset Q >> 0 Set Q >>
This kind of shift in data qubits continues for every rising edge of the clock pulse. This indicates that for every single clock pulse, the data within the Multi-Valued Quantum register moves towards the right by a single bit. Following the qubit data transmission, as explained, one can note that the first qubit of an input word appears at the output of nth flip-flop for the nth clock tick. On applying further clock cycles, one gets the next successive qubits of the qubit input data word as the serial output. Table 3.6 shows the truth table of multi-valued Quantum-DNA Shift Register. After processing the inputs in a Multi-Valued Quantum D flip-flop, it creates one output. The output is used as a clock input for the next Multi-Valued Quantum D flipflop. Thus, a Multi-Valued Quantum Shift Register creates one final qubit output.
3.7.4
Example
In the Multi-Valued Quantum-DNA shift register, there is only one qubit input needed to perform the required operation. Quantum shift register will enable if and only if when the clock input is enabled. This research proposed quantum shift register shift one qubit data into the right position. Assume |1>|1>|1>|0> data is going to perform the Quantum-DNA shift register operation. First of all 0 will perform the quantum D flip-flop number-1 operation and produce the output is |0>. Then this |0> will shift into the right side as well as every qubit will shift right side once. Now |1> will be entered into the quantum shift register and perform the midst quantum D flip-flop operation and then again like the previous one the data will be shifted once on the right side. Then like these two step by step |1>, |1> also entered into the quantum shift register in the relevant period and perform the midst quantum D flip-flop operation. Then again for each data will be shifted once. Every time qubit data shift once on the right side. In quantum shift register operational circuit will perform n+1 operation then final data will be like the table below (Table 3.7). Here in n+1 operation time, no data is available that’s why |0> is appeared in the truth table and according to the quantum Shift register principle one data qubit shifted once on the right side. After n+1 operation, final data is |0>|1>|1>|1>. These data purely proved that the multi-valued quantum-DNA shift register gives the correct required output by maintaining the quantum and DNA computing principle.
144
Multi-Valued Sequential Circuits in Quantum-DNA Computing TABLE 3.7 Data Shifting Process in Multi-Valued Quantum-DNA Shift Register |clk> |0> |1> |1> |1> |1> |1>
|x> |0> |0> |1> |1> |1>
Q TGGTAC TGGTAC ACCTAG ACCTAG ACCTAG ACCTAG
Q1 TGGTAC TGGTAC TGGTAC ACCTAG ACCTAG ACCTAG
Q2 TGGTAC TGGTAC TGGTAC TGGTAC ACCTAG ACCTAG
Q3 TGGTAC TGGTAC TGGTAC TGGTAC TGGTAC
Multi-Valued Quantum-DNA shift register can produce some garbage value but in this research, this is not the part of the study.
3.8 Multi-Valued Quantum-DNA Ripple Counter A Multi-Valued Quantum counter is basically used to count the number of clock pulses applied to a Multi-Valued Quantum flip-flop. It can also be used for MultiValued Quantum Frequency divider, Multi-Valued Quantum time measurement, Multi-Valued Quantum frequency measurement, Multi-Valued Quantum distance measurement and also for generating square waveforms. In this, the Multi-Valued Quantum flip-flops are Multi-Valued Quantum asynchronous counters and are supplied with different clock signals, there may be a delay in producing output. Also, a few numbers of Multi-Valued Quantum logic gates are needed to design asynchronous counters. So they are elementary in design and also are less expensive. An n-bit ripple counter can count up to 2n states. It is also known as MOD n counter. It is known as a ripple counter because of the way the clock pulse ripples its way through the flip-flops. It is an asynchronous counter. Different Ripple Counters are used with a different clock pulse. All the flip-flops are used in toggle mode. Only one flip-flop is applied with an external clock pulse and another flip-flop clock is obtained from the output of the previous flip-flop. The flip-flop applied with an external clock pulse acts as LSB (Least Significant Bit) in the counting sequence. A counter may be an up counter that counts upwards or can be a down counter that counts downwards or can do both i.e. count up as well as count downwards depending on the input control. The sequence of counting usually gets repeated after a limit Multi-Valued Quantum-DNA Ripple Counter is made out of four JK flip flops. Using these Multi-Valued Quantum JK Flip flops, the Multi-Valued Quantum-DNA Ripple Counter creates four qubit outputs. Here in JK flip flop, J and K are not shortened abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are autonomous letters chosen by its inventor Jack Kilby to distinguish the flip-flop design from other types. Though Jack Kilby invented the digital electronics JK flip
Multi-Valued Quantum-DNA Ripple Counter
145
Heat Transfer Circuit
Quantum Cache Memory FIGURE 3.13 Block Diagram of Multi-Valued Quantum-DNA Ripple Counter flop. Multi-Valued Quantum-DNA Ripple Counter is an asynchronous counter. It is created using Multi-Valued Quantum JK flip flops and these flip flops are only controlled by clock pulse input. Multi-Valued Quantum-DNA Ripple Counter produces much heat to produce the molecule’s superposition state and also produces some garbage value.
3.8.1
General Organization of Multi-Valued Quantum-DNA Ripple Counter
Multi-Valued Quantum-DNA Ripple Counter uses three Multi-Valued Quantum JK flip flop to operate two qubit inputs. Multi-Valued Quantum JK flip flop has the twoqubit input named as |J> and |K>. Figure 3.13 shows the block diagram of multivalued Quantum-DNA Ripple Counter. Multi-Valued Quantum JK flip-flop has the qubit input |J> and |k>. This MultiValued Quantum JK flip flop consists of many Multi-Valued Quantum NAND operations. At first basic Multi-Valued Quantum NAND operation performs a couple of
146
Multi-Valued Sequential Circuits in Quantum-DNA Computing
then this operation output is entered into the SR flip flop as well as got the output |Q> and |Q >. First of all |J> and |clk> input performs the Multi-Valued Quantum NAND operation. The output of the Multi-Valued Quantum NAND operation and output of the Multi-Valued Quantum JK flip flop |Q > performs another Multi-Valued Quantum NAND operation and produces the output named as |S>. |clk> input is shared, so |K> and |clk> input also performs the Multi-Valued Quantum NAND operation. This Multi-Valued Quantum NAND operations output and |Q> output of the Multi-Valued Quantum JK flip flop performs another Multi-Valued Quantum NAND operation as well as produces the output named as |R>. These |S> and |R> entered into the Multi-Valued Quantum SR flip flop and produce two outputs |Q> and |Q >. In Multi-Valued Quantum SR flip flop, it has four Multi-Valued Quantum NAND operations. |S> input and |clk> input performs MultiValued Quantum NAND operation as well as |R> input and shared |clk> input also performs the Multi-Valued Quantum NAND operation. These two NAND operations output entered the Multi-Valued Quantum SR latch as input. In Multi-Valued Quantum SR latches two |Q> and one input as well as |Q > and other inputs perform the Multi-Valued Quantum NAND operation. Finally, after all of this Multi-Valued Quantum operation, got the Multi-Valued Quantum JK flip flops final output |Q> and |Q >. After processing the qubit inputs in three JK flip flops like this, the output is stored in a Multi-Valued Quantum Cache Memory, which is made out of MultiValued Quantum Shift Register. Then this Multi-Valued Quantum cache memory serves the qubit into the Multi-Valued DNA computing circuit’s portion. These qubits need to be molecular sequence first of all so qubits are performed here NMR relaxation process. In the NMR relaxation process, emitting EMR is strictly prohibited. After the NMR relaxation process qubits are relaxing their state and are converted into the molecular sequence. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNA Ripple Counter Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NOR SR latch performs where two Multi-Valued DNA NOR gates perform in parallel way and input comes from Multi-Valued Quantum circuit portion. After that operation, finally found the output molecular sequence from Multi-Valued Quantum-DNA Ripple Counter.
3.8.2
Circuit Architecture of Multi-Valued Quantum-DNA Ripple Counter
Multi-Valued Quantum-DNA Ripple Counter uses three Multi-Valued Quantum JK flip flops and one Multi-Valued DNA JK flip flop to create three qubit outputs. MultiValued Quantum JK flip flop has a two-qubit input and one clock shared input. MultiValued Quantum JK flip flops also depend on the clock. If the clock is enabled then
147
Multi-Valued Quantum-DNA Ripple Counter
Heat Transfer Circuit
Anneal , |clk> and |Q> input produces the |R> output. These operation circuits are mainly Multi-Valued Quantum NAND operations. This |S> and |R> input is performed the Multi-Valued Quantum SR flip-flop operation. In Multi-Valued Quantum SR flip flop operational circuit architecture also made by the proposed basic component of Multi-Valued Quantum computing is Multi-Valued Quantum NAND operation. After processing the inputs in a Multi-Valued Quantum JK flip flop, the output of the flip flop is going to be stored as an output of the Multi-Valued Quantum-DNA Ripple Counter. Multi-Valued Quantum-DNA Ripple Counter intermediate architectures four Multi-Valued Quantum JK flip-flops connected in serial connection using the logical qubit input. Every clock input as |clk> enters in every qubit and from 2nd Multi-Valued Quantum JK flip-flop |clk> input is previous Multi-Valued Quantum Jk flip-flops first output |Q> . With the same architecture Multi-Valued Quantum-DNA Ripple Counter can be performed as a up counter or as a down counter but clock pulse as |clk> need to sometimes have a positive edge triggered and sometimes a negative edge triggered. The JK flip flop’s circuit output lines are connected into the Multi-Valued Quantum cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued Quantum computing. Multi-Valued Quantum cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued Quantum array. When the time arrives Multi-Valued Quantum cache memory supplies the data into the NMR Relaxation process. Multi-Valued Quantum cache memory supply line fully connected to NMR Relaxation process as well as here EMR emit is fully prohibited. Then the NMR Relaxation process output line is connected to the Multi-Valued DNA NAND gate. Two outputs of the NMR relaxation process are connected to two different Multi-Valued DNA NOR gates. Multi-Valued DNA NOR gates another input come from the output which is Q and Q molecular sequences. Hence this Multi-Valued DNA NAND gates’ final output line is the final output of Multi-Valued Quantum-DNA Ripple Counter. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued DNA circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued DNA circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued DNA circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and MultiValued DNA circuits. Maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued Quantum-DNA Ripple Counter circuit is constructed fully.
3.8.3
Working Principle of Multi-Valued Quantum-DNA Ripple Counter
In the Multi-Valued Quantum-DNA Ripple Counter there are four Multi-Valued Quantum JK flip-flop operational circuits. These Multi-Valued Quantum JK flipflop operational circuits are connected in serial connection. In this Multi-Valued
149
Multi-Valued Quantum-DNA Ripple Counter
Quantum-DNA Ripple Counter there is one clock input and a logic input which shared into the port |J> and |K> of Multi-Valued Quantum JK flip-flop operational circuit. The inputs |J> and |K> of a Multi-Valued Quantum Jk flip-flop conducts two Multi-Valued Quantum processes in parallel. The Multi-Valued Quantum NAND operation is performed using |J> and shared input |clk>. The Multi-Valued Quantum NAND operations are then completed, and one of the Multi-Valued Quantum JK flip flop’s outputs executes the Multi-Valued Quantum NAND operation, producing |S>. The |K> and |clk > inputs are performed first in the Multi-Valued Quantum NAND operation. The output of the Multi-Valued Quantum JK flip-flop |Q>, as well as the result of the Multi-Valued Quantum first NAND operation, are then used to perform another Multi-Valued Quantum NAND operation, yielding |R>. The steps for creating |S> and |R> are carried out simultaneously. It is known that one of the distinctive properties of Multi-Valued Quantum operations is that they may do several operations at the same time, and this is exactly what is happening. The Multi-Valued Quantum SR flip flop operation is then conducted on these |S> and |R> inputs. The Multi-Valued Quantum NAND operation, which is employed here, is also used to make Multi-Valued Quantum SR flip flops. Two outputs are discovered after conducting the Multi-Valued Quantum SR flip-flop operation. The opposite of one output is the opposite of the other. Here if the |clk> is |0>, then the Multi-Valued Quantum JK flip-flop will not be triggered, but if |clk> is |1> the Multi-Valued Quantum JK flip-flop will be triggered and it will toggle the output. First of all Multi-Valued Quantum JK flip-flop operational circuit getting |clk> value is |1> and toggles the output value from the previous state value. Then the output of the initial Multi-Valued Quantum JK flip-flop will be |clk> input of next Multi-Valued Quantum JK flip-flop. If the |clk> value is |1>, then the output value will be toggled, otherwise the output will be the previous state output. Maintaining the same procedure every Multi-Valued Quantum JK flip-flop operated in the Multi-Valued Quantum-DNA Ripple Counter. Multi-Valued Quantum JK flip-flop is toggled very much, that’s why in the Multi-Valued Quantum-DNA Ripple Counter Multi-Valued Quantum JK flip-flop operational circuit here is used as a basic component. Table 3.8 depicts the truth table of multi-valued Quantum-DNA Ripple Counter The JK flip flop’s circuit output lines are connected into the Multi-Valued Quantum cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued Quantum computing. Multi-Valued Quantum cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued Quantum array. When the time arrives TABLE 3.8 Truth Table of Multi-Valued QuantumDNA Ripple Counter clk |0> |1> |1>
|Q0 > |0> |1> |0>
|Q1 > |0> |1> |0>
|Q2 > |0> |1> |0>
|Q3 > |0> |1> |0>
150
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Multi-Valued Quantum cache memory supplies the data into the NMR Relaxation process. Multi-Valued Quantum cache memory supply line fully connected to NMR Relaxation process as well as here EMR emit is fully prohibited. Then the NMR Relaxation process output line is connected to the Multi-Valued DNA NAND gate. Two outputs of the NMR relaxation process are connected to two different Multi-Valued DNA NOR gates. Multi-Valued DNA NOR gates another input come from the output which is Q and Q molecular sequences. Hence this Multi-Valued DNA NAND gates’ final output line is the final output of Multi-Valued Quantum-DNA Ripple Counter. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum AND operations perform so it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued QuantumDNA circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued QuantumDNA flip-flop distance is less than one meter between Multi-Valued Quantum and Multi-Valued DNA circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued Quantum-DNA Ripple Counter can produce two output molecular sequences.
3.8.4
Example
To check the Multi-Valued Quantum-DNA Ripple Counter proposed circuit assumed a clock signal is |1> and the logical qubit is high. So, if initially clock signal |1> is delivered then for the first Multi-Valued Quantum JK flip-flop operational circuit, the output will be |1>. According to the work principle of Multi-Valued Quantum-DNA Ripple Counter if clock input value is |1> then the previous state value will be toggled. Then now from the first Multi-Valued Quantum JK flip-flop got one output which is |1>. This |1> will be the clock input for the second Multi-Valued Quantum JK flip-flop circuit according to the architecture of the Multi-Valued Quantum-DNA Ripple Counter. As like the previous Multi-Valued Quantum JK flip-flop for third and fourth Multi-Valued Quantum flip-flops the principle is the same. For both of the flip-flops the clock value will be the previous Multi-Valued Quantum JK flip-flops output. Now, third and fourth will be DNA sequences. Hence from the truth table, it is seen that the proposed Multi-Valued QuantumDNA Ripple Counter is correct theoretically. Multi-Valued Quantum JK flip-flop
Multi-Valued Quantum-DNA Synchronous Counter
151
used here for toggling. This Multi-Valued Quantum-DNA Ripple Counter produces much heat when the molecule’s normal state becomes a superposition state. MultiValued Quantum-DNA Ripple Counters full operation needs to be an environment where other particles are totally prohibited to maintain the coherence state.
3.9 Multi-Valued Quantum-DNA Synchronous Counter A Multi-Valued Quantum counter is a Multi-Valued Quantum device which can count any particular event on the basis of how many times the particular event(s) has occurred. In a Multi-Valued Quantum logic system or computers, this MultiValued Quantum counter can count and store the number of times any particular event or process has occurred, depending on a Multi-Valued Quantum clock signal. Most common type of Multi-Valued Quantum counter is a sequential Multi-Valued Quantum logic circuit with a single clock input and multiple qubit outputs. The qubit outputs represent two valued decimal numbers. Each clock pulse either increases the number or decreases the number. Multi-Valued Quantum-DNA Synchronous Circuit generally refers to something which is coordinated with others based on time. Multi-Valued Quantum-DNA Synchronous Signals occur at same clock rate and all the clocks follow the same reference clock. Multi-Valued Quantum asynchronous Counter have shown that the qubit output of that Multi-Valued Quantum counter is directly connected to the input of next subsequent counter and making a chain system, and due to this chain system propagation delay appears during counting stage and create counting delays. In a Multi-Valued Quantum-DNA Synchronous Counter, the clock qubit input across all the Multi-Valued Quantum flip-flops use the same source and create the same clock signal at the same time. So, a Multi-Valued Quantum counter which is using the same clock signal from the same source at the same time is called a Multi-Valued Quantum-DNA Synchronous Counter. Multi-Valued Quantum-DNA Synchronous Counter is made out of four JK flip flops and two Multi-Valued Quantum AND Gates. Using these Multi-Valued Quantum JK Flip flops and Multi-Valued Quantum AND Gates, the Multi-Valued Quantum-DNA Synchronous Counter creates four qubit outputs. A Multi-Valued Quantum-DNA Synchronous Counter produces much heat and this circuit operation needs to happen in the required environment of Multi-Valued Quantum computing.
3.9.1
General Organization of Multi-Valued Quantum-DNA Synchronous Counter
Multi-Valued Quantum-DNA Synchronous Counter uses three Multi-Valued Quantum JK flip flops and one Multi-Valued DNA JK flip flop to create molecular sequence outputs from qubit outputs. Multi-Valued Quantum JK flip flop has the two-
152
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Heat Transfer
Quantum cache Memory FIGURE 3.15 Block Diagram of Multi-Valued Quantum-DNA Synchronous Counter qubit input named as |J> and |K>. Figure 3.15 depicts the block diagram of multivalued Quantum-DNA Synchronous Counter. Multi-Valued Quantum JK flip-flop has the qubit input |J> and |k>. This MultiValued Quantum JK flip flop consists of many Multi-Valued Quantum NAND operations. At first basic Multi-Valued Quantum NAND operation performs a couple of then this operation output is entered into the SR flip flop as well as got the output |Q> and |Q >. First of all |J> and |clk> input performs the Multi-Valued Quantum NAND operation. The output of the Multi-Valued Quantum NAND operation and output of the Multi-Valued Quantum JK flip flop |Q > performs another Multi-Valued Quantum NAND operation and produces the output named as |S>. |clk> input is shared so |K> and |clk> input also performs the Multi-Valued Quantum NAND operation. This Multi-Valued Quantum NAND operations output and |Q> output of the Multi-Valued Quantum JK flip flop performs another Multi-Valued Quantum NAND operation as well as produces the output named as |R>. These |S> and |R> entered into the Multi-Valued Quantum SR flip flop and produce two outputs |Q> and |Q >. In Multi-Valued Quantum SR flip flop, it has four Multi-Valued Quantum NAND operations. |S> input and |clk> input performs
Multi-Valued Quantum-DNA Synchronous Counter
153
Multi-Valued Quantum NAND operation as well as |R> input and shared |clk> input also performs the Multi-Valued Quantum NAND operation. These two NAND operations output entered the Multi-Valued Quantum SR latch as input. In Multi-Valued Quantum SR latches two |Q> and one input as well as |Q > and other inputs perform the Multi-Valued Quantum NAND operation. Finally, after all of these Multi-Valued Quantum operations, the Multi-Valued Quantum JK flip flop’s final outputs |Q> and |Q > are obtained. After processing the inputs in a Multi-Valued Quantum JK flip flop, the output of the flip flop is going to be stored as an output of the Multi-Valued Quantum-DNA Synchronous Counter. Thus, Multi-Valued Quantum-DNA Synchronous Counter creates four qubit outputs using four Multi-Valued Quantum JK flip flops. The clock inputs for all of the four Multi-Valued Quantum Jk flip flops come from the same source. For this, all of the flip flops work synchronously. One output of each of the second and third flip flops go through Multi-Valued Quantum AND Gates. Then the output of the Multi-Valued Quantum portion is stored in the MultiValued Quantum Cache Memory. Whenever needed the output then goes through the “NMR Relaxation” process in which the emitting of the EMR is strictly prohibited. Thus the qubits of the superstrate become the molecular sequence and are used as inputs for the Multi-Valued DNA JK flip flop. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-DNA Synchronous Counter Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform multi-valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NOR SR latch performs where two Multi-Valued DNA NOR gates perform parallelly and input comes from MultiValued Quantum circuit portion. After that operation, finally found the output molecular sequence from Multi-Valued Quantum-DNA Synchronous Counter.
3.9.2
Circuit Architecture of Multi-Valued Quantum-DNA Synchronous Counter
Multi-Valued Quantum-DNA Synchronous Counter uses three Multi-Valued Quantum JK flip flops and one Multi-Valued DNA JK flip flops to create molecular sequence outputs. Multi-Valued Quantum JK flip flop has a two-qubit input and one clock shared input. Multi-Valued Quantum JK flip flops also depend on the clock. If the clock is enabled then the circuit will enable, otherwise not. Figure 3.16 shows the diagram of multi-valued Quantum-DNA Synchronous Counter. Input |J> and input |K> both the value will perform the Multi-Valued Quantum NAND operation with the shared |clk> input differently. |J> and |clk> input performs the Multi-Valued Quantum NAND operation. NAND operation made by using MultiValued Quantum basic gates. Basic gates in mainly Multi-Valued Quantum computing are v, V+, and CNOT gates. For error correction here used an ancillary bit. In
ACCTAG
ACCTAG
Anneal and |K> perform two MultiValued Quantum operations in parallel way. |J> and shared input |clk> performs the Multi-Valued Quantum NAND operation. Then this Multi-Valued Quantum NAND operations result and one output of the Multi-Valued Quantum JK flip flop performs the Multi-Valued Quantum NAND operation and produce |S>. Like Multi-Valued Quantum NAND operation performs |K> and |clk > input first. Then the output of
156
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Multi-Valued Quantum JK flip-flop |Q> and the result of Multi-Valued Quantum first NAND operation executes again another Multi-Valued Quantum NAND operation and produce |R>. The procedure of producing |S> and |R> are executed in parallel. It is known that the Multi-Valued Quantum operations have one of the iconic characteristics that perform multiple operations parallelly and here it is happening. These |S> and |R> inputs are performed then Multi-Valued Quantum SR flip flop operation. Multi-Valued Quantum SR flip flop is also basically made by the Multi-Valued Quantum NAND operation that is used here. After performing the Multi-Valued Quantum SR flip-flop operation, two outputs are found. One output is the opposite of another. This Multi-Valued Quantum JK flip flop actually removes the problem of MultiValued Quantum SR flip flop. Multi-Valued Quantum SR flip-flop describes briefly in the 5th chapter. Multi-Valued Quantum JK flip-flop is triggered when the value of clock is |1> . So, in Multi-Valued Quantum-DNA Synchronous the counter clock needs to be always high. According to the principle counters need to be toggled, that’s why Multi-Valued Quantum JK flip-flop is perfect for Multi-Valued Quantum-DNA Synchronous counters. Multi-Valued Quantum JK flip-flop operational circuit triggered then output of Multi-Valued Quantum JK flip-flop will be shared input of second Multi-Valued Quantum JK flip-flop operational circuit. Then first Multi-Valued Quantum JK flip-flops output and second Multi-Valued Quantum JK flip-flops output enters in the Multi-Valued Quantum AND operation circuit and performs the MultiValued Quantum AND operation. The produced output from Multi-Valued Quantum AND operation performs the Multi-Valued Quantum JK flip-flop operation. Then again produced output from the first Multi-Valued Quantum AND operation and the third Multi-Valued Quantum JK flip-flop operation’s output performs another MultiValued Quantum AND operation. Hence the previous Multi-Valued Quantum AND operations output is shared into the Multi-Valued Quantum JK flip-flops as two inputs as well as performs the Multi-Valued Quantum JK flip-flop operational circuit. Multi-Valued Quantum-DNA Synchronous counter circuit mainly performs as a finite counter. Table 3.9 shows the truth table of multi-valued Quantum-DNA Synchronous Counter. Between the second and the third Multi-Valued Quantum JK flip flop, MultiValued Quantum AND Gate is used. The JK flip flop’s circuit output lines are connected into the Multi-Valued Quantum cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued Quantum computing. Multi-Valued Quantum cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued Quantum array. When the time arrives Multi-Valued Quantum cache memory supplies the data into the NMR Relaxation process. Multi-Valued Quantum cache memory supply line fully connected to NMR Relaxation process as well as here EMR emit is fully prohibited. Then the NMR Relaxation process output line is connected to the Multi-Valued DNA NAND gate. Two outputs of the NMR relaxation process are connected to two different Multi-Valued DNA NOR gates. Multi-Valued DNA NOR gates another input come from the output which is Q and Q molecular sequences. Hence this Multi-Valued DNA NAND gates’ final output line is the final output of Multi-Valued Quantum-DNA Ripple Counter.
157
Multi-Valued Quantum-DNA Synchronous Counter TABLE 3.9 Truth Table of Multi-Valued Quantum-DNA Synchronous Counter clk |0> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1> |1>
|Q0 > TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
|Q1 > TGGATC TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG ACCTAG TGGATC TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
|Q2 > TGGATC TGGATC ACCTAG ACCTAG TGGATC TGGATC ACCTAG ACCTAG TGGATC TGGATC ACCTAG ACCTAG TGGATC TGGATC ACCTAG ACCTAG TGGATC
|Q3 > TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC ACCTAG TGGATC
Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum AND operations perform so it produces much heat. But Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, the temperature is needed to be reduced to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued Quantum-DNA circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued Quantum-DNA flip-flop distance is less than one meter between Multi-Valued Quantum and Multi-Valued DNA circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued Quantum-DNA Ripple Counter can produce two output molecular sequences.
158
3.9.4
Multi-Valued Sequential Circuits in Quantum-DNA Computing
Example
As suppose the input qubit is |1> entered into the Multi-Valued Quantum-DNA Synchronous counter. Multi-Valued Quantum-DNA Synchronous counters basic component is Multi-Valued Quantum JK flip-flop operational circuit so for triggered the circuit clock value is also |1> . Now first Multi-Valued Quantum JK flip-flop both |J> input and |K> input is |1>. If two value is |1> the flip-flop triggered and value toggles. Now |Q0 > is |1> from previous state |0>. But after the first Multi-Valued Quantum JK flip-flop operation |Q0 > ‘s value became |0>. Then |Q0 >entered as an input in the second Multi-Valued Quantum JK flip-flop operation and this circuit won’t be triggered. Then again |Q1 > and |Q0 > performs the Multi-Valued Quantum AND operation. As Multi-Valued Quantum AND operation depicts that if any input is |0> then the produced output will |0>. Then |0> will be input for the third Multi-Valued Quantum JK flip-flop operational circuit. As this circuit Multi-Valued Quantum JK flip-flop depicts that if two input is |0> then Multi-Valued Quantum Jk flip-flop won’t be triggered. Again third MultiValued Quantum flip-flop’s output |Q2 > and previous Multi-Valued Quantum AND operations produced output performs Multi-Valued Quantum AND operation again. As this propose circuit depicts previous Multi-Valued Quantum AND operation output is |0> so, this Multi-Valued Quantum AND operations output will be |0>. Hence |0> will be input of |J> and |k> for the fourth Multi-Valued Quantum JK flip-flop operation as well as finally it produces |0>, which means TGGATC.
3.10 Summary As the name implies, the multi-valued quantum-DNA sequential circuits contain flipflops which are all in sync with each other i.e. their clock qubit inputs are connected together and are triggered by the same external clock signal. This implies that all the quantum-DNA flip-flops update their values at the same time. As the name suggests, Quantum Synchronous counters perform “counting” such as time and electronic pulses (external source like infrared light). They are widely used in lots of other designs as well such as quantum-DNA computing processors, quantum-DNA calculators, real time clocks, etc. Alarm Clock, Set AC Timer, Set time in camera to take the picture, flashing light indicator in automobiles, car parking control, etc. can be constructed using a quantum-DNA synchronous counter.
Bibliography [1] Isailovic, N., Patel, Y., Whitney, M., & Kubiatowicz, J. (2006, June). Interconnection networks for scalable quantum computers. In 33rd International Symposium on Computer Architecture (ISCA’06) (pp. 366-377). IEEE.
Summary
159
[2] Thaker, D. D., Metodi, T. S., Cross, A. W., Chuang, I. L., & Chong, F. T. (2006, June). Quantum memory hierarchies: Efficient designs to match available parallelism in quantum computing. In 33rd International Symposium on Computer Architecture (ISCA’06) (pp. 378-390). IEEE. [3] Metodi, T. S., Thaker, D. D., Cross, A. W., Chong, F. T., & Chuang, I. L. (2005, November). A quantum logic array microarchitecture: Scalable quantum data movement and computation. In 38th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO’05) (pp. 12-pp). IEEE. [4] Adleman, L. M. (1994). Molecular computation of solutions to combinatorial problems. Science, 266(5187), 1021-1024. [5] Smith, L. M., Sanders, J. Z., Kaiser, R. J., Hughes, P., Dodd, C., & Connell, C. R. (1986). C. Heiner, S. B. Kent. and L. E. Hood. Nature, 321(674), 7679. [6] Zheng, X., Yang, J., Zhou, C., Zhang, C., Zhang, Q., & Wei, X. (2019). Allosteric DNAzyme-based DNA logic circuit: Operations and Dynamic Analysis. Nucleic Acids Research, 47(3), 1097-1109.
4 Multi-Valued Sequential Circuits in DNA-Quantum Computing
4.1
Introduction
Some people believe that molecular computers would solve problems that would cause existing machines to struggle because of biology’s massive parallelism. For example, a small drop of water can contain trillions of DNA strands, and they perform biological operations because of parallelism. Adleman gave the idea of DNA computing when he noticed that DNA replication was notably similar to an early theoretical computer developed in the 1930s by Alan Turing. During reproduction, DNA polymerase slides along a single DNA strand and reads each base. After that, write its complement on the new strand. In a Turing machine, a mechanism moves along a pair of tapes where read instructions come from an “input tape” and write out the result from the output tape. Multi-Valued DNA-Quantum computing is one of the most intriguing new scientific topics to have emerged in recent years: it is a combination of multi-valued DNA and multi-valued quantum computing, and it is one of the most intriguing new topic. The construction of Multi-Valued DNA-Quantum computers at present time would be incredibly challenging, even if it were conceivable. This research is aimed at the development of Multi-Valued DNA-Quantum processors, memory devices, and other devices that are all based on the technology under consideration. The Multi-Valued DNA-Quantum sequential circuit is one of those chapters. It is necessary to implement the functionality of this circuit by using the fundamental gates AND, OR, and NOT of the Multi-Valued DNA-Quantum system. The numerous features of general design, construction, working principle, and examples are discussed here. Before large-scale Multi-Valued DNA-Quantum computing can be implemented, a number of technical difficulties must be overcome. For computer architecture to function properly, it is important to conform to precise geometrical limitations in order to ensure that it runs smoothly. This book is an attempt to totally remove a stumbling block to multi-valued DNA-quantum computing, to put it another way.
DOI: 10.1201/9781003381921-4
161
162
Multi-Valued Sequential Circuits in DNA-Quantum Computing
4.2 Multi-Valued DNA-Quantum D Flip Flop A Multi-Valued DNA-Quantum D flip flop is essentially a two-state timed flip flop. In one clock cycle, the molecular sequence inputs of a Multi-Valued DNA D-type flip flop are actuated with a delay. A delay flip flop is another term for the Multi-Valued DNA-Quantum D flip flop. The indeterminate input condition of SET = “ACCTAG” and RESET = “ACCTAG” is banned in the basic Multi-Valued DNA SR NAND Gate Bistable circuit, which is one of its fundamental drawbacks. This condition forces both Multi-Valued Quantum qubit outputs to logic “|0>,” overriding the feedback latching action, and whichever input goes to logic “|0>” first loses control, while the other input, which is still at logic “|1>,” controls the latch’s final state. However, an inverter may be connected between the “SET” and “RESET” molecular sequence inputs to create a Multi-Valued DNA-Quantum Data Latch, Multi-Valued DNA-Quantum Delay flip flop, Multi-Valued DNA-Quantum D-type Bistable, Multi-Valued DNA-Quantum Dtype Flip Flop, or simply a Multi-Valued DNA-Quantum D Flip Flop as it is most often known. By far the most essential of all the Multi-Valued DNA-Quantum timed flip-flops is the Multi-Valued DNA-Quantum D Flip Flop. The S and R inputs become complements of each other when a Multi-Valued DNA inverter (Multi-Valued DNA NOT gate) is added between the Set and Reset inputs, ensuring that the two inputs S and R are never equal (ACCTAG or TGGATC) to each other at the same time, allowing us to control the toggle action of the flip-flop with just one |D> (Data) input. The Data input, labeled “|D>,” is then utilized in place of the “Set” signal, and the inverter is used to create the complementary “Reset” input, resulting in a levelsensitive Multi-Valued DNA D-type flip-flop from a level-sensitive SR-latch, with S = |D> and R = |D>. The proposed Multi-Valued DNA-Quantum D flip-flop circuit has just one molecular sequence input, and the molecular sequence input must be in a coherence state in order to conduct the Multi-Valued DNA computational function. As a result, the circuit must exist in an environment that does not exist. If any particle emerges, the coherence state will be disrupted. The Multi-Valued DNA D flip-flop will generate heat, which must be removed quickly in order to cool down the circuit and stabilize the coherence state. Hence in Multi-Valued DNA-Quantum flip-flops have two portions based on the principle of the Multi-Valued DNA-Quantum circuit. Multi-Valued DNA-Quantum D flip-flop operational circuit’s first portion constructed using Multi-Valued DNA principle and second portion constructed using Multi-Valued Quantum computing principle. The Multi-Valued DNA circuit’s portion produced molecular sequence and stored into Multi-Valued DNA cache memory. These molecular sequences perform NMR process operation and make them normal molecules. Then these molecules perform Multi-Valued Quantum computing operations. Multi-Valued Quantum
163
Multi-Valued DNA-Quantum D Flip Flop
CLK
Ternary DNA NOT
ACCTAG
Heat Transfer Circuit
Ternary DNA NAND Ternary DNA NAND DNA Cache Memory
Ternary Quantum NAND Ternary Quantum NAND
|Q>
|Q’>
NMR
FIGURE 4.1 Block Diagram of Multi-Valued DNA-Quantum D Flip Flop computing is very much good for memory storage and Multi-Valued DNA computing has a super-fast computation speed.
4.2.1
General Organization of Multi-Valued DNA-Quantum D Flip Flop
When compared different types of flip flops, the Multi-Valued DNA-Quantum D flip flop is one of the most significant flip flops. Multi-Valued DNA-Quantum D flip flop verifies that the two inputs of the Multi-Valued DNA-Quantum SR flip flop are never the same. Figure 4.1 depicts the block diagram of multi-valued DNA-Quantum D Flip Flop. In the Multi-Valued DNA-Quantum D flip-flop operational circuit there is one input which is molecule sequence X. Another clk input is also there. Multi-Valued DNA-Quantum D flip flops have two output qubit that are logically opposite to one another. The clock molecular sequence input aids in the circuit’s synchronization with an external signal. The output of a Multi-Valued DNA-Quantum D flip flop can have two potential values. This block diagram of Multi-Valued DNA-Quantum D flip-flop
164
Multi-Valued Sequential Circuits in DNA-Quantum Computing
operational circuit shows that data input is sent to a ternary DNA NAND operation circuit, while the reversal of data input is routed to another ternary DNA NAND operation circuit. The clock pulse input is used by both ternary DNA NAND processes. The result of two ternary DNA NAND operations is fed into Multi-Valued DNA cache memory. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA register and it saves the Multi-Valued DNA molecular sequence data. When the accurate time appears then this molecular sequence servers into the NMR machine and it performs NMR process as well as making molecules from molecular sequence. The Multi-Valued Quantum SR latch is used to build the MultiValued DNA-Quantum D flip flop. This attribute is utilized to create a delay in the data flow in the circuit. Two ternary Quantum NAND Operations create the MultiValued Quantum SR Latch. The proposed circuit discovered the remaining two output molecules of the Multi-Valued Quantum SR Latch function. The output of a Multi-Valued DNA-Quantum D flip flop can be of two sorts, one of which is logically inverse to the other. If the clock is enabled, the Multi-Valued DNA-Quantum D flip flop will continue to function; otherwise, the Multi-Valued DNA-Quantum D flip flop will cease to function.
4.2.2
Circuit Architecture of Multi-Valued DNA-Quantum Using D Flip-Flop
The Multi-Valued DNA-Quantum D flip-flop has a single molecular sequence input and is developed using ternary DNA NAND operations, ternary Quantum NAND gate and a Multi-Valued Quantum SR latch. The circuit architecture of multi-valued DNA-Quantum D Flip Flop is shown in Figure 4.2. The clock molecular sequence input affects the Multi-Valued DNA-Quantum D flip-flop. Seeing the diagram that the circuit has one molecular sequence input. One line of this molecular sequence input will be directed into the Multi-Valued DNAQuantum NAND operation known as S input in Circuit. In this case, the S molecular sequence input and the Clock molecular sequence input are used in a ternary DNA NAND operation. When an X molecular sequence traverses another line, it first undertakes a MultiValued DNA NOT operation. This Multi-Valued DNA NOT operation was dubbed R when it was entered into the ternary DNA NAND operation. The R and Clock molecular sequence inputs are used in this ternary DNA NAND operation. The output of these ternary DNA NAND operations are getting stored into Multi-Valued DNA cache memory by using the line. Multi-Valued DNA cache memory made by shift register where molecular sequence data stored in some sub array. When the actual time appears the Multi-Valued DNA cache memory serves the molecular sequence into the NMR relaxation process using line. Molecular sequence first of all performs the NMR process where EMR emission is mandatory. Hence molecular sequence is converted into qubit and then performs the Multi-Valued Quantum SR latch operation. In Multi-Valued Quantum SR latch operation two ternary Quantum NAND operations perform in parallel way and produce the final qubit output sequence.
165
Multi-Valued DNA-Quantum D Flip Flop
Anneal ACCTAG ↑ >> TGGATC ↑ >> TGGATC
X X ACCTAG TGGATC
|Q> Q |1> |0>
|Q > Q |0> |1>
Description Memoryno change Reset Q >> 0 Set Q >>
input is active. This then serves as the foundation for yet another sequential gadget known as a Multi-Valued DNA-Quantum D Flip Flop. As long as the clock input is HIGH, the “Multi-Valued DNA-Quantum D flip flop” will store and output any logic level that is applied to its data terminal. Once the clock input is changed to LOW, the flip-”set” flop’s and “reset” inputs are both kept at logic level “TGGATC,” preventing the flip-flop from altering the underlying and preserving whatever statistics are available on its output prior to the clock transition. In other words, either logic “ACCTAG” or logic “TGGATC” latches the output. Table 4.1 shows the truth table of multi-valued DNA-Quantum D Flip-Flop. This proposed Multi-Valued DNA-Quantum D flip-flop operational circuit’s first half portion is constructed using the Multi-Valued DNA computing principle and the rest of the portion is constructed using the Multi-Valued Quantum computing principle. First of all two ternary DNA NAND operations performed and produced two outputs which are stored in Multi-Valued DNA cache memory. Multi-Valued DNA cache stores the molecular sequence into an array. Multi-Valued DNA cache memory stores the molecular sequence data and when required it serves the data into the NMR relaxation process. In this Multi-Valued DNA-Quantum D flip-flop, a two-molecular sequence is stored in Multi-Valued DNA cache memory. This molecular sequence performs the NMR process because Multi-Valued Quantum circuits need qubit. NMR process makes the molecular sequence into a qubit by creating the magnetic field and making molecules excited and turning their state into superposition state. This qubit performs Multi-Valued Quantum SR latch operation. Multi-Valued Quantum SR latch operation has two basic components: ternary Quantum NAND operation. Ternary Quantum NAND operation performs in parallel way in a Multi-Valued Quantum SR latch operation and produces two required outputs. Multi-Valued DNA Cache memory is mainly used because Multi-Valued DNA operation performs so slow Multi-Valued Quantum operation is performed very quickly. Multi-Valued DNA cache memory works as an intermediate process where molecular sequence is just stored and when needed cache memory serves the molecular sequence. Multi-Valued DNA Cache memory works here as the intermediate process. The Multi-Valued DNA circuit needs much heat and here two ternary DNA NAND gates perform so it needs much heat to perform the operation. But the Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, this proposed circuit needs to reduce the temperature to maintain the superposition state of the qubit data. Hence in MultiValued DNA circuit operation, it needs much heat in several steps. Mainly in melting
Multi-Valued DNA-Quantum SR Latch
167
and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued DNA-Quantum circuit operation. For that reason, this proposed circuit transfers the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the MultiValued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between ternary DNA AND Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum D flip-flop can produce two output qubits.
4.2.4
Example
Suppose the molecular sequence input TGGATC is one for Multi-Valued DNAQuantum D flip-flop operational circuit where clk input is high. First of all clock molecular sequence input and TGGATC will perform ternary DNA NAND operations and produce ACCTAG Then input TGGATC performs Multi-Valued DNA NOT gate operation and the output that and clock input perform ternary DNA NAND operation. These two ternary DNA NAND operations perform parallelly. Then the output is TGGATC. Hence produced these two outputs S and R will be stored in Multi-Valued DNA cache memory. For this research used an array to store the molecular sequence data. Then this molecular sequence in accurate time performs the NMR process operation first. NMR process operation makes the molecular sequence convert into qubit. These molecule sequences will perform the Multi-Valued Quantum SR latch operation. Here S=|1> and R= |0> will be the input and the final output will be |0> and |1>. This Multi-Valued DNA output given the confirmation that produced output molecule sequence is accurate for Multi-Valued DNA-Quantum flip-flop operational circuit.
4.3 Multi-Valued DNA-Quantum SR Latch Based on the triggering that is suited to operate it, there are two types of memory elements. One of them is a Multi-Valued DNA-Quantum latch, and the other one is a Multi-Valued DNA-Quantum flip-flop. Multi-Valued DNA-Quantum latches operate with enable signal, level-sensitive, whereas Multi-Valued DNA-Quantum flip-flops are edge sensitive. A Multi-Valued DNA-Quantum SR latch is an asynchronous tool. It operates without the use of control signals, relying solely on the state of the S
168
Multi-Valued Sequential Circuits in DNA-Quantum Computing
and R inputs. Two Multi-Valued DNA NAND operations can make a Multi-Valued DNA-Quantum SR latch. Nevertheless, two Multi-Valued DNA NOR operations can also make a Multi-Valued DNA SR Latch. In Multi-Valued DNA-Quantum SR latch operational circuits half of the portion is constructed using the Multi-Valued DNA computing principle and the rest of the portion is constructed by Multi-Valued Quantum computing principle. This proposed Multi-Valued DNA-Quantum SR latch operational circuit is made by one MultiValued DNA NAND operational circuit and one Multi-Valued Quantum NAND gate. Multi-Valued DNA computing computation speed is so high compared to MultiValued Quantum computing for that case this proposed circuit has intermediate cache memory to store the Multi-Valued DNA molecular sequence data. Multi-Valued DNA computing produces molecular sequence which performs NMR process where EMR emit is prohibited to make molecular sequence molecules. In Multi-Valued DNA-Quantum SR latch, two-molecular sequence inputs are swapped and negated. Multi-Valued DNA-Quantum SR latch can be said as SET RESET latch. In Multi-Valued DNA-Quantum SR latch from two-molecular sequence input, this circuit produced two outputs. This output is reversed to one another. This research proposed a Multi-Valued DNA-Quantum SR Latch, and two Multi-Valued DNA NAND operation circuits designed this SR latch. This proposed Multi-Valued DNA-Quantum SR latch has the input line swapped between two operational circuits where one is Multi-Valued DNA NAND operational circuit and other is Multi-Valued Quantum NAND gate, but it is not negated. Multi-Valued DNA-Quantum SR latch works as memory stuff in Multi-Valued DNA-Quantum computers, and it has several applications in a Multi-Valued DNA-Quantum processor. If this proposed circuit has designed some embedded system using the Multi-Valued DNA-Quantum operational device, then Multi-Valued DNA-Quantum SR latch will be used on this device as a memory unit. Multi-Valued DNA-Quantum SR latch is level sensitive and has few disadvantages, and this will be recovered by the Multi-Valued DNA-Quantum flip flop.
4.3.1
General Organization Multi-Valued DNA-Quantum SR Latch
The Multi-Valued DNA-Quantum SR latch is one of the most common memory devices, and it has an effect on the output as long as it is active. The essential properties of a Multi-Valued DNA-Quantum SR latch are that one molecular sequence input behaves like a SET and another molecular sequence input behaves like a RESET. Figure 4.3 shows the block diagram of multi-valued DNA-Quantum SR Latch. The Multi-Valued DNA SR latch is made up of two fundamental processes, which are depicted in this block diagram of the Multi-Valued DNA SR latch. There are two input lines in the Multi-Valued DNA SR latch, one for S and the other for R. Two outputs are obtained from this two-molecular sequence input: Q and Q. If the input of S is TGGATC, the SR latch is activated; however, if the input of R is TGGATC, the SR latch has no influence on the output. In a Multi-Valued DNA SR latch, a value of TGGATC cannot be used to activate two inputs.
169
Multi-Valued DNA-Quantum SR Latch
ACCTAG
CLK
Ternary Ternary DNA AND DNA AND
ACCTAG
Heat Transfer Circuit Ternary Quantum AND
|Q>
Ternary Quantum AND
|Q’>
FIGURE 4.3 Block Diagram of Multi-Valued DNA-Quantum SR Latch In Multi-Valued Quantum computing qubit needs to go through many processes during the operation. In Multi-Valued Quantum computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum SR Latch Multi-Valued DNA portion transfers a small amount of heat produced from the Multi-Valued DNA circuits into Multi-Valued Quantum circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued Quantum computation. In Multi-Valued Quantum computing Multi-Valued Quantum NOR SR latch performs where two Multi-Valued Quantum NOR gates perform with parallelism and input comes from Multi-Valued DNA circuit portion. After that operation, this proposed circuit finally found the output qubit from the Multi-Valued DNA-Quantum SR latch.
4.3.2
Circuit Architecture of Multi-Valued DNA-Quantum SR Latch
Multi-Valued DNA SR latches are level sensitive and are built using only one fundamental operation, the Multi-Valued DNA NAND function. The circuit architecture of multi-valued DNA-Quantum SR Latch is shown in Figure 4.4. Multi-Valued DNA-Quantum SR Latch operation circuit constructed using one principle that is this circuit first portion will be constructed by using Multi-Valued DNA circuit and the second portion will be constructed by using Multi-Valued
DNA Cache Memory
Ternary Quantum NAND Operations
Heat Transfer Circuit
|Q> Anneal
|Q > Latched |0> |1> |1> |0> Metastable
temperature to maintain the superposition state of the molecular sequence. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued DNA-Quantum circuit operation. For that reason, this proposed circuit transfers the excessive heat from the Multi-Valued Quantum circuit portion to the Multi-Valued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between Multi-Valued DNA and Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum SR Latch can produce two output qubits. Table 4.2 shows the truth table of multivalued DNA-Quantum SR Latch. The Multi-Valued DNA-Quantum SR latch, on the other hand, is still a vital component of a CPU or Multi-Valued DNA-Quantum based embedded device. The Multi-Valued Quantum circuit generates a lot of heat, making it difficult to isolate the molecular sequence into a superposition state. As a result, it needs to cool the circuit to isolate the molecular sequence into a superposition for an able MultiValued Quantum circuit. Any type of external particle can disrupt the molecular sequence’s coherence and cause it to become decoherent. If all of this is preserved, the Multi-Valued DNA-Quantum SR latch can truly function.
4.3.4
Example
Presume that the molecular sequences ACCTAG and TGGATC are both present in the Multi-Valued DNA, SR Latch. One molecular sequence input will be used for SET instructions, while the other will be used for RESET instructions. Here, ACCTAG will be used as a SET instruction, and it will conduct the Multi-Valued DNA NAND operation according to the suggested circuit idea. Here the initial state assumes the molecule sequence is |0>. This qubit performs NMR process operation
Multi-Valued DNA-Quantum SR Flip Flop
173
and by EMR it becomes molecular sequence. Suppose here |0> = ‘’TRUE “so the molecular sequence will be TGGATC. Here S= ACCTAG, so the output is TGGATC. Molecular sequence input TGGATC now functions as a reset instruction and is inserted into the circuit, as well as performing the NAND operation. But Another NAND operation is made by the Multi-Valued Quantum computing principle. MultiValued Quantum NAND gate needs Multi-Valued Quantum molecule sequence to perform the Multi-Valued Quantum NAND gate operation. For that cause molecular sequence TGGATC and input R stores in Multi-Valued DNA cache memory to make up the speed with Multi-Valued Quantum NAND gate. Then these two molecular sequences perform the NMR process and make them as molecule sequence. Then these molecule sequence performs the Multi-Valued Quantum NAND gate operation. Here, R=|0>, so the Q=|0> and Q=|1>. Multi-Valued DNA-Quantum SR Latch operates in the same mechanism with each molecular sequence input. However, because all of the computations took place in the Multi-Valued DNA superposition state, a lot of heat was generated throughout the process. All computation takes place in the coherence state, and the result will be decoherent. This circuit that’s why heat transfers into the Multi-Valued Quantum portion but this heat is not enough for the Multi-Valued Quantum operational circuit according to demand.
4.4 Multi-Valued DNA-Quantum SR Flip Flop Multi-Valued DNA-Quantum Sequential Logic circuits, unlike Multi-Valued DNAQuantum Combinational Logic circuits, include some type of built-in “Memory” that changes state depending on the real signals supplied to its inputs at the moment. Multi-Valued DNA-Quantum SR flip-flops, for example, have a TGGATC molecular sequence memory bistable. The SET and RESET inputs of the Multi-Valued DNAQuantum SR flip flop are the same. The output of the SET input is a TGGATC, whereas the output of the RESET input is an ACCTAG. The Multi-Valued DNA-Quantum SR flip flop is often referred to as the SET RESET flip flop. The reset input is used to restore the flip flop to its starting state from the current state with an output. The Multi-Valued DNA NAND gate operational circuit SR flip flop is a basic flip flop with both outputs providing feedback to its opposite input. This circuit is used to store a single data bit in a memory circuit. The three inputs are SET, RESET, and a found output. A two-molecular sequence model will be used since Multi-Valued DNA-Quantum SR flip flops have two inputs that are mostly from the outside. Because using two-molecular sequences, it generates more heat at first than Multi-Valued DNA-Quantum D flip flops. The computation time of this Multi-Valued DNA-Quantum SR flip-flop is determined by the fundamental gate in its middle. Multi-Valued DNA SR flip flops may be found in a wide range of processors and embedded systems. Although the suggested flip-flop can generate some trash, an error-correcting auxiliary molecular sequence provides the desired
174
Multi-Valued Sequential Circuits in DNA-Quantum Computing
TGGATC
Heat Transfer Circuit
TGGATC
CLK
DNA Cache Memory
DNA Ternary NAND
Quantum Ternary NAND
DNA Ternary NAND
Quantum Ternary NAND
|Q>
|Q’>
FIGURE 4.5 Block Diagram of Multi-Valued DNA-Quantum SR Flip-Flop Circuits output. The real-world implementation of the suggested Multi-Valued DNA circuit will address a wide range of issues more quickly and effectively.
4.4.1
General Organization of Multi-Valued DNA-Quantum SR Flip Flop
Multi-Valued DNA-Quantum SR flip-flop toggles the input independently. MultiValued DNA SR flip-flop takes two molecular sequence inputs S and R. In MultiValued DNA-Quantum SR flip-flop, the output of one operation is used by the other operation. Multi-Valued DNA-Quantum SR flip-flop depends on it. Figure 4.5 shows the block diagram of multi-valued DNA-Quantum SR Flip-Flop Circuits. Multi-Valued DNA-Quantum SR flip-flop needs two-molecular sequence input and one shared input which is also a molecular sequence. In one Multi-Valued DNA NAND operation R and in another Multi-Valued DNA NAND operation molecule sequence S is taken as inputs. A molecular sequence input clk is shared by both NAND gate operations. These Multi-Valued DNA NAND gate operations perform parallelly according to the Multi-Valued DNA computing principle. These outputs will be temporarily stored in a Multi-Valued DNA Cache Memory. As the Multi-Valued DNA NAND gate
Multi-Valued DNA-Quantum SR Flip Flop
175
operations and the Multi-Valued Quantum NAND operations are held in different times, it is necessary to store the outputs of the Multi-Valued DNA NAND operations in a Multi-Valued DNA Cache Memory. As this block diagram depicts, the final output will be the Multi-Valued Quantum molecule sequence. So the outputs from the Multi-Valued DNA Cache Memory will be gone through the “NMR” process and after that one molecular sequence will go to Multi-Valued Quantum AND operation as input. In the “NMR” process, the molecular sequences go to the superposition state and change themselves into qubits. Like the same other output, another molecular sequence from the Multi-Valued DNA Cache Memory will come as input in another Multi-Valued Quantum AND operation. Then finally two Multi-Valued Quantum AND operations will parallelly be performed and it is the last operation of Multi-Valued DNA computing according to the Multi-Valued DNA-Quantum SR flip-flop circuit block diagram. In this portion, the conversion of the molecular sequence happens after getting out of the Multi-Valued Quantum NAND gate, the output becomes Multi-Valued Quantum qubit. In Multi-Valued DNA computing molecular sequence needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued Quantum-Multi-Valued DNA SR flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform multi-valued DNA computation. In Multi-Valued DNA computing Multi-Valued DNA NAND SR flip-flop performs where two Multi-Valued DNA NAND gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence are found from the Multi-Valued Quantum-Multi-Valued DNA SR flip-flop.
4.4.2
Circuit Architecture of Multi-Valued DNA-Quantum SR Flip-Flop
Multi-Valued DNA-Quantum SR flip-flop operation circuit is constructed using one principle, the first postion of this circuit will be constructed by using Multi-Valued DNA circuit and the second portion will be constructed by using Multi-Valued Quantum computing circuit. This circuit also has Multi-Valued DNA Cache Memory and a Heat transfer circuit to achieve the best output at the end. The circuit architecture of multi-valued DNA-Quantum SR Flip-Flop is shown in Figure 4.6. In this circuit, the inputs are molecular sequences and the outputs are the qubit. There are two inputs in the Multi-Valued DNA NAND gate. In this circuit, those inputs are S, R and E which are shared between the two Multi-Valued DNA NAND gates. Two Multi-Valued DNA operations are constructed in parallel way. These two Multi-Valued DNA NAND operations circuit output lines are connected into the Multi-Valued DNA Cache Memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued DNA computing. MultiValued DNA Cache Memory is made by using some Multi-Valued Quantum shift
176
Multi-Valued Sequential Circuits in DNA-Quantum Computing
Heat Transfer Circuit
TGGATC
CLK
Anneal qubits. Hence this Multi-Valued Quantum NAND gates’ final output line is the final output of MultiValued DNA-Quantum SR flip-flop.
4.4.3
Working Principle of Multi-Valued DNA-Quantum SR Flip-Flop
Multi-Valued DNA-Quantum SR flip-flop is working using two principles: the MultiValued DNA computing principle and the Multi-Valued Quantum computing principle. There are two inputs in the Multi-Valued DNA NAND gate in this circuit. In this circuit those inputs are S, R and E which are shared between the two AND gates. Multi-Valued DNA circuit operation will be happening in close to zero temperature because molecular sequences need a coherence state. The superposition state will be stable if this circuit is full of prohibited particles from other environment particles.
Multi-Valued DNA-Quantum SR Flip Flop
177
The two Multi-Valued DNA NAND operations will be performed in parallel way. This Multi-Valued DNA NAND operation produces some garbage value but in this proposed circuit this topic is avoidable. Each of the Multi-Valued DNA NAND operations has one output. These molecular sequence outputs go to the Multi-Valued DNA Cache Memory which is basically made out of Shift Register. This Multi-Valued DNA Cache Memory is built using the rules of Multi-Valued DNA computing. This Cache Memory will store the molecular sequence output from the AND gate and will serve it when needed. Multi-Valued DNA Cache stores the molecular sequence into an array. MultiValued DNA Cache Memory stores the molecular sequence data and when requires it serves the data into the “NMR” process. In this Multi-Valued DNA-Quantum SR flip-flop, two molecular sequences are stored in Multi-Valued DNA Cache Memory. This molecular sequence performs the”NMR” process because Multi-Valued Quantum circuits need qubit. This process removes the superposition state and makes the molecular sequence into a qubit. This qubit performs the Multi-Valued Quantum NAND operation. The final output sequence and output sequence from other Multi-Valued Quantum NAND operations perform Multi-Valued Quantum NAND operation for each of the Multi-Valued Quantum NOT gates. These two NOR operations perform in parallel way. This structure is basically a Multi-Valued Quantum NAND flip-flop operation. Multi-Valued DNA Cache Memory is mainly used because Multi-Valued DNA operation performs so fast Multi-Valued Quantum operation is performed very slowly. Multi-Valued DNA Cache Memory works as an intermediate process where molecular sequence is just stored and when needed cache memory serves the molecular sequence. Multi-Valued DNA Cache Memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum NAND operations perform so it produces much heat. But the Multi-Valued Quantum circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued DNA circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued DNA-Quantum circuit operation. For that reason, it is needed to transfer the excessive heat from the Multi-Valued Quantum circuit portion to the MultiValued DNA circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued DNA circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between Multi-Valued Quantum NAND Multi-Valued DNA circuits. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued DNA circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum SR flip-flop can produce two output molecular sequences. Table 4.3 shows the truth table of multivalued DNA-Quantum SR Flip-Flop.
178
Multi-Valued Sequential Circuits in DNA-Quantum Computing TABLE 4.3 Truth Table of Multi-Valued DNA-Quantum SR Flip-Flop S ACCTAG ACCTAG TGGATC TGGATC
4.4.4
R ACCTAG TGGATC ACCTAG TGGATC
|Q> |0> |1> Invalid
|Q> No Change |1> |0>
Example
Assume that this study effort receives the inputs ACCTAG and TGGATC in order to ensure that the Multi-Valued DNA SR flip-flop operational circuit produces the right output. The ACCTAG input end is connected to the S input end, while the TGGATC input end is connected to the R input end. The fact that the R input is TGGATC indicates that it is for a reset operation. Assume that the clock is activated and that the clock’s input is TGGATC. First, do the Multi-Valued DNA NAND operation using the clk input. If just one of the inputs is ACCTAG in a Multi-Valued DNA NAND operation, the result is TGGATC; otherwise, the output is ACCTAG. The Multi-Valued DNA NAND operation is then performed using another clk and R input. In this case, the clk input is TGGATC, and the R input is also TGGATC. Now, output is ACCTAG. Then, as the input to the Multi-Valued Quantum SR latch, these two input molecular sequences converted to qubit by the NMR process., |0> and |1>, will be inputted. The Multi-Valued Quantum SR latch operation will be performed by them. A collection of Multi-Valued Quantum NAND operation circuits makes up the SR latch operation circuit. The final output is |1> and |0>. This output clarifies the proposed Multi-Valued DNA-Quantum SR flip-flop operational circuit performance.
4.5 Multi-Valued DNA-Quantum JK Flip-Flop In flip-flop designs, the Multi-Valued DNA JK flip-flop will be the most extensively utilized flip-flop. J and K are not abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are independent letters chosen by the inventor Jack Kilby to identify the flip-flop design from others. Despite the fact that the digital electronics JK flip flop was created by Jack Kilby. The functioning concept of the proposed Multi-Valued DNA-Quantum JK flip flop differs from that of the digital JK flip flop.
Multi-Valued DNA-Quantum JK Flip-Flop
179
The Multi-Valued DNA-Quantum JK flip flop’s sequential operation is identical to that of the prior Multi-Valued DNA-Quantum SR flip flop, with the same “Set” and “Reset” inputs. The distinction this time is that even though S and R are both at logic “1,” the “Multi-Valued DNA-Quantum JK flip flop” has no incorrect or prohibited Multi-Valued DNA-Quantum SR Latch input states. It is evident that the Multi-Valued DNA-Quantum JK flip flop does not solve the disadvantages of the Multi-Valued DNA SR flip flop. The Multi-Valued DNA-Quantum JK flip flop is essentially a gated Multi-Valued DNA-Quantum SR flip flop with the addition of clock molecular input sequence circuitry to avoid the unlawful or invalid output state that can arise when both inputs S and R are equal to logic level “1.” A Multi-Valued DNA-Quantum JK flip-flop has four potential input combinations due to the extra timed input: “TGGATC,” “logic ACCTAG,” “no change,” and “toggle.” A Multi-Valued DNA-Quantum JK flip flop has the same symbol as a Multi-Valued DNA SR Bistable Latch, as seen in the preceding chapter. The Multi-Valued DNA-Quantum JK flip flop, like other flip flops, generates a lot of heat, which must be dissipated in order for the operation to run properly. As compared to other Multi-Valued DNA circuits, the Multi-Valued DNAQuantum JK flip flop will not require as much power. The molecular sequence may simply conduct the operation once all of the molecules are in superposition state and coherence mode. A lot of junk values are found in the Multi-Valued DNA-Quantum JK flip flop, and it is needed to do more investigation to figure out what they are. The trash value is not taken into account in this procedure.
4.5.1
General Organization of Multi-Valued DNA-Quantum JK Flip-Flop
Multi-Valued DNA-Quantum JK flip-flop toggles the input. Multi-Valued DNAQuantum JK flip-flops have two molecular input sequences and clock molecular input sequence. Multi-Valued DNA JK flip-flop relies on Clock molecular input sequence. Figure 4.7 shows the block diagram of multi-valued DNA-Quantum JK FlipFlop. Multi-Valued DNA-Quantum JK flip-flop needs one molecular input sequence and one clock input which is also a molecular sequence. There is a molecular input sequence J and another molecular input sequence K which will enter into two different NAND Gates. One clk input is shared by both of those Multi-Valued DNA NAND gates. These Multi-Valued DNA NAND operations perform parallelly according to the Multi-Valued DNA computing principle. These Multi-Valued DNA NAND operations output lines are entered as input lines into another couple of Multi-Valued DNA NAND operations. These Multi-Valued DNA NAND operations’ one input is the previous output molecular sequence and the other is the final output of the MultiValued DNA-Quantum jk flip-flop. As this block diagram depicts, the final output will be the Multi-Valued Quantum molecule sequence. So this qubit will be gone through the NMR process and NMR will make this sequence a molecular sequence, as well as this molecular sequence, will go to Multi-Valued DNA NAND operation as input. Like the same other output, the qubit will come as input in another
180
Multi-Valued Sequential Circuits in DNA-Quantum Computing
ACCTAG
Heat Transfer Circuit
ACCTAG
Ternary Ternary DNA DNA NAND NAND CLK Ternary Ternary DNA DNA NAND NAND
Ternary Quantum NAND Ternary Quantum NAND
Ternary Quantum NAND
|Q>
Ternary Quantum NAND
|Q’>
DNA Cache Memory
FIGURE 4.7 Block Diagram of Multi-Valued DNA-Quantum JK Flip-Flop Multi-Valued Quantum NAND operation. Then finally two Multi-Valued DNA NAND operations will parallelly perform and it is the last operation of Multi-Valued DNA computing according to the Multi-Valued DNA-Quantum JK flip-flop circuit block diagram. These two Multi-Valued DNA NAND operations produce twomolecular sequence which will be stored in Multi-Valued DNA Cache memory. Then this Multi-Valued DNA cache memory serves the molecular sequence into the MultiValued Quantum computing circuit’s portion. These molecular sequences need to be qubit first of all so molecular sequences are performed here first of all NMR process. In the NMR process, emitting EMR is strictly mandatory. After the NMR process molecular sequences are relaxing their state and are converted into the qubit. After converting into the qubit these qubits perform the Multi-Valued Quantum SR flipflop operation and produced the required output of Multi-Valued DNA-Quantum JK flip-flop operational circuit. In Multi-Valued DNA computing qubit needs to go through many processes during the operation. In Multi-Valued DNA computing, melting and annealing is very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum JK flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued DNA circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued DNA computation. In Multi-Valued Quantum computing
Multi-Valued DNA-Quantum JK Flip-Flop
181
quantum NAND SR latch performs where two Multi-Valued DNA NAND gates perform parallelly and input comes from Multi-Valued DNA circuit portion. After that operation, finally found the output qubit from Multi-Valued DNA-Quantum JK flipflop. Here, the outputs of the Multi-Valued DNA NAND gates again go through the “NMR” process which are taken as inputs for the Multi-Valued Quantum NAND operations.
4.5.2
Circuit Architecture of Multi-Valued DNA-Quantum JK FlipFlop
Multi-Valued DNA-Quantum JK Flip-Flop operation circuit is constructed using one principle, that is, the first portion of this circuit will be constructed by using MultiValued DNA circuit and the second portion will be constructed by using MultiValued Quantum computing circuit. This circuit also has Multi-Valued DNA cache memory and a Heat transfer circuit to achieve the best output at the end. In this circuit, input is molecular sequence and output is the qubit. Clock input clk is shared into two Multi-Valued DNA NAND operations. Two Multi-Valued DNA operations are constructed parallelly. This Multi-Valued DNA NAND operations output line and final output of Multi-Valued DNA-Quantum JK Flip-Flop are constructed into another two Multi-Valued DNA operations parallelly. But the final two outputs are qubits so these two output lines are connected to the NMR relaxation process and then after the NMR relaxation process these two-line came into use as an input line Multi-Valued DNA NAND operation circuit. In this NMR relaxation process, emitting EMR is strictly prohibited. These two Multi-Valued DNA NAND operations circuit output lines are connected into the Multi-Valued DNA cache memory. This is the first portion of the circuit and is fully designed by using the principle of MultiValued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. Multi-Valued DNA cache memory supply line fully connected to NMR process as well as here EMR emit is fully prohibited. Then the NMR process output line is connected to the Multi-Valued Quantum NAND gate. Two outputs of the NMR process are connected to two different Multi-Valued Quantum NAND gates. Multi-Valued Quantum NAND gates another input come from the output which is Q and Q qubits. Hence this Multi-Valued Quantum NAND gates’ final output line is the final output of Multi-Valued DNA-Quantum JK FlipFlop. Here, the outputs of the Multi-Valued Quantum NAND gates again go through the “NMR relaxation” process which are taken as inputs for the Multi-Valued DNA NAND operations. In these “NMR relaxation” processes they do not emit “EMR”. Figure 4.8 depicts the circuit architecture of multi-valued DNA-Quantum JK FlipFlop. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued Quantum circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued Quantum circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued Quantum circuit’s portion.
182
Multi-Valued Sequential Circuits in DNA-Quantum Computing
Anneal |1> |1> |0> |0> |2> |0> |1> |1> |0>
using photon bath heat flows through the circuit and gives this into the Multi-Valued Quantum circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between Multi-Valued Quantum and Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued Quantum circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum JK flip-flop can produce two output molecular sequences. Table 4.4 depicts the truth table of multi-valued DNA-Quantum JK Flip-Flop.
4.5.4
Example
For the purpose of testing the proposed Multi-Valued DNA JK flip-flop circuit, assume that the molecular input sequence is ACCTAG and TGGATC. If and only if the clock input is high or ACCTAG, the Multi-Valued DNA-Quantum JK flip flop will function. If the clock input is high, the Multi-Valued DNA NAND operation will be performed by using inputs as molecular sequences ACCTAG and clk sequence ACCTAG, output is |0> In addition to performing the Multi-Valued DNA NAND operation and producing the appropriate output, the TGGATC and clk inputs work in parallel. These two intermediate molecular sequence outputs are now used to conduct two independent Multi-Valued DNA NAND operations. The Multi-Valued DNA NAND operation is performed by the molecular sequence ACCTAG and the final output of the Multi-Valued DNA JK flip-flop |Q>. Assume that the most recent state |Q> is TGGATC. Then S=|1>. The output of this truth table is ACCTAG, which is referred to as S. The MultiValued DNA NAND operation is then performed on the intermediate output ACCTAG and the final output of the Multi-Valued DNA-Quantum JK flip flop |Q>. Then R=|0> According to the suggested circuit of Multi-Valued DNA JK flip-flop, these molecular sequences labeled S and R will now conduct the Multi-Valued Quantum SR flip-flop operation. Now, S=|1>=ACCTAG and R=|0>=TGGATC
Multi-Valued DNA-Quantum T Flip-Flop
185
The final output is |1> and |0>. Finally, a Multi-Valued DNA-Quantum JK flip-flop proposal was made. The Multi-Valued DNA-Quantum JK flip-flop provides the necessary qubit input |1> and |0> demonstrating that the proposed circuit theoretically produces the ideal output.
4.6 Multi-Valued DNA-Quantum T Flip-Flop Multi-Valued DNA-Quantum T flip–flop is also known as ‘Multi-Valued DNAQuantum Toggle Flip–flop’. To avoid the occurrence of the intermediate state in Multi-Valued DNA-Quantum SR flip–flop, only one input should be provided to the flip–flop called the Trigger qubit input or Toggle input. Toggling means ‘Changing the next state output to complement the present state output’. The Multi-Valued DNA-Quantum T flip–flop can be designed by making simple modifications to the Multi-Valued DNA-Quantum JK flip–flop. The Multi-Valued DNA-Quantum T flip– flop is a single qubit input device and hence by connecting |J> and |K> inputs together and giving them with single input called |T>, a Multi-Valued DNA-Quantum JK flip–flop can be convered into a Multi-Valued DNA-Quantum T flip–flop. Hence in Multi-Valued DNA-Quantum flip-flops have two portions based on the principle of the Multi-Valued DNA-Quantum circuit. In the Multi-Valued DNAQuantum T flip-flop circuit some portion is made by Multi-Valued Quantum computing principle and the rest of the portion is made by Multi-Valued Quantum computing principle. Multi-Valued Quantum computing and multi-valued Quantum computing are connected via the NMR relaxation process. For Time consistency, it is needed to use the Multi-Valued Quantum cache memory in this circuit. The Multi-Valued Quantum circuit portion produces so much heat according to the Multi-Valued Quantum computing principle that’s why this circuit can transfer a small amount of heat into the Multi-Valued Quantum computing circuit portion. According to MultiValued Quantum computing, it needs a vast amount of heat to perform the calculation. In Multi-Valued DNA-Quantum T flip-flop circuit have one input which is a qubit input named |T>. This input performs first of all Multi-Valued Quantum operations and is then stored in Multi-Valued Quantum cache memory. When the perfect time arrives it will perform the NMR relaxation and convert into Multi-Valued Quantum molecular sequence as well as perform the Multi-Valued Quantum computing operation. Finally, after all of this process, Multi-Valued DNA-Quantum T flip-flop produces the output as Multi-Valued Quantum molecular sequence. A most vital part in this Multi-Valued Quantum T flip-flop is from Multi-Valued Quantum molecule sequence, it is needed to make a qubit first and this qubit will be entered herein the circuit as an input. Multi-Valued Quantum -Multi-Valued DNA T flip-flop toggles and it required much time compared to Multi-Valued Quantum t flip-flop but required less compared to Multi-Valued Quantum T flip-flop. Multi-Valued DNA-Quantum T flip-flop circuits Multi-Valued Quantum circuit portion performs so fast but MultiValued Quantum circuit portion much slower. In Multi-Valued DNA-Quantum T flip-flop bunch of Multi-Valued Quantum AND operations performs according to
186
Multi-Valued Sequential Circuits in DNA-Quantum Computing
Ternary DNA Ternary DNA AND AND
CLK
Ternary DNA Ternary DNA AND AND
CAAGCT
Heat Transfer Circuit
Ternary Quantum NOR Ternary Quantum NOR
|Q>
|Q’>
DNA Cache Memory
FIGURE 4.9 Block Diagram of Multi-Valued DNA-Quantum T Flip-Flop Multi-Valued Quantum computing principle and a bunch of Multi-Valued Quantum NOR operation perform in the Multi-Valued DNA computing portion in the circuit. Multi-Valued DNA-Quantum T flip-flop removes the problem of Multi-Valued DNAQuantum SR flip-flop.
4.6.1
General Organization of Multi-Valued DNA-Quantum T FlipFlop
Multi-Valued DNA-Quantum T flip-flop toggles the input and Multi-Valued DNAQuantum JK flip-flop’s extended version is Multi-Valued DNA-Quantum T flip-flop architecturally. Multi-Valued DNA-Quantum T flip-flops have one qubit input and clock qubit input. Multi-Valued Quantum T flip-flop relies on Clock qubit input. Figure 4.9 depicts the block diagram of multi-valued DNA-Quantum T Flip-Flop. Multi-Valued DNA-Quantum T flip-flop needs one qubit input and one clock input which is also a qubit. One qubit input |T> and |clk> are shared into two MultiValued Quantum AND operations. These Multi-Valued Quantum AND operations perform parallelly according to the Multi-Valued Quantum computing principle. These Multi-Valued Quantum AND operations output lines are entered as input lines
Multi-Valued DNA-Quantum T Flip-Flop
187
into another couple of Multi-Valued Quantum AND operations. These Multi-Valued Quantum AND operations’ one input is the previous output qubit and the other is the final output of the Multi-Valued DNA-Quantum T flip-flop. As this block diagram depicts, the final output will be the Multi-Valued Quantum molecule sequence. So this molecular sequence will be gone through the NMR process and NMR will make this sequence a qubit, as well as this qubit, will go to Multi-Valued Quantum AND operation as input. Like the same other output, the molecular sequence will come as input in another Multi-Valued Quantum AND operation. Then finally two Multi-Valued Quantum AND operations will parallelly perform and it is the last operation of Multi-Valued Quantum computing according to the Multi-Valued DNAQuantum T flip-flop circuit block diagram. These two Multi-Valued Quantum AND operations produce two-qubit which will be stored in Multi-Valued Quantum Cache memory. Then this Multi-Valued Quantum cache memory serves the qubit into the Multi-Valued Quantum computing circuit’s portion. These qubits need to be molecular sequence first of all so qubits are performed here NMR relaxation process. In the NMR relaxation process, emitting EMR is strictly prohibited. After the NMR relaxation process qubits are relaxing their state and are converted into the molecular sequence. In Multi-Valued Quantum computing molecular sequence needs to go through many processes during the operation. In Multi-Valued Quantum computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum T flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued Quantum circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued Quantum computation. In Multi-Valued Quantum computing Multi-Valued Quantum NOR SR latch performs where two Multi-Valued Quantum NOR gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence is found from Multi-Valued DNA-Quantum T flip-flop.
4.6.2
Circuit Architecture of Multi-Valued DNA-Quantum T Flip-Flop
Multi-Valued DNA-Quantum T flip-flop operation circuit is constructed using one principle, that is, the first portion of this circuit will be constructed by using MultiValued Quantum circuit and the second portion will be constructed by using MultiValued Quantum computing circuit. This circuit also has Multi-Valued Quantum cache memory and a Heat transfer circuit to achieve the best output at the end. The multi-valued DNA-Quantum T Flip-Flop operation circuit is shown in Figure 4.10. In this circuit, input is qubit and output is the molecular sequence. Input |T> and clock input |clk> are shared into two Multi-Valued Quantum AND operations. Two Multi-Valued Quantum operations are constructed parallelly. This Multi-Valued Quantum AND operations output line and final output of Multi-Valued DNA-Quantum T flip-flop are constructed into another two Multi-Valued Quantum operations parallelly. But the final two outputs are molecular sequences so these two output lines are connected to the NMR process and then after the NMR process this two-line came into use as an input line Multi-Valued Quantum AND operation
188
Multi-Valued Sequential Circuits in DNA-Quantum Computing
Heat Transfer Circuit
Anneal . Multi-Valued DNA-Quantum T flip-flop won’t enable if the clock input is not |0>. Hence the clock input enables this circuit to start to work and first of all, it will perform the Multi-Valued Quantum circuit operation. Multi-Valued Quantum circuit operation will be happening in close to zero temperature because qubits need to coherence state. The superposition state will be stable if this circuit is full of prohibited from other environment particles. |T> and |clk> input will be shared and perform two Multi-Valued Quantum AND operations in parallel way. This Multi-Valued Quantum AND operation produce some garbage value but in this proposed circuit this topic is avoidable. Multi-Valued Quantum AND operation produce two output qubits in the same amount of time. This qubit one of each will perform another two Multi-Valued Quantum AND operations in parallel way. The first qubit and final output of Multi-Valued DNA-Quantum T flip-flop will perform Multi-Valued Quantum AND operation. Another qubit and another output sequence of the Multi-Valued DNA-Quantum T flip-flop will perform the Multi-Valued Quantum AND operation. These two operations will perform in parallel way. But the final output of Multi-Valued DNA-Quantum T flip-flop is a molecular sequence. The molecular sequence cannot perform the Multi-Valued Quantum AND operation. For that reason, Multi-Valued Quantum AND operation need a qubit to perform the operation. So, that’s why Multi-Valued Quantum molecular sequence performs first of all NMR process and then it converts them molecular sequence into a qubit. Then these qubits and the previous output qubits perform two Multi-Valued Quantum AND operations parallelly and produce the output of two Multi-Valued Quantum AND operations parallelly. These two outputs of two qubits enter into the Multi-Valued Quantum cache memory. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when requires it serves the data into the NMR relaxation process. In this Multi-Valued DNA-Quantum T flip-flop, two-qubit is stored in Multi-Valued Quantum cache memory. This qubit performs the NMR Relaxation process because Multi-Valued Quantum circuits need molecular sequence. NMR relaxation process removes the superposition state and makes the qubit into
190
Multi-Valued Sequential Circuits in DNA-Quantum Computing
a molecular sequence. This molecular sequence performs the Multi-Valued Quantum NOR operation. The final output sequence and molecular sequence from cache perform Multi-Valued Quantum NOR operation. Another final output sequence and previous output from cache also perform another Multi-Valued Quantum NOR operation. These two NOR operation performs parallelly. This structure basically MultiValued Quantum NOR latches operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued Quantum operation performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum AND operation performs so it produces much heat. But Multi-Valued Quantum circuit needs to be in close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued Quantum circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named MultiValued DNA-Quantum circuit operation. For that reason, the excessive heat can be transferred from the Multi-Valued Quantum circuit portion to the Multi-Valued Quantum circuit portion using a heat transfer circuit. This heat transfer circuit using the junction capture the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued Quantum circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between MultiValued Quantum and Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued Quantum circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum T flip-flop can produce two output molecular sequences. Table 4.5 shows the truth table of multi-valued DNA-Quantum T Flip-Flop. TABLE 4.5 Truth Table of Multi-Valued DNA-Quantum T Flip-Flop |T> TGGATC ACCTAG TGGATC ACCTAG
Q (Multi-Valued Quantum Sequence) |0> |0> |1> |1>
Q (Multi-Valued Quantum Sequence) |0> |1> |0> |0>
Multi-Valued DNA-Quantum Shift Register
4.6.4
191
Example
Multi-Valued DNA-Quantum T flip-flop needs one qubit input and one clock input. Clock inputs value is ACCTAG then this Multi-Valued DNA-Quantum flip-flop will be enabled. Assume clock input value is ACCTAG here and then the output is ACCTAG. These qubit input and clock input will, first of all, perform two Multi-Valued Quantum AND operations parallelly. So, from two Multi-Valued Quantum AND operations, two-qubit are found which |1> respectively. Assume one output sequence is Q and the other is Q. Hence here if the Q sequence is ACCTAG then Q will be the TGGATC sequence as supposed. Qubit |1> and output sequence Q as well as another output qubit |1> and Q will perform Multi-Valued Quantum AND operation. But molecular sequence cannot perform Multi-Valued Quantum AND operation directly. For that reason, these two sequences, first of all, perform the NMR process and make them qubit, and then perform the Multi-Valued Quantum AND operation with respective other input parallelly. ACCTAG will convert as a qubit and assumed it as |1> and opposite TGGATC as |0> suppose. So |1> and ACCTAG or |1> will perform Multi-Valued Quantum AND operation and |1> and TGGATC or |0> will perform Multi-Valued Quantum AND operation parallelly. Then the outputs will be ACCTAG and TGGATC. These outputs will be stored in Multi-Valued DNA cache memory. Multi-Valued DNA cache memory will serve this output as input into the Multi-Valued DNA circuit when the right time arrives. These DNA sequences will perform first of all NMR process where these DNA sequences will become the qubit. Now, |1> and |0> will produce the final output as |1> and |0>. Here found the final output of the Multi-Valued DNA-Quantum T flip-flop. Output can be toggle here according to condition. These Multi-Valued DNA-Quantum T flip-flops are mainly used for toggling.
4.7 Multi-Valued DNA-Quantum Shift Register A single molecular sequence of two-valued molecular sequence data (TGGATC or ACCTAG) can be stored in a Multi-Valued DNA-Quantum flip flop. However, many Multi-Valued DNA-Quantum flip-flops are required to store multiple molecular sequences of data. To store n molecular sequences of data, N Multi-Valued DNA-D flip flops must be coupled in a certain order. A Multi-Valued DNA-Quantum register is a gadget that stores this type of data. It consists of a sequence of Multi-Valued DNA-Quantum flip flops used to store multiple molecular sequences of data. Multi-Valued DNA-Quantum shift registers enable the information stored in these Multi-Valued DNA registers to be transmitted. A Multi-Valued DNA-Quantum shift register is a collection of flip flops that stores several molecular sequences of information. By applying clock pulses to the molecular sequences contained in such Multi-Valued DNA-Quantum registers, they may be made to move inside them and
192
Multi-Valued Sequential Circuits in DNA-Quantum Computing
in and out of them. By linking n Multi-Valued DNA flip-flops and n number of Multi-Valued Quantum flip-flops, each of which stores a single molecular sequence of data or molecule sequence of data, an n Multi-Valued DNA-Quantum shift register may be built. “Multi-Valued DNA-Quantum Shift left registers” are Multi-Valued DNA-Quantum registers that will shift the molecular sequences or molecules to the left. “Multi-Valued DNA-Quantum Shift right registers” are Multi-Valued DNAQuantum registers that will shift the molecular sequences or molecule sequence to the right. Multi-Valued DNA-Quantum Shift registers are basically of 4 types. These are: 1. Multi-Valued DNA-Quantum Serial In Serial Out shift register 2. Multi-Valued DNA-Quantum Serial In parallel Out shift register 3. Multi-Valued DNA-Quantum Parallel In Serial Out shift register 4. Multi-Valued DNA-Quantum Parallel In parallel Out shift register In this study, a shift register is built utilizing a Multi-Valued DNA D flip-flop operational circuit and a Multi-Valued Quantum D flip-flop operational circuit to convert serial data into Multi-Valued DNA data and Multi-Valued Quantum molecule sequence data. The Multi-Valued DNA-Quantum Serial-In Serial-Out shift register is a type of Multi-Valued DNA-Quantum shift register that permits serial input one molecular sequence or one molecule sequence at a time over a single data line and outputs a serial output. The data exits the Multi-Valued DNA-Quantum shift register one molecular sequence at a time in a serial pattern since there is only one molecular sequence output, thus the term Multi-Valued DNA-Quantum Serial-In Serial-Out Shift Register. Four Multi-Valued DNA-Quantum D flip-flops are linked in a serial fashion in this circuit. Because the same clock signal is supplied to each Multi-Valued DNA-Quantum flip flop, they are all synchronized with one another. The circuit below in the architecture section is an example of a Multi-Valued DNA-Quantum shift right register, which accepts serial data from the Multi-Valued DNA flip flop’s left side and Multi-Valued Quantum flip-flops left side. In Multi-Valued DNA-Quantum flip-flop molecular sequence is entered into as an input in the circuit and performs the required operation. Multi-Valued DNA computing computation speed is much higher than Multi-Valued Quantum computing computational speed. For that case molecular sequences are stored in Multi-Valued DNA cache memory. When actually the time arrives then molecular sequence first of all performs the NMR process and makes the molecular sequence into molecule sequence. Then this molecule sequence performs the Multi-Valued Quantum flip-flop operation. Multi-Valued DNA circuit produces much heat and heat needs to be removed to maintain the coherence state and Multi-Valued Quantum computing circuit needs huge heat to enable the circuit to perform. In that case, this circuit uses a heat transfer circuit to transfer the heat into the Multi-Valued Quantum circuits.
4.7.1
General Organization of Multi-Valued DNA-Quantum Shift Register
Three Multi-Valued DNA D flip-flop operational circuits and One Multi-Valued Quantum D flip-flop circuits are used to make a Multi-Valued DNA-Quantum shift
Multi-Valued DNA-Quantum Shift Register
193
register. As a fundamental component, a Multi-Valued DNA-Quantum Shift register is utilized for data shift, and a Multi-Valued DNA D flip-flop and Multi-Valued Quantum D flip-flop is used to make it happen. Two inputs are used in Multi-Valued DNA D flip flops: one for data and one for the clock. The outputs of Multi-Valued DNA D flip flops are logically opposite one another. The circuit’s synchronization with an external signal is aided by the clock input. A Multi-Valued DNA D flip flop’s output can have two possible values. Data input is directed to a Multi-Valued DNA NAND operation circuit in this block diagram, while data input reverse is routed to another Multi-Valued DNA NAND operation circuit. Both Multi-Valued DNA NAND operations procedures use the clock pulse input. Multi-Valued DNA SR Latch receives the result of two Multi-Valued DNA NAND operations. The D flip flop is constructed using the SR latch. This property is used to induce a delay in the circuit’s data flow. Multi-Valued DNA SR Latch is made up of two Multi-Valued DNA NAND Operations. The final two outputs of the Multi-Valued DNA SR Latch function were uncovered. A Multi-Valued DNA D flip flop may provide two types of output, one of which is logically inverse to the other. The Multi-Valued DNA D flip flop will continue to function if the clock is enabled; otherwise, the Multi-Valued DNA D flip flop will stop working. Multi-Valued DNA D flip-flop operational circuits are also coupled through serial connection in the Multi-Valued DNA shift register block diagram. The Multi-Valued DNA D flip-flop operational circuit is the fundamental component of the Multi-Valued DNA shift register. After processing the molecular sequence input in the Multi-Valued DNA Shift Register output of the shift register is stored in Multi-Valued DNA Cache Memory. In Multi-Valued Quantum computing molecular sequence needs to go through many processes during the operation. In Multi-Valued Quantum computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum T flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued Quantum circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued Quantum computation. In Multi-Valued Quantum computing Multi-Valued Quantum NAND SR latch performs where two Multi-Valued Quantum NAND gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence are found from Multi-Valued DNA-Quantum T flip-flop.
4.7.2
Circuit Architecture of Multi-Valued DNA-Quantum Shift Register
Four D flip-flops and a Multi-Valued DNA AND Gate are used in the Multi-Valued DNA portion and a Multi-Valued Quantum D flip-flop in the Multi-Valued DNAQuantum Shift Register. Shift Register generates four molecular sequence outputs using these. The D flip-flop has a single molecular sequence input and is developed
194
Multi-Valued Sequential Circuits in DNA-Quantum Computing
FIGURE 4.11 Block Diagram of Multi-Valued DNA-Quantum Shift Register using Multi-Valued DNA NAND and Multi-Valued DNA SR latch operations. Figure 4.11 shows the block diagram of multi-valued DNA-Quantum Shift Register. The clock molecular sequence input is required for the Multi-Valued DNA D flip-flop. It can be seen from the diagram that the circuit has one molecular sequence input. One line of this molecular sequence input will be directed into a Multi-Valued DNA NAND operation termed S input in Circuit. Multi-Valued DNA NAND is performed here using S molecular sequence input and Clock molecular sequence input. In this circuit, input is molecular sequence and output is a qubit. Clock input clk is shared into a Multi-Valued DNA NAND operation and a Multi-Valued DNA NOT operation. Two Multi-Valued DNA operations are constructed parallelly. These Multi-Valued DNA NAND operations output line and final output of Multi-Valued DNA-Quantum Shift Register are constructed into another two Multi-Valued DNA operations parallelly. But the final two outputs are qubits so these two output lines are connected to the NMR process and then after that process, these two lines came into use as an input line Multi-Valued DNA NAND operation circuit. These two Multi-Valued DNA NAND operations circuit output lines are connected into the Multi-Valued DNA cache memory. All of these Multi-Valued DNA NAND Operations are the part of Multi-Valued DNA D flip flop which is used in this system. This is the first portion of the circuit and is fully designed by using the principle of
Multi-Valued DNA-Quantum Shift Register
195
Multi-Valued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. Multi-Valued DNA cache memory supply line fully connected to NMR process as well as here EMR is emitted. Then the NMR process output line is connected to the Multi-Valued Quantum NOT gate. After going through the Multi-Valued Quantum NOT operation the output is taken as input in the Multi-Valued Quantum NAND operation. In these Multi-Valued Quantum NAND operations 1st clock input is taken as |clk> input. These inputs are shared into two Multi-Valued Quantum NAND gates. Then the outputs of these operations are connected to another set of Multi-Valued Quantum NAND gates. Multi-Valued Quantum NAND gates another input come from the output which is |0> qubit. Hence this Multi-Valued Quantum NAND gates’ final output line is the final output of MultiValued DNA-Quantum Shift Register. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued Quantum circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued Quantum circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued Quantum circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and Multi-Valued Quantum circuits. Maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued DNA-Quantum T flip-flop circuit is constructed fully.
4.7.3
Working Principle of Multi-Valued DNA-Quantum Shift Register
Multi-Valued DNA-Quantum shift registers are a kind of registers where both molecular sequence data loading, as well as data retrieval to/from the Multi-Valued DNAQuantum shift register, occurs in serial mode sometimes. This research synchronous Multi-Valued DNA SISO shift register sensitive to the positive edge of the clock pulse. Here the data word which is to be stored is fed bit-by-bit at the molecular sequence input of the first Multi-Valued DNA flip-flop. Further, it is seen that the molecular sequence inputs of all other flip-flops are driven by the outputs of the preceding ones, for example, the input of Multi-Valued DNA D Flip-flop number- 2 is driven by the output of Multi-Valued DNA D flip-flop number-1. At last, the data stored within the Multi-Valued DNA shift register is obtained at the output pin of the nth Multi-Valued DNA D flip-flop in serial fashion. Initially, all the Multi-Valued DNA flip-flops in the Multi-Valued DNA register are cleared by applying high on their clear pins. Next, the input data word is fed serially to Multi-Valued DNA D Flip-flop number-1. This causes the molecular sequence appearing at the first pin to be stored into Multi-Valued DNA D flip-flop number-1 as soon as the first leading edge of the clock appears. Further at the second clock tick, B1 gets stored into Multi-Valued DNA D flip-flop number-2 while a new bit enters into Multi-Valued DNA flip-flop number-2.
196
Multi-Valued Sequential Circuits in DNA-Quantum Computing TABLE 4.6 Truth Table of Multi-Valued DNA-Quantum Shift Register Clk ↓ >> ACCTAG ↑>> TGGATC ↑>> TGGATC
|x> X |0> |1>
|Q> Q |0> |1>
|Q > Q |1> |0>
Description Memoryno change Reset Q >>0 Set Q >>
This kind of shift in data molecular sequences continues for every rising edge of the clock pulse. This indicates that for every single clock pulse the data within the Multi-Valued DNA register moves towards the right by a single bit. Following the molecular sequence data transmission, as explained, one can note that the first molecular sequence of an input word appears at the output of nth flip-flop for the nth clock tick. On applying further clock cycles, one gets the next successive molecular sequences of the molecular sequence input data word as the serial output. Table 4.6 shows the truth table of multi-valued DNA-Quantum Shift Register. Multi-Valued Quantum cache stores the qubit into an array. Multi-Valued Quantum cache memory stores the qubit data and when requires it serves the data into the NMR relaxation process. In this Multi-Valued DNA-Quantum T flip-flop, twoqubit is stored in Multi-Valued Quantum cache memory. This qubit performs the NMR Relaxation process because Multi-Valued Quantum circuits need molecular sequence. NMR relaxation process removes the superposition state and makes the qubit into a molecular sequence. This molecular sequence performs the Multi-Valued Quantum NAND operation. The final output sequence and molecular sequence from cache perform Multi-Valued Quantum NAND operation. Another final output sequence and previous output from cache also perform another Multi-Valued Quantum NAND operation. These two NAND operation performs parallelly. This structure basically Multi-Valued Quantum NAND latches operation. Multi-Valued Quantum Cache memory is mainly used because Multi-Valued Quantum operation performs so fast Multi-Valued Quantum operation performed very slowly. Multi-Valued Quantum cache memory works as an intermediate process where qubit is just stored and when needed cache memory serves the qubit. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Multi-Valued Quantum AND operation performs so it produces much heat. But Multi-Valued Quantum circuit needs to be in close to zero Kelvin temperature to perform the operation. So from the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued Quantum circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named MultiValued DNA-Quantum circuit operation. For that reason, the excessive heat can be transferred from the Multi-Valued Quantum circuit portion to the Multi-Valued Quantum circuit portion using a heat transfer circuit. This heat transfer circuit using the junction capture the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued Quantum
197
Multi-Valued DNA-Quantum Shift Register
circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between MultiValued Quantum and Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued Quantum circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum T flip-flop can produce two output molecular sequences.
4.7.4
Example
In the Multi-Valued DNA shift register, only one molecular sequence input is needed to perform the required operation. Multi-Valued DNA shift register will enable if and only if when the clock input is enabled. This research proposed Multi-Valued DNA shift register shift one molecular sequence data into the right position. Assume TGGATC data is going to perform the Multi-Valued DNA shift register operation. First of all 0 will perform the Multi-Valued DNA D flip-flop number-1 operation and produce the output is ACCTAG. Then this ACCTAG will shift into the right side as well as every molecular sequence will shift right side once. Now TGGATC will be entered into the Multi-Valued DNA shift register and perform the midst Multi-Valued DNA D flip-flop operation and then again like the previous one the data will be shifted once on the right side. Then like these two step by step TGGATC,TGGATC also entered into the MultiValued DNA shift register in the relevant period and perform the midst Multi-Valued DNA D flip-flop operation. Then again for each data will be shifted once. This truth table, it illustrates that every time molecular sequence data shift once on the right side. In Multi-Valued DNA shift register operational circuit will perform n+1 operation then truth final data will be like the table below (Table 4.7). Here in n+1 operation time, no data is available that’s why ACCTAG is appeared in the truth table and according to the Multi-Valued DNA Shift register principle one data molecular sequence shifted once on the right side. After n+1 operation, final data is ACCTAG, TGGATC, TGGATC, TGGATC. These data purely proved that TABLE 4.7 Data Shifting Process in Multi-Valued DNAQuantum Shift Register clk ACCTAG TGGATC TGGATC TGGATC TGGATC TGGATC
|x> |0> |0> |1> |1> |1>
|Q> |0> |0> |1> |1> |1> |1>
|Q1> |0> |0> |0> |1> |1> |1>
|Q2> |0> |0> |0> |0> |1> |1>
|Q3> |0> |0> |0> |0> |0> |1>
198
Multi-Valued Sequential Circuits in DNA-Quantum Computing
the Multi-Valued DNA shift register gives the correct required output by maintaining the Multi-Valued DNA principle. Multi-Valued DNA shift register can produce some garbage value but in this research, this is not the part of the study.
4.8 Multi-Valued DNA-Quantum Ripple Counter A Multi-Valued DNA-Quantum counter is basically used to count the number of clock pulses applied to a Multi-Valued DNA-Quantum flip-flop. It can also be used for Multi-Valued DNA-Quantum Frequency divider, Multi-Valued DNA-Quantum time measurement, Multi-Valued DNA-Quantum frequency measurement, MultiValued DNA-Quantum distance measurement and also for generating square waveforms. In this, the Multi-Valued DNA-Quantum flip-flops are Multi-Valued DNAQuantum asynchronous counters and are supplied with different clock signals, there may be a delay in producing output. Also, a few numbers of Multi-Valued DNAQuantum logic gates are needed to design asynchronous counters. So they are elementary in design and also are less expensive. A n-bit ripple counter can count up to 2n states. It is also known as MOD n counter. It is known as a ripple counter because of the way the clock pulse ripples its way through the flip-flops. It is an asynchronous counter. Different Ripple Counters are used with a different clock pulse. All the flip-flops are used in toggle mode. Only one flip-flop is applied with an external clock pulse and another flip-flop clock is obtained from the output of the previous flip-flop. The flip-flop applied with an external clock pulse acts as LSB (Least Significant Bit) in the counting sequence. A counter may be an up counter that counts upwards or can be a down counter that counts downwards or can do both i.e. count up as well as count downwards depending on the input control. The sequence of counting usually gets repeated after a limit Multi-Valued DNA-Quantum Ripple Counter is made out of four JK flip flops. Using these Multi-Valued DNA JK Flip flops, the Multi-Valued DNA-Quantum Ripple Counter creates four molecular sequence outputs. Here in JK flip flop, J and K are not shortened abbreviated letters of other words, such as “S” for Set and “R” for Reset, but are autonomous letters chosen by its inventor Jack Kilby to distinguish the flip-flop design from other types. Though Jack Kilby invented the digital electronics JK flip flop. Multi-Valued DNA-Quantum Ripple Counter is an asynchronous counter. It is created using Multi-Valued DNA JK flip flops and these flip flops are only controlled by clock pulse input. Multi-Valued DNA-Quantum Ripple Counter produces much heat to produce the molecule’s superposition state and also produces some garbage value.
4.8.1
General Organization of Multi-Valued DNA-Quantum Ripple Counter
Multi-Valued DNA-Quantum Ripple Counter uses three Multi-Valued DNA JK flip flops to operate two molecular sequence inputs. Multi-Valued DNA JK flip flop has the two-molecular sequence input named J and K.
Multi-Valued DNA-Quantum Ripple Counter
199
Multi-Valued DNA JK flip-flop has the molecular sequence input J and K. This Multi-Valued DNA JK flip flop consists of many Ternary DNA NAND operations. At first basic Ternary DNA NAND operation performs a couple of then this operation output is entered into the SR flip flop as well as got the output Q and Q. First of all J and clk input performs the Ternary DNA NAND operation. The output of the Ternary DNA NAND operation and output of the Multi-Valued DNA JK flip flop Q performs another Ternary DNA NAND operation and produces the output named as clk. clk input is shared so K and clk input also performs the Ternary DNA NAND operation. This Ternary DNA NAND operations output and Q output of the Multi-Valued DNA JK flip flop performs another Ternary DNA NAND operation as well as produces the output named as R. These clk and R entered into the Multi-Valued DNA SR flip flop and produce two outputs Q and Q. In Multi-Valued DNA SR flip flop, it has four Ternary DNA NAND operations. clk input and clk input performs Ternary DNA NAND operation as well as R input and shared clk input also performs the Ternary DNA NAND operation. These two NAND operations output entered the Multi-Valued DNA SR latch as input. In Multi-Valued DNA SR latches two Q and one input as well as Q and other inputs perform the Ternary DNA NAND operation. Finally, after all of this MultiValued DNA operation, the Multi-Valued DNA JK flip flops final output Q and Q are obtained. After processing the molecular sequence inputs in three JK flip flops like this, the output is stored in a Multi-Valued DNA Cache Memory, which is made out of Multi-Valued DNA Shift Register. Then this Multi-Valued DNA cache memory serves the molecular sequence into the Multi-Valued Quantum computing circuit’s portion. These molecular sequences need to be qubit first of all so molecular sequences are performed here NMR process. In the NMR process, EMR is emitted. After the NMR process molecular sequences are relaxing their state and are converted into the qubit. In Multi-Valued Quantum computing molecular sequence needs to go through many processes during the operation. In Multi-Valued Quantum computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum T flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued Quantum circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued Quantum computation. In Multi-Valued Quantum computing Multi-Valued Quantum NOR SR latch performs where two Multi-Valued Quantum NOR gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence are found from Multi-Valued DNA-Quantum T flip-flop.
4.8.2
Circuit Architecture of Multi-Valued DNA-Quantum Ripple Counter
Multi-Valued DNA-Quantum Ripple Counter (Figure 4.12) uses three Multi-Valued DNA JK flip flops and one Multi-Valued Quantum JK flip flop to create qubit outputs.
200
Multi-Valued Sequential Circuits in DNA-Quantum Computing
FIGURE 4.12 Block Diagram of Multi-Valued DNA-Quantum Ripple Counter Multi-Valued DNA JK flip flop has a two-molecular sequence input and one clock shared input. Multi-Valued DNA JK flip flops also depend on the clock. If the clock is enabled then the circuit will enable, otherwise not. In Multi-Valued DNA-Quantum Ripple Counter there’s a one clock input and one logic input which is shared in both J and K input ports. Input J and input K both the value will perform the Ternary DNA NAND operation with the shared clk input differently. J and clk input performs the Ternary DNA NAND operation. NAND operation made by using Multi-Valued DNA basic gates. Basic gates in mainly MultiValued DNA computing are V, V+, and CNOT gates. For error correction here used an ancillary bit. In Quant NAND operation the value of an ancillary bit in TGGATC. After J and clk perform the Ternary DNA NAND operation produced an output molecular sequence and this output molecular sequence and the output of the flip flop |Q> perform the Ternary DNA NAND operation and produce the output clk. Like in the same procedure K, clk and |Q> input produces the R output. These operation circuits are mainly Ternary DNA NAND operations. This clk and R input is performed the Multi-Valued DNA SR flip-flop operation. In Multi-Valued DNA SR flip flop operational circuit architecture also made by the proposed basic component of Multi-Valued DNA computing is Ternary DNA NAND operation. After processing the inputs in a Multi-Valued DNA JK flip flop, the output of the flip flop is going to be stored as an output of the Multi-Valued DNA-Quantum
Multi-Valued DNA-Quantum Ripple Counter
201
Ripple Counter. Multi-Valued DNA-Quantum Ripple Counter intermediate architectures four Multi-Valued DNA JK flip-flops connected in serial connection using the logical molecular sequence input. Every clock input as clk enters in every molecular sequence and from 2nd Multi-Valued DNA JK flip-flop clk input is previous MultiValued DNA Jk flip-flops first output |Q> . With the same architecture, Multi-Valued DNA-Quantum Ripple Counter can be performed as an up counter or as a down counter but clock pulse as clk need to sometimes have a positive edge-triggered and sometimes a negative edge triggered. The JK flip flop’s circuit output lines are connected into the Multi-Valued DNA cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued Quantum shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. Multi-Valued DNA cache memory supply line fully connected to NMR process as well as here EMR is emitted. Then the NMR process output line is connected to the Ternary Quantum NAND gate. Two outputs of the NMR process are connected to two different MultiValued Quantum NOR gates. Multi-Valued Quantum NOR gates another input come from the output which is Q and Q qubits. Hence this Ternary Quantum NAND gates’ final output line is the final output of Multi-Valued DNA-Quantum Ripple Counter. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued Quantum circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued Quantum circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued Quantum circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and Multi-Valued Quantum circuits. Maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued DNA-Quantum T flip-flop circuit is constructed fully.
4.8.3
Working Principle of Multi-Valued DNA-Quantum Ripple Counter
In the Multi-Valued DNA-Quantum Ripple Counter there are four Multi-Valued DNA JK flip-flop operational circuits. These Multi-Valued DNA JK flip-flop operational circuits are connected in serial connection. In this Multi-Valued DNAQuantum Ripple Counter there is one clock input and a logic input which shared into the port J and K of Multi-Valued DNA JK flip-flop operational circuit. The inputs J and K of a Multi-Valued DNA JK flip-flop conducts two Multi-Valued DNA processes in parallel. The Ternary DNA NAND operation is performed using J and shared input clk. The Ternary DNA NAND operations are then completed, and one of the Multi-Valued DNA JK flip flop’s outputs executes the Ternary DNA NAND operation, producing clk. The K and |clk > inputs are performed first in the Ternary DNA NAND operation. The output of the Multi-Valued DNA JK flip-flop |Q>, as
202
Multi-Valued Sequential Circuits in DNA-Quantum Computing TABLE 4.8 Truth Table of Multi-Valued DNA-Quantum Ripple Counter clk ACCTAG TGGATC TGGATC
|Q0 > ACCTAG TGGATC ACCTAG
|Q1 > ACCTAG TGGATC ACCTAG
|Q2 > ACCTAG TGGATC ACCTAG
|Q3 > |0> |1> |0>
well as the result of the Multi-Valued DNA first NAND operation, are then used to perform another Ternary DNA NAND operation, yielding R. The steps for creating clk and R are carried out simultaneously. It is known that one of the distinctive properties of Multi-Valued DNA operations is that they may do several operations at the same time, and this is exactly what is happening. The Multi-Valued DNA SR flip flop operation is then conducted on these clk and R inputs. The Ternary DNA NAND operation, which is employed here, is also used to make Multi-Valued DNA SR flip flops. Two outputs are discovered after conducting the Multi-Valued DNA SR flip-flop operation. The opposite of one output is the opposite of the other. Here if the clk is ACCTAG then the Multi-Valued DNA JK flip-flop will not be triggered but if clk is TGGATC the Multi-Valued DNA JK flip-flop will be triggered and it will toggle the output. First of all Multi-Valued DNA JK flip-flop operational circuit getting clk value is TGGATC and toggles the output value from the previous state value. Then the output of the initial Multi-Valued DNA JK flip-flop will be clk input of next Multi-Valued DNA JK flip-flop. If the clk value is TGGATC then the output value will be toggled, otherwise the output will be the previous state output. Maintaining the same procedure every Multi-Valued DNA JK flip-flop operated in the Multi-Valued DNA-Quantum Ripple Counter. Multi-Valued DNA JK flip-flop is toggled very much, that’s why in the Multi-Valued DNA-Quantum Ripple Counter Multi-Valued DNA JK flip-flop operational circuit here is used as a basic component. Table 4.8 shows the truth table of multi-valued DNA-Quantum Ripple Counter. The JK flip flop’s circuit output lines are connected into the Multi-Valued DNA cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. Multi-Valued DNA cache memory supply line fully connected to NMR process as well as here EMR is emitted. Then the NMR process output line is connected to the Ternary Quantum NAND gate. Two outputs of the NMR process are connected to two different Multi-Valued Quantum NOR gates. Multi-Valued Quantum NOR gates another input come from the output which is Q and Q qubits. Hence this Ternary Quantum NAND gates’ final output line is the final output of Multi-Valued DNA-Quantum Ripple Counter. Multi-Valued Quantum Cache memory works here as the intermediate process. Multi-Valued Quantum circuit produces much heat and here two Ternary Quantum AND operation performs so it produces much heat. But Multi-Valued Quantum circuit needs to be in close to zero Kelvin temperature to perform the operation. So from
Multi-Valued DNA-Quantum Synchronous Counter
203
the Multi-Valued Quantum circuit, it is needed to reduce the temperature to maintain the superposition state of the qubit. Hence in Multi-Valued Quantum circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued DNA-Quantum circuit operation. For that reason, the excessive heat can be transferred from the Multi-Valued Quantum circuit portion to the Multi-Valued Quantum circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued Quantum circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued Quantum circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between Ternary Quantum AND Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued Quantum circuit and this heat is not enough to perform the Multi-Valued Quantum circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum T flip-flop can produce two output molecular sequences.
4.8.4
Example
To check the Multi-Valued DNA-Quantum Ripple Counter proposed circuit, assume a clock signal is TGGATC and the logical molecular sequence is high. So, if initially clock signal TGGATC is delivered then for the first Multi-Valued DNA JK flip-flop operational circuit, output will be same. According to the work principle of Multi-Valued DNA-Quantum Ripple Counter if clock input value is TGGATC then the previous state value will be toggled. Then now from the first Multi-Valued DNA JK flip-flop got one output which is TGGATC. This TGGATC will be the clock input for the second Multi-Valued DNA JK flipflop circuit according to the architecture of the Multi-Valued DNA-Quantum Ripple Counter. As like the previous Multi-Valued DNA JK flip-flop for thirds principle is the same. Fourth flip-flop is a Multi-Valued Quantum JK flip-flop operational circuit. This circuit got qubit by NMR process. The last output will be |0>. Hence from the truth table, it is seen that the proposed Multi-Valued DNAQuantum Ripple Counter is correct theoretically. Multi-Valued DNA JK flip-flop used here for toggling. This Multi-Valued DNA-Quantum Ripple Counter produces much heat when the molecule’s normal state becomes a superposition state. MultiValued DNA-Quantum Ripple Counters full operation needs to be an environment where other particles are totally prohibited to maintain the coherence state.
4.9 Multi-Valued DNA-Quantum Synchronous Counter A Multi-Valued DNA-Quantum counter is a Multi-Valued DNA-Quantum device which can count any particular event on the basis of how many times the particular
204
Multi-Valued Sequential Circuits in DNA-Quantum Computing
event(s) has occurred. In a Multi-Valued DNA-Quantum logic system or computers, this Multi-Valued DNA-quantum counter can count and store the number of times any particular event or process has occurred, depending on a Multi-Valued DNAQuantum clock signal. Most common type of Multi-Valued DNA-Quantum counter is a sequential Multi-Valued DNA logic circuit with a single clock input and multiple molecular sequence outputs. The molecular sequence outputs represent two-valued decimal numbers. Each clock pulse either increases the number or decreases the number. Multi-Valued DNA-Quantum Synchronous Circuit generally refers to something which is coordinated with others based on time. Multi-Valued DNA-Quantum Synchronous Signals occur at same clock rate and all the clocks follow the same reference clock. Multi-Valued DNA asynchronous Counter have shown that the molecular sequence output of that Multi-Valued DNA counter is directly connected to the input of next subsequent counter and making a chain system, and due to this chain system propagation delay appears during counting stage and create counting delays. In a Multi-Valued DNA-Quantum Synchronous Counter, the clock molecular sequence input across all the Multi-Valued DNA flip-flops use the same source and create the same clock signal at the same time. So, a Multi-Valued DNA counter which is using the same clock signal from the same source at the same time is called a Multi-Valued DNA-Quantum Synchronous Counter. Multi-Valued DNA-Quantum Synchronous Counter is made out of four JK flip flops and two Ternary DNA AND Gates. Using these Multi-Valued DNA JK Flip flops and Ternary DNA AND Gates, the Multi-Valued DNA-Quantum Synchronous Counter creates four molecular sequence outputs. A Multi-Valued DNA-Quantum Synchronous Counter produces much heat and this circuit operation needs to happen in the required environment of Multi-Valued DNA computing.
4.9.1
General Organization of Multi-Valued DNA-Quantum Synchronous Counter
Multi-Valued DNA-Quantum Synchronous Counter uses three Multi-Valued DNA JK flip flops and one Multi-Valued Quantum JK flip flop to create qubit outputs from molecular sequence outputs. Multi-Valued DNA JK flip flop has the two-molecular sequence input named as J and K. Multi-Valued DNA JK flip-flop has the molecular sequence input J and K. This Multi-Valued DNA JK flip flop consists of many Ternary DNA NAND operations. At first basic Ternary DNA NAND operation performs a couple of then this operation output is entered into the SR flip flop as well as got the output Q and Q. First of all J and clk input performs the Ternary DNA NAND operation. The output of the Ternary DNA NAND operation and output of the Multi-Valued DNA JK flip flop Q performs another Ternary DNA NAND operation and produces the output named as S. clk input is shared so K and clk input also performs the Ternary DNA NAND operation. This Ternary DNA NAND operations output and Q output of the Multi-Valued DNA JK flip flop performs another Ternary DNA NAND operation as well as produces the output named as R.
Multi-Valued DNA-Quantum Synchronous Counter
205
These S and R entered into the Multi-Valued DNA SR flip flop and produce two outputs Q and Q. In Multi-Valued DNA SR flip flop, it has four Ternary DNA NAND operations. S input and clk input performs Ternary DNA NAND operation as well as R input and shared clk input also performs the Ternary DNA NAND operation. These two NAND operations output entered the Multi-Valued DNA SR latch as input. In Multi-Valued DNA SR latches two Q and one input as well as Q and other inputs perform the Ternary DNA NAND operation. Finally, after all of these MultiValued DNA operations, the Multi-Valued DNA JK flip flops final output Q and Q are obtained. After processing the inputs in a Multi-Valued DNA JK flip flop, the output of the flip flop is going to be stored as an output of the Multi-Valued DNA-Quantum Synchronous Counter. Thus, Multi-Valued DNA-Quantum Synchronous Counter creates four molecular sequence outputs using four Multi-Valued DNA JK flip flops. The clock inputs for all of the four Multi-Valued DNA Jk flip flops come from the same source. For this, all of the flip flops work synchronously. One output of each of the second and third flip flops go through Ternary DNA AND Gates. Then the output of the Multi-Valued DNA portion is stored in the Multi-Valued DNA Cache Memory. Whenever needed the output then goes through the “NMR” process in which the EMR is emitted. Thus the molecular sequences of the superstrate become the qubit and used as inputs for the Multi-Valued Quantum JK flip flop. In Multi-Valued Quantum computing molecular sequence needs to go through many processes during the operation. In Multi-Valued Quantum computing, melting and annealing are very important and these steps require a vast amount of heat. That’s why in Multi-Valued DNA-Quantum T flip-flop Multi-Valued Quantum portion transfers a small amount of heat produced from the Multi-Valued Quantum circuits into Multi-Valued Quantum circuits. Though this amount of heat is not enough, this heat or temperature will help to perform Multi-Valued Quantum computation. In Multi-Valued Quantum computing Ternary Quantum NAND SR latch performs where two Ternary Quantum NAND gates perform parallelly and input comes from Multi-Valued Quantum circuit portion. After that operation, the output molecular sequence are found from Multi-Valued DNA-Quantum T flip-flop.
4.9.2
Circuit Architecture of Multi-Valued DNA-Quantum Synchronous Counter
Multi-Valued DNA-Quantum Synchronous Counter uses three Multi-Valued DNA JK flip flops and one Multi-Valued Quantum JK flip flops to create qubit outputs. Multi-Valued DNA JK flip flop has a two-molecular sequence input and one clock shared input. Multi-Valued DNA JK flip flops also depend on the clock. If the clock is enabled then the circuit will enable, otherwise not. Figure 4.13 shows the block diagram of multi-valued DNA-Quantum Synchronous Counter. Input J and input K both the value will perform the Ternary DNA NAND operation with the shared clk input differently. J and clk input performs the Ternary DNA NAND operation. NAND operation made by using Multi-Valued DNA basic gates.
206
Multi-Valued Sequential Circuits in DNA-Quantum Computing
FIGURE 4.13 Block Diagram of Multi-Valued DNA-Quantum Synchronous Counter Basic gates in mainly Multi-Valued DNA computing are v, V+, and CNOT gates. For error correction here used an ancillary bit. In Quant NAND operation the value of an ancillary bit in TGGATC. After J and clk perform the Ternary DNA NAND operation and an output molecular sequence is obtained and this output molecular sequence and the output of the flip flop |Q> perform the Ternary DNA NAND operation and produce the output S. Like in the same procedure K, clk and |Q> input produces the R output. These operational circuits are mainly Ternary DNA NAND operations. This S and R input is performed the Multi-Valued DNA SR flip-flop operation. In Multi-Valued DNA SR flip flop operation circuit architecture also made by the proposed basic component of Multi-Valued DNA computing is Ternary DNA NAND operation. After processing the inputs in a Multi-Valued DNA JK flip flop, the output of the flip flop is going to be stored as an output of the Multi-Valued DNA-Quantum Synchronous Counter. Multi-Valued DNA-Quantum Synchronous Counter intermediate architectures three Multi-Valued DNA JK flip-flops connected in serial connection using the logical molecular sequence input. Every clock input as clk enters in every molecular sequence and from 2nd Multi-Valued DNA JK flip-flop clk input is previous Multi-Valued DNA Jk flip-flops first output |Q>. With the same architecture Multi-Valued DNA-Quantum Synchronous Counter can be performed as a up counter or as a down counter but clock pulse as clk need to sometimes have a positive edge triggered and sometimes a negative edge triggered.
Multi-Valued DNA-Quantum Synchronous Counter
207
The JK flip flop’s circuit output lines are connected into the Multi-Valued DNA cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. Multi-Valued DNA cache memory supply line fully connected to NMR process as well as here EMR is emitted. Then the NMR process output line is connected to the Ternary Quantum NAND gate. Two outputs of the NMR process are connected to two different Ternary Quantum NAND gates. Ternary Quantum NAND gates another input come from the output which is Q and Q qubits. Hence this Ternary Quantum NAND gates’ final output line is the final output of Multi-Valued DNA-Quantum Synchronous Counter. Multi-Valued Quantum Circuit produces more heat and the Multi-Valued Quantum circuit needs to process the input. For that reason, it would be best to transfer the heat into Multi-Valued Quantum circuits. Multi-Valued Quantum portion Heat transfers using the heat transfer circuit into Multi-Valued Quantum circuit’s portion. In the heat transfer circuit, two junctions are connected to Multi-Valued Quantum Circuits and Multi-Valued Quantum circuits. Maximum one meter can transfer heat to this circuit. This heat transfer circuit has superconductive ware, photon batch, PCB board to make the architecture. This circuit mainly transfers the heat using the photon bath. With this circuit proposed Multi-Valued DNA-Quantum T flip-flop circuit is constructed fully.
4.9.3
Working Principle of Multi-Valued DNA-Quantum Synchronous Counter
Multi-Valued DNA-Quantum Synchronous counter has one logical molecular sequence input which is shared and one clock input. Multi-Valued DNA-Quantum Synchronous counter is constructed by the basic component as a Multi-Valued DNA JK flip-flop operational circuit. Multi-Valued DNA JK flip flop is the twomolecular sequence circuit. Multi-Valued DNA JK flip flop is mostly used flip-flop in Multi-Valued DNA computing. Multi-Valued DNA Jk flip-flop’s input J and K perform two Multi-Valued DNA operations parallelly. J and shared input clk performs the Ternary DNA NAND operation. Then this Ternary DNA NAND operations result and one output of the Multi-Valued DNA JK flip flop performs the Ternary DNA NAND operation and produce S. Like Ternary DNA NAND operation performs K and |clk > input first. Then the output of Multi-Valued DNA JK flip-flop |Q> and the result of Multi-Valued DNA first NAND operation executes again another Ternary DNA NAND operation and produce R. The procedure of producing S and R are executed in parallel. It is known that Multi-Valued DNA operations have one of the iconic characteristics that perform multiple operations parallelly and here it is happening. These S and R inputs are performed then Multi-Valued DNA SR flip flop operation. Multi-Valued DNA SR flip flop is also basically made by the Ternary DNA NAND operation that is used here. After performing the Multi-Valued DNA SR flipflop operation, two outputs are found. One output is the opposite of another. This
208
Multi-Valued Sequential Circuits in DNA-Quantum Computing TABLE 4.9 Truth Table of Multi-Valued DNA-Quantum Synchronous Counter clk ACCTAG TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC TGGATC
|Q0 > |0> |0> |0> |0> |0> |0> |0> |0> |1> |1> |1> |1> |1> |1> |1> |1> |0>
|Q1 > |0> |0> |0> |0> |1> |1> |1> |1> |0> |0> |0> |0> |1> |1> |1> |1> |0>
|Q2 > |0> |0> |1> |1> |0> |0> |1> |1> |0> |0> |1> |1> |0> |0> |1> |1> |0>
|Q3 > |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0> |1> |0>
Multi-Valued DNA JK flip flop actually removes the problem of Multi-Valued DNA SR flip flop. Multi-Valued DNA SR flip-flop describes briefly in the 5th chapter. Multi-Valued DNA JK flip-flop is triggered when the value of clock is TGGATC. So, in Multi-Valued DNA-Quantum Synchronous the counter clock needs to be always high. According to the principle counters need to be toggled, that’s why MultiValued DNA JK flip-flop is perfect for Multi-Valued DNA-Quantum Synchronous counters. Multi-Valued DNA JK flip-flop operational circuit triggered then output of Multi-Valued DNA JK flip-flop will be shared input of second Multi-Valued DNA JK flip-flop operational circuit. Then first Multi-Valued DNA JK flip-flops output and second Multi-Valued DNA JK flip-flops output enters in the Ternary DNA AND operation circuit and performs the Ternary DNA AND operation. The produced output from Ternary DNA AND operation performs the Multi-Valued DNA JK flip-flop operation. Then again produced output from the first Ternary DNA AND operation and the third Multi-Valued DNA JK flip-flop operation’s output performs another Ternary DNA AND operation. Hence the previous Ternary DNA AND operations output is shared into the Multi-Valued DNA JK flip-flops as two inputs as well as performs the Multi-Valued DNA JK flip-flop operational circuit. Multi-Valued DNA-Quantum Synchronous counter circuit mainly performs as a finite counter. Table 4.9 shows the truth table of multi-valued DNA-Quantum Synchronous Counter. Between the second and the third Multi-Valued DNA JK flip flop, Ternary DNA AND Gate is used. The JK flip flop’s circuit output lines are connected into the Multi-
Multi-Valued DNA-Quantum Synchronous Counter
209
Valued DNA cache memory. This is the first portion of the circuit and is fully designed by using the principle of Multi-Valued DNA computing. Multi-Valued DNA cache memory is made by using some Multi-Valued DNA shift register and in this proposed circuit it saves data in the Multi-Valued DNA array. When the time arrives Multi-Valued DNA cache memory supplies the data into the NMR process. MultiValued DNA cache memory supply line fully connected to NMR process as well as here EMR is emitted. Then the NMR process output line is connected to the Ternary Quantum NAND gate. Two outputs of the NMR process are connected to two different Ternary Quantum NAND gates. Ternary Quantum NAND gates another input come from the output which is Q and Q qubits. Hence this Ternary Quantum NAND gates’ final output line is the final output of the Multi-Valued DNA-Quantum Ripple Counter. Multi-Valued DNA Cache memory works here as the intermediate process. Multi-Valued DNA circuit produces much heat and here two Ternary DNA AND operations perform so it produces much heat. But Multi-Valued DNA circuit needs to be close to zero Kelvin temperature to perform the operation. So from the Multi-Valued DNA circuit, the temperature is needed to be reduced to maintain the superposition state of the molecular sequence. Hence in Multi-Valued Quantum circuit operation, it needs much heat in several steps. Mainly in melting and annealing require much heat. This topic is briefly described in the first chapter named Multi-Valued DNAQuantum circuit operation. For that reason, the excessive heat can be transferred from the Multi-Valued DNA circuit portion to the Multi-Valued Quantum circuit portion using a heat transfer circuit. This heat transfer circuit using the junction captures the heat from the Multi-Valued DNA circuit and using photon bath heat flows through the circuit and gives this into the Multi-Valued Quantum circuit. This circuit can transfer heat maximum in the one-meter distance and in Multi-Valued DNA-Quantum flip-flop distance is less than one meter between Ternary DNA AND Multi-Valued Quantum circuit. This heat transfer circuit cannot transfer full excessive heat produced from the Multi-Valued DNA circuit and this heat is not enough to perform the Multi-Valued Quantum circuit operation. But this heat transfer can optimize the cost of heat based on the needs. After all of this operation and architecture fully then Multi-Valued DNA-Quantum Ripple Counter can produce two output qubits.
4.9.4
Example
Suppose the input molecular sequence TGGATC enters into the Multi-Valued DNAQuantum Synchronous counter. Multi-Valued DNA-Quantum Synchronous counters basic component is Multi-Valued DNA Jk flip-flop operational circuit so for triggered the circuit clock value is also TGGATC. Now first Multi-Valued DNA JK flip-flop both J input and K input is TGGATC. If two value is TGGATC the flip-flop triggered and value toggles. Now Q0 is TGGATC from previous state ACCTAG. But after the first Multi-Valued DNA JK flip-flop operation Q0 ‘s value became ACCTAG. Then Q0 entered as an input in the second Multi-Valued DNA JK flipflop operation and this circuit won’t be triggered. Then again Q1 and Q0 performs
210
Multi-Valued Sequential Circuits in DNA-Quantum Computing
the Ternary DNA AND operation. As Ternary DNA AND operation depicts that if any input is ACCTAG then the produced output will ACCTAG. Then ACCTAG will be input for the third Multi-Valued DNA JK flip-flop operational circuit. As this circuit Multi-Valued DNA JK flip-flop depicts that if two input is ACCTAG then Multi-Valued DNA Jk flip-flop won’t be triggered. Again third Multi-Valued DNA flip-flop’s output Q2 and previous Ternary DNA AND operations produced output performs Ternary DNA AND operation again. As this propose circuit depicts previous Ternary DNA AND operation output is ACCTAG so, this Ternary DNA AND operations output will be ACCTAG. Hence ACCTAG will be input of J and K for the fourth Multi-Valued DNA JK flip-flop operation as well as finally it produces ACCTAG. So, this proposed circuit illustrates the exact required output of a Multi-Valued DNA-Quantum Synchronous counter theoretically.
4.10 Summary The multi-valued DNA-quantum SR latch circuits can be utilized as storage devices in power gating circuits and clocks since the multi-valued DNA-quantum SR latch is a single-bit storage element. Sequential circuits in multi-valued DNA-quantum computing are a new thing in the modern world. This is the form of quantum molecular biology. This chapter has presented the detailed working principle and circuit architecture of all sequential circuits in multi-valued DNA-quantum computing with example. Necessary figures are also shown here.
Bibliography [1] Adleman, L. M. (1994). Molecular computation of solutions to combinatorial problems. Science, 266(5187), 1021-1024. [2] Smith, L. M., Sanders, J. Z., Kaiser, R. J., Hughes, P., Dodd, C., & Connell, C. R. (1986). C. Heiner, S. B. Kent. and L. E. Hood. Nature, 321(674), 7679. [3] Zheng, X., Yang, J., Zhou, C., Zhang, C., Zhang, Q., & Wei, X. (2019). Allosteric DNAzyme-based DNA logic circuit: Operations and dynamic analysis. Nucleic Acids Research, 47(3), 1097-1109. [4] Thaker, D. D., Metodi, T. S., Cross, A. W., Chuang, I. L., & Chong, F. T. (2006, June). Quantum memory hierarchies: Efficient designs to match available parallelism in quantum computing. In 33rd International Symposium on Computer Architecture (ISCA’06) (pp. 378-390). IEEE.
Part II
Multiple-Valued Memory Devices in Quantum Molecular Biology
Overview
It is broadly established that quantum mechanics has attributes which is not present in classical physics. These unusual features – like entanglement – can be used as a resource to construct technologies not historically understood to be possible. Quantum sensors, quantum computers, and quantum cryptography all have specific enhancements over their classical counterparts. The construction of these new quantumenabled technologies, however, remains extremely challenging. Out of the efforts to build quantum technologies has emerged the understanding that various quantum components will be essential, or very beneficial. In the realm of photonics-based quantum technologies , key quantum components include quantum memories, photon sources, frequency converters, quantum random number generators, and singlephoton detectors. The focus of this review is quantum memory, a device that can store a single photon and recreate the quantum state. Quantum memories are under development by many groups around the world. Approaches to quantum memory encompass the full gamut of our understanding of electromagnetic interactions, and as such these research programs represent the most advanced techniques for the quantum control of optical signals. For example, resonant (first-order) and Raman (second-order) interactions in warm, cold, trapped, or Bose-condensed atoms, in amorphous and crystalline solids, molecular gases, structured media, and metamaterials are actively pursued, with engineered couplings to electronic, magnetic, vibrational and hybrid degrees of freedom. Photonics is a unique platform for quantum technologies because it can support broadband signals over long distances in ambient conditions, enabling, for example, the first commercial quantum cryptographic devices. However, to extend the range of quantum cryptography systems, quantum memories are needed for repeaters. More generally for quantum technologies, mechanisms are needed to generate and guide photons, mediate non-linearity, and detect photons. Quantum memories would enable the development of large photonic quantum processing systems, by providing the capability to coherently manipulate, buffer and retime photonic signals. While the primary focus of quantum memory research has been the synchronization of entanglement swapping in quantum repeater protocols for long-distance quantum communication, the ability to interconvert material and optical quanta, to prepare non-classical states and read them out optically, and to generate and distribute long-lived entanglement, has led to a range of other applications, so that quantum memories is now a catch-all term for a broad class of research, linked by the common theme of coherent interfacing between light and matter. As the field has developed, there have been outstanding review articles on quantum memories.
213
5 Multiple-Valued Quantum Memory Devices
5.1
Introduction
Quantum computing is a type of computation that harnesses the collective properties of quantum states, such as superposition, interference, and entanglement, to perform calculations. The devices that perform quantum computations are known as quantum computers. Quantum computing harnesses the phenomena of quantum mechanics to deliver a huge leap forward in computation to solve certain problems. IBM designed quantum computers to solve complex problems that today’s most powerful supercomputers cannot solve, and never will. Any computational problem that can be solved by a classical computer can also be solved by a quantum computer. Conversely, any problem that can be solved by a quantum computer can also be solved by a classical computer, at least in principle given enough time. Quantum computers provide no additional advantages over classical computers in terms of computability, quantum algorithms for certain problems have significantly lower time complexities than corresponding known classical algorithms. Quantum algorithms take a new approach to these sorts of complex problems – creating multidimensional spaces where the patterns linking individual data points emerge. Classical computers cannot create these computational spaces, so they cannot find these patterns. In the case of proteins, there are already early quantum algorithms that can find folding patterns in entirely new, more efficient ways, without the laborious checking procedures of classical computers. As quantum hardware scales and these algorithms advance, they could tackle protein folding problems too complex for any supercomputer . In quantum computing, operations instead use the quantum state of an object to produce what’s known as a qubit. These states are the undefined properties of an object before they’ve been detected, such as the spin of an electron or the polarization of a photon. Rather than having a clear position, unmeasured quantum states occur in a mixed ’superposition’, not unlike a coin spinning through the air before it lands in hand. These superposition can be entangled with those of other objects, meaning their final outcomes will be mathematically related. The complex mathematics behind these unsettled states of entangled ’spinning coins’ can be plugged into special algorithms to make short work of problems that would take a classical computer a long time to work out... if they could ever calculate them at all. Such algorithms would be useful in solving complex mathematical problems, producing hard-to-break security codes, or predicting multiple particle interactions in chemical reactions. Short for memory device, a generic term for an integrated circuit that can be programmed in a DOI: 10.1201/9781003381921-5
215
216
Multiple-Valued Quantum Memory Devices
laboratory to perform complex functions. Memory device consists of arrays of AND and OR gates. A system designer implements a logic design with a device programmer that blows fuses on the PROM to control gate operation. A programmable read only memory (PROM) has a fixed AND gate array, which links to a programmable OR gate array, which can then be conditionally complemented to produce an output. A PROM is similar to a ROM concept; however, a PROM does not provide full decoding of a variable and does not generate all the minterms as in ROM. PROM devices have arrays of transistor cells arranged in a “fixed-OR, programmable-AND” plane used to implement “sum-of-products” binary logic equations for each of the outputs in terms of the inputs and either synchronous or asynchronous feedback from the outputs. System designers can use development software that converts basic code into instructions a device programmer needs to implement a design. Quantum logic used to design RAM and Cache memory devices make the device more powerful.
5.2
Multiple-Valued Quantum Random Access Memory
A ternary computer (also called a trinary computer) is one that uses ternary logic (i.e., base 3) instead of the more common binary system (i.e., base 2) in its calculations. This means it uses trits instead of bits, as most computers do. The significant concern is to provide low-cost, robust, high-density, reliable, and energy-efficient memory technologies through designing multi-valued quantum-based RAM. One early calculating machine, built entirely from wood by Thomas Fowler in 1840, operated in balanced ternary. The first modern, electronic ternary computer, Setun, was built in 1958 in the Soviet Union at the Moscow State University by Nikolay Brusentsov, and it had notable advantages over the binary computers that eventually replaced it, such as lower electricity consumption and lower production cost. In 1970 Brusentsov built an enhanced version of the computer, which he called Setun-70. In the United States, the ternary computing emulator Ternac working on a binary machine was developed in 1973. The ternary computer QTC-1 was developed in Canada. Multi-Valued Quantum computing has the features of parallel processing and fast processing capabilities that make it special from other conventional computing systems. Unlike conventional memory, which stores information as ternary states (represented by “|2>”s, “|1>”s and “|0>”s). MQRAM is an abbreviation for Multi-Valued Quantum Random Access Memory. It refers to computer memory chips that hold permanent or semi-permanent data and incorporate both the multi-valued quantum decoder and multi-valued quantum OR operations onto a single integrated circuit (IC). The contents of multi-valued quantum ROM are non-volatile; even if the computer is turned off, the contents of multi-valued quantum ROM persist. To update the programming in multi-valued Quantum ROM, these chips have to be physically removed and replaced. Data saved in quantum ROM cannot be electrically changed once the memory device is manufactured. A block diagram of a multi-valued ROM is shown in Figure 5.1.
Multiple-Valued Quantum Random Access Memory
217
FIGURE 5.1 3k -to-n RAM Block Diagram It consists of k input lines and n output lines. Each bit combinations of the input variables is called an address. Each bit combination that comes out of the output lines is called a word. The number of bits per word is equal to the number of output lines n. An address is essentially a ternary number that denotes one of the minterms of k variables. Initially, the multi-valued quantum RAM is a combinational circuit with multivalued quantum AND operations connected as a multi-valued quantum decoder, multi-valued qubit cells and a number of multi-valued quantum OR operations to the outputs in the unit. With k address lines and n output lines in RAM, the output functions will calculate through the sum of minterms. The number of distinct addresses possible with k input variables is 3k . An output word can be selected by a unique address, and since there are 3k distinct addresses in a multi-valued RAM, there are 3k distinct words that are said to be stored in the unit. The word available at the output lines at any given time depends on the address value applied to the input lines. Therefore, A RAM is characterized by the number of words 3k and the number of bits per word n. For input, k=2 and output, n=1 the RAM circuit will be called 9-to-1 multi-valued quantum RAM.
218
5.2.1
Multiple-Valued Quantum Memory Devices
Basic Definitions
For memory size, this is referred to as a 3∧k-to-n memory. There are k address lines, which can specify one of the 3∧k addresses. Each address contains an n-bit word. For example, a 3∧2 x 1 RAM contains 3∧2 = 9 words, each 1 bit long. – The RAM would need 2 address lines. – The total storage capacity is 3∧2 x 3∧0 = 3∧2 bits. Many operating systems implement virtual memory, which makes the memory seem larger than it really is. – Most systems allow up to 32-bit addresses. This works out to 232, or about four billion, different possible addresses. – With a data size of one byte, the result is a 4GB memory! – The operating system uses hard disk space as a substitute for “real” memory. Reading RAM To read from this RAM, the controlling circuit must: – Enable the chip by ensuring CS = 1. – Select the read operation, by setting WR = 0. – Send the desired address to the ADRS input. – The contents of that address appear on OUT after a little while. 50 MHz CPU – 20 ns clock cycle time Memory access time= 65 ns Maximum time from the application of the address to the appearance of the data at the Data Output. Writing RAM To write to this RAM, it needs to: – Enable the chip by setting CS = 1. – Select the write operation, by setting WR = 1. – Send the desired address to the ADRS input. – Send the word to store to the DATA input. The output OUT is not needed for memory write operations.
5.2.2
Block Diagram
Consider a multi-valued quantum 9-to-1 RAM general organization of block diagram (Figure 5.2), the unit consists of 9 words of 2 input sequence (|A> = |0> or |1> or |2> and |B> = |0> or |1> or |2>) each. This implies there are a single output line (|Z1>) and 9 distinct word sequences stored in the unit, each of which may be applied to the output lines. The particular word selected that is presently available on the output line is determined from the 1 input line. There are only 3 input sequences in multi-valued DNA 9-to-1 RAM because 3∧2=9 and with 3 sequence variables, 9 addresses or minterms can be specified.
5.2.3
Architecture of Basic Components
RAM consists of three basic components- Decoder, Molecular qubit Cells, and OR gates. To execute DNA 9-to-1 RAM operation, one 2-to-9 quantum Decoder, and
219
Multiple-Valued Quantum Random Access Memory
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Qubit Cell FIGURE 5.2 Block Diagram of Multi-Valued Quantum 9-to-1 RAM Multi-Valued Qubit Cells and Multi-Valued Quantum OR operations for corresponding minterms are required. 5.2.3.1
Multi-Valued Quantum 2-to-9 Decoder
Multi-Valued Quantum 2-to-9 decoder is a combinational logic circuit which is designed by using two Multi-Valued 1-to-3 Quantum decoders and nine multi-valued Quantum AND (D0-D8) operations (Figure 5.3). The multi-valued 2-to-9 Quantum decoder operation is performed the two input DNA sequences and each of three states, the combinations are shown in Table 5.1. From these combinations, the corresponding multi-valued AND operation outputs are the minimum of input sequence states. Ternary logic functions are those functions which have significance if a third value is acquainted with the binary logic. Thus |0>, |1> and |2> denote the ternary levels for basic logic gates to represent sequence as “0”, “1” and “2” respectively. For multi-valued Quantum 2-to-9 decoder 9 output sequences, |D0> to |D8> and two input sequences |A>, |B>.
220
Multiple-Valued Quantum Memory Devices A0 A1 A2 B0 B1 B2
Multi-Valued
Quantum 1-to-3 Decoder
Quantum 1-to-3 Decoder
Multi-Valued Quantum AND Operations FIGURE 5.3 Multi-Valued Quantum 2-to-9 Decoder TABLE 5.1 Truth Table of Quantum 2-to-9 Decoder |A> |0> |0> |0> |1> |1> |1> |2> |2> |2>
|B> |0> |1> |2> |0> |1> |2> |0> |1> |2>
|D8> |0> |0> |0> |0> |0> |0> |0> |0> |2>
|D7> |0> |0> |0> |0> |0> |0> |0> |2> |0>
|D6> |0> |0> |0> |0> |0> |0> |2> |0> |0>
|D5> |0> |0> |0> |0> |0> |2> |0> |0> |0>
|D4> |0> |0> |0> |0> |2> |0> |0> |0> |0>
|D3> |0> |0> |0> |2> |0> |0> |0> |0> |0>
|D2> |0> |0> |2> |0> |0> |0> |0> |0> |0>
|D1> |0> |2> |0> |0> |0> |0> |0> |0> |0>
|D0> |2> |0> |0> |0> |0> |0> |0> |0> |0>
Multiple-Valued Quantum Random Access Memory
221
[i] For input sequences |A>, |B> = |0>, |0>, the multi-valued 1-to-3 decoder will perform (|A0> && |B0>) and the |D0> line will be open. So the output qubit of |D0> = |2> and rest of the lines |D1> to |D8> will remain closed |0>. [ii] For input sequences |A>, |B> = |0>, |1>, the multi-valued 1-to-3 decoder will perform (|A0> && |B1>) and the |D1> line will be open. So the output sequence of |D1> = |2> and rest of the lines |D0>, |D2> to |D8> will remain closed|0>. [iii] For input sequences |A>, |B> = |0>, |2>, the multi-valued 1-to-3 decoder will perform (|A0> && |B2>) and the |D2> line will be open. So the output sequence of |D2> = |2> and rest of the lines |D0>, |D1> and |D3> to |D8> will remain closed |0>. [iv] For input sequences |A>, |B> = |1>, |0>, the multi-valued 1-to-3 decoder will perform (|A1> && |B0>) and the |D3> line will be open. So the output sequence of |D3> = |2> and rest of the lines |D0> to |D2> and |D4> to |D8> will remain closed |0>. [v] For input sequences |A>, |B> = |1>, |1> the multi-valued 1-to-3 decoder will perform (|A1> && |B1>) and the |D4> line will be open. So the output sequence of |D4> = |2> and rest of the lines |D0> to |D3> and |D5> to |D8> will remain closed |0>. [vi] For input sequences |A>, |B> = |1>, |2>, the multi-valued 1-to-3 decoder will perform (|A1> && |B2>) and the |D5> line will be open. So the output sequence of |D5> = |2> and rest of the lines |D0> to |D4> and |D6> to |D8> will remain closed |0>. [vii] For input sequences A, B= |2>, |0>, the multi-valued 1-to-3 decoder will perform (|A2> && |B0>) and the |D6> line will be open. So the output sequence of |D6> = |2> and rest of the lines |D0> to |D5> and |D7> to |D8> will remain closed |0>. [viii] For input sequences |A>, |B> = |2>, |1>, the multi-valued 1-to-3 decoder will perform (|A2> && |B1>) and the |D7> line will be open. So the output sequence of |D7> = |2> and rest of the lines |D0> to |D6> and |D8> will remain closed |0>. [ix] For input sequences |A>, |B> = |2>, |2>, the multi-valued 1-to-3 decoder will perform (|A2> && |B2>) and the |D8> line will be open. So the output sequence of |D8> = |2> and rest of the lines |D0> to |D7> will remain closed |0>. 5.2.3.2
Multi-Valued Qubit Cell
The fundamental design of this Molecular cell is based on the R-S flip-flop (Figure 5.4). To begin with, the molecular cell has three inputs and a single output. The
222
|Input>
Multi-Valued Qubit Cell
|select>
|R/W>
Multiple-Valued Quantum Memory Devices
Multi-Valued Quantum Multi-Valued Quantum Multi-Valued Quantum R-S Multi-Valued Quantum NOT Operations AND Operations AND Operations Filp Flop Operations
FIGURE 5.4 Single Multi-Valued Qubit Cell inputs are labeled “Select”, “R/W”, and “Input”. The output line is labeled “|Q0>”. To perform the qubit cell output, two quantum NOT, six quantum AND and two quantum NOR operations are needed to perform. Step 1: First draw three input sequences Input, R/W and Select. Two possible states for a sequence are the states “|0>” false, and “|2>” true. Step 2: Draw Quantum NOT operation with the Input and R/W sequences. Step 3: Each Quantum AND gate is with three inputs. So two inputs are taken (NOT Input and Select) to one AND gate input and the output of this gate will go to another AND gate with input sequence R/W as input. Step 4: Again, each Quantum AND gate is with three inputs. So two inputs (Input and Select) are taken to one AND gate input and the output of this gate will go to another AND gate with input sequence R/W as input. Step 5: The outputs of step 3 and 4 will go to the R-S flip-flop as input. Step 6: Finally, the output of RS flip-flop and select will go to a Quantum AND gate, then this output with NOT of R/W will go through another Quantum AND gate to produce desired qubit cell output. In a sequential device as simple as an R-S flip-flop, it could be used to remember one bit of data. To develop a complete memory cell, called a sequence cell, it needs to be based on the flip-flop. The number of total qubit cells per word will be m × n where m represents words with n bits. The “select” input is used to access the cell,
223
Multiple-Valued Quantum Random Access Memory
either for reading or writing also used to access any one sequence cell when there is more than one sequence cell. When the select line is high or |0> then the cell performs the memory operation. But when the select line of the DNA cell is low or |2> then the cell is not interested to perform a read from or written to. The next input sequence is “R/W” where a system clock will conduct this input. If the clock value on the read/write line is |2>, this will signify “read” and when it is |0>, it will perform the “write” phase. When such a cell is selected and in “read” mode, the current value of its underlying flip-flop will be transferred to the cell’s output line. When the cell is selected and in “write” mode, an input data signal will determine the value remembered by the flip-flop. Let’s consider the cell that has been selected. In that case, if the clock value is |2> then the cell contents are to be read and this time the output value will depend only on the P value of the flip flop. But if P is low, the cell output will be |2> and if P is high, the cell output will be |0>. It occurs because the DNA AND gate added to the cell’s output which has three input-negated R/W, Select, and P; and both “negated R/W” and “Select are currently high |0>. To perform the quantum 9-to-1 RAM, four selection lines are needed to select four quantum qubit cells. The output of quantum 2-to-9 decoder with nine output qubits will perform as selection input qubit of qubit cells as |Select>. Figure 5.5 shows the multi-valued 9-qubit cells to perform qubit cell output qubits from |Q0> to |Q8> for further minterms OR operation. 5.2.3.3
Multi-Valued Quantum OR operations
In a Ternary Quantum OR operation, using two inputs and one output is obtained. The higher logical sequence value from the input sequences is considered as the output of Ternary quantum OR operations and when the input sequences have the same logical value then one of them is considered as the output. Table 5.2 shows the ternary quantum OR operation truth table and Figure 5.6 shows the Ternary quantum OR operation. Ternary OR function is also similar to the Binary “MAXIMUM OF” function. The following equation helps to get the OR gate output for the ternary inputs. yOR = max(x, y)
TABLE 5.2 Truth Table of Multi-Valued Quantum OR Operation |A>+|B> A
|0> |1> |2>
|0> |0> |1> |2>
|B> |1> |1> |1> |2>
|2> |2> |2> |2>
224
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
FIGURE 5.5 Multi-Valued Qubit Cells
Multiple-Valued Quantum Memory Devices
Multiple-Valued Quantum Random Access Memory
225
FIGURE 5.6 Multi-Valued Quantum OR operations [i] A= |0> and B = |0>, though the logical value of A and B are the same so after doing ternary DNA OR operation the output is |0>. In this way, when the value of A and B is |2> then the output is also |2>, when the value of A and B is |1> then the output is also |1>. [ii] A= |2> and B= |1>, then the logical value of B is less than the logical value of A, So the output result is |2>. When A= |1> and B= |0>, then the logical value of B is less than the logical value of A, So the result is |1>. A= |2> and B= |0>, then the logical value of B is less than the logical value of A, so the output result is |2>. [iii] B= |2> and A= |1>, then the logical value of A is less than the logical value of B, So the output result is |2>. When B= |1> and A= |0>, then the logical value of A is less than the logical value of B, So the result is |1>. B= |2> and A= |0>, then the logical value of A is less than the logical value of B, So the output result is |2>. Figure 5.7 depicts the the multi-valued quantum OR operations in quantum 4-to-1 RAM. To perform output Z1 of multi-valued quantum 9-to-1 RAM, the quantum decoder output sequences will go through qubit cells as selection sequences to operate
226
Multiple-Valued Quantum Memory Devices
|Q3> |Q4>
|Q5> |Q6>
|Q9>
|Q7> |Q8>
Multi-Valued Quantum OR Operations
|Q1>|Q2>
|Q1>
|Q2>
|Q3>
|Q4>
|Q5>
|Q6>
|Q7>
|Q8>
|Q9>
FIGURE 5.7 Multi-Valued Quantum OR Operations in Quantum 4-to-1 RAM in the sum of minterms form, |Z1> = |Q7>,|Q8>).
5.2.4
P
(|Q0>, |Q1>, |Q2>, |Q3>,|Q4>, |Q5>, |Q6>,
Circuit Architecture of Multiple-Valued Quantum RAM Memory
For the circuit architecture of Multi-Valued Quantum 9-to-1 RAM (Figure 5.8), a 2to-9 ternary decoder is needed which is designed by using two Multi-Valued 1-to-3 Quantum decoders to get the output of nine Quantum ternary RAM cells operations. Finally, the multi-valued 9-ternary RAM cells perform qubit cell output qubits from |Q0> to |Q8> for further minterms ternary OR operation to perform desired outputs. Figure 5.8 represents the implementation of 9-to-1 multi-valued quantum RAM. This quantum RAM consists of 9 separate “Words” of memory and each is 1 sequence wide. The quantum RAM Cell has three inputs and one output. Nine words of memory need two address lines. A and B are the two-sequence address lines input that goes through a multi-valued quantum 2-to-9 decoder that selects one of the nine words. The memory-enabled input enables the decoder. If the memory enables is |2>,
227
Qubit Cell
Multi-Valued Qubit Cell
Quantum 2-to-9 Decoder Multi-Valued
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Qubit Cell
Multi-Valued Quantum OR Operations
Multiple-Valued Quantum Random Access Memory
FIGURE 5.8 Circuit Architecture of Multi-Valued Quantum 9-to-1 RAM all output of the decoder will be |2> and in that case, none of the memory addresses will be selected. But when the memory enables is |0> then one of the nine words is
228
Multiple-Valued Quantum Memory Devices TABLE 5.3 Control Input to Memory Chip R/W X |0> |2>
Memory Operation None Write to the selected word Read from the selected word
selected. The word is selected by the value in the two address lines. When a word has been selected, the read/write input determines the operation. During the read operation, the nine sequences of the selected word pass to the multi-valued quantum OR gates to the output |Z1> terminals. But during the write operation, the data which is available in the input lines are transferred into the multi-valued quantum RAM cells of the selected word. The quantum RAM cells that are not selected become disabled and their previous sequence never changes. But when the memory enable input that passes into the decoder is equal to |2>, none of the words are selected, and then all RAM cells remain unchanged regardless of the value of the read/ write input. Table 5.3 shows the control input to memory chip.
5.3
Multiple-Valued Quantum Read-Only Memory
A ternary computer (also called a trinary computer) is one that uses ternary logic (i.e., base 3) instead of the more common binary system (i.e., base 2) in its calculations. This means it uses trits instead of bits, as most computers do. The significant concern is to provide low-cost, robust, high-density, reliable, and energy-efficient memory technologies through designing multi-valued quantum-based ROM. One early calculating machine, built entirely from wood by Thomas Fowler in 1840, operated in balanced ternary. The first modern, electronic ternary computer, Setun, was built in 1958 in the Soviet Union at the Moscow State University by Nikolay Brusentsov, and it had notable advantages over the binary computers that eventually replaced it, such as lower electricity consumption and lower production cost. In 1970 Brusentsov built an enhanced version of the computer, which he called Setun-70. In the United States, the ternary computing emulator Ternac working on a binary machine was developed in 1973. The ternary computer QTC-1 was developed in Canada. Multi-Valued Quantum computing has the features of parallel processing and fast processing capabilities that make it special from other conventional computing systems. Unlike conventional memory, which stores information as ternary states (represented by “|2>”s, “|1>”s and “|0>”s). MQROM is an abbreviation for Multi-Valued Quantum Read-Only Memory. It refers to computer memory chips that hold permanent or semi-permanent data and incorporate both the multi-valued quantum decoder and multi-valued quantum OR operations onto a single integrated circuit (IC). The contents of multi-valued quantum
Multiple-Valued Quantum Read-Only Memory
229
FIGURE 5.9 Block Diagram of 3k -to-n ROM ROM are non-volatile; even if the computer is turned off, the contents of multi-valued quantum ROM persist. To update the programming in multi-valued Quantum ROM, these chips have to be physically removed and replaced. Data saved in quantum ROM cannot be electrically changed once the memory device is manufactured. A block diagram of a multi-valued ROM is shown in Figure 5.9. It consists of k input lines and n output lines. Each bit combination of the input variables is called an address. Each bit combination that comes out of the output lines is called a word. The number of bits per word is equal to the number of output lines n. An address is essentially a ternary number that denotes one of the minterms of k variables. Initially, the multi-valued quantum ROM is a combinational circuit with multivalued quantum AND operations connected as a multi-valued quantum decoder and a number of multi-valued quantum OR gates equal to the outputs in the unit. With k input lines and n output lines in ROM, the output functions will calculate through the sum of minterms form. The number of distinct addresses possible with k input variables is 3k . An output word can be selected by a unique address, and since there are 3k distinct addresses in a multi-valued ROM, there are 3k distinct words that are said to be stored in the unit. The word available at the output lines at any given time depends on the address value applied to the input lines. Therefore, a ROM is characterized by the number of words 3k and the number of bits per word n. For input, k=2 and output, n=2 the ROM circuit will be called 9-to-2 multi-valued quantum P ROM and the function output |F1> and |F2> in sum of minterms form, (0, 1, 2, 3, 4, 5, 6, 7, 8).
5.3.1
Basic Definitions
It is easy to see that the following rules, concerning memory parameters, hold on growing memory volume makes the memory cost per bit of stored information decreased, lower access time makes the memory cost per bit increased, growing
230
Multiple-Valued Quantum Memory Devices
memory volume frequently corresponds to larger access time. The most important parameters of memory are: 1. Memory capacity or memory volume is the number of locations that exist in a given memory. Memory capacity is measured in bits, bytes, or words. When words are used, the length of a word in bits or bytes has to be given. 2. Memory access time is the time that separates sending a memory access request and the reception of the requested information. The access time determines the unitary speed of memory (the reception time of unitary data). The access time is small for fast memories. 3. Memory cycle time is the shortest time that has to elapse between consecutive access requests to the same memory location. The memory cycle time is another parameter that characterizes the overall speed of the memory. The speed is big when the cycle time is small. 4. Memory transfer rate is the speed of reading or writing data in the given memory, measured in bits/sec or bytes/sec.
5.3.2
Block Diagram of Multiple-Valued Quantum Read-Only Memory
Consider a multi-valued quantum 9-to-2 ROM general organization of block diagram (Figure 14.2), the unit consists of 9 words of 2 input sequence (|A> = |0> or |1> or |2> and |B> = |0> or |1> or |2>) each. This implies there are 2 output lines (|F1> and |F2>) and 9 distinct words sequences stored in the unit, each of which may be applied to the output lines. Figure 5.10 shows the block diagram of multi-valued Quantum 9-to-2 ROM. The particular word selected that is presently available on the output line is determined from the 2 input lines. There are only 3 input sequences in multi-valued DNA 9-to-2 ROM because 3∧2=9 and with 3 sequence variables, 9 addresses or minterms can be specified. To perform minterms of nine addresses, a multi-valued quantum 2-to-9 decoder and multi-valued quantum OR operations are required.
5.3.3
Circuit Architecture of Multiple-Valued Quantum ROM
For the circuit architecture of Multi-Valued Quantum 9-to-2 ROM (Figure 5.11), a 2-to-9 ternary decoder is needed which is designed by using two Multi-Valued 1to-3 Quantum decoders to get the output of nine Quantum ternary AND operations. Finally, the multi-valued 2-to-9-ternary decoder performs further minterms ternary OR operation to perform desired outputs. In this 9-to-2 multi-valued DNA based ROM, two inputs DNA sequences A and B with three states |A> (|0>, |1>, |2>) and |B> (|0>, |1>, |2>) and two output functions |F1> and |F2>. Input lines are 2 so with the ternary logic, it will produce 3∧2 = 9 address lines and two output function lines are data lines of multi-valued ROM.
231
Multiple-Valued Quantum Read-Only Memory
Multi-Valued Multi-Valued
FIGURE 5.10 Block Diagram of Multi-Valued Quantum 9-to-2 ROM That’s why it is called 9-to-2 multi-valued ROM. Thus it will perform with quantum qubits so it is called Quantum multi-valued ROM. 5.3.3.1
Design Procedure of Multiple-Valued Quantum ROM
Step 1: First draw two input qubits |A> and |B>. Three possible states for input qubits are the states |0>, |1>, |2>. These 3 will produce 9 combinations of 2 input qubits. Step 2: For each input qubit, a ternary 1-to-3 quantum decoder is needed for the selection of input qubit values combinations. For example, if any input qubit is |A> then three values can be performed as |A0>, |A1> and |A2>. So the ternary decoder will select combinations from the values of inputs qubits. Step 3: After performing the two ternary 1-to-3 quantum decoder operations for input A and B, |A0>, |A1>, |A2> and |B0>, |B1>, |B2> will be found. Step 4: With each input value of step 3, it is needed to perform AND operations that will produce 9 combinations of 2 input sequences and enable anyone output line.
Multiple-Valued Quantum Memory Devices
Quantum 2-to-9 Decoder
Multi-Valued Quantum OR Operations
232
FIGURE 5.11 Multi-Valued 9-to-2 Quantum ROM
233
Multiple-Valued Quantum Read-Only Memory
Step 5: From each combination of ternary AND operations in Step 4, perform multivalued quantum OR operations with (|D0>, |D1>), (|D2>, |D3>), (|D4>, |D5>), (|D6>, |D7>). Step 6: From each outputs sequences of Step 5, again combine them with multi-valued quantum OR operations, (|D0>, |D1>, |D2>, |D3>), (|D4>, |D5>, |D6>, |D7>). Step 7: From each outputs sequences of Step 6, again combine them with multi-valued quantum OR operations as (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>). Step 8: Finally, perform multi-valued quantum OR operations with |D8> and the output of step 7 to produce desired multi-valued 9-to-2 quantum ROM for output functions |F1> and |F2>. 5.3.3.2
Working Principle
Table 5.4 shows the truth table of DNA 9-to-2 ROM where inputs are |A> and |B>. |F1> and |F2> are the outputs. The working principle are described a according to the truth table. [1] For input sequences |A>, |B>= |0>, |0> |A>= |A0>, |A1>, |A2> =|2>, |0>, |0> and |B> = |B0>, |B1>, |B2>= |2>, |0>, |0>. With this input combinations, only input |A0> and |B0> is true. Thus the |A0> and |B0> are connected to output line |D0> so only the |D0> will |2> and rest of the gates will produce |0>. To perform 9-to-2 multi-valued DNA ROM functions outputs, [i] For input qubits |D0>, |D1> = |2>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |2>.
TABLE 5.4 Truth Table of Quantum 9to-2 ROM |A> |0> |0> |0> |1> |1> |1> |2> |2> |2>
|B> |0> |1> |2> |0> |1> |2> |0> |1> |2>
|F1> |2> |2> |2> |2> |2> |2> |2> |2> |2>
|F2> |2> |2> |2> |2> |2> |2> |2> |2> |2>
234
Multiple-Valued Quantum Memory Devices
[ii] For input qubits |D2>, |D3> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [iii] For input qubits |D4>, |D5> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [iv] For input qubits |D6>, |D7> = |0>, |0> the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [v] Combine the output qubits |2>, |0> from [i] and [ii] respectively as input qubits, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |2>. [vi] Combine the output qubits |0>, |0>from [iii] and [iv] respectively as input qubits, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [vii] Combine the output qubits |2>, |0> from [v] and [vi] respectively as input qubits, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |2>. [viii] Finally, Combine the output qubits |2> from [vii] and |D8> (|0>) as input qubit, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |2> for the both functions output |F1> and |F2> multi-valued 9-to-2 Quantum ROM.
[2] For input sequences |A>, |B>= |0>, |1> |A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B> = |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A0> and |B1> is true. Thus the |A0> and |B1> are connected to output line |D1> so only the |D1> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |2>, |0>, |0>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
[3] For input sequences |A>, |B>= |0>, |2> |A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A0> and |B2> is true. Thus the |A0> and
Multiple-Valued Quantum Read-Only Memory
235
|B2> are connected to output line |D2> so only the D2 will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |2>, |0>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
[4] For input sequences |A>, |B>= |1>, |0> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A1> and |B0> is true. Thus the |A1> and |B0> are connected to output line |D3> so only the |D3> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |2>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
[5] For input sequences |A>, |B>= |1>, |1> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A1> and |B1> is true. Thus the |A1> and |B1> are connected to output line |D4> so only the |D4> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |2>, |0>, |0>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
[6] For input sequences |A>, |B>= |1>, |2> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A1> and |B2> is true. Thus the |A1> and |B2> are connected to output line |D5> so only the |D5> will |2> and rest of the gates will produce |0>.
236
Multiple-Valued Quantum Memory Devices
For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |2>, |0>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
[7] For input sequences |A>, |B>= |2>, |0> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A2> and |B0> is true. Thus the |A2> and |B0> are connected to output line |D6> so only the |D6> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |2>, |0>, |0>) = |2> will produce as the functions outputs |F1> and |F2>of multi-valued 9-to-2 Quantum ROM.
[8] For input sequences |A>, |B>= |2>, |1> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A2> and |B1> is true. Thus the |A2> and |B1> are connected to output line |D7> so only the |D7> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |0>, |2>, |0>) = |2> will produce as the functions outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM. [9] For input sequences |A>, |B>= |2>, |2>, |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A2> and |B2> is true. Thus the |A2> and |B2> are connected to output line |D8> so only the |D8> will |2> and rest of the gates will produce |0>. For Functions |F1> and |F2>, perform OR operations among all decoder (|D0>|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |0>, |0>, |2>) = |2> will produce as the function’s outputs |F1> and |F2> of multi-valued 9-to-2 Quantum ROM.
Multiple-Valued Quantum Programmable Read-Only Memory
5.4
237
Multiple-Valued Quantum Programmable Read-Only Memory
Multi-Valued Quantum computing has the features of parallel processing and fast processing capabilities that make it special from other conventional computing systems. Unlike conventional memory, which stores information as ternary states (represented by “|2>”s, “|1>”s and “|0>”s). MQPROM is an abbreviation for Multi-Valued Quantum Programmable Read-Only Memory. It refers to computer memory chips that hold permanent or semi-permanent data and incorporate both the multi-valued quantum decoder and multi-valued quantum OR operations onto a single integrated circuit (IC). The contents of multi-valued quantum PROM are non-volatile; even if the computer is turned off, the contents of multi-valued quantum PROM persist. A block diagram of a multi-valued PROM is shown in Figure 5.12. It consists of k input lines and n output lines. Each bit combination of the input variables is called an address. Initially, the multi-valued quantum PROM is a combinational circuit with multivalued quantum AND operations connected as a multi-valued quantum decoder and several multi-valued quantum OR gates equal to the outputs in the unit. With k input lines and n output lines in PROM, the output functions will calculate through the sum of minterms form. The number of distinct addresses possible with k input variables is 3∧k. An output word can be selected by a unique address, and since there are 3∧k distinct addresses in a multi-valued PROM, there are 3∧k distinct words that are said to be stored in the unit. The word available at the output lines at any given
FIGURE 5.12 Block Diagram of 3k -to-n PROM
238
Multiple-Valued Quantum Memory Devices
time depends on the address value applied to the input lines. Therefore, A ROM is characterized by the number of words 3∧k and the number of bits per word n. For input, k=2 and output, n=2 the PROM circuit will be called 9-to-2 multi-valued P quantum PROM, and the function output |F1> is in the sum of minterms form, (0, P 1, 2, 3) and |F2> is in the sum of minterms form, (4, 5, 6, 7, 8).
5.4.1
Basic Definitions
PROM is sometimes considered in the same category of the circuit as programmable logic, although in this text, PROM is discussed only in the memory category. Since the PROM architecture reaches its limits when many inputs are linked to many outputs, the PLD architecture, Programmable Logic Device (PLD), provides a more flexible concept. 1. Possible to write data or program only once. However, once it is written, it can be read any number of times 2. A PROM chip is used mainly in the start-up process of a modern computer 3. A PROM, non-volatile memory stores only several megabytes (MB) of data, up to 4 MB or more per chip. A random memory enables unrestricted space and time access to any location at any address in the address space. The access is possible independently of the order of all previous accesses. The access can take place to addresses in any order. Each location in a random access memory has independent hardware circuits that provide the access. These circuits are activated as a result of address decoding. To such memories belong semiconductor memories of the ROM types. It is possible to distinguish different parameters which determine the properties of different kinds of memories. The most important parameters are Memory capacity, Memory access time, Memory cycle time, and Memory transfer rate.
5.4.2
Block Diagram
Consider a multi-valued quantum 9-to-2 PROM, general organization of block diagram (Figure 5.13), the unit consists of 9 words of 2 input sequence (|A> = |0> or |1> or |2> and |B> = |0> or |1> or |2>) each. This implies there are 2 output lines (|F1> and |F2>) and 9 distinct word sequences stored in the unit, each of which may be applied to the output lines.
5.4.3
Circuit Architecture of Multiple-Valued Quantum PROM
For the circuit architecture of Multi-Valued Quantum 9-to-2 PROM , a 2-to-9 ternary decoder is needed which is designed by using two Multi-Valued 1-to-3 Quantum decoders to get the output of nine Quantum ternary AND operations. Finally, the multi-valued 2-to-9-ternary decoder performs further minterms ternary OR operation to perform desired outputs. Following given the design algorithms of multiple-valued
Multiple-Valued Quantum Programmable Read-Only Memory
239
Multi-Valued
Multi-Valued
Multi-Valued
FIGURE 5.13 Block Diagram of Multi-Valued Quantum 9-to-2 PROM Quantum 9-to-2 PROM Memory. The circuit architecture of multi-valued quantum PROM is shown in Figure 5.14. 5.4.3.1
Design Procedure of Multiple-Valued Quantum PROM
Step 1: First, draw two input qubits |A> and |B>. Three possible states for input qubits are the states |0>, |1>, |2>. These 3 will produce 9 combinations of 2 input qubits. Step 2: For each input qubit, a ternary 1-to-3 quantum decoder is needed for the selection of input qubit values combinations. For example, if any input qubit is |A> then three values can be performed as |A0>, |A1>, and |A2>. So the ternary decoder will select combinations from the values of inputs qubits. Step 3: After performing the two ternary 1-to-3 quantum decoder operations for input A and B, then |A0>, |A1>, |A2> and |B0>, |B1>, |B2> will be found.
Multiple-Valued Quantum Memory Devices
Quantum 2-to-9 Decoder
Multi-Valued Quantum OR Operations
240
FIGURE 5.14 Multi-Valued 9-to-2 Quantum PROM
Multiple-Valued Quantum Programmable Read-Only Memory
241
Step 4: With each input value of step 3, it is needed to perform AND operations that will produce 9 combinations of 2 input sequences and enable anyone output line. Step 5: From each combination of ternary AND operations in Step 4, perform multivalued quantum OR operations with (|D0>, |D1>), (|D2>, |D3>), (|D4>, |D5>), (|D6>, |D7>). Step 6: From each output sequence of Step 5, again combine them with multi-valued DNA OR gates, (D0, D1, D2, and D3) to generate output function F1 of multi-valued 9-to-2 DNA PROM. Step 7: Again combine (D4, D5, D6, D7, and D8) to generate output function F2 of multi-valued 9-to-2 DNA PROM. 5.4.3.2
Working Principle of Multiple-Valued Quantum PROM
The Truth Table of Quantum 9-to-2 ROM is shown in Table 5.5. Here the inputs are |A> and |B>, outputs are |F1> and |F2>. [1] For input sequences |A>, |B>= |0>, |0> |A>= |A0>, |A1>, |A2> =|2>, |0>, |0> and |B> = |B0>, |B1>, |B2>= |2>, |0>, |0>. With this input combinations, only input |A0> and |B0> is true. Thus the |A0> and |B0> are connected to output line |D0> so only the |D0> will |2> and rest of the gates will produce |0>. To perform 9-to-2 multi-valued DNA ROM functions outputs,
TABLE 5.5 Truth Table of Quantum 9to-2 ROM |A> |0> |0> |0> |1> |1> |1> |2> |2> |2>
|B> |0> |1> |2> |0> |1> |2> |0> |1> |2>
|F1> |2> |2> |2> |2> |0> |0> |0> |0> |0>
|F2> |0> |0> |0> |0> |2> |2> |2> |2> |2>
242
Multiple-Valued Quantum Memory Devices
[i] For input qubits |D0>, |D1> = |2>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |2>. [ii] For input qubits |D2>, |D3> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [iii] For input qubits |D4>, |D5> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [iv] For input qubits |D6>, |D7> = |0>, |0> the multi-valued OR gates will perform maximum operations of input qubits. So the output qubit is |0>. [v] Combine the output sequences |2>, |0> from [i] and [ii] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [vi] Combine the output sequences |0> from [iii] and [iv] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [vii] Finally, Combine the output sequence |0> from [vii] and D8 (|0>) as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2> (v) for the function output |F1> and |0> (vii) for |F2> multi-valued 9-to-2 Quantum PROM. [2] For input sequences |A>, |B> = |0>, |1> |A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B> = |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A0> and |B1> is true. Thus the |A0> and |B1> are connected to output line |D1> so only the |D1> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |2>, |0>, |0) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 Quantum PROM. [3]For input sequences |A>, |B>= |0>, |2> |A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A0> and |B2> is true. Thus the |A0> and |B2> are connected to output line |D2> so only the D2 will |2> and rest of the gates will produce |0>.
Multiple-Valued Quantum Programmable Read-Only Memory
243
For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |2>, |0) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 Quantum PROM. [4] For input sequences |A>, |B>= |1>, |0> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A1> and |B0> is true. Thus the |A1> and |B0> are connected to output line |D3> so only the |D3> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |2) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 Quantum PROM. [5] For input sequences |A>, |B> = |1>, |1> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A1> and |B1> is true. Thus the |A1> and |B1> are connected to output line |D4> so only the |D4> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|2>, |0>, |0>, |0>, |0>) = |2> of multi-valued 9-to-2 Quantum PROM. [6] For input sequences |A>, |B>= |1>, |2> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A1> and |B2> is true. Thus the |A1> and |B2> are connected to output line |D5> so only the |D5> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |2>, |0>, |0>, |0>) = |2> of multi-valued 9-to-2 Quantum PROM. [7] For input sequences |A>, |B>= |2>, |0> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A2> and |B0> is true. Thus the |A2> and
244
Multiple-Valued Quantum Memory Devices
|B0> are connected to output line |D6> so only the |D6> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |2>, |0>, |0>) = |2> of multi-valued 9-to-2 Quantum PROM. [8] For input sequences |A>, |B>= |2>, |1> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A2> and |B1> is true. Thus the |A2> and |B1> are connected to output line |D7> so only the |D7> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |2>, |0>) = |2> of multi-valued 9-to-2 Quantum PROM.
[9] For input sequences |A>, |B> = |2>, |2>, |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A2> and |B2> is true. Thus the |A2> and |B2> are connected to output line |D8> so only the |D8> will |2> and rest of the gates will produce |0>. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |2>) = |2> of multi-valued 9-to-2 Quantum PROM.
5.5 Multiple-Valued Quantum Cache Memory The Cache memory is one of the fastest memories. Though it is costlier than the main memory but more useful than the registers. The Cache memory basically acts as a buffer between the main memory and the CPU. Moreover, it synchronizes with the speed of the CPU. Besides, it stores the data and instructions that the CPU
Multiple-Valued Quantum Cache Memory
245
uses more frequently so that it does not have to access the main memory again and again. Therefore, the average time to access the main memory decreases. It is placed between the main memory and the CPU. Moreover, for any data, the CPU first checks the Cache and then the main memory. There can be various levels of Cache memory, they are as follows: Level 1 (L1) or Registers It stores and accepts the data which is immediately stored in the CPU. For example, instruction register, Cache memory, Cache counter, accumulator, address register, etc. Level 2 (L2) or Cache Memory It is the fastest memory that stores data temporarily for fast access by the CPU. Moreover, it has the fastest access time. Level 3 (L3) or Main Memory It is the main memory where the computer stores all the current data. It is a volatile memory which means that it loses data on power OFF. Level 4 (L4) or Secondary Memory It is slow in terms of access time. But the data stays permanently in this memory. Hardware implements Cache as a block of memory for the temporary storage of data likely to be used again. Central processing units (CPUs) and hard disk drives (HDDs) frequently use a Cache, as do web browsers and web servers [18]. A Cache is made up of a pool of entries. Each entry has associated data, which is a copy of the same data in some backing store. Each entry also has a tag, which specifies the identity of the data in the backing store of which the entry is a copy. Tagging allows simultaneous Cache-oriented algorithms to function in a multilayered fashion without differential relay interference.
5.5.1 1.
Basic Definitions The CPU first checks any required data in the Cache. Furthermore, it does not access the main memory if that data is present in the Cache.
2. On the other hand, if the data is not present in the Cache then it accesses the main memory. 3. The block of words that the CPU accesses currently is transferred from the main memory to the Cache for quick access in the future. 4. The hit ratio defines the performance of the Cache memory.
5.5.2
Block Diagram
A 4-to-1 Cache memory chip has a memory capacity of 4 words of one bit per word. This requires a 9-bit address and a 1-bit bidirectional data bus. The 1-bit bidirectional
246
Multiple-Valued Quantum Memory Devices
data bus allows the transfer of data either from memory to CPU during a read operation or from CPU to memory during a write operation. The read and write inputs specify the memory operation, and the two chip select (CS) control inputs are for enabling the chip only when the microprocessor selects it. Figure 5.15 represents the Block Diagram of Quantum 9-to-1 Cache Memory. This quantum Cache memory consists of 9 separate “Words” of memory and each is single qubits wide.
5.5.3
Architecture of Basic Components
Cache memory consists of three basic components. To execute Quantum 9-to-1 Cache memory following operations are required. 1. A Quantum 2-to-9 Decoder 2. Multi-Valued RAM cells and 3. Quantum ternary OR operations for corresponding minterms. Quantum 2-to-9 Decoder and quantum ternary OR operation are discussed before.
5.5.3.1
Multi-Valued Quantum RAM Cell
Figure 5.16 depicts the quantum multi-valued single RAM Cell . The fundamental design of this qubit cell is based on the D flip-flop. To begin with, the cell has three inputs and a single output. The inputs are labeled “|Select>”, “|R/W>”, and “|Input>”. The output line is labeled “|output>”. To perform the Quantum Cache memory cell output, two quantum NOT, three Quantum AND and four Quantum NAND operations are required.
Step 1: First draw three input qubits |Input>, |R/W> and |Select>. Two possible states for a qubit are the states |0 > false, and |1> true. Step 2: Draw Quantum NOT operation with the |Input> and |R/W> qubits. Step 3: Two input qubits (|R/W> and |select>) will go through quantum AND operations. Step 4: Again, Two input qubits (NOT of |R/W> and |select>) will go through quantum AND operations. Step 5: The outputs of step 4 and NOT of qubit |input> will go to quantum NAND operations. Also, the outputs of step 4 and qubit |input> will go to another quantum NAND operations.
247
Multiple-Valued Quantum Cache Memory
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued RAM Cell
FIGURE 5.15 Block Diagram of Quantum 9-to-1 Cache Memory
Multi-Valued
248
Multiple-Valued Quantum Memory Devices
Step 6: The outputs of step 5 will go to the D flipflop as input. Step 7: Finally, D flipflop output and step 3 output qubit will go to a quantum AND operation, then this output with NOT of |R/W will go through another quantum AND operation to produce desired quantum cache memory |output> qubit. In a sequential device as simple as a D flip-flop it could be used to remember one bit of data. To develop a complete memory cell, called a qubit cell, it needs to be based on the flip-flop. The number of total quantum cells per word will be m × n where m represents words with n bits. The “|select>” input is used to access the cell, either for reading or writing also used to access anyone quantum RAM cell when there is more than one quantum RAM cell. When the select line is high or |1> then the cell performs the memory operation. But when the select line of the quantum RAM cell is low or |0> then the cell is not interested to perform a read from or written to. The next input qubit is “|R/W>” where a system clock will conduct this input. If the clock value on the read/write line is |0>, this will signify “read” and when it is |1>, it will perform the “write” phase. When such a cell is selected and in “read” mode, the current value of its underlying flip-flop will be transferred to the cell’s output line. When the cell is selected and in “write” mode, an input data signal will determine the value remembered by the flip-flop. Figure 5.17 shows the quantum multi-valued RAM cells. To perform the quantum 9-to-1 Cache memory, four selection lines are needed to design nine quantum RAM cells. The output of quantum 2-to-9 decoder with nine output qubits will perform as selection input qubit of quantum RAM cells. Figure 5.17 shows the 9 quantum RAM cells to perform |Q0> to |Q8> for further minterms operation.
5.5.4
Circuit Architecture of Multiple-Valued Quantum Cache Memory
For the circuit architecture of Multi-Valued Quantum 9-to-1 Cache, need a 2-to-9 ternary decoder which is designed by using two Multi-Valued 1-to-3 Quantum decoders to get the output of nine Quantum ternary RAM cells operations. Finally the multi-valued 9-ternary quantum RAM cells perform qubit cell output qubits from |Q0> to |Q8> for further minterms ternary OR operation to perform desired output. Following given the design algorithms of multiple-valued Quantum 9-to-1 Cache Memory. 5.5.4.1
Working Principle
Figure 5.18 represents the implementation of 9-to-1 qubit Cache memory. This quantum Cache memory consists of 9 separate “Words” of memory and each is
Quantum Quantum Quantum Quantum Ternary Ternary Ternary Ternary NAND AND NAND AND & NAND Operations Operations Operations Operations
Multiple-Valued Quantum Cache Memory
Multi-Valued RAM Cell
FIGURE 5.16 Quantum Multi-Valued Single RAM Cell
249
250
Multiple-Valued Quantum Memory Devices
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell FIGURE 5.17 Quantum Multi-Valued RAM Cells
Multiple-Valued Quantum Cache Memory
251
Multi-Valued Quantum Multi-Valued Quantum Multi-Valued Quantum OR Operations RAM Cell 2-to-9 Decoder FIGURE 5.18 Circuit Architecture of Quantum 9-to-1 Cache Memory
252
Multiple-Valued Quantum Memory Devices
1 qubit wide. The quantum Cache memory Cell has three inputs and one output. The complete circuit of a quantum Cache memory cell is described in figure 8 with proper explanation. A word consists of two quantum Cache memory cells arranged in such a way so that both qubits can be accessed simultaneously. Four words of memory need two address lines. |A> and |B> are the two-qubit address lines input that goes through a 2-to-9 decoder that selects one of the nine words. The memory-enabled input enables the decoder. If the memory enables is |0>, all output of the decoder will be |0> and in that case, none of the memory addresses will be selected. But when the memory enables is |2> then one of the nine words is selected. The word is selected by the value in the two address lines. When a word has been selected, the read/write input determines the operation. During the read operation, the nine qubits of the selected word pass to the quantum OR gates to the output |Z1> terminals. But during the write operation, the data which is available in the input lines are transferred into the four quantum cells of the selected word. The quantum Cache memory cells that are not selected have become disabled and their previous qubit never changes. But when the memory enable input that passes into the decoder is equal to |0>, none of the words are selected, and then all quantum cells remain unchanged regardless of the value of the read/ write input.
5.6 Summary This chapter has presented four types of memory devices in multi-valued quantum, DNA, quantum-DNA and DNA-quantum computing. The combination of quantum and DNA computing can be expressed as quantum molecular biology. DNA computing represents information by using DNA molecules, where a sequence of DNA molecules is data. Quantum molecular biology is two types of combinations; quantum-DNA and DNA-quantum computing. This chapter shows multi-valued memory devices in quantum molecular biology with a detailed description and their working principles. Necessary figures are also shown.
Bibliography [1] Gyongyosi, L., & Imre, S. (2019). A survey on quantum computing technology. Computer Science Review, 31, 51-71. [2] De Vos, A. (2011). Reversible Computing: Fundamentals, Quantum Computing, and Applications. John Wiley & Sons. [3] Steane, A. (1998). Quantum computing. Reports on Progress in Physics, 61(2), 117.
Summary
253
[4] Ac´ın, A., Bloch, I., Buhrman, H., Calarco, T., Eichler, C., Eisert, J., ... & Wilhelm, F. K. (2018). The quantum technologies roadmap: a European community view. New Journal of Physics, 20(8), 080201. [5] Huang, H. L., Wu, D., Fan, D., & Zhu, X. (2020). Superconducting quantum computing: a review. Science China Information Sciences, 63(8), 1-32. [6] H¨affner, H., Roos, C. F., & Blatt, R. (2008). Quantum computing with trapped ions. Physics Reports, 469(4), 155-203. [7] Munro, J. I., & Raman, V. (1996). Selection from read-only memory and sorting with minimum data movement. Theoretical Computer Science, 165(2), 311323. [8] Gill, S. S., Kumar, A., Singh, H., Singh, M., Kaur, K., Usman, M., & Buyya, R. (2022). Quantum computing: A taxonomy, systematic review and future directions. Software: Practice and Experience, 52(1), 66-114. [9] Perkowski, M. A. (2005). Multiple-valued quantum circuits and research challenges for logic design and computational intelligence communities. IEEE Connections, 3(4), 6-12. [10] Tymchenko, L., Petrovskiy, M., Kokryatskaya, N., Gubernatorov, V., & Kutaev, Y. (2013). Modeling of the high-performance PLD-based sectioning method for classification of the shape of optical object images. SpringerPlus, 2(1), 1-12. [11] Suh, G. E., Rudolph, L., & Devadas, S. (2004). Dynamic partitioning of shared cache memory. The Journal of Supercomputing, 28(1), 7-26. [12] Hill, M. D. (1987). Aspects of Cache Memory and Instruction Buffer Performance. University of California, Berkeley. [13] Hidaka, H., Matsuda, Y., Asakura, M., & Fujishima, K. (1990). The cache DRAM architecture: A DRAM with an on-chip cache memory. IEEE Micro, 10(2), 14-25.
6 Multiple-Valued DNA Memory Devices
6.1
Introduction
Human civilization went through paradigm shifts with new ways of storing and disseminating information. To survive in the complex and ever-changing environment, our ancestors created utensils out of wood, bone and stone, and used them as media for recording information. This was the beginning of human history. With the development of computer technology, the information age has revolutionized the global scene. Digital information stored in magnetic (floppy disks), optical (CDs) and electronic media (USB sticks) and transmitted through the internet promoted the explosion of next-generation science, technology and arts. With the total amount of worldwide data skyrocketing, traditional storage methods face daunting challenges. International Data Corporation forecasts that the global data storage demand will grow to 175 ZB or 1.75 × 1014 GB by 2025 (in this review, ‘B’ refers to Byte while ‘b’ refers to base pair). With the current storage media having a maximal density of 103 GB/mm3 , this will far exceed the storage capacity of any currently available storage method. Meanwhile, the costs of maintaining and transferring data, as well as limited lifespans and significant data losses, also call for novel solutions for information storage. On the other hand, since the very beginning of life on Earth, nature has solved this problem in its own way: it stores the information that defines the organism in unique orders of four bases (A, T, C, G) located in tiny molecules called deoxyribonucleic acid (DNA), and this way of storing information has continued for 3 billion years. DNA molecules as information carriers have many advantages over traditional storage media. Its high storage density, potentially low maintenance cost and other excellent characteristics make it an ideal alternative for information storage, and it is expected to provide wide practicality in the future.
DOI: 10.1201/9781003381921-6
255
256
6.2
Multiple-Valued DNA Memory Devices
Multiple-Valued DNA Random Access Memory
Sequential circuits all depend upon the presence of memory. – A flip-flop can store one bit of information. – A register can store a single “word,” typically 32-64 bits. Memory allows us to store even larger amounts of data. – Random Access Memory (RAM - volatile). Random-access memory, or RAM, provides large quantities of temporary storage in a computer system. Memory cells can be accessed to transfer information to or from any desired location, with the access taking the same time regardless of the location A RAM can store many values. An address will specify which memory value is needed and each value can be a multiple-bit word (e.g., 32 bits). A RAM should be able to: - Store many words, one per address - Read the word that was saved at a particular address - Change the word that’s saved at a particular address In multi-valued memory, the ternary logic function has inputs that can assume three states (say 0, 1 and 2) and generates one output signal that can have one of these three states. In ternary DNA computing, two DNA sequences are used as inputs and one DNA sequence is used as output. During ternary DNA computing, sequence ACCTAG is considered as “0”, sequence CAAGCT strands as “1” and TGGATC stands as “2”. In ternary DNA computing, the fluorescent level is used to detect the DNA sequence. Fluorescence is the temporary absorption of electromagnetic wavelengths from the visible light spectrum by fluorescent molecules, and the subsequent emission of light at a lower energy level. The block diagram of main interface to RAM is shown in Figure 6.1.
FIGURE 6.1 Block Diagram of Main Interface to RAM
Multiple-Valued DNA Random Access Memory
257
FIGURE 6.2 One-Bit RAM Cell This block diagram introduces the main interface to RAM. A Chip Select, CS, enables or disables the RAM. ADRS specifies the address or location to read from or write to. WR selects between reading from or writing to the memory. To read from memory, WR should be set to 0. OUT will be the n-bit value stored at ADRS. To write to memory, WR = 1 is set. DATA is the n-bit value to save in memory. To start, one latch is used to store each bit. A one-bit RAM cell is shown in Figure 6.2. Since this is just a one-bit memory, an ADRS input is not needed. Writing to the RAM cell: – When CS = 1 and WR = 1, the latch control input will be 1. – The DATA input is thus saved in the D latch. Reading from the RAM cell and maintaining the current contents: – When CS = 0 or when WR = 0, the latch control input is also 0, so the latch just maintains its present state. – The current latch content will appear on OUT when CS= 1. To make a 4 × 1 RAM, these cells can be used. Since there are four words, ADRS is two bits. Each word is only one bit, so DATA and OUT are one bit each. Word selection is done with a decoder attached to the CS inputs of the RAM cells. Only one cell can be read or written at a time. Notice that the outputs are connected together with a single line!
6.2.1
Block Diagram
Figure 6.3 shows the block diagram of a multi-valued DNA 9-to-1 RAM, the unit consists of 9 words of 2 input sequence (A = ACCTAG (0) CAAGCT (1) or TGGATC (2) and B = ACCTAG (0) CAAGCT (1) or TGGATC (2)) each.
258
Multiple-Valued DNA Memory Devices
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued Sequence Cell FIGURE 6.3 Block Diagram of Multi-Valued DNA 9-to-1 RAM This implies there are 2 output lines (F1 and F2) and 9 distinct word sequences stored in the unit, each of which may be applied to the output lines. The particular word selected that is presently available on the output line is determined from the 2 input lines. There are only 3 input sequences in multi-valued DNA 9-to-1 RAM because 3∧2=9 and with 3 sequence variables can specify 9 addresses or minterms.
259
Multiple-Valued DNA Random Access Memory
To perform minterms of nine addresses, a multi-valued DNA 2-to-9 decoder and multi-valued DNA OR operations are required.
6.2.2
Architecture of Basic Components
RAM consists of three basic components- Decoder, Molecular Cells and OR gates. To execute DNA 9-to-1 RAM operation: 1. A 2-to-9 DNA Decoder 2. Multi-Valued Sequence Cells and 3. DNA OR operations for corresponding minterms are required.
6.2.2.1
DNA 2-to-9 Decoder
Three DNA molecular sequences, TGGATC represents 2, CAAGCT represents 1 and ACCTAG represents 0. To perform the ternary 2-to-9 decoder, at first it is needed to know about the 1-to-3 decoder. The 1-to-3 decoder in the circuit generates unary functions for input variable x as x0, x1 and x2 which is used for ternary function implementation. Table 6.1 shows the truth table of ternary 1-to-3 Decoder and Figure 6.4 shows the circuit diagram of DNA Ternary Decoder. 6.2.2.1.1 Circuit Design of DNA 2-to-9 Decoder Multi-Valued DNA 2-to-9 decoder is a combinational logic circuit which is designed by using two Multi-Valued 1-to-3 DNA decoders and nine DNA AND (D0D8) operations (Figure 6.5). 6.2.2.1.2 Working Procedure of DNA 2-to-9 Decoder The multi-valued 2-to-9 DNA decoder operation is performed the two input DNA sequences and each of three states, the combination will be according to the Table 6.2. From these combinations, the corresponding multi-valued AND operation outputs are the minimum of input sequence states. Ternary logic functions are those TABLE 6.1 Ternary 1-to-3 Decoder A 0 1 2
A2 0 0 2
A1 0 2 0
A0 2 0 0
260
Multiple-Valued DNA Memory Devices
FIGURE 6.4 DNA Ternary Decoder functions which have significance if a third value is acquainted with the binary logic. Thus ACCTAG, CAAGCT and TGGATC denote the ternary levels for basic logic gates to represent sequence as “0”, “1” and “2” respectively. For multi-valued 2-to-9 decoder 9 outputs. D0, D1, D2, D3, D4, D5, D6, D7, D8, and two inputs A, B. [i] For input sequences, A, B= ACCTAG, ACCTAG, the multi-valued 1-to-3 decoder will perform A0 and B0 and the D0 line will be open. So the output sequence of D0 = TGGATC and the rest of the lines D1 to D8 will remain closed. [ii] For input sequences, A, B= ACCTAG, CAAGCT, the multi-valued 1-to-3 decoder will perform A0 and B1 and the D1 line will be open. So the output sequence of D1 = TGGATC and the rest of the lines D0, D2 to D8 will remain closed.
A ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
B ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
TABLE 6.2 DNA 2-to-9 Decoder
D8 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC
D7 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG
D6 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG
D5 ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG
D4 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG
D3 ACCTAG ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D1 ACCTAG TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
D0 TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
Multiple-Valued DNA Random Access Memory 261
262
Multiple-Valued DNA Memory Devices
Anneal will |2> and rest of the gates will produce |0>. For Functions F1 and F2, perform OR operations among all decoder (D0-D8) outputs. So, max (D0, D1, D2, D3, D4, D5, D6, D7, D8) = max (0,0,0,0,0,0,0,0,2) = 2
Multiple-Valued Quantum-DNA Programmable Read Only Memory
307
“TGGATC” will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 Quantum- DNA ROM.
7.4 Multiple-Valued Quantum-DNA Programmable Read Only Memory Multi-Valued Quantum computing and DNA computing are gaining attention as alternatives to classical digital computing systems. In this chapter, combined multiplevalued Quantum and DNA computing are discussed novel theoretical methods for designing different memory devices considering a binary logic system. The design of various memory devices includes multi-valued quantum and DNA logic operations and decoder for multi-valued Quantum-DNA 9-to-2 Read-only memory. Both multivalued DNA and Quantum computers have the potential to significantly affect traditional digital computers in terms of processing power and depot. Quantum computers are more powerful than traditional Turing machines computing because of their coherent superposition of states and biotechnology techniques can be used to evolve DNA computers. Both of these properties might be captured by integrating DNA and Quantum computing. Therefore, an integrated computing system as multiple-valued Quantum-to-DNA and vice versa for multi-valued 9-to-2 ROM memory is the main concern of this section.
7.4.1
Basic Definitions
For information processing and storing, bits are used as traditional computing systems, qubits in quantum computing, and sequences in DNA computing systems. Conventional computing use ternary codes: 0 or 1 or 2 to compute and store information. Quantum computing use multi-valued Qubits (|0>, |1> and |2>) for ternary system and multi-valued DNA Computing system use combination of A (Adenine), T (Thymine), C (Cytosine), G (Guanin) of 2-to-16 length Molecule sequences (ACCTAG = |0> CAAGCT =|1> TGGATC = |2>) to compute and store information. Initially, the qubit will perform as the input to combinational logic circuits in the proposed integrated multi-valued Quantum-DNA memory devices. These are used in initial logic circuits for faster calculation than sequences. To achieve a balance between these two computer systems, a storage device is required. Since multi-valued DNA computing provides us with additional storage capacity, the output portions of circuits will perform in multi-valued DNA computing. Therefore, it is needed to transform multi-valued Quantum qubits into multi-valued DNA sequences as a result, it is required to use a transformation mechanism by which an excited magnetic state returns to its equilibrium distribution. Multi-Valued quantum computing generates additional heat in circuits, which may be utilized to conduct multi-valued DNA logic
308
Multiple-Valued Quantum-DNA Memory Devices
operations in multi-valued DNA computing. Consequently, a heat transfer circuit between multi-valued Quantum and DNA processing is required. Thus the proposed designs will improve the result of any logic device for the ternary system rather than a conventional computing platform. Finally, the information flow of memory devices in Quantum-DNA will: Multi-Valued Quantum-> Multi-Valued Qubit Storage -> Multi-Valued Transformation -> Multi-Valued DNA.
7.4.2
General Organization of Multiple-Valued Quantum-DNA PROM
Input qubits |A> and |B> in multi-valued quantum computing operations, store the qubits in cache memory and transform those qubits to DNA sequences to form output F1 and F2 in multi-valued DNA computing operations. Figure 7.6 shows the general block diagram of Quantum-DNA 9-to-2 PROM.
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued
FIGURE 7.6 General Block Diagram of Quantum-DNA 9-to-2 PROM
Multi-Valued
Multiple-Valued Quantum-DNA Programmable Read Only Memory
7.4.3
309
Basic Components of Multiple-Valued Quantum-DNA PROM Memory
Multi-Valued PROM consists of two basic components- multi-valued Decoder and multi-valued OR operations. To execute Multiple-Valued Quantum-DNA 9-to-2 PROM following operations are required: 1. A Multi-Valued Quantum 2-to-9 Decoder 2. Multi-Valued Quantum Cache Memory 3. NMR Relaxation 4. Heat transfer circuit and 5. Multi-Valued DNA OR operations for corresponding minterms.
7.4.4
Circuit Architecture of Multiple-Valued Quantum-DNA PROM
To design a multi-valued Quantum-DNA 9-to-2 PROM circuit (considering NMR relaxation), the input values are in qubit (multi-valued Quantum Computing) and the output will be a multi-valued DNA sequence (multi-valued DNA Computing) at normal room temperature. Step 1: First, draw two input qubits |A> and |B>. Two possible qubits are |0>, |1> or |2>. These 3 will produce 9 combinations of 2 input qubits. Step 2: To design a multi-valued 2-to-9 quantum decoder, draw two multi-valued 1-to-3 quantum decoders and then nine multi-valued quantum AND operations. Step 3: After getting qubits of all the corresponding values from nine multi-valued quantum AND operations of 2-to-9 decoder, all the multi-valued quantum bits are needed to be stored into a multi-valued quantum cache memory. Step 4: After storing qubits of all the corresponding values from nine multi-valued quantum AND operations in multi-valued cache memory, it is needed to perform NMR relaxation to transform qubits into DNA sequences. Here doing NMR relaxation at room temperature and in NMR relaxation, there is no need to emit EMR because to down the spin. Step 5: Finally, after NMR relaxation, the multi-valued DNA sequences are found from multi-valued qubits and these will go through multi-valued DNA OR gate to produce desired multi-valued Quantum-DNA 9-to-2 PROM output sequences. Figure 7.7 depicts the multi-valued Quantum – DNA 9-to-2 PROM with NMR relaxation in normal room temperature.
310
Multiple-Valued Quantum-DNA Memory Devices
Heat Transfer Circuit
NMR Relaxation
Multi-Valued
Multi-Valued
Anneal
|1> |1> |2> |2> |2>
|B> |0> |1> |2> |0> |1> |2> |0> |1> |2>
F1 TGGATC TGGATC TGGATC TGGATC ACCTAG ACCTAG ACCTAG ACCTAG ACCTAG
F2 ACCTAG ACCTAG ACCTAG ACCTAG TGGATC TGGATC TGGATC TGGATC TGGATC
According to the truth table of multi-valued Quantum-DNA 9-to-2 PROM (Table 7.2), it is necessary to do the following operations to perform desire output sequences: [1] For input sequences |A>, |B>= |0>, |0> |A>= |A0>, |A1>, |A2> =|2>, |0>, |0> and |B> = |B0>, |B1>, |B2>= |2>, |0>, |0>. With this input combinations, only input |A0> and |B0> is true. Thus the |A0> and |B0> are connected to output line |D0> so only the |D0> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (2,0,0,0) = 2 “TGGATC” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,0,0) =0 “ACCTAG” of multi-valued Quantum-DNA 9-to-2 PROM. [2] For input sequences |A>, |B>= |0>, |1> |A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B> = |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A0> and |B1> is true. Thus the |A0> and |B1> are connected to output line |D1> so only the |D1> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,2,0,0) = 2 “TGGATC” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,0,0) =0 “ACCTAG” of multi-valued Quantum-DNA 9-to-2 PROM. [3] For input sequences |A>, |B>= |0>, |2>
312
Multiple-Valued Quantum-DNA Memory Devices
|A>= |A0>, |A1>, |A2> = |2>, |0>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A0> and |B2> is true. Thus the |A0> and |B2> are connected to output line |D2> so only the D2 will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,2,0) = 2 “TGGATC” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,0,0) =0 “ACCTAG” of multi-valued Quantum-DNA 9-to-2 PROM. [4] For input sequences |A>, |B>= |1>, |0> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A1> and |B0> is true. Thus the |A1> and |B0> are connected to output line |D3> so only the |D3> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,2) = 2 “TGGATC” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,0,0)=0 “ACCTAG” of multi-valued Quantum-DNA 9-to-2 PROM. [5] For input sequences |A>, |B>= |1>, |1> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A1> and |B1> is true. Thus the |A1> and |B1> are connected to output line |D4> so only the |D4> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,0) = 0 “ACCTAG” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (2,0,0,0,0) = 2 “TGGATC” of multivalued Quantum-DNA 9-to-2 PROM. [6] For input sequences |A>, |B>= |1>, |2> |A>= |A0>, |A1>, |A2> = |0>, |2>, |0> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A1> and |B2> is true. Thus the |A1> and |B2> are connected to output line |D5> so only the |D5> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,0) = 0 “ACCTAG” and for F2 perform OR
Multiple-Valued Quantum-DNA Programmable Read Only Memory
313
operations among (D4, D5, D6, D7, D8) = max (0,2,0,0,0) = 2 “TGGATC” of multivalued Quantum-DNA 9-to-2 PROM. [7] For input sequences |A>, |B>= |2>, |0> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |2>, |0>, |0>. With this input combinations, only input |A2> and |B0> is true. Thus the |A2> and |B0> are connected to output line |D6> so only the |D6> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,0) = 0 “ACCTAG” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,2,0,0) = 2 “TGGATC” of multivalued Quantum-DNA 9-to-2 PROM. [8] For input sequences |A>, |B>= |2>, |1> |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |2>, |0>. With this input combinations, only input |A2> and |B1> is true. Thus the |A2> and |B1> are connected to output line |D7> so only the |D7> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,0) = 0 “ACCTAG” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,2,0) = 2 “TGGATC” of multivalued Quantum-DNA 9-to-2 PROM. [9] For input sequences |A>, |B>= |2>, |2>, |A>= |A0>, |A1>, |A2> = |0>, |0>, |2> and |B0>, |B1>, |B2> = |0>, |0>, |2>. With this input combinations, only input |A2> and |B2> is true. Thus the |A2> and |B2> are connected to output line |D8> so only the |D8> will |2> and rest of the gates will produce |0>. For output sequence F1, perform OR operations among (D0-D3) outputs. So, max (D0, D1, D2, D3) = max (0,0,0,0) = 0 “ACCTAG” and for F2 perform OR operations among (D4, D5, D6, D7, D8) = max (0,0,0,0,2) = 2 “TGGATC” of multivalued Quantum-DNA 9-to-2 PROM.
314
Multiple-Valued Quantum-DNA Memory Devices
7.5
Multiple-Valued Quantum-DNA Cache Memory
The design of various memory devices includes quantum and DNA logic gates and decoder for Quantum-DNA 9-to-1 Cache memory. Both DNA and Quantum computers have the potential to significantly affect traditional digital computers in terms of processing power and depot. Quantum computers are more powerful than traditional Turing machines computing because of their coherent superposition of states and biotechnology techniques can be used to evolve DNA computers. Both of these properties might be captured by integrating DNA and Quantum computing. A novel logic gate design based on chemical reactions is presented in which observance of double-stranded sequences indicates a truth evaluation. Therefore, integrated computing systems as Quantum-to-DNA and vice versa for multi-valued cache memory are the main concern of this section.
7.5.1
General Organization of Multiple-Valued Quantum-DNA Cache Memory
The block diagram of Quantum-DNA 9-to-1 cache memory is shown in Figure 7.8. Cache memory consists of three basic components- Decoder, Qubit RAM Cells and OR operations. To execute Quantum-DNA 9-to-1 Cache memory following operations are required: 1. A Quantum 2-to-9 Decoder 2. Qubit RAM cells 3. Quantum Cache Memory 4. NMR Relaxation 5. Heat transfer circuit and 6. DNA OR operations for corresponding minterms
7.5.2
Circuit Architecture of Multiple-Valued Quantum-DNA Cache Memory
Figure 7.9 depicts the circuit architecture of multiple-valued Quantum-DNA Cache Memory.
7.5.3
Working Principle
Figure 7.9 represents the implementation of 9-to-1 sequence Quantum-DNA Cache memory. This quantum Cache memory consists of 9 separate “Words” of memory and each is 1 sequence wide. The quantum Cache memory Cell has three inputs and one output. The complete circuit of a quantum Cache memory cell is described in
315
Multiple-Valued Quantum-DNA Cache Memory
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued
Multi-Valued
Multi-Valued
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
Multi-Valued RAM Cell
FIGURE 7.8 Block Diagram of Quantum-DNA 9-to-1 Cache Memory Figure 7.9 with proper explanation. A word consists of two quantum Cache memory cells arranged in such a way so that both sequences can be accessed simultaneously. Nine words of memory need two address lines. A and B are the two-sequence address lines input that goes through a 2-to-9 decoder that selects one of the nine words. The memory-enabled input enables the decoder. If the memory enables is TGGATC, all output of the decoder will be TGGATC and in that case, none of the memory addresses will be selected. But when the memory enables is ACCTAG then one of the four words is selected. The word is selected by the value in the two address lines. When a word has been selected, the read/write input determines the operation. During the read operation, the four sequences of the selected word pass to the quantum OR gates to the output Z1 terminals. But during the write operation, the data which is available in the input lines are transferred into the four quantum cells of the selected word. The quantum Cache memory cells that are not selected are become disabled and their previous sequence never changes. But when the memory enable input that passes into the decoder is equal to TGGATC, none of the words are selected, and then all quantum cells remain unchanged regardless of the value of the read/ write input.
316
Multiple-Valued Quantum-DNA Memory Devices A0A1A2B0B1B2 Multi-Valued
Heat Transfer Circuit
Anneal
|2> |2> |2> |2>
Step 4: After storing sequences of all the corresponding values from nine multivalued DNA AND operations in cache memory, need to perform NMR to transform DNA sequences to qubits. Step 5: Finally, the qubits are found from DNA sequences and these will go through multi-valued Quantum OR operations to produce desired multi-valued DNAQuantum 9-to-2 ROM output qubits.
8.3.3
Working Principle
Table 8.1 shows the truth table of DNA-Quantum 9-to-2 ROM. Here A and B inputs, outputs are |F1> and |F2>. [1] For input sequences A, B= ACCTAG, ACCTAG 1. To perform value of input A0, A will go through the NOT (NTI), and produces TGGATC in the A0. 2. To perform the value of input A2, A will go through the NOT (PTI) and produce TGGATC then go through NOT (NTI) and produces ACCTAG in the A2. 3. To perform the value of input A1, the value of A0 and A2 go through DNA NOR (OR, NOT) Operations and produces ACCTAG in the A1. 4. To perform the value of input B0, B will go through the NOT (NTI), and produces TGGATC in the B0. 5. To perform the value of input B2, B will go through the NOT (PTI) and produce TGGATC then go through NOT (NTI) and produces ACCTAG in the B2. 6. To perform the value of input B1, the value of B0 and B2 go through DNA NOR (OR, NOT) Operations and produces ACCTAG in the B1.
326
Multiple-Valued DNA-Quantum Memory Devices
ACCTAG = |0> CAAGCT =|1> TGGATC = |2 A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A0 and B0 are true. Thus the A0 and B0 are connected to output line D0 so only the D0 will TGGATC and the rest of the gates will produce ACCTAG. To perform 9 to 2 multi-valued DNA ROM functions outputs, [i] For input sequences |D0>, |D1> = |2>, |0>, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [ii] For input sequences |D2>, |D3> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [iii] For input sequences |D4>, |D5> = |0>, |0> the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [iv] For input sequences |D6>, |D7> = |0>, |0> the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [v] Combine the output sequences |2>, |0> from [i] and [ii] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [vi] Combine the output sequences |0>, |0> from [iii] and [iv] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [vii] Combine the output sequences |2>, |0> from [v] and [vi] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [viii] Finally, Combine the output sequence |2> from [vii] and |D8> (|0>) as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2> for both functions output F1 and F2 multivalued 9-to-2 DNA-Quantum ROM. [2] For input sequences A, B= ACCTAG, CAAGCT A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 0, 2, 0. With these input combinations, only input A0 and B1 are true. Thus, the A0 and B1 are connected to output line D1 so only the D1 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max
Multiple-Valued DNA-Quantum Read Only Memory
327
(|0>, |2>, |0>, |0>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM. [3] For input sequences A, B= ACCTAG, TGGATC A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A0 and B2 are true. Thus the A0 and B2 are connected to output line D2 so only the D2 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |2>, |0>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM. [4] For input sequences A, B= CAAGCT, ACCTAG A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A1 and B0 is true. Thus, the A1 and B0 are connected to output line D3 so only the D3 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |2>, |0>, |0>, |0>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM.
[5] For input sequences A, B= CAAGCT, CAAGCT A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 0, 2, 0. With these input combinations, only input A1 and B1 is true. Thus, the A1 and B1 are connected to output line D4 so only the D4 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |2>, |0>, |0>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM. [6] For input sequences A, B= CAAGCT, TGGATC A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A1 and B2 is true. Thus, the A1 and B2 are connected to output line D5
328
Multiple-Valued DNA-Quantum Memory Devices
so only the D5 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |2>, |0>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM. [7] For input sequences A, B= TGGATC, ACCTAG A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A2 and B0 are true. Thus, the A2 and B0 are connected to output line D6 so only the D6 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |2>, |0>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM. [8] For input sequences A, B= TGGATC, CAAGCT A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 0, 2, 0. With these input combinations, only input A2 and B1 is true. Thus, the A2 and B1 are connected to output line D7 so only the D7 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |0>, |2>, |0>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM.
[9] For input sequences A, B= TGGATC, TGGATC A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A2 and B2 is true. Thus, the A2 and B2 are connected to output line D8 so only the D8 will TGGATC and the rest of the gates will produce ACCTAG. For Functions F1 and F2, perform OR operations among all decoder (|D0>-|D8>) outputs. So, max (|D0>, |D1>, |D2>, |D3>, |D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>, |0>, |0>, |0>, |2>) = |2> will produce as the function’s outputs F1 and F2 of multi-valued 9-to-2 DNA-Quantum ROM.
Multiple-Valued DNA-Quantum Programmable Read Only
329
Multi-Valued Quantum OR Operations
Multi-Valued DNA 2-to-9 Decoder
DNA Circuit
Memory
Multi-Valued Quantum OR Operations
Quantum Circuit
FIGURE 8.5 General Block Diagram of Multi-Valued DNA-Quantum 9-to-2 PROM
8.4
Multiple-Valued DNA-Quantum Programmable Read Only Memory
The vice versa of multi-valued Quantum-DNA, the proposed integrated multi-valued DNA-Quantum memory devices, will perform according to where the info flow of circuit design is multi-valued DNA-> multi-valued Sequence Storage -> multivalued Transformation -> multi-valued Quantum. The general block diagram of multi-valued DNA-Quantum 9-to-2 PROM is shown in Figure 8.5. Multi-Valued PROM consists of two basic components- A multi-valued Decoder and multi-valued OR operations. To execute DNA-Quantum 9-to-2 PROM following operations are required: 1. A multi-valued DNA 2-to-9 Decoder 2. Multi-Valued DNA Cache Memory 3. NMR 4. Heat transfer circuit and Multi-Valued Quantum OR operations for corresponding minterms.
330
Multiple-Valued DNA-Quantum Memory Devices
Input sequences A and B in multi-valued DNA computing operations, store the sequences in multi-valued DNA cache memory and transform those sequences to qubits to form outputs |F1> and |F2> in multi-valued quantum computing operations
8.4.1
Circuit Architecture of Multiple-Valued DNA-Quantum PROM
For the design algorithm of Multi-Valued DNA-Quantum 9-to-2 PROM, a DNA 2-to9 ternary decoder is needed which is designed by using two DNA multi-valued 1-to-3 Quantum decoders to get the output sequences from Q0 to Q8 will go through NMR process for further minterms ternary OR operation of Quantum qubits to perform desire qubit as output. Following the design algorithms of multiple-valued DNAQuantum 9-to-2 PROM Memory. Figure 8.6 depicts the multi-valued DNA-quantum 9-to-2 ROM with NMR in Normal Room Temperature.
8.4.2
Design Procedure
To perform multi-valued ROM at normal room temperature, need a 2-to-9 decoder and minterms of decoder output as the OR operations input to produce the desired ROM function. In the multi-valued DNA- Quantum computing (considering NMR), the input values are in DNA sequences (multi-valued DNA Computing) and the output will be qubits (multi-valued Quantum Computing) at normal room temperature. Step 1: First, draw two input DNA sequences A and B. Two possible sequences are ACCTAG or CAAGCT or TGGATC. These 3 will produce 9 combinations of 2 input sequences. Step 2: To design a multi-valued 2-to-9 DNA decoder, draw two multi-valued 1-to-3 DNA decoders and nine multi-valued DNA AND operations. Step 3: After getting sequences of all the corresponding values from nine DNA AND operations of the 2-to-9 decoder, it is needed to store all the DNA sequences into a multi-valued DNA cache memory. DNA cache memory is actually used for storing logical qubits and error correction.
Step 4: After storing sequences of all the corresponding values from nine multi-valued DNA AND operations in cache memory, it is needed to perform NMR to transform DNA sequences to qubits. Step 5: Finally, the qubits will be found from DNA sequences and these will go through multi-valued Quantum OR operations to produce desired multi-valued DNAQuantum 9-to-2 ROM output qubits.
Multi-Valued
Anneal
|2>
Working Principle
Table 8.2 shows the truth table of DNA-Quantum 9-to-2 PROM. Here A and B inputs, outputs are |F1> and |F2>. [1] For input sequences A, B= ACCTAG, ACCTAG 1. To perform the value of input A0, A will go through the NOT (NTI), and produces TGGATC in the A0. 2. To perform the value of input A2, A will go through the NOT (PTI) and produce TGGATC then go through NOT (NTI) and produces ACCTAG in the A2. 3. To perform the value of input A1, the value of A0 and A2 go through DNA NOR (OR, NOT) Operations and produces ACCTAG in the A1. 4. To perform the value of input B0, B will go through the NOT (NTI), and produces TGGATC in the B0. 5. To perform the value of input B2, B will go through the NOT (PTI) and produce TGGATC then go through NOT (NTI) and produces ACCTAG in the B2. 6. To perform the value of input B1, the value of B0 and B2 go through DNA NOR (OR, NOT) Operations and produces ACCTAG in the B1. ACCTAG = |0> CAAGCT =|1> TGGATC = |2 A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A0 and B0 are true. Thus the A0 and B0 are connected to output line D0 so only the D0 will TGGATC and the rest of the gates will produce ACCTAG.
Multiple-Valued DNA-Quantum Programmable Read Only
Memory
333
To perform 9 to 2 multi-valued DNA ROM functions outputs, [i] For input sequences |D0>, |D1> = |2>, |0>, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [ii] For input sequences |D2>, |D3> = |0>, |0>, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [iii] For input sequences |D4>, |D5> = |0>, |0> the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [iv] For input sequences |D6>, |D7> = |0>, |0> the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [v] Combine the output sequences |2>, |0> from [i] and [ii] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [vi] Combine the output sequences |0>, |0> from [iii] and [iv] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |0>. [vii] Combine the output sequences |2>, |0> from [v] and [vi] respectively as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2>. [viii] Finally, Combine the output sequence |2> from [vii] and |D8> (|0>) as input sequences, the multi-valued OR gates will perform maximum operations of input sequences. So the output sequence of |2> (v) for the function output |F1> and |0> (vii) for |F2> multi-valued 9-to-2 Quantum PROM. [2] For input sequences A, B= ACCTAG, CAAGCT A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 0, 2, 0. With these input combinations, only input A0 and B1 are true. Thus the A0 and B1 are connected to output line D1 so only the D1 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |2>, |0>, |0) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 DNA-Quantum PROM. [3] For input sequences A, B= ACCTAG, TGGATC
334
Multiple-Valued DNA-Quantum Memory Devices
A= A0, A1, A2 = 2, 0, 0 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A0 and B2 are true. Thus the A0 and B2 are connected to output line D2 so only the D2 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |2>, |0) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 DNA-Quantum PROM. [4] For input sequences A, B= CAAGCT, ACCTAG A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A1 and B0 is true. Thus the A1 and B0 are connected to output line D3 so only the D3 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |2) = |2> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |0>) = |0> of multi-valued 9-to-2 DNA-Quantum PROM. [5] For input sequences A, B= CAAGCT, CAAGCT A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 0, 2, 0. With these input combinations, only input A1 and B1 is true. Thus the A1 and B1 are connected to output line D4 so only the D4 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|2>, |0>, |0>, |0>, |0>) = |2>of multi-valued 9-to-2 DNA-Quantum PROM. [6] For input sequences A, B= CAAGCT, TGGATC A= A0, A1, A2 = 0, 2, 0 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A1 and B2 is true. Thus the A1 and B2 are connected to output line D5 so only the D5 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |2>, |0>, |0>, |0>) = |2> of multi-valued 9-to-2 DNA-Quantum PROM.
Multiple-Valued DNA-Quantum Cache Memory
335
[7] For input sequences A, B= TGGATC, ACCTAG A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 2, 0, 0. With these input combinations, only input A2 and B0 are true. Thus the A2 and B0 are connected to output line D6 so only the D6 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |2>, |0>, |0>) = |2> of multi-valued 9-to-2 DNA-Quantum PROM. [8] For input sequences A, B= TGGATC, CAAGCT A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 0, 2, 0. With this input combinations, only input A2 and B1 is true. Thus the A2 and B1 are connected to output line D7 so only the D7 will TGGATC and rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |2>, |0>) = |2> of multi-valued 9-to-2 DNA-Quantum PROM. [9] For input sequences A, B= TGGATC, TGGATC A= A0, A1, A2 = 0, 0, 2 and B= B0, B1, B2= 0, 0, 2. With these input combinations, only input A2 and B2 is true. Thus the A2 and B2 are connected to output line D8 so only the D8 will TGGATC and the rest of the gates will produce ACCTAG. For output sequence |F1>, perform OR operations among (|D0> - |D3>) outputs. So, max (|D0>, |D1>, |D2>, |D3>) = max (|0>, |0>, |0>, |0) = |0> and for |F2> perform OR operations among (|D4>, |D5>, |D6>, |D7>, |D8>) = max (|0>, |0>, |0>, |0>, |2>) = |2> of multi-valued 9-to-2 DNA-Quantum PROM.
8.5 Multiple-Valued DNA-Quantum Cache Memory Cache memory is a small-sized type of volatile computer memory that provides highspeed data access to a processor and stores frequently used computer programs, applications and data. The temporary storage of memory, the cache makes data
336
Multiple-Valued DNA-Quantum Memory Devices
NMR
Multi-Valued
Multi-Valued DNA Cache Memory
Multi-Valued Molecular RAM Cell
Multi-Valued
FIGURE 8.7 Block Diagram of Multiple-Valued DNA-Quantum Cache Memory retrieving easier and more efficient. Multi-Valued DNA-quantum cache memory is the combination circuits of DNA operations and quantum operations. The input sequences are DNA molecules and the output will be quantum bits. A multi-valued 2-to-9 DNA decoder is needed in DNA operation and in quantum operation, a multivalued quantum OR operations are needed. The block diagram of multi-valued DNAquantum cache memory is given below (Figure 8.7).
8.5.1
Working Principle of Multiple-Valued DNA-Quantum Cache Memory
Figure 8.8 represents the implementation of 9-to-1 sequence ternary DNA-Quantum Cache memory. This quantum Cache memory consists of 9 separate “Words” of memory and each is 1 sequence wide. The quantum Cache memory Cell has three inputs and one output. The complete circuit of a quantum Cache memory cell is described in figure 8 with proper explanation. A word consists of two quantum Cache memory cells arranged in such a way so that both sequences can be accessed simultaneously. Nine words of memory need two address lines. A and B are the twosequence address lines input that goes through a 2-to-9 decoder that selects one of the nine words. The memory-enabled input enables the decoder. If the memory enables is TGGATC, all output of the decoder will be TGGATC and in that case, none of the memory addresses will be selected. But when the memory enables is ACCTAG then one of the four words is selected. The word is selected by the value in the two address lines. When a word has been selected, the read/write input determines the
337
Multiple-Valued DNA-Quantum Cache Memory
Anneal
|2> |0> |1> |2>
345
Ternary
|F1> |0> |2> |0> |0> |2> |0> |1> |0> |0>
|F2> |0> |0> |2> |0> |0> |1> |0> |1> |0>
Table 9.1 shows the truth table of Ternary Quantum PLA. Let us implement the following Boolean functions using ternary Quantum PLA. |F1>=|A0>.|B1>+|A1>.|B1>+|1>. (|A2>.|B0>) |F2>=|A0>.|B2>+|1>. (|A1>.|B2> + |A2>.|B1>) The given two functions are sum of products form. The number of product terms present in the given Boolean functions |F1>, |F2> are three. Eight programmable ternary quantum AND gates & four programmable ternary quantum OR gates are required for producing those two functions. The corresponding Quantum PLA is shown in the following figure (Figure 9.2). For the given problem, there are two inputs (|A>,| B>) and two outputs (|F1>, |F2>). Quantum ternary decoders are used for these two inputs. Thus the realization has six input lines.
9.2.3
Working Principle
According to the truth table (Table 9.1) of ternary Quantum PLA, it is necessary to do the following operations to perform desire output qubits: 1. For input Qubits |A>, |B> =|0>, |0> function |F1> and |F2> produce |0> 2. For input Qubits |A>, |B> =|0>, |1> function |F1> produce |2> and |F2> produce |0> 3. For input Qubits |A>, |B> =|0>, |2> unction |F1> produce |0> and |F2> produce |2> 4. For input Qubits |A>, |B> =|1>, |0> function |F1> and |F2> produce |0> 5. For input Qubits |A>, |B> =|1>, |1> unction |F1> produce |2> and |F2> produce |0>
Multiple-Valued Programmable Logic Devices in Quantum Computing
OR
OR
AND
OR
AND
AND
Multi-Valued Quantum 1-to-3 Decoder
AND
AND
AND
346
AND
AND
Multi-Valued Quantum AND & OR Operations FIGURE 9.2 Ternary Quantum PLA
OR
Multiple-Valued Quantum Programmable Array Logic
347
6. For input Qubits |A>, |B> =|1>, |2> unction |F1> produce |0> and |F2> produce |1> 7. For input Qubits |A>, |B> =|2>, |0> unction |F1> produce |1> and |F2> produce |0> 8. For input Qubits |A>, |B> =|2>, |1> unction |F1> produce |0> and |F2> produce |1> 9. For input Qubits |A>, |B> =|2>, |2> function |F1> and |F2> produce |0>
9.3
Multiple-Valued Quantum Programmable Array Logic
Programmable Array Logic (PAL) is a logic device, which has a programmable AND array and fixed OR array. It is used to realize a logic function. In this PLD, only AND gates are programmable and hence it is easier to work with PAL. Figure 9.3 shows the internal structure of Programmable Array Logic. The product terms can be programmed through the fuse link. It means the user can decide the connection between the inputs and the AND gates. If a particular input line is to be connected to the AND gate, then the fuse link must be placed at the interconnection. The AND gate outputs are then fed as an input to the fixed OR gate. Depending upon the required function, the output line of the AND gate is connected to the corresponding input of the OR gate.
9.3.1
General Organization of Multi-Valued Quantum PAL
Multiple-valued Quantum Programmable Array Logic (PAL) is a type of Programmable Logic Device (PLD) used to realize a particular logical function. Quantum PALs comprise a quantum AND gate array followed by a quantum OR gate array. However, it is to be noted that here only the multiple-valued quantum AND gate array is programmable, unlike the Multiple-valued quantum OR gate array which has a fixed logic. This is because here the inputs are fed to the multiple-valued quantum AND gates through fuses which act as programmable links. Programmable-AND and fixed-OR structure of multiple-valued quantum PALs make them less flexible from the programming point of view when compared with Programmable Logic Arrays (PLAs). However, due to the same reason PALs are less expensive than PLAs. Hence, it is the most flexible multiple-valued quantum PLD. The block diagram of multiple-valued Quantum PAL is shown in the following figure (Figure 9.4). Here, the inputs of multiple-valued Quantum AND operations are programmable. That means each multiple-valued Quantum AND operation has both normal and complemented inputs of variables. So, based on the requirement, it is possible to program any of those inputs and can generate only the required product terms by using these multiple-valued quantum AND operations. But, the inputs of multiple-valued Quantum OR operations are fixed.
348
Multiple-Valued Programmable Logic Devices in Quantum Computing
FIGURE 9.3 Block Diagram of PAL
Multi-Valued Multi-Valued
FIGURE 9.4 Block Diagram of Multi-Valued Quantum PAL
349
Multiple-Valued Quantum Programmable Array Logic TABLE 9.2 Truth Table of Ternary Quantum PLA |A> |0> |0> |0> |1> |1> |1> |2> |2> |2>
9.3.2
|B> |0> |0> |2> |0> |1> |2> |0> |1> |2>
|F1> |0> |2> |0> |0> |2> |0> |1> |0> |0>
|F2> |0> |0> |2> |0> |2> |0> |0> |0> |0>
Circuit Architecture of Multi-Valued Quantum PAL
Consider the design of ternary quantum PLA for the following functions: |F1>=|A0>.|B1>+|A1>.|B1>+|1>. (|A2>.|B0>) |F2>=|A0>.|B2>+|A1>.|B1> Table 9.2 shows the truth table of Ternary Quantum PLA. Let us implement the following Boolean functions using ternary Quantum PLA. |F1>=|A0>.|B1>+|A1>.|B1>+|1>. (|A2>.|B0>) |F2>=|A0>.|B2>+|A1>.|B1> The given two functions are the sum of products form. The number of product terms present in the given Boolean functions |F1>, |F2> are three and 2 respectively. Seven programmable ternary quantum AND gates & four fixed ternary quantum OR gates are required for producing those two functions. The corresponding Quantum PAL is shown in the following figure (Figure 9.5). For the given problem, there are two inputs (|A>,| B>) and two outputs (|F1>, |F2>). Quantum ternary decoders are used for these two inputs. For these two inputs, two 3-to-1 quantum ternary decoders are used. The given first expression has three product terms and second expression has two product terms. But as the OR operation are fixed so the fuses are placed in the corresponding literals to obtain the product terms.
Multiple-Valued Programmable Logic Devices in Quantum Computing
Multi-Valued Quantum 1-to-3 Decoder
OR
OR
AND
AND
AND
350
OR
AND
AND
AND
AND
OR
Multi-Valued Quantum AND & OR Operations FIGURE 9.5 Multi-Valued Quantum PAL
Multi-Valued Quantum Field Programmable Gate Array
9.3.3
351
Working Principle
According to truth table (Table 9.2) of ternary Quantum PLA , it is necessary to do the following operations to perform desire output qubits: 1. For input Qubits |A>, |B> =|0>, |0> function |F1> and |F2> produce |0> 2. For input Qubits |A>, |B> =|0>, |1> function |F1> produce |2> and |F2> produce |0> 3. For input Qubits |A>, |B> =|0>, |2> function |F1> produce |0> and |F2> produce |2> 4. For input Qubits |A>, |B> =|1>, |0> function |F1> and |F2> produce |0> 5. For input Qubits |A>, |B> =|1>, |1> function |F1> and |F2> produce |2> 6. For input Qubits |A>, |B> =|1>, |2> function |F1> and |F2> produce |0> 7. For input Qubits |A>, |B> =|2>, |0> function |F1> produce |1> and |F2> produce |0> 8. For input Qubits |A>, |B> =|2>, |1> function |F1> and |F2> produce |0> 9. For input Qubits |A>, |B> =|2>, |2> function |F1> and |F2> produce |0>
9.4
Multi-Valued Quantum Field Programmable Gate Array
Customary silicon-based Field Programmable Gate Array (FPGA) is defenseless to security attacks as an outcome of its static design. When a static circuit is acquired by an attacker, it is a matter of time before one can figure out its configuration. To circumvent such altering, circuits should be dynamic naturally. Considering this vision, biological methodologies have been created to mirror existing silicon-based innovations in data manipulation. Inside the advanced world, information control includes information generation, storage, recovery, and preparation. A DNA-based plan empowers hardware to be founded on biochemical and natural stimuli. DNA computing introduces an approach by which one could create information that could reliably be stored and recovered inside a DNA sequence. Modern DNA sequencing technologies have incredibly decreased their actual measurements, while yet having the option to handle huge quantities of molecules. The high data thickness of DNA molecules and gigantic parallelism engaged with the DNA reactions make DNA computing an integral asset. DNA search algorithm is applied on the Boolean equation for solving routing alternatives using the properties of DNA computation. The simulated results are good and give the sign of applicability of DNA computing for solving the Routing problem. There are numerous old-style algorithms for finding routing in FPGA. DNA computing can solve the routes proficiently and quickly. The run time complexity of DNA algorithms is considerably less than other traditional algorithms which are utilized for
352
Multiple-Valued Programmable Logic Devices in Quantum Computing
FIGURE 9.6 Circuit Diagram of FPGA solving routing in FPGA. The high data thickness of DNA molecules and monstrous parallelism associated with the DNA reactions make DNA computing a powerful tool. A Field Programmable Gate Array (FPGA) is a Programmable Logic Device (PLD). It is a digital integrated circuit that contains configurable logic blocks along with programmable interconnection between these blocks. It can be configured by end-users to implement specific applications. Programmable interconnections are to be had for customers or designers to carry out given functions without difficulty. A typical model FPGA chip is shown in the Figure 9.6. There are I/O blocks, which are designed and numbered consistent with function. There are CLB’s (Configurable Logic Blocks) for implementing different functions.
9.4.1
General Organization of Multi-Valued Quantum FPGA
A basic multi-valued Quantum FPGA architecture consists of thousands of fundamental elements called configurable logic blocks (CLBs) surrounded by a system of programmable interconnects, called a fabric that routes signals between multi-valued Quantum CLBs. A multi-valued Quantum configurable logic block (CLB) (Figure 9.7) is the basic repeating logic block on a multi-valued Quantum FPGA. There are hundreds of similar logic blocks available onto the multi-valued Quantum FPGA connected via routing resources. The purpose of these logic blocks is to implement combinational and sequential logic.
353
Multi-Valued Quantum Field Programmable Gate Array
Multi-Valued Multi-Valued Multi-Valued
FIGURE 9.7 Configurable Logic Block of FPGA There are three essential multi-valued Quantum CLBs components: 1. Multi-Valued Quantum Flip-Flops 2. Multi-Valued Quantum Look-up Tables (LUTs) 3. Multi-Valued Quantum Multiplexers
9.4.2
Circuit Architecture of Basic Components
Flip-Flop: The D Flip Flop is by far the most important of all the clocked flip-flops. By adding an inverter (NOT gate) between the Set and Reset inputs, the S and R inputs become complements of each other ensuring that the two inputs S and R are never equal (0 or 1) to each other at the same time allowing us to control the toggle action of the flip-flop using one single D (Data) input. Then this Data input labeled “D” is used in place of the “Set” signal, and the inverter is used to generate the complementary “Reset” input thereby making a level-sensitive D-type flip-flop from a level-sensitive SR-latch. The Quantum D Flip-Flop is shown in Figure 9.8. Look-up Table (LUT): A LUT is the heart of the FPGA. It contains all the logically possible output of the design. The LUT is programmed by the Digital Designer to perform a Boolean algebra equation. All possible combinations of Boolean expressions need to be able to be programmed into the Look-Up Table. Figure 9.9 shows 2 Inputs Look-Up Table. Multiplexer: The multiplexer is one of the most important block designs of a binary digital system. It is such a device that allows only one input from several input signals and the input which is selected by Multiplexer is transmitted into a single medium.
354
Multiple-Valued Programmable Logic Devices in Quantum Computing
Multi-Valued
Multi-Valued
Multi-Valued Multi-Valued
Multi-Valued Quantum OR Operation
FIGURE 9.8 Quantum D Flip-Flop
Multi-Valued Quantum 1:3 Decoder
Multi-Valued Quantum AND Operation
Multi-Valued Quantum AND Operation
FIGURE 9.9 2 Inputs Look-Up Table
Multi-Valued Quantum Field Programmable Gate Array
355
Multiplexers aid to improve the efficiency of the communication system. It allows the transmission of data such as audio, video, etc. from different channels via cables. And here, this will be implemented using MVL which helps us to simulate the circuit so easily than the digital binary multiplexer. Then the design will be proposed of DNA 1-to-3 ternary multiplexer circuit based on a combinational digital 1-to-3 ternary circuit For performing quantum 3-to-1 multiplexer operation, firstly it is needed to operate a 1-to-3 decoder. The purpose of using this decoder is to take three inputs. As it is a ternary multiplexer, it is needed to access three inputs such as 0, 1, and 2. If 1-to-3 decoders is not used, it will not be possible to access all combinations of these three inputs. After performing the decoder operation, a single output will enter into the Mux which performs TAND (Ternary AND) operation. Figure 9.10 shows the Quantum 3-to-1 MUX . Ternary Decoder: A ternary decoder is a combinational circuit that has ‘n’ input lines and a maximum of 3n output lines. One of these outputs will be active High based on the combination of inputs present when the decoder is enabled. That means the decoder detects a particular code. The outputs of the decoder are nothing but the midterms of ‘n’ input variables lines when it is enabled. The following figure (Figure 9.11) shows the design of a ternary 1-to-3 decoder. The Quantum Ternary 1-to-3 decoder operation requires the shifting operations that include (+2) shifting only. Where three (+2) operations are not controlled, and three (+2) operation is controlled by respective one input. Cache Memory: Cache memory is a supplementary memory system that temporarily stores frequently used instructions and data for quicker processing. It is an extremely fast memory type that holds frequently requested data and instructions so that they are immediately available for further processing. In most microprocessors, Static Random-Access Memory (SRAM) is used as cache memory as SRAM has a very high speed. Due to this high speed, the cache memory can be used to store data temporarily that will be designed for the quantum computer. Cache memory can be designed using the D flip-flops which will create a one-bit SRAM along with Read/Write and select bit as input. A Delay flip flop of D flip flop is an electronic circuit used to delay the change of state of its output signal (Q) until the next rising edge of a clock timing input signal occurs. Block Diagram of Quantum Cache Memory is shown in Figure 9.12.
9.4.3
Circuit Architecture of Multi-Valued Quantum FPGA
FPGA logic block is designed by connecting Flip-Flops, Look-up Tables (LUT) and Multiplexers. Here a simple Quantum FPGA logic block is designed by using a D Flip-Flop, a Look-up Table (LUT) and a multiplexer. A simple 2 input multi-valued quantum LUT consists of four Quantum AND, and two Quantum OR operations.
356
Multiple-Valued Programmable Logic Devices in Quantum Computing
Multi-Valued Quantum 1:3 Decoder Multi-Valued Quantum And Operation
Multi-Valued Quantum OR Operation
Multi-Valued Quantum And Operation
Multi-Valued Quantum OR Operation
Multi-Valued Quantum And Operation
FIGURE 9.10 Quantum 3-to-1 MUX The output of the LUT will go through the multi-valued quantum D Flip-Flop and multi-valued quantum multiplexer as input. The multi-valued quantum D Flip-Flop is a sequential circuit that consists of four multi-valued quantum NAND operations and one multi-valued quantum NOT operation. The output of the multi-valued quantum D Flip-Flop will go through the multi-valued quantum multiplexer as input. A multivalued quantum 3-to-1 MUX is designed using three multi-valued quantum AND operations, and two multi-valued quantum OR operations. The multiplexer generates
Multi-Valued Quantum Field Programmable Gate Array
357
FIGURE 9.11 Quantum Ternary 1-to-3 Decoder the desired output for the FPGA logic block. Figure 9.13 shows the Multi-Valued Quantum FPGA.
9.4.4
Working Principle
Three multi-valued Quantum Ternary 1-to-3 decoder designs for input |A>,|B>, and |S>. Multi-Valued Quantum Ternary 1-to-3 decoder operation requires the shifting operations that include (+2) shifting only. Where three (+2) operations are not controlled, and three (+2) operation is controlled by respective one input.
FIGURE 9.12 Block Diagram of Quantum Cache Memory
358
Multiple-Valued Programmable Logic Devices in Quantum Computing
AND
S0S1S2B0B1B2A0A1A2
AND
OR
AND
AND
OR
Multi-Valued Quantum 1-to-3 Decoder
3-to-1 MUX OR
AND
AND
D Flip Flop
AND
OR
Multi-Valued Quantum AND, OR & NAND Operations FIGURE 9.13 Multi-Valued Quantum FPGA
Multi-Valued Quantum Complex Programmable Logic Devices
359
TABLE 9.3 Truth Table of Multi-Valued LUT A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
LUT output 0 2 0 0 2 0 1 0 0
The output of the decoder for input |A> and |B> first go through the Lookup Tables (LUT). The LUT use four multi-valued quantum TAND operation and two multi-valued Quantum TOR operation. The LUT implements the function (A0B1 + A1B1) + 1 (A2B0) to generate the LUT output. The outputs of the LUT are given in the Table 9.3. 2 inputs, one is the output of LUT and another is clock input will go thought the D flip-flop. The D flip-flop use one Quantum TNOT operation and four multi-valued Quantum TNAND operations. The D flip-flop transfer the LUT output same as |D>, if the CLK input sequences is |1> or |2>. If the CLK input is |0>, one of the inputs to each of the last two Quantum TNAND operations will be |2>, thus output of the D flip-flop remains unchanged regardless of the values of the LUT output. The ternary selection input S is decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3-to-1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and LUT)) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. After this, the obtained output From TAND is connected with the ternary OR operation as an input and another two inputs of TOR will come to another Two ternary AND operations. And, finally, these three inputs give an output. For ternary OR operation, the output will always be maximum. Therefore, among the three inputs, the maximum will be the final output.
9.5
Multi-Valued Quantum Complex Programmable Logic Devices
The acronym of the CPLD is “Complex programmable logic devices”, it is one kind of integrated circuit that application designers design to implement digital hardware like mobile phones. These can handle knowingly higher designs than SPLDs (simple
360
Multiple-Valued Programmable Logic Devices in Quantum Computing
FIGURE 9.14 Block Diagram of CPLD programmable logic devices) but offer less logic than FPGAs (field-programmable gate arrays). CPLDs include numerous logic blocks; each of the blocks includes 816 macrocells. Because every logic block executes a specific function, all of the macrocells in a logic block are fully connected. Depending upon the use, these blocks may or may not be connected to one another. Figure 9.14 depicts the block diagram of CPLD. Most CPLDs (complex programmable logic devices) have macrocells with a sum of logic functions, a D FF (D flip-flop), and a MUX. Depending on the chip, the combinatorial logic function supports from 4 to 16 product terms with inclusive fan-in. CPLDs also differ in terms of shift registers and logic gates. Due to this reason, CPLDs with a huge number of logic gates may be used instead of FPGAs. Another CPLD specification signifies the number of product terms that a macrocell can accomplish. Product terms are the product of digital signals that execute a specific logic function. CPLDs are available in several IC package forms and logic families. CPLDs also differ in terms of supply voltage, operating current, standby current and power dissipation. In terms of complexity, CPLD (complex programmable logic device) lies in between SPLD (simple programmable logic device) and FPGA and thus, inherits features from both these devices. CPLDs are more complex than SPLDs but less complex than FPGAs.
Multi-Valued Quantum Complex Programmable Logic Devices
361
Multi-Valued Multi-Valued
Multi-Valued
FIGURE 9.15 CPLD Functional Block
9.5.1
General Organization of Multi-Valued Quantum CPLD
A complex programmable logic device comprises a group of programmable multivalued Quantum FBs (functional blocks). Most multi-valued Quantum CPLDs (complex programmable logic devices) have macrocells with a sum of multi-valued Quantum logic functions, a multi-valued Quantum D FF (D flip-flop), and a multi-valued Quantum MUX. Figure 9.15 shows the CPLD Functional Block. A multi-valued Quantum functional block (FB) is the basic repeating logic block on a multi-valued Quantum CPLD. The function blocks have programmable interconnections. The programmable multi-valued Quantum FB looks like the array of logic gates, where an array of AND gates can be programmed and OR gates are stable. A switch matrix is used for function blocks to function blocks interconnections. Further, the switch matrix in a multi-valued Quantum CPLD may or may not be fully connected. The complexity of a typical PAL device is around a few hundred logic gates whereas the complexity of multi-valued Quantum CPLD is around tens of thousands of logic gates. The multi-valued Quantum CPLDs have predictable timing characteristics hence are suitable for critical control applications and other applications where a high-performance level is required. Further, due to low power consumption and low cost, multi-valued Quantum CPLDs are mostly used for batteryoperated portable applications such as mobile phones, digital assistants, etc. There are three essential multi-valued Quantum FBs components: 1. Multi-Valued Quantum Flip-Flops 2. Multi-Valued Quantum Logic Function 3. Multi-Valued Quantum Multiplexers
362
9.5.2
Multiple-Valued Programmable Logic Devices in Quantum Computing
Circuit Architecture of Multi-Valued Quantum CPLD
Multi-Valued quantum CPLD functional block is designed by connecting Flip-Flops, Logic function and Multiplexers. Here a simple multi-valued Quantum CPLD functional block is designed by using a multi-valued Quantum D Flip-Flop, a multivalued Quantum logic function and a multi-valued Quantum multiplexer (Figure 9.16). Multi-Valued quantum CPLD functional block is designed by connecting FlipFlops, Logic function and Multiplexers. Here a simple multi-valued Quantum CPLD functional block is designed by using a multi-valued Quantum D Flip-Flop, a multivalued Quantum logic function and a multi-valued Quantum multiplexer. A simple 2-input multi-valued quantum logic function consists of four Quantum AND, and two Quantum OR operations. The output of the logic function will go through XOR with 0 value. All the input first goes through a ternary decoder. The output of the XOR will go through the multi-valued quantum D Flip-Flop and multi-valued quantum multiplexer as input. The multi-valued quantum D Flip-Flop is a sequential circuit that consists of four multi-valued quantum NAND operations and one multi-valued quantum NOT operation. The output of the multi-valued quantum D Flip-Flop will go through the multi-valued quantum multiplexer as input. A multi-valued quantum 3-to-1 MUX is designed using three multi-valued quantum AND operations, and two multi-valued quantum OR operations. The multiplexer generates the desired output for the CPLD functional block.
9.5.3
Working Principle
Three multi-valued Quantum Ternary 1-to-3 decoder designs for input |A>, |B> and |S>. Multi-Valued Quantum Ternary 1-to-3 decoder operation requires the shifting operations that include (+2) shifting only. Where three (+2) operations are not controlled, and three (+2) operation is controlled by respective one input. The output of the decoder for input |A> and |B> first go through the logic function. The logic function use four multi-valued quantum TAND operation and two multi-valued Quantum TOR operation. The logic function implements the function (A0.B1+ A1.B1) + 1 (A2.B0) to generate the function output. The outputs of the function are given in the table. The output of the logic function will XOR with |0>. Table 9.4 shows the Multi-Valued Logic Function. 2 inputs, one is the output of XOR and another is clock input will go through the D flip-flop. The D flip-flop uses one Quantum TNOT operation and four multivalued Quantum TNAND operations. The D flip-flop transfer the XOR output the same as |D>, if the CLK input sequences are |1> or |2>. If the CLK input is |0>, one of the inputs to each of the last two Quantum TNAND operations will be |2>, thus the output of the D flip-flop remains unchanged regardless of the values of the logic function output.
363
S0S1S2B0B1B2A0A1A2
Multi-Valued Quantum 1:3 Decoder
Multi-Valued Quantum AND Operation
Multi-Valued Quantum OR Operation
Multi-Valued Quantum Complex Programmable Logic Devices
Multi-Valued Quantum NAND Operation D Flip Flop
3-to-1 MUX
Multi-Valued Quantum AND Operation
FIGURE 9.16 Multi-Valued Quantum CPLD
364
Multiple-Valued Programmable Logic Devices in Quantum Computing TABLE 9.4 Multi-Valued Logic Function A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
LUT output 0 2 0 0 2 0 1 0 0
The ternary selection input S is firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3-to-1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and logic function) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. After this, the obtained output From TAND is connected with the ternary OR operation as an input and another two inputs of TOR will come to another Two ternary AND operations. And, finally, these three inputs give an output. For ternary OR operation, the output will always be maximum. Therefore, among the three inputs which are maximum will be the final output.
9.6 Summary PLA is used for the implementation of various combinational circuits using Quantum AND operation and Quantum OR operation. In Quantum PLA, all the minterms are not realized but only required minterms are implemented. As Quantum PLA has a programmable Quantum AND operation array and programmable Quantum OR operation array, it provides more flexibility but the disadvantage is, it is not easy to use. Quantum PLD is used to provide control over data path and used as a counter and decoder. This chapter has presented all PLDs with their detail explanation and appropriate figures.
Bibliography [1] Price, M. D., Havel, T. F., & Cory, D. G. (2000). Multiqubit logic gates in NMR quantum computing. New Journal of Physics, 2(1), 10.
Summary
365
[2] Gershenfeld, N., & Chuang, I. L. (1998). Quantum computing with molecules. Scientific American, 278(6), 66-71. [3] Wang, X., Sørensen, A., & Mølmer, K. (2001). Multibit gates for quantum computing. Physical Review Letters, 86(17), 3907.
10 Multiple-Valued Programmable Logic Devices in DNA Computing
10.1
Introduction
DNA computing (also sometimes referred to as biomolecular computing or molecular computing) is a new computational paradigm that employs (bio) molecule manipulation to solve computational problems, at the same time exploring natural processes as computational models. Research in this area began with an experiment by Leonard Adleman, who surprised the scientific community in 1994 by using the tools of molecular biology to solve a difficult computational problem. Adleman’s experiment solved an instance of the Directed Hamiltonian Path Problem solely by manipulating DNA strands. This marked the first solution of a mathematical problem by use of molecular biology. A ternary or three-valued DNA logic function is one that has two inputs that can assume three states (say 0, 1, and 2) and generates one output signal that can have one of these three states. In ternary DNA computing, two DNA sequences are used as inputs and one DNA sequence is used as output. During ternary DNA computing, sequence ACCTAG is considered as “0”, sequence CAAGCT strands as “1” and TGGATC stands as “2”. In this part ternary DNA PLDs (PLA, PAL, FPGA, CPLD) are designed using Ternary AND, NAND, OR, NOR, XOR, and XNOR logic gates. For AND logic gate its output value depends on the minimum value of its inputs. Similarly, in the case of the OR logic gate, its output value depends on the maximum value of its inputs. For the XOR gate, its output value is the difference of the value of its inputs. Finally, the outputs of NAND, NOR, and XNOR logic gates become the inverted of AND, OR and XNOR logic gates. All these operations are described in earlier chapters, this chapter will discuss the multi-valued PLDs in DNA computing.
10.2
Multiple-Valued DNA Programmable Logic Array
Programmable Logic Array (PLA) is a type of PLD, which has both a programmable Quantum AND array and a programmable Quantum OR array. In DOI: 10.1201/9781003381921-10
367
368
Multiple-Valued Programmable Logic Devices in DNA Computing
Multi-Valued
Multi-Valued
FIGURE 10.1 Block Diagram of Multi-Valued DNA PLA a combinational circuit, because of don’t care conditions, not all the minterms are used. Programmable Logic Array (PLA) is a fixed architecture logic device with programmable Quantum AND gates followed by programmable Quantum OR gates. PLA is a type of programmable logic device used to build a reconfigurable digital circuit. PLDs have an undefined function at the time of manufacturing, but they are programmed before being made into use. PLA is a combination of memory and logic.
10.2.1
General Organization of Multiple-Valued DNA PLA
Multiple-Valued DNA PLA is a programmable logic device that has both Programmable DNA AND array & Programmable DNA OR array. Hence, it is the most flexible PLD. The block diagram of Multiple-Valued DNA PLA is shown in the following figure (Figure 10.1). Here, the inputs of DNA ternary AND operations are programmable. That means each DNA ternary AND operation has both normal and complemented inputs of variables. So, based on the requirement, any of those inputs can be programmed and can generate only the required product terms by using these DNA ternary AND operations. Here, the inputs of DNA ternary OR operations are also programmable. So, any number of required product terms can be programmed, since all the outputs of DNA ternary AND operations are applied as inputs to each Quantum ternary OR operation. Therefore, the outputs of DNA ternary PAL will be in the form of the sum of products form.
369
Multiple-Valued DNA Programmable Logic Array TABLE 10.1 Truth Table of Ternary DNA PLA A ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
10.2.2
B ACCTAG ACCTAG TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
F1 ACCTAG TGGATC ACCTAG ACCTAG TGGATC ACCTAG CAAGCT ACCTAG ACCTAG
F2 ACCTAG ACCTAG TGGATC ACCTAG ACCTAG CAAGCT ACCTAG CAAGCT ACCTAG
Circuit Architecture of Multi-Valued DNA PLA
Consider the design of ternary quantum PLA for the following functions: F1 = A0.B1+A1.B1+ 1. (A2.B0) F2 = A0.B2+ 1. (A1.B2+A2.B1) Table 10.1 shows the truth table of ternary DNA PLA. Express 0 & 1 using DNA molecule: ACCTAG = 0 CAAGCT = 1 TGGATC = 2 The given two functions are in the sum of products form. The number of product terms present in the given Boolean functions |F1>, |F2> are three. Eight programmable ternary Quantum AND gates & four programmable ternary Quantum OR gates are required for producing those two functions. The corresponding Quantum PLA is shown in the following figure (Figure 10.2). For the given problem, there are two inputs (|A>,| B>) and two outputs (|F1>, |F2>). Quantum ternary decoders are used for these two inputs. Thus the realization has six input lines.
10.2.3
Working Principle
According to the truth table (Table 10.1) of ternary Quantum PLA, it is necessary to do the following operations to perform desired output qubits: 1. For input Qubits A, B = ACCTAG , ACCTAG function F1 and F2 produce ACCTAG
FIGURE 10.2 Ternary DNA PLA
Ternary Decoder Anneal or |2>. If the CLK input is |0>, one of the inputs to each of the last two Quantum TNAND operations will be |2>, thus output of the D flip-flop remain unchanged regardless of the values of the LUT output. The ternary selection input S is firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3to-1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and LUT)) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. The output of these three Quantum AND operations will store in a Quantum cache memory. Cache memory stores these qubits as quantum computing is faster than DNA computing. NMR Relaxation is used to transfer the qubit into the DNA sequence. Two DNA OR operation performs OR of these three DNA sequences. Quantum circuits produce more heat than DNA circuits. For this, a heat transfer circuit is used to transfer the extra heat produced by the Quantum circuit to the DNA circuit. DNA OR operations used this heat to produce the FPGA output.
11.5
Multi-Valued Quantum-DNA Complex Programmable Logic Devices
Multi-Valued Quantum computing uses Qubits (|0> and |1>) and multi-valued DNA Computing system uses molecule to represent information. In multi-valued Quantum-DNA computing CPLD design, the qubit will work as input for the programmable logic devices. Multi-Valued Quantum computing provides fast computation in logic devices than multi-valued DNA computing. So, it needs to use a storage device for making a balance between these two computing systems. Multi-Valued DNA computing gives more storage capacity, as a result, the output operation of the logic devices will perform in DNA computing. It is needed to transform qubit into DNA molecule and for this, a transformation process is used by which an excited magnetic state returns to its equilibrium distribution. Multi-Valued Quantum Computing produces more heat in circuits which can be used in multi-valued DNA computing to perform DNA logic operations. For this, it needs to use a heat transfer circuit between multi-valued Quantum and DNA operations. The multi-valued Quantum-DNA CPLD implementation methods will improve the result of any logic device. Figure 11.8 shows the block diagram of Quantum-DNA CPLD .
11.5.1
Circuit Architecture of Multi-Valued Quantum-DNA CPLD
Multi-Valued Quantum-DNA CPLD functional block is designed by connecting Flip-Flops, logic function and Multiplexers. Here a simple Quantum-DNA CPLD
404
Multiple-Valued Programmable Logic Devices in Quantum-DNA Computing
Multi-Valued
Multi-Valued
FIGURE 11.8 Block Diagram of Quantum-DNA CPLD functional block is also designed by using a D Flip-Flop, logic function and a multiplexer. Figure 11.9 depicts the Quantum-DNA CPLD circuit diagram. A simple 2 input multi-valued Quantum logic function consists of four Quantum AND, and two Quantum OR operation. Output of logic function will XOR with 0. The output of the XOR will go through the multi-valued quantum D Flip-Flop and multi-valued quantum multiplexer as input. The multi-valued quantum D Flip-Flop is a sequential circuit that consists of four multi-valued quantum NAND operations and one multi-valued quantum NOT operation. The output of the multi-valued quantum D Flip-Flop will go through the multi-valued multiplexer as input. A multi-valued 3to-1 MUX is designed using three multi-valued quantum AND operations, and two multi-valued DNA OR operation. Quantum computing provides fast computation in logic devices than DNA computing. So, a storage device is needed for making a balance between these two computing systems. DNA computing gives more storage capacity, as a result, the output operation of the logic devices will perform in DNA computing. It is needed to transform qubit into DNA molecule by a transformation process by which an excited magnetic state returns to its equilibrium distribution. Quantum Computing produces more heat in circuits which can be used in DNA
405
Multi-Valued Quantum-DNA Complex Programmable Logic Devices
Multi-Valued AND Operations
Heat Transfer Multi-Valued NAND Operations
|A>
FIGURE 11.9 Quantum-DNA CPLD
Anneal >60 o OR
Quantum Cache Memory
Multi-Valued AND Operations
NMR Relaxation
Anneal >60 o
Multi-Valued Quantum 1:3 Decoder
Multi-Valued AND Operations
|S>
Multi-Valued OR Operations
|B>
OR
406
Multiple-Valued Programmable Logic Devices in Quantum-DNA Computing
computing to perform DNA logic operations. For this, a heat transfer circuit is needed between Quantum and DNA operations. The Quantum-DNA CPLD implementation methods will improve the result of any logic device.
11.5.2
Working Principle
Three multi-valued Quantum Ternary 1-to-3 decoder designs for input |A>, |B>, and |S>. Multi-Valued Quantum Ternary 1-to-3 decoder operation requires the shifting operations that include (+2) shifting only. Where three (+2) operations are not controlled, and three (+2) operation is controlled by respective one input. The output of the decoder for input |A> and |B> first go through the logic function. The logic function use four multi-valued quantum TAND operation and two multi-valued Quantum TOR operation. The logic function implements the function (A0.B1 + A1.B1) + 1. (A2.B0) to generate the logic function output. The outputs of the logic function are given in the table. The output of logic function will XOR with |0>. Table 11.4 shows the Multi-Valued Logic Function. 2 input, one is the output of XOR and another is clock input will go through the D flip-flop. The D flip-flop uses one Quantum TNOT operation and four multivalued Quantum TNAND operations. The D flip-flop transfer the XOR output the same as |D>, if the CLK input sequences are |1> or |2>. If the CLK input is |0>, one of the inputs to each of the last two Quantum TNAND operations will be |2>, thus the output of the D flip-flop remains unchanged regardless of the values of the XOR output. The ternary selection input S is firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3to-1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and XOR)) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. The output of these three Quantum AND operations will store in a Quantum cache memory. Cache memory stores these qubits as quantum computing is faster TABLE 11.4 Multi-Valued Logic Function A 0 0 0 1 1 1 2 2 2
B 0 1 2 0 1 2 0 1 2
LUT output 0 2 0 0 2 0 1 0 0
Summary
407
than DNA computing. NMR Relaxation is used to transfer the qubit into the DNA sequence. Two DNA OR operation performs OR of these three DNA sequences. Quantum circuits produce more heat than DNA circuits. For this, a heat transfer circuit is used to transfer the extra heat produced by the Quantum circuit to the DNA circuit. DNA OR operations used this heat to produce the CPLD output.
11.6 Summary Quantum Computing produces more heat in circuits which can be used in DNA computing to perform DNA logic operations. For this, heat transfer circuit is used between Quantum and DNA operations. The Multiple-valued Quantum-DNA PLDs implementation methods will improve the result of any logic device. Two different technologies are combined to form a new computing technology called quantum molecular biology. This chapter has presented the multi-valued PLDs in quantumDNA computing which is a form of quantum molecular biology. Another form is called DNA-quantum computing which will be discussed in next chapter.
Bibliography [1] Jia, J., Wang, Y., Liu, J., & Jin, G. (2014, July). Effective CGH calculation algorithm with low memory usage using compressed look-up table based on separation of light modulation variable. In Laser Applications to Chemical, Security and Environmental Analysis (pp. JTu4A-25). Optica Publishing Group. [2] Anusudha, K., & Naguboina, G. C. (2017, March). Design and implementation of PAL and PLA using reversible logic on FPGA SPARTAN 3E. In 2017 Fourth International Conference on Signal Processing, Communication and Networking (ICSCN) (pp. 1-6). IEEE. [3] Kricka, L. J., & Fortina, P. (2009). Analytical ancestry:“Firsts” in fluorescent labeling of nucleosides, nucleotides, and nucleic acids. Clinical Chemistry, 55(4), 670-683. [4] Sakakibara, Y. (1998). DNA computers: A new computing paradigm. Journal of Photopolymer Science and Technology, 11(4), 681-686.
12 Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
12.1
Introduction
Multiple-Valued DNA-Quantum PLDs are programmable logic devices that have both Programmable Multiple-Valued DNA AND array and Programmable MultipleValued Quantum OR array. Here, the inputs of multiple-valued DNA AND operations are programmable. That means each multiple-valued DNA AND operation has both normal and complemented inputs of variables. So, based on the requirement, any of those inputs can be programmed and can generate only the required product terms by using these multiple-valued Quantum AND operations. A storage device needs to store DNA sequences between these two computing systems. . Quantum computing generates more heat than DNA computing. As a result, extra heat from the outside is required in a multiple-valued DNA circuit. It is needed to transform multiple-valued DNA molecules into qubits by a storage device and a transformation process (Trap-Ion) by which an excited magnetic state returns to its equilibrium distribution. Quantum Computing produces more heat in circuits which can be used in further DNA computing or can transfer the heat in a cooler circuit to cool down. Here, multiple-valued Quantum OR operations are also programmable. So, any number of required product terms are programmed, since all the outputs of multiplevalued DNA AND operations are applied as inputs to each multiple-valued Quantum OR operation. Therefore, the outputs of multiple-valued DNA-Quantum PLDs will be in the form of the sum of products form.
12.2
Multiple-Valued DNA-Quantum Programmable Logic Array
Programmable Logic Array is a type of PLD, which has both programmable Quantum AND array and programmable Quantum OR array. In a combinational circuit, because of don’t care conditions, not all the minterms are used. Programmable Logic Array (PLA) is a fixed architecture logic device with programmable Quantum AND DOI: 10.1201/9781003381921-12
409
410
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
Heat suppiled from outside to DNA circuit Generate Quantum heat here to Cool down
Multi-Valued
Multi-Valued Multi-Valued
FIGURE 12.1 Block Diagram of Multiple-Valued DNA-Quantum PLA gates followed by programmable Quantum OR gates. PLA is a type of programmable logic device used to build a reconfigurable digital circuit. PLDs have an undefined function at the time of manufacturing, but they are programmed before being made into use. PLA is a combination of memory and logic.
12.2.1
General Organization of Multiple-Valued DNA-Quantum PLA
Multiple-Valued DNA-Quantum PLA is a programmable logic device that has both Programmable Multiple-Valued DNA AND array and Programmable MultipleValued Quantum OR array. Hence, it is the most flexible PLD. The block diagram of Multiple-Valued DNA- Quantum PLA is shown in the Figure 12.1. Here, the inputs of multiple-valued DNA AND operations are programmable. That means each multiple-valued DNA AND operation has both normal and complemented inputs of variables. So, based on the requirement, any of those inputs can be programmed and can generate only the required product terms by using these multiple-valued Quantum AND operations. A storage device needs to store DNA sequences between these two computing systems. DNA computing produces less heat than quantum computing. As a result, extra heat is supplied from outside in a multiple-valued DNA circuit. It is needed to transform multiple-valued DNA molecules into qubit by using a storage device and a transformation process (Trap-Ion) by which an excited magnetic state returns to its equilibrium distribution.
411
Multiple-Valued DNA-Quantum Programmable Logic Array TABLE 12.1 Truth Table of Ternary DNA-Quantum PLA |A> ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
|B> ACCTAG ACCTAG TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
|F1> |0> |2> |0> |0> |2> |0> |1> |0> |0>
|F2> |0> |0> |2> |0> |0> |1> |0> |1> |0>
Quantum Computing produces more heat in circuits which can be used in further DNA computing or can transfer the heat in a cooler circuit to cool down. Here, multiple-valued Quantum OR operations are also programmable. So, any number of required product terms can be programmed, since all the outputs of multiple-valued DNA AND operations are applied as inputs to each multiple-valued Quantum OR operation. Therefore, the outputs of multiple-valued DNA-Quantum PAL will be in the form of the sum of products form.
12.2.2
Circuit Architecture of Multi-Valued DNA-Quantum PLA
Consider the design of ternary quantum PLA for the following functions: F1 = A0.B1+A1.B1+ 1. (A2.B0) F2 = A0.B2+ 1. (A1.B2+A2.B1) The given two functions are in the sum of product form. The number of product terms present in the given Boolean functions |F1>, |F2> are three. Table 12.1 shows the truth table of ternary DNA-Quantum PLA. Eight programmable ternary DNA AND operation & four programmable ternary Quantum OR gates are needed for producing those two functions. The corresponding DNA-Quantum PLA is shown in Figure 12.2. For the given functions, there are two inputs (A, B) and two outputs (F1, F2). Two ternary DNA 3-to-1 decoders are used for input A and B. Thus the realization has six input lines. Eight ternary DNA AND operations are designed using DNA computing. It is needed to use cache memory to store the DNA sequences. It is needed to transform DNA molecules into qubits by Trap-Ion by which an excited magnetic state returns to its equilibrium distribution. Here, ternary Quantum OR operations are also programmable. So, any number of required product terms can be programmed, since all the outputs of ternary DNA AND operations are applied as inputs to each ternary Quantum OR operation. Therefore, the outputs of ternary DNA- Quantum PAL will be in the form of the sum of products form.
412
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
AND Operation
OR Operation
Anneal >60 o
NOT
Anneal >60 o
NOT
OR Operation OR
Anneal >60 o
Anneal >60 o
NOT
OR Operation
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
NOT
NOT
NOT
AND Operation
Anneal >60 o AND
Ternary DNA Decoder
Heat of Quantum Circuit to outside
NOT
o
B0 B1 B2 A0 A1 A2 OR
Anneal >60 o
NOT
Anneal >60 o
Heat Supplied from outside to DNA Circuit
OR Operation
Trap Lon
Ternary Quantum AND & OR Operation
FIGURE 12.2 DNA-Quantum PLA
12.2.3
Working Principle
According to truth table (Table 12.1) of ternary DNA-Quantum PLA, it is necessary to do the following operations to perform desire output qubits: 1. For input Qubits A, B = ACCTAG , ACCTAG function |F1> and |F2> produce |0>
Multiple-Valued DNA-Quantum Programmable Array Logic
413
2. For input Qubits A, B = ACCTAG, CAAGCT function |F1> produce |2> and |F2> produce |0> 3. For input Qubits A, B = ACCTAG, | TGGATC function |F1> produce |0> and |F2> produce |2> 4. For input Qubits A, B = CAAGCT ACCTAG function |F1> and |F2> produce |0> 5. For input Qubits A, B = CAAGCT , CAAGCT function |F1> produce |2> and |F2> produce |0>For input Qubits A, B = CAAGCT, TGGATC function |F1> produce |0> and |F2> produce |1> 6. For input Qubits A, B = TGGATC, ACCTAG function |F1> produce |1> and |F2> produce |0> 7. For input Qubits A, B = TGGATC, CAAGCT function |F1> produce |0> and |F2> produce |1> 8. For input Qubits A, B = TGGATC , TGGATC function |F1> and |F2> produce |0>
12.3
Multiple-Valued DNA-Quantum Programmable Array Logic
Programmable Array Logic (PAL) is a logic device, which has a programmable AND array and fixed OR array. It is used to realize a logic function. In this PLD, only AND gates are programmable and hence it is easier to work with PAL. Figure 12.3 shows the internal structure of Programmable Array Logic. The product terms can be programmed through the fuse link. It means the user can decide the connection between the inputs and the AND gates. If a particular input line is to be connected to the AND gate, then the fuse link must be placed at the interconnection. The AND gate outputs are then fed as an input to the fixed OR gate. Depending upon the required function, the output line of the AND gate is connected to the corresponding input of the OR gate.
12.3.1
General Organization of Multi-Valued DNA-Quantum PAL
DNA- Quantum PLA is a programmable logic device that has Programmable DNA AND array & fixed Quantum OR array. Hence, it is the most flexible PLD. The block diagram of DNA- Quantum PAL is shown in Figure 12.4. Here, the inputs of DNA AND operations are programmable. That means each DNA AND operation has both normal and complemented inputs of variables. So based on the requirement, any of those inputs can be programmed and can generate only the required product terms by using these Quantum AND operations. A storage device needs to store DNA sequences between these two computing systems. DNA computing produces less heat than quantum computing. As a result, the extra heat from outside in the DNA circuit is supplied. It is needed to transform DNA molecules
414
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
FIGURE 12.3 Block Diagram of PAL into qubits by a storage device and a transformation process (Trap-Ion) by which an excited magnetic state returns to its equilibrium distribution. Quantum Computing produces more heat in circuits which can be used in further DNA computing or can transfer the heat in a cooler circuit to cool down. Here, Quantum OR operations are fixed. All the outputs of DNA AND operations are applied as inputs to each Quantum
Heat suppiled from outside to DNA circuit Generate Quantum heat here to Cool down
Multi-Valued
Multi-Valued Multi-Valued
FIGURE 12.4 Block Diagram of Multiple-Valued DNA-Quantum PAL
415
Multiple-Valued DNA-Quantum Programmable Array Logic
OR operation. Therefore, the outputs of DNA-Quantum PAL will be in the form of the sum of products form.
12.3.2
Circuit Architecture of Multi-Valued DNA-Quantum PAL
Consider the design of ternary quantum PAL for the following functions: F1 = A0.B1+A1.B1+ 1. (A2.B0) F2 = A0.B2+ A1.B2+ A2B1 The given two functions are in the sum of products form. The number of product terms present in the given Boolean functions |F1>, |F2> are three. Table 12.2 shows the truth table of ternary DNA-Quantum PAL Seven programmable ternary DNA AND operation & four programmable ternary Quantum OR gates are needed for producing those two functions. The corresponding DNA-Quantum PAL is shown in Figure 12.5. For the given functions, there are two inputs (A, B) and two outputs (F1, F2). Two ternary DNA 3-to-1 decoders are used for input A and B. Thus the realization has six input lines. Eight ternary DNA AND operations are designed using DNA computing. Cache memory is used to store the DNA sequences. It is needed to transform DNA molecules into qubits by Trap-Ion by which an excited magnetic state returns to its equilibrium distribution. Here, ternary Quantum OR operations are also programmable. So, any number of required product terms can be programmed, since all the outputs of ternary DNA AND operations are applied as inputs to each ternary Quantum OR operation. Therefore, the outputs of ternary DNA- Quantum PAL will be in the form of the sum of products form. TABLE 12.2 Truth Table of Ternary DNA-Quantum PAL |A> ACCTAG ACCTAG ACCTAG CAAGCT CAAGCT CAAGCT TGGATC TGGATC TGGATC
|B> ACCTAG ACCTAG TGGATC ACCTAG CAAGCT TGGATC ACCTAG CAAGCT TGGATC
|F1> |0> |2> |0> |0> |2> |0> |1> |0> |0>
|F2> |0> |0> |2> |0> |2> |0> |0> |0> |0>
416
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
Anneal and |F2> produce |0>For input Qubits A, B = CAAGCT, TGGATC function |F1> produce |0> and |F2> produce |1> 6. For input Qubits A, B = TGGATC, ACCTAG function |F1> produce |1> and |F2> produce |0> 7. For input Qubits A, B = TGGATC, CAAGCT function |F1> produce |0> and |F2> produce |1> 8. For input Qubits A, B = TGGATC , TGGATC function |F1> and |F2> produce |0>
12.4
Multi-Valued DNA-Quantum Field Programmable Gate Array
Field Programmable Gate Arrays (FPGAs) are semiconductor devices that are based around a matrix of configurable logic blocks (CLBs) connected via programmable interconnects. Multiple-valued Quantum computing use Qubits (|0>, |1> and |2>) and Multiple-valued DNA Computing system use Molecule to represent information. In multiple-valued DNA-Quantum computing FPGA design, DNA sequences will work as input for the programmable logic devices. A storage device needs to use for making balance between these two computing systems. Multiple-valued DNA computing produces less heat than multiple-valued quantum computing. As a result, it is needed to supply extra heat from outside in the DNA circuit. It is needed to transform DNA molecules into qubits by a storage device and a transformation process by which an excited magnetic state returns to its equilibrium distribution. Quantum Computing produces more heat in circuits which can be used in further DNA computing or can transfer the heat in a cooler circuit to cool down. The DNA- Quantum FPGA implementation methods will improve the result of any logic device. Figure 12.6 shows the block diagram of DNA-Quantum FPGA .
418
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
Anneal>60
Multi-Valued
Multi-Valued
FIGURE 12.6 Block Diagram of DNA-Quantum FPGA
12.4.1
Circuit Architecture of Multiple-Valued DNA-Quantum FPGA
Ternary FPGA logic block is designed by connecting Flip-Flops, Look-up Tables (LUT), and Multiplexers. Here a simple multi-valued FPGA logic block is designed by using a ternary D Flip-Flop, a ternary Look-up Table (LUT), and a 3-to-1 multiplexer. The ternary input A and B signals are firstly decoded by the ternary decoder. Then they will be transferred to the LUT. A simple 2 input LUT is designed using four AND operations and two OR operations. The output equations is = (A0.B1 + A1.B1) + 1.(A2.B0). Note that the output of the decoder has only two logic values, i.e., “2” and “0”, corresponding to logic “1” and “0” in binary logic. The output of the LUT is used as input in the D Flip-Flop and multiplexer. Ternary D Flip-Flop is a sequential circuit that consists of four ternary NAND operations and one NOT operation. Two Output (Q and Q’) of the D Flip-Flop are used as input in the multiplexer. The ternary selection input S is firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input. A 3-to-1 MUX is designed using three ternary Quantum AND operations and two ternary DNA OR operation. The multiplexer generates the desired output for the FPGA logic block. Outputs of the three ternary AND will store in a Quantum cache memory. Trap Ion is used to transfer the DNA sequence into a qubit. These two qubits will perform Quantum OR operations. Heat supplied from outside to DNA circuit for operation. A heat transfer circuit is used in the quantum multiplexer circuit to transfer the extra heat produced by the Quantum circuit to the outside to cool it. Figure 12.7 shows the circuit architecture of Multi-Valued DNA-Quantum FPGA .
419
Multi-Valued DNA-Quantum Field Programmable Gate Array Heat Supplied from o outside to DNA Circuit with Annel >60
Anneal >60 o
NOT
S1 S2 S3B0 B1 B2 A1 A2 A3
Anneal >60 o
NOT Anneal >60 o
Ternary DNA Circuits
Anneal >60 o
AND NOT
AND
Anneal >60 o
Anneal >60 o
AND NOT
Anneal >60 o
NOT
Anneal >60 o
NOT
OR Operation
OR Operation Anneal >60 o
Anneal >60 o
Anneal >60 o
AND NOT
Anneal >60 o
OR
NOT
Anneal >60 o
Anneal >60 o
AND
AND
Anneal >60 o
NOT
Anneal >60 o
Anneal >60 o
AND
Anneal >60 o
Anneal >60 o
NOT
OR
AND
Anneal >60 o
Anneal >60 o
NOT
Anneal >60 o
NOT
NOT
Anneal >60 o
NOT
OR
Anneal >60 o
Anneal >60 o
AND
Anneal >60 o
NOT
OR
Trap Ion
Anneal >60 o
NOT
Anneal >60 o
OR
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
NOT
Anneal >60 o
AND
AND
Ternary Quantum Operation
FIGURE 12.7 Multi-Valued DNA-Quantum FPGA
12.4.2
Working Procedure
A two-input ternary Look-up Tables (LUT) is used to design the FPGA control logic block. Input A and B firstly is decoded by the ternary decoder and generated the
420
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
output lines A0, A1, A2 for input A, and B0, B1, B2 for input B. These outputs will go through the Look-up Tables (LUT). The LUT use four ternary AND operation and two OR operation to implement the function (A0.B1 + A1.B1) + 1. (A2.B0). During ternary DNA computing, sequence ACCTAG is considered as “0”, sequence CAAGCT strands as “1” and TGGATC stands as “2”. In ternary AND operation, output value depends on the minimum value of its inputs and in ternary OR operation, output value depends on the maximum value of its inputs. ). The output of the decoder has only two sequences, “TGGATC (2) and “ACCTAG (0)”. 1. When the input sequences A, B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (2, 0, 0). None of the ternary AND operations (D0-D2) are connected to A0 and B0 lines. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 2. When the input sequences A = ACCTAG (0) and B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 2, 0). D0 ternary AND operation is connected to A0 and B1 lines. As a result, D0 ternary AND operation value will be true (TGGATC). So the output of the LUT will be TGGATC. 3. When the input sequences A = ACCTAG (0) and B = TGGATC (2), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 0, 2). None of the ternary AND operations (D0-D2) are connected to A0 and B2 lines. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 4. When the input sequences A = CAAGCT (1) and B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (2, 0, 0). None of the ternary AND operations (D0-D2) are connected to A1 and B0 lines. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 5. When the input sequences A, B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 2, 0). D1 ternary AND operation are connected to A1 and B1 lines. As a result D1 ternary AND operation value will be true (TGGATC). So the output of the LUT will be TGGATC. 6. When the input sequences A = CAAGCT (1), and B = TGGATC (2), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 0, 2). . None of the ternary AND operation (D0-D2) are connected to A1 and B2 line. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 7. When the input sequences A = TGGATC (2), and B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (2, 0, 0). D2 ternary AND operation is connected to A2 and B0 lines. As a result D ternary AND operation value will be true (TGGATC). Now
Multi-Valued DNA-Quantum Field Programmable Gate Array
421
it will proceed ternary AND operation with CAAGCT (1) and produce minimum as CAAGCT as LUT output. 8. When the input sequences A = TGGATC (2), and B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 2, 0). None of the ternary AND operations (D0-D2) are connected to A2 and B1 lines. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 9. When the input sequences A, B = TGGATC (2), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 0, 2). ). None of the ternary AND operations (D0-D2) are connected to A2 and B2 lines. As a result, none of the ternary AND operation values will be true. So the output of the LUT will be ACCTAG (0). 2 inputs, one is the output of LUT and another is clock input will go through the ternary D flip-flop. The ternary D flip-flop use one NOT gate four NAND gates. 1. If the LUT output and CLK input both are ACCTAG (0), then the output of the ternary D flip-flop will remain unchanged. 2. If the LUT output is ACCTAG (0) and CLK input is CAAGCT (2), then the output of the D flip-flop will be ACCTAG (0). 3. If the LUT output is ACCTAG (0) and CLK input is TGGATC (2), then the output of the D flip-flop will be ACCTAG (0). 4. If the LUT output is CAAGCT (1) and CLK input is ACCTAG (0), then the output of the D flip-flop will remain unchanged. 5. If the LUT output and CLK input both are CAAGCT (1), then the output of the D flip-flop will be CAAGCT (1). 6. If the LUT output is CAAGCT (1) and CLK input is TGGATC (2), then the output of the D flip-flop will be CAAGCT (1). 7. If the LUT output is TGGATC (2) and CLK input is ACCTAG (0), then the output of the D flip-flop will remain unchanged. 8. If the LUT output is TGGATC (2) and CLK input is CAAGCT (1), then the output of the D flip-flop will be CAAGCT (1). 9. If the LUT output and CLK input both are TGGATC (2), then the output of the D flip-flop will be TGGATC (2). The ternary selection input S is firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3-to-1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and LUT)) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. Outputs of these AND operations will store in a DNA cache memory. Trap Ion is used to transfer the DNA sequence into a qubit. These three Quantum qubits will go through the Quantum OR operation to generate the FPGA logical block output. Heat
422
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
supplied from outside to DNA circuit for operation. A heat transfer circuit is used in the quantum multiplexer circuit to transfer the extra heat produced by the Quantum circuit to the outside to cool it. 1. If all three input sequences (output of three ternary AND operations) are ACCTAG (0), then the output of the ternary OR operation is |0>. 2. If one of the three input sequences is TGGATC (2), then the output of the ternary Quantum OR operation is |2>. 3. If input sequences are in ACCTAG (0), and CAAGCT (1) then the output of the ternary Quantum OR operation is |1> 4. If input sequences are in ACCTAG (0), and TGGATC (2) then the output of the ternary Quantum OR operation is |2> 5. If input sequences are in CAAGCT (1), and TGGATC (2) then the output of the ternary OR operation is |2>.
12.5
Multi-Valued DNA-Quantum Complex Programmable Logic Devices
Multiple-valued Quantum computing uses Qubits (|0>, |1> and |2>) and Multiplevalued DNA Computing system uses Molecule to represent information. In multiplevalued DNA-Quantum computing CPLD design, DNA sequences will work as input for the programmable logic devices. A storage device needs to use for making balance between these two computing systems. Multiple-valued DNA computing produces less heat than multiple-valued quantum computing. As a result, it is needed to supply extra heat from outside in the DNA circuit and need to transform DNA molecules into qubits by a storage device and a transformation process by which an excited magnetic state returns to its equilibrium distribution. Quantum Computing produces more heat in circuits which can be used in further DNA computing or can transfer the heat in a cooler circuit to cool down. The DNA- Quantum FPGA implementation methods will improve the result of any logic device. Figure 12.8 shows the block diagram of DNA-Quantum CPLD .
12.5.1
Circuit Architecture of Multiple-Valued DNA-Quantum CPLD
Multi-Valued DNA-Quantum CPLD circuit is divided into two blocks. One is DNA part of the DNA-Quantum CPLD and another is Quantum part of the DNA-Quantum CPLD. DNA part consists of DNA operation of the logic function, Flip-flop and 3 and operation of the multiplexer. Here a simple DNA part of DNA-Quantum CPLD (Figure 12.9) is designed by using a DNA D Flip-Flop, a DNA logic function and 3 AND operations of multiplexer. Three 1-to-3 decoders are used for three input A, B and S. A simple DNA
Multi-Valued DNA-Quantum Complex Programmable Logic Devices
423
Heat suppiled from outside to DNA circuit
Multi-Valued
Multi-Valued
FIGURE 12.8 Block Diagram of DNA-Quantum CPLD logic function consist of four DNA AND, and two Quantum OR operation. The output of logic function will XOR with zero. The output of the XOR will go through the DNA D Flip-Flop. The D Flip-Flop is a sequential circuit that consists of four Quantum NAND (AND+ NOT) operations and one DNA NOT operation. Heat is supplied from outside to DNA circuit for operation. Figure 12.9 depicts the DNA Part of Multi-Valued DNA-Quantum CPLD. Another part of DNA to Quantum CPLD circuit is Quantum part CPLD. Quantum part consists of Quantum operation of Multiplexer OR operations. A simple 3-to-1 multiplexer consist of three DNA AND operations and two Quantum OR operations. Here a simple Quantum CPLD part (Figure 12.10) is designed by using two Quantum OR operation. Multi-Valued DNA to Quantum CPLD functional block is designed by connecting DNA circuit and Quantum circuit. A simple DNA-Quantum CPLD functional block (Figure 12.11) is designed by using DNA block and Quantum block. Outputs DNA block will store in a DNA cache memory. Trap Ione used to transfer the DNA sequence into Qubit. Heat is supplied from outside to DNA circuit for operation. A heat transfer circuit is used in quantum multiplexer circuit to transfer the extra heat produced by the Quantum circuit to outside for cool it. Ternary CPLD functional block is designed by connecting Flip-Flops, logic function and Multiplexers. Here a simple multi-valued CPLD functional block is designed by using a ternary D Flip-Flop, a logic function and a 3-to-1 multiplexer. The ternary input A, and B signals are firstly decoded by the ternary decoder. Then they will be transferred to the logic function. A simple 2 input logic function is designed using four AND operation and two OR operation. The logic function equations is =
NOT
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
Anneal >60 o
Anneal >60 o
NOT
OR
Anneal >60 o
AND
NOT
AND
NOT
Anneal >60 o
Anneal >60 o Anneal >60 o
AND
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
AND NOT
Anneal >60 o
Anneal >60 o Anneal >60 o
NOT
Anneal >60 o
OR
Anneal >60 o
AND NOT
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
AND
Anneal >60 o
OR
Anneal >60 o
AND
NOT NOT
Anneal >60 o
NOT
Anneal >60 o
Anneal >60 o
OR
OR
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
NOT
AND
Anneal >60 o
NOT
Anneal >60 o
Anneal >60 o
NOT NOT
S0 S1 S2 B0 B1 B2 A0 A1 A2
Anneal >60 o
Anneal >60 o
424
NOT NOT NOT AND
AND
FIGURE 12.9 DNA Part of Multi-Valued DNA-Quantum CPLD (A0.B1 + A1.B1) + 1. (A2.B0). Output of the function will XOR with 0. Note that the output of the decoder has only two logic values, i.e., “2” and “0”, corresponding to logic “1” and “0” in binary logic. The output of the XOR is used as input in the D Flip-Flop and multiplexer. Ternary D Flip-Flop is a sequential circuit that consist of four ternary NAND operation and one NOT operation. Two Output of the XOR op-
Multi-Valued DNA-Quantum Complex Programmable Logic Devices
425
Multi-Valued
Multi-Valued
FIGURE 12.10 Quantum Part of Multi-Valued DNA-Quantum CPLD eration and D Flip-Flop (Q and Q’) are used as input in the multiplexer. The ternary selection input S firstly decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input. A 3-to-1 MUX is designed using three ternary Quantum AND operation and two ternary DNA OR operation. The multiplexer generate the desired output for the CPLD functional block. Outputs of the three ternary
Multi-Valued Multi-Valued
FIGURE 12.11 Block Diagram of Multi-Valued DNA-Quantum CPLD
426
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
AND will store in a Quantum cache memory. Trap Ione used to transfer the DNA sequence into qubit. These two qubit will perform Quantum OR operation. Heat is supplied from outside to DNA circuit for operation. A heat transfer circuit is used in quantum multiplexer circuit to transfer the extra heat produced by the Quantum circuit to outside for cool it.
12.5.2
Working Procedure
A two-input ternary XOR is used to design the CPLD functional block. Input A and B firstly decoded by the ternary decoder and generated the output lines A0, A1, A2 for input A, and B0, B1, B2 for input B. These outputs will go thought the logic function. The logic function use four ternary AND operation and two OR operation to implement the function (A0.B1 + A1.B1) + 1. (A2.B0). During ternary DNA computing, sequence ACCTAG is considered as “0”, sequence CAAGCT strands as “1” and TGGATC stands as “2”. In ternary AND operation, output value depends on the minimum value of its inputs and in ternary OR operation, output value depends on the maximum value of its inputs. ). The output of the decoder has only two sequence, “TGGATC (2) and “ACCTAG (0)”. 1. When the input sequences A, B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (2, 0, 0). None of the ternary AND operation (D0-D2) are connected to A0 and B0 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). 2. When the input sequences A = ACCTAG (0) and B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 2, 0). D0 ternary AND operation is connected to A0 and B1 line. As a result D0 ternary AND operation value will be true (TGGATC). So the output of the logic function will be TGGATC. 3. When the input sequences A = ACCTAG (0) and B = TGGATC (2), ternary decoder generate A0, A1, A2 = (2, 0, 0) and B0, B1, B2 = (0, 0, 2). None of the ternary AND operation (D0-D2) are connected to A0 and B2 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). 4. When the input sequences A = CAAGCT (1) and B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (2, 0, 0). None of the ternary AND operation (D0-D2) are connected to A1 and B0 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). 5. When the input sequences A, B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 2, 0). D1 ternary AND operation is connected to A1 and B1 line. As a result D1 ternary AND operation value will be true (TGGATC). So the output of the logic function will be TGGATC.
Multi-Valued DNA-Quantum Complex Programmable Logic Devices
427
6. When the input sequences A = CAAGCT (1), and B = TGGATC (2), ternary decoder generate A0, A1, A2 = (0, 2, 0) and B0, B1, B2 = (0, 0, 2). ). None of the ternary AND operation (D0-D2) are connected to A1 and B2 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). 7. When the input sequences A = TGGATC (1), and B = ACCTAG (0), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (2, 0, 0). D2 ternary AND operation is connected to A2 and B0 line. As a result D ternary AND operation value will be true (TGGATC). Now it will proceed ternary AND operation with CAAGCT (1) and produce minimum as CAAGCT as LUT output. 8. When the input sequences A = TGGATC (2), and B = CAAGCT (1), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 2, 0). ). None of the ternary AND operation (D0-D2) are connected to A2 and B1 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). 9. When the input sequences A, B = TGGATC (2), ternary decoder generate A0, A1, A2 = (0, 0, 2) and B0, B1, B2 = (0, 0, 2). ). None of the ternary AND operation (D0-D2) are connected to A2 and B2 line. As a result none of the ternary AND operation value will be true. So the output of the logic function will be ACCTAG (0). Output of the logic function will XOR with be ACCTAG (0). 2 input, one is the output of logic function and another is clock input will go thought the ternary D flip-flop. The ternary D flip-flop use one NOT gate four NAND gates. 1. If the XOR output and CLK input both are ACCTAG (0), then the output of the ternary D flip-flop will remain unchanged. 2. If the XOR output is ACCTAG (0) and CLK input is CAAGCT (1), then the output of the D flip-flop will be ACCTAG (0). 3. If the XOR output is ACCTAG (0) and CLK input is TGGATC (2), then the output of the D flip-flop will be ACCTAG (0). 4. If the XOR output is CAAGCT (1) and CLK input is ACCTAG (0), then the output of the D flip-flop will remain unchanged. 5. If the XOR output and CLK input both are CAAGCT (1), then the output of the D flip-flop will be CAAGCT (1). 6. If the XOR output is CAAGCT (1) and CLK input is TGGATC (2), then the output of the D flip-flop will be CAAGCT (1). 7. If the XOR output is TGGATC (2)and CLK input is ACCTAG (0), then the output of the D flip-flop will remain unchanged. 8. If the XOR output is TGGATC (2) and CLK input is CAAGCT (1), then the output of the D flip-flop will be CAAGCT (1). 9. If the XOR output and CLK input both are TGGATC (2), then the output of the D flip-flop will be TGGATC (2).
428
Multiple-Valued Programmable Logic Devices in DNA-Quantum Computing
The ternary selection input S firstly is decoded by the ternary decoder. Then it will be transferred to the multiplexer as a selection input (S0, S1, and S2). A 3 to 1 multiplexer contains three input signals (outputs of D flip-flop (Q and Q’) and XOR)) and three select lines. Each selected input line and one input signal perform ternary AND operation. For ternary AND operation, Output will be the minimum value. Outputs of these AND operation will store in a DNA cache memory. Trap Ione used to transfer the DNA sequence into qubit. These three Quantum qubit will go thought the Quantum OR operation to generate the CPLD functional block output. Heat supplied from outside to DNA circuit for operation. A heat transfer circuit is used in quantum multiplexer circuit to transfer the extra heat produced by the Quantum circuit to outside for cool it. 1. If all three input sequences (output of three ternary AND operation) are ACCTAG (0), then the output of the ternary OR operation is |0>. 2. If one of the three input sequence is TGGATC (2), then the output of the ternary Quantum OR operation is |2>. 3. If input sequences are in ACCTAG (0), and CAAGCT (1) then the output of the ternary Quantum OR operation is |1> 4. If input sequences are in ACCTAG (0), and TGGATC (2) then the output of the ternary Quantum OR operation is |2> 5. If input sequences are in CAAGCT (1), and TGGATC (2) then the output of the ternary OR operation is |2>.
12.6 Summary Quantum molecular biology is a novel concept that is discussed here. Information is represented by qubits in quantum computing, whereas information is represented by DNA molecular sequences in DNA computing. Quantum molecular biology is the result of combining these two concepts. One form of this is DNA-quantum computing. This chapter has presented four PLDs in details. The PLA, PAL, FPGA, CPLD are explained with their working principles and circuit architectures.
Bibliography [1] Kielpinski, D., Monroe, C., & Wineland, D. J. (2002). Architecture for a largescale ion-trap quantum computer. Nature, 417(6890), 709-711. [2] Zadeh, R. P., & Haghparast, M. (2011). A new reversible/quantum ternary comparator. Australian Journal of Basic and Applied Sciences, 5(12), 2348-2355.
Summary
429
[3] Lee, J. J., & Song, G. Y. (2005, January). Design of an application-specific PLD architecture. In Proceedings of the 2005 Asia and South Pacific Design Automation Conference (pp. 1244-1247).
Part IV
Multiple-Valued Nano-Processors in Quantum Molecular Biology
Overview
Complementary metal-Oxide semiconductor (CMOS) increases integration density. As a result, CMOS technology is now facing a power scaling limit. Multi-valued logic (MVL) has been considered a promising alternative for resolving power scaling challenges. Over the last three decades, multi-valued logic has drawn the attention of researchers. They discovered that MVL logic is non-classical logic. MVL and Boolean logic are identical; the difference between them is that to- MVL can allow more than two truth values that are not possible to have in the Boolean logic gate. Truth degrees of MVL logic are treated as technical tools and intend to choose them suitably for particular applications. These distinct truth degrees are represented either “Falsum” or “Verum” like the traditional truth values. But the third value 12 stands for “possible.” The MLV circuits can store more information than conventional binary logic circuits. This part will give an apparent idea of multi-valued logic. In addition, basic definitions will also be shown here. Their design procedure, working principle, and circuit of each logic operation will also be described here. Recent research in multi-valued logic for quantum computing has shown that this multi-valued quantum system can eradicate the power scaling limit. As a framework of quantum cryptography, a multi-valued quantum system is used. The information unit of a three-valued quantum system is known as qutrit. A qutrit can be defined as a linear superposition. Moreover, a novel design of a multi-valued quantum Nanoprocessor will be designed. Multi-valued logic is such a logic that consists of more than two truth variables, such as ternary logic, fuzzy logic. For example, ternary logic has three values 0, 1, and 2. A complete multi-valued Quantum Nano processor using the ternary method will be discussed. Quantum ternary logic is a promising emerging technology for future quantum computing and has potential advantages over binary ones. Multi-valued logic can reduce circuit size, is more cost-effective, simple, and more efficient. On the other hand, quantum computing has more advantages, such as high storage capacity, ensuring data security, fast computations. Moreover, researchers have shown that quantum computing and MVL are related to each other, have a close relationship. Based on the previous research, it is apparent that it is possible to merge qubit and qutrit. Therefore, quantum computing and ternary systems have tremendous advantages, and they can incorporate; it is possible to make combinational circuits using qubit and qutrit. In addition, recent research in multi-valued logic for quantum computing has shown practical advantages for scaling up a quantum computer.
433
13 Multiple-Valued Quantum Nano Processor
13.1
Introduction
The Quantum computing topic is more prevalent among researchers to its potential advantages. Quantum computing can solve classical NP problems in polynomial time. It relies on quantum bits or qubits expressed by |0> and |1>. Moreover, they can lie superposition that assists a qubit to remain both |0> and |1> simultaneously. On the other hand, multi-valued logic is the non-binary valued system, in which there is more than two truth values’ approach can be ternary, quaternary, or can be the higher valued system that can reduce the number of devices and system complexity. Jan Łukasiewicz is the founding father of the modern theory of multi-valued logic who argued in his numerous papers about future non-certain events belonging to the domain of many-valued logic. He identified 0 or 1 truth values with probabilities that considered statements would be factual in the classical sense in the future. The statement perfectly fits for future non-certain events in quantum mechanics. Later many researchers have shown multi-valued logic for quantum computing. Moreover, recent studies have shown us many advantages to expanding quantum computers from qubit to multi-valued logic. Three-level quantum systems are called qutrit and are the most straightforward multi-valued system. Therefore, it is expected that qutrit-based quantum computers will be more powerful. But still, the multi-valued quantum logic field is a new and immature research area. This chapter will propose a novel quantum ternary nano-processor where each component of this nano-processor is made using qubit and qutrit to get a more powerful nano-processor . In quantum operation, qubit generates much heat when they become isolated and start computations. This heat can violate the electron position of the nano-processor, which will create chaos in this nano-processor. As a result, a heat transfer circuit is used here to pass the obtained heat from the nano-processor to the environment. And then, the generated heat of this nano-processor will be cooled down using a refrigerator. It is expected that an effective ternary quantum computer can be implemented using the procedure proposed in this chapter.
DOI: 10.1201/9781003381921-13
435
436
13.2
Multiple-Valued Quantum Nano Processor
Basic Definitions
The computer’s CPU (central process unit) is a computer that executes instructions. CPU always consists of an arithmetic logic unit, buses, a control unit, and various types of registers. All types of processors should have such a processor that contains a control unit, register, ALU, RAM, and Buses. These are the core components of a processor. Unlike other processors, the quantum ternary nano-processor has the above features like quantum ternary control unit, quantum ternary ALU (arithmetic logic unit), quantum ternary register, buses. Quantum ternary control unit consists of many selection circuits like quantum ternary multiplexers, decoders that instruct within a computer processor. The Quantum ternary register is the most miniature set of qubits that can hold any data such as instructions and registers. Quantum ternary arithmetic logic unit performs all kinds of arithmetic operations. The main motto of quantum ternary RAM is to store and access data on a short-term basis, and it is a volatile memory. Three types of buses are address bus, control bus, and data bus used to transfer data between nano-processors and other components.
13.3
Block Diagram of Complete 2-Qubit Ternary Nano Processor
The CPU (Central Processing Unit) is the heart of a computer that manipulates data and executes instructions. The following Figure is the 2-qubit ternary nano-processor. This processor is implemented using some combinational quantum ternary circuits such as Instruction register, multiplexer, program counter. A complete 2-qubit ternary nano processor diagram is shown below (Figure 13.1) with their working principles. This is the complete 2-qubit ternary nano processor where only essential CPU components are shown. There are two inputs needed in CPUs for performing meaningful work: instruction and data. The instruction register instructs the CPU what actions need to be performed on the data. The CPU’s inputs are stored in the memory. In Figure 13.1, it is seen that RAM data moves from memory to the instruction register, and the CPU functions are following a cycle of fetching an instruction. After the fetching part is completed, the ternary qubit is decoded and executed. The cycle starts when data is transferred from memory to the instruction register. Sending data from memory always uses the data bus for transferring data. First, the unique qubit patterns are extracted by selecting machine language in the IR and sent to the decoder. The main motto of the decoder is to decode coded information from one format to another format. The decoder is responsible for the second step. The decoder represents which qubit pattern will operate and activates that circuit needed to perform the actual operation.
Block Diagram of Complete 2-Qubit Ternary Nano Processor
FIGURE 13.1 2-Qubit Ternary Nano-Processor
437
438
Multiple-Valued Quantum Nano Processor
The next instruction begins to work when an operation is thoroughly performed. If an instruction is completed, the program counter is incremented by one memory location. This is the whole working procedure of the 2-qubit ternary Nano processor. Notice that a heat transfer circuit has been used as the quantum circuit produces so much heat, which can create chaos within the circuit. That is why this heat has been transferred from the circuit being cooled using the refrigerator.
13.4 Basic Components of Quantum Ternary Nano Processor Nearly all CPUs consist of the following components that have already been discussed in quantum nano processors and DNA nano processor lessons. However, in this chapter, it will be learned with quantum ternary qubits. The components of this CPU are 1. Quantum ternary RAM 2. Quantum ternary Instruction Register 3. Quantum ternary Program Counter 4. Quantum ternary Incrementor 5. Quantum ternary decoder 6. Quantum ternary Multiplexer 7. Quantum ternary ALU 8. Quantum ternary Accumulator.
13.4.1
Quantum Ternary RAM
Two address lines are needed for simulating 2-qubit ternary RAM . Two Quantum Ternary 1-to-3 decoder operation has been used here to achieve 2-to-9 decoder ternary quantum operation. These address lines combination will be the input of 2to-9 decoders which consists of nine quantum ternary AND gates. One of these outputs will be active High based on the combination of inputs present when the decoder is enabled. That means the decoder detects a particular code. The outputs of the decoder are nothing but the minterms of ‘n’ input variables lines when it is enabled. Each output line of the decoder will go through each quantum ternary RAM cell. Note that the word calculation of RAM will be 3∧k where k is the address line and 3∧k is the total words of n bit, and the decoder combination will be k×3∧k. This 2-qubit ternary RAM consists of nine separate RAM cells, and each cell has 3 inputs- |D0> or |D1>, anyone selects a line and read/ write inputs. The obtained output from nine quantum ternary RAM cells will be the input of a quantum ternary OR operation, which produces the outcome. This is the whole design procedure of 2-qubit ternary RAM.
Basic Components of Quantum Ternary Nano Processor 13.4.1.1
439
Working Principle of Quantum Ternary RAM
This is the most crucial CPU component that stores the data quickly, a primary and volatile memory. Figure 13.2 represents the implementation of 2-qubit ternary RAM. This quantum ternary RAM consists of nine separate “Words” of memory, and each is two cubits wide. The quantum ternary RAM Cell has three inputs and one output. The complete circuit of a quantum ternary RAM cell is described in Figure 13.3 with proper explanation. A word consists of three ternary quantum RAM cells arranged in such a way that all qubits can be accessed simultaneously. For achieving nine terms of memory, two 1-to-3 ternary quantum decoders will be needed. Each select line input goes through a 2-to-9 decoder that selects nine worlds. The memoryenabled input enables the decoder. If the memory allows for is |0>, all output of the decoder will be |0>, and in that case, none of the memory addresses will be selected. But when the memory enables is |1>, one of the nine words is preferred. The read/write input determines the operation when a word is selected. The nine qubits of the word chosen pass to the quantum ternary OR gates to the output |Y0> and |Y1> terminals during the read operation. To avoid complexity, the quantum ternary OR operations circuit is given in Figure 13.4. But during the write operation, the data available in the input lines are transferred into the nine quantum ternary cells of the selected word. The quantum ternary RAM cells that are chosen do not become disabled, and their previous qubit never changes. But when the memory enable input that passes into the decoder is equal to |0>, none of the words are selected, and then all quantum cells remain unchanged regardless of the value of the read/ write input. This is the working procedure of RAM. The quantum ternary RAM cell is designed using a quantum ternary R-S flip flop. The total quantum ternary cells per word will be m×n, where m represents words with n bits. There are three inputs in the quantum ternary RAM-” Select,” “Read/Write,” and “Input,” and one output line that is labeled by “ Output”. The “select” input is used to access either reading or writing. The cell performs the memory operation when the select line is high or |1>. But when the select line of the quantum ternary cell is low or |0>, the cell is not interested in performing a read from or written to. The following input is “Read/Write,” where a system clock will conduct this input. If the clock value on the read/write line is |0>, this will signify “read,” and when it is |1>, it will perform the “write” phase. Let’s consider the cell that has been selected. In that case, if the clock value is |0> then the cell contents are to be read, and this time the output value will depend only on the output value of the flip flop. But if the output is low, the cell output will be |0>, and if the output is high, the cell output will be|1>. It occurs because the quantum ternary AND gate added to the cell’s output has three input-negated read/write, select, and Q; and both “negated read/ write” and “select are currently high.
440
Multiple-Valued Quantum Nano Processor
Ternary Quantum RAM Cell
Ternary Quantum Ternary Quantum OR Operations OR Operations FIGURE 13.2 Ternary 2-Qubit RAM
441
Basic Components of Quantum Ternary Nano Processor
Quantum Ternary RS Flip Flop
Quantum Ternary AND Operations
FIGURE 13.3 Ternary 2-Qubit RAM Cell
FIGURE 13.4 Ternary Quantum OR Operation
Quantum Ternary AND Operations
442
Multiple-Valued Quantum Nano Processor
The Quantum Ternary OR operation requires the shifting operations that include (+1) and (+2) shifting. Where two (+1) operation is not controlled, and two inputs control two (+1) operation. And two (+2) operations are controlled by each input. And a two-input controlled C2 NOT gate is also required to get the expected result. According to Figure 13.2, it is seen that the OR gate gives the final output, which has nine inputs. First four ternary quantum OR operations are used for constructing nine inputs OR circuits and one single input. Each OR operation produces a single output. And the obtained output of four ternary quantum gates performs another two ternary quantum OR operations. Like before, those two OR operations perform another OR operation, which outputs, and the single input of this OR operation makes the final OR gate, which gives the final output. The 1 st (+2) and 2nd (+2) operations of each OR circuit are controlled by the input B and A, respectively, which will open only if the input is |2>. The following (+1) is controlled by both A and B input that will only open if both inputs are |2>. The next two (+1) are not controlled. And the following (+1) is again controlled by two inputs and will open only if get |2> from both inputs. And the final XOR gate will open only if the A, B! = 0 && A! = B. The rest of the ternary quantum OR operation will work like this.
13.4.2
Quantum Ternary Instruction Register (IR)
The ternary Quantum instruction register consists of eighty-one ternary quantum AND operations. To achieve eighty-one AND operations, nine decoders are used where each decoder is 2-to-9 form. And these nine decoders are selected by another 2-to-9 ternary quantum decoder. An instruction register is a particular register that is mainly used to store the instructions currently being executed by the quantum computer. Figure 13.5 represents the ternary quantum Instruction register. 13.4.2.1
Working Procedure of Ternary Quantum Instruction Register (IR)
The purpose of the instruction register is to hold that instruction which is currently being executed. Figure 13.5 represents the ternary quantum instruction register. The number of AND gates will be eighty-one. Nine quantum decoders are used here to achieve 81 ternary quantum AND gates where each decoder will be 2-to-9 decoder forms. The first 2-to-9 decoder produces nine outputs, and each output of this decoder is fed into the other 2-to-9 decoder. The first decoder acts as an enable. Any decoder from 2-to-9 is selected according to the enable line. And the selected decoder produces nine outputs from where only one output line is activated. When the one line of any decoder becomes active, another eighty ternary quanta AND is deactivated. The IR stores the instruction word. When the CPU fetches any instruction from memory, it is temporarily stored in the instruction register. The instruction can be a qubit word or code that defines a specific operation to be performed. After that, the CPU decodes the instruction and then executes it. The first 2-to-9 ternary quantum decoder without enabling is shown in Figure 13.6, and the rest nine decoder is with enabled input is shown in Figure 13.7.
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable 2 to 9 DNA T-Decoder with Enable
FIGURE 13.5 4-Qubit Ternary Instruction Register 2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
Basic Components of Quantum Ternary Nano Processor 443
444
Multiple-Valued Quantum Nano Processor
Ternary Quantum AND Operations FIGURE 13.6 Ternary 2-to-9 Quantum Decoder
Basic Components of Quantum Ternary Nano Processor
Ternary Quantum AND Operations FIGURE 13.7 Ternary 2-to-9 Quantum Decoder with an Enable
445
446
Multiple-Valued Quantum Nano Processor
For constructing 2-to-9 ternary quantum decoders, two 1-to-3 ternary quantum decoders are needed where each decoder has three output lines. The Quantum Ternary 1-to-3 decoder operation requires the shifting operations that include (+2) shifting only. Where three (+2) operations are not controlled, and three (+2) operations are controlled by one input. For example, for A = 0, the 1st (+2) will produce an output of 2 which will open the 1st controlled (+2) and provide 2. Thus, |D0 > will open. Others will remain closed as they will not produce the output of 2. Each decoder will work like this process, and the output lines of these two decoders are attached with nine ternary quantum AND operations—the single ternary quantum AND operation work when the output of the 1-to-3 decoder is +2. Figure 13.7 represents the 2-to-9 decoder with an enable input shown in Figure 13.5 with the block diagrams at the right side of the 4-qubit ternary quantum instruction register. The working principle of this decoder is like a 2-to-9 ternary quantum decoder without an enable. The output combinations of 1-to-3 decoder are connected with nine ternary quantum AND operations; the output of these AND operations and an enable input make further a ternary quantum AND operation which gives the output. Only one AND gate is active, and another eight AND gates remain to deactivate.
13.4.3
Quantum Ternary Program Counter
The ternary quantum program counter consists of two ternary quantum D-flip flops where each D-flip flop has been designed using five ternary quantum NAND gates. This 2-qubit ternary program counter is only applicable for 2-qubit ternary quantum nano processors. The 2-Qubit Ternary Program Counter is shown in Figure 13.8.
FIGURE 13.8 2-Qubit Ternary Program Counter
Basic Components of Quantum Ternary Nano Processor 13.4.3.1
447
Working Principle of Quantum Ternary Program Counter
The program counter stores the next instruction that will be executed next. The program counter has two D-flip flops, where each D-flip flop consists of five ternary quantum NAND operations. The working procedure of NAND is described in chapter ten properly. The program counter is incremented by one if an individual instruction is completed. All instructions and data have a specific address in memory. The instructions in a program always follow the sequence memory location for storing themselves. Here |D0> and |D1> represent input that goes through to the D-flip flop and gives the desired output |Q0> and |Q1>.
13.4.4
Ternary 2-Qubit Incrementor
The ternary quantum incrementor circuit is designed using two ternary quantum half adders (Quantum T-HA). Each half adder is constructed using a ternary 1-to-3 quantum decoder. The following block diagram (Figure 13.9) is 2-qubit ternary incrementor. Quantum ternary half adder is discussed in volume 1, part 3, chapter 11 with detail description and figure. To design a ternary half adder, decoders are needed to decode the input qubit into the corresponding qubits. This carry out result will be the carry in of the second half adder circuit which produces the second output and a carry out. The second half adder has been avoided here to reduce circuit complexity.
FIGURE 13.9 Block Diagram of 2-Qubit Ternary Incrementor
448
13.4.5
Multiple-Valued Quantum Nano Processor
Ternary Quantum Decoder
The 2-to-9 decoder is used in 2 qubit CPU where 2-to-9 ternary quantum decoder consists of nine ternary quantum AND operations with one enable input. The decoder is a combinational ternary quantum circuit that has n input line and can produce 3∧n output lines. Each output has one product, and for achieving this product, ternary quantum AND operations are performed here. For example, when the two input variables are |A0> and |A1>, the enable input is |1>. But if enable input is |0>, all the decoder outputs will be equal to zero, and when enable is |1>, one of these nine outputs will be active, i.e., |1>.
13.4.6
Ternary Quantum ALU
This is the ternary 2 qubit ALU (Figure 13.10) which consists of fifteen ternary quantum AND operations selected by ternary quantum function selection logic. According to the function selection logic, only one logical operation is performed: addition, multiplier, or subtractor. Every logical operation like addition and subtraction is executed with the help of a decoder. All these arithmetic operations are described in volume 1, part 3, chapter 11.
13.4.7
Ternary Quantum Multiplexer
A particular circuit device selects one of the n inputs and provides one output. It means many into one. Here 9-to-1 ternary quantum multiplexer is shown, which is implemented by a 3-to-1 ternary quantum multiplexer; Where D0 , D1 , and D2 are input bits and Y is the output bit that is selected by a selection bit S. The ternary 3-to1 Multiplexer can be designed with the help of a ternary 1-to-3 decoder. The decoder will give three outputs for a given input. The output will produce the outcome using three ternary AND operations followed by one ternary OR operation. Figure 13.11 shows the ternary quantum multiplexer. A 3-to-1 ternary quantum multiplexer is shown in Figure 13.12, which is used to implement a 9-to-1 ternary quantum multiplexer. This circuit consists of a quantum ternary 1-to-3 decoder that provides the three selection bits as output. The three quantum AND operations followed by two ternary quantum OR operations produce the expected output. 13.4.7.1
Working Procedure of Ternary Quantum Multiplexer
The multiplexer has multiple inputs and a single output. For example, a 3-to-1 multiplexer has three input signals and three select lines. Using this 3-to-1 multiplexer, a 9-to-1 ternary quantum multiplexer is implemented. To execute a 9-to-1 multiplexer, a total of 3 ternary quantum multiplexers are needed where each multiplexer has to be 3-to-1 form. Each 3-to-1 mux produces a single output connected with another
449
Basic Components of Quantum Ternary Nano Processor
Sum Cout
Subrraction Borrow
Quantum T-EX-OR with Decoder
Quantum T-Divider with Decoder
Quantum T-Munltiplier Module with Decoder
Quantum T-Subtractor Module with Decoder
Quantum T-Adder Module with Decoder
Quantum Ternary Function Selection Logic
FIGURE 13.10 2-Qubit Ternary ALU 3-to-1 ternary quantum mux, which gives the final output. Each selected input line of 3-to-1 mux and one input signal perform ternary quantum AND operation. The output will be the minimum value for the ternary quantum AND operation. So, the output will be that value whose input value is minimum. After this, the obtained outputs from ternary AND are attached with the ternary quantum OR opera-
450
Multiple-Valued Quantum Nano Processor
FIGURE 13.11 Ternary Quantum Multiplexer tion as an input, and another two inputs of ternary quantum OR will come to another two ternary quantum AND operations. Finally, these three inputs give an output. For ternary OR operation, the output will always be maximum. Therefore, among the three maximum inputs the multiplexer will be the final output. Quantum Ternary 1-to3 Decoder
Quantum Ternary AND Operations Quantum Ternary OR Operations
FIGURE 13.12 3-to-1 Ternary Quantum Multiplexer
Basic Components of Quantum Ternary Nano Processor
451
Quantum Ternary AND Operations
Quantum Ternary NAND Operations
FIGURE 13.13 2-Qubit Ternary Accumulator
13.4.8
Ternary Quantum Accumulator
The ternary quantum program accumulator (Figure 13.13) consists of two ternary quantum D-flip flops where each D-flip flop has been designed using five ternary quantum NAND gates. This design procedure is like a program counter; only an extra ternary quantum AND gate is used here where |LOAD> and |CLK> is the input of this operation, and the obtained output from ternary quantum AND operation will be the input of each D-flip flop. Thus, the first and second output are obtained from the first and second D-flip flop after logical execution. 13.4.8.1
Working Procedure of Ternary Quantum Accumulator
An accumulator is a special purpose register that acts as a temporary storage location and holds an intermediate value in mathematical and logical operations. Whether data will be stored or not depends on AND’s output. When the ternary quantum AND’s output is |0> then no data is stored in the accumulator. For example, if the AND operation’s output is |1> or a high value capable of storing the data into an accumulator. But if the output of AND operation is |0> or low, the accumulator will be unable to store any data.
452
Multiple-Valued Quantum Nano Processor
13.5 Applications In recent years, more advantages are seen in integrated circuit technology, making it feasible. And it has generated more interest in electronic circuits which employ more than two discrete levels of signals. The main advantage of ternary is that they can reduce chip size as each wire can transmit more multi-valued logic. It has drawn more attention because of the less estimated interconnection cost. MVL can process large amounts of information in a small circuit. On the other hand, it is already seen that the quantum logical circuit also has several advantages. They ensure data security and data simulations are more accessible. Moreover, quantum computing consumes less power. Another most prominent advantage is its high storage capacity, and it can solve the NP combinatorial problems in polynomial times. As MVL and quantum have a close relationship, it is possible to merge them to get more advantages. As a result, the advantages of ternary quantum logic must increase; they must be more potent than others. Recent research has shown that the main advantage of multi-valued logic for quantum computing is scaling up a quantum computer. They have also been used in the framework of quantum cryptography.
13.6 Summary A novel multiple-valued quantum nano-processor is designed in this chapter. As quantum computers can implement algorithms in inherently multi-valued logic, it is a new approach to implement such a nano-processor that would be able to inherent advantages of both ternary logic systems and quantum computing logic together. The design of this nano-processor increases the high speed consumes low power reduces the circuit complexity. Researchers are still doing experiments to see how they are elaborated more. As they have many advantages, there are still many obstacles to implementing a real multiple-valued quantum nano-processor. It is needed to focus on solving those problems to make a helpful multiple-valued based quantum computer. The biggest challenge to further utilizing multiple-valued logic in circuit design is to create an effective computer-aided design package. Although some concepts and algorithms have already been developed, much research remains to get fruitful results.
Bibliography [1] Yang, C. H., Leon, R. C. C., Hwang, J. C. C., Saraiva, A., Tanttu, T., Huang, W., ... & Dzurak, A. S. (2019). Silicon quantum processor unit cell operation above one Kelvin. arXiv preprint arXiv:1902.09126.
Summary
453
[2] M. Mukaidono, “Regular Ternary Logic Functions? Ternary Logic Functions Suitable for Treating Ambiguity” in IEEE Transactions on Computers, vol. 35, no. 02, pp. 179-183, 1986. doi: 10.1109/TC.1986.1676738 [3] Haghparast, M., Wille, R., & Monfared, A. T. (2017). Towards quantum reversible ternary coded decimal adder. Quantum Information Processing, 16(11), 1-25. [4] Dubrova, E. (1999, November). Multiple-valued logic in VLSI: challenges and opportunities. In Proceedings of NORCHIP (Vol. 99, No. 1999, pp. 340-350). [5] Bocharov, A., Roetteler, M., & Svore, K. M. (2017). Factoring with qutrits: Shor’s algorithm on ternary and metaplectic quantum architectures. Physical Review A, 96(1), 012306. [6] Toffano, Z., & Dubois, F. (2017). Interpolating binary and multi-valued logical quantum gates. Multidisciplinary Digital Publishing Institute Proceedings, 2(4), 152. [7] Pykacz, J. (2021). The many-valued logic of quantum mechanics. International Journal of Theoretical Physics, 60(2), 677-686. [8] Miller, D. M., Maslov, D., & Dueck, G. W. (2006). Synthesis of quantum multiple-valued circuits. Journal of Multiple Valued Logic and Soft Computing, 12(5/6), 431.
14 Multiple-Valued DNA Nano Processor
14.1
Introduction
In theory, people generally divide any state into two types, either “True” or “False” expressed in respectively 1 and 0 in Boolean logic. But in real life, sometimes the state of an event or things may have more than two states. For example, in a week, there are seven days. According to Boolean logic, it is not possible to represent only two days using true or false. There is no way to express the rest of the days of a week. For solving such problems, multi-valued logic is introduced. Those days can be divided into multi-valued logic, efficiently representing such situations. Xiangou ZHU et al. designed the first DNA computing model using a ternary logic system. After his design, many researchers have started to focus on this field. Like others, here also proposes multi-valued DNA logic gates. Here ternary logic systems are used to implement these operations, and ternary logic systems are examples of multivalued logic with three states 0, 1, 2. In ternary DNA computing, 0 is expressed as “ACCTAG,” 1 is denoted by “CAAGCT” and finally, 2 is defined as “TGGATC.” Based on the combinational ternary DNA computing logical operations, in this chapter, a complete ternary DNA nano processor for two-bit ternary DNA molecule sequences is proposed. In this Ternary DNA computing, the fluorescent level is used to detect the DNA sequence. Each DNA sequence will make a bond according to the Watson - Crick Model, where Adenine (A) makes a bond with Thymine (T) and Cytosine (C) sticks with Guanine (G). Heat is generated in ternary DNA computing for chemical reactions. That is why the heat for each component is measured to check how much heat is necessary for the chemical reaction that has to be provided from the outside environment. Moreover, the speed will also be shown here to measure this nano-processor motion and how much faster it is to perform any operation than any other nano-processor.
14.2
Basic Definitions
The core components of a ternary DNA nano-processor are the ternary DNA control unit, the ternary DNA register, the ternary DNA ALU (arithmetic logic unit), ternary DNA quantum RAM (random access memory), and ternary DNA buses. These comDOI: 10.1201/9781003381921-14
455
456
Multiple-Valued DNA Nano Processor
ponents have an individual role in the nano-processor that assists the nano-processors in performing any execution properly. All kinds of data flow and instructions are controlled by the nano-processors. This is a ternary DNA nano processor, and it consists of three, where each component works with the help of these inputs. These three inputs are ACCTAG which represents 0, CAAGCT strands as 1, and TGGATC is denoted by 2. The ternary DNA control unit provides a computer nano-processor among the core components. A ternary DNA register is the most miniature set of ternary DNA sequences that can hold the place. All mathematical and logical operations are performed in ALU. Ternary DNA RAM is another component of this nano-processor that helps to increase system performance. The most core element of a nano-processor is buses. The buses transfer the data between nano-processors and components. A nano-processor consists of three bus data, the address, and the control bus. The main function of a data bus is to carry the data between a nano-processor and RAM. The address bus is unidirectional, carrying memory addresses from the nano-processor to other components. And the last bus is a control bus that makes sure everything flows perfectly from place to place. To accomplish meaningful work, it’s all needed for a nano processor.
14.3
Block Diagram of Ternary 2-Bit DNA Nano Processor
Figure 14.1 represents the block diagram of a ternary DNA nano processor . It consists of a ternary DNA nano-arrays unit, a ternary DNA nano multiplexer, a ternary DNA nano RAM, and encodes ternary DNA sequences unit ternary DNA nano ALU. All circuits use multi-valued DNA basic logic operations as it is a ternary DNA nano processor. The red, blue, and green lines represent the control bus, data bus, and address bus. Molecular computations will work when heat is provided from outside. They cannot make any chemical reaction without heat. As a result, a source has been used for supplying additional heat. A complete DNA nano processor block diagram is shown in Figure 14.1. The fundamental operation of this ternary DNA nano-processor is to execute a sequence of stored instructions that is called a program. These instructions are kept in some kind of memory for execution. Almost all CPUs, either a microprocessor or nano-processor, follow the three rules - fetch, decode and execute for performing their operation. These steps are collectively known as the instruction cycle. After executing an instruction, the entire process starts to work the same thing. The successive instruction cycles typically fetch the next instruction because of the incremented value in the program counter. After fetching, the instructions are decoded to various signals that control other areas of the nano-processor. Finally, the nano-processors execute the instruction. When an instruction is executed, the program counter is incremented by one memory location. This is the whole working procedure of ternary DNA nano-processors.
Basic Components of Ternary DNA Nano Processor
457
FIGURE 14.1 2-Bit Ternary DNA Nano-Processor
14.4
Basic Components of Ternary DNA Nano Processor
According to Figure 14.1, the ternary DNA nano processor consists of the following components1. Ternary DNA RAM 2. Ternary DNA Instruction Register 3. Ternary DNA Program Counter 4. Ternary DNA Incrementor 5. Ternary DNA decoder 6. Ternary DNA Multiplexer 7. Ternary DNA ALU 8. Ternary DNA Accumulator.
458
Multiple-Valued DNA Nano Processor
These are also essential components of the CPU that need to be accomplished for meaningful work. However, now all features will be explained in this section.
14.4.1
Ternary DNA RAM
Firstly, two address lines are needed for simulating ternary 2-bit DNA RAM, and for this, the ternary 1-to-3 DNA decoder operation is used to achieve a ternary 2-bit DNA RAM. These 1-to-3 ternary DNA decoders produce ternary 2-to-9 decoders, consisting of nine ternary AND DNA operations. Only one result will be active High based on the combination of inputs present when the decoder is enabled. That means that at a time, the decoder detects a particular code. Each output line of the decoder is fed into each ternary DNA RAM cell. For example, if k is the address line, the word calculation of RAM will be 3∧k, and 3∧k is the total words of n bit, and the decoder combination will be k×3∧k. This ternary 2-bit DNA RAM consists of nine separate RAM cells, and each cell has 3 inputs- any ternary DNA sequence, anyone selects a line and read/ write inputs. The obtained output from nine quantum ternary RAM cells will be the input of a ternary DNA OR operation, which produces the final output. This is the whole design procedure of ternary 2-bit DNA RAM . 14.4.1.1
Working Principle of DNA RAM
RAM is a primary and volatile memory that stores the data quickly. The following circuit (Figure 14.2) shows the 2-Bit Ternary DNA RAM This ternary DNA RAM consists of nine separate “Words” of memory. The ternary DNA RAM Cell consists of three inputs and one output. The ternary 2-bit DNA RAM cell is shown in Figure 14.3 with proper explanation. A word consists of two ternary DNA RAM cells arranged in such a way so that all DNA sequence bits can be accessed simultaneously. Two 1-to-3 ternary DNA decoders are used to achieve nine memory words. Each selected line input goes through a 2-to-9 decoder that selects only one of the nine words at a time. The function of memory-enabled input enables the decoder. Note that, from the ternary 2-to-9 decoder, either ACCTAG or TGGATC will be obtained. There is no probability of achieving CAAGCT. If the memory enabled is ACCTAG, all output of the decoder will be ACCTAG, and in that case, none of the memory addresses will be selected. But when the memory enables TGGATC, one of the nine words is selected. The read/write input determines the operation when a word is selected. The nine DNA molecule sequence bits of the selected word pass to the ternary DNA OR operations to the output terminals during the read operation. But during the write operation, the data available in the input lines are transferred into the nine ternary DNA cells of the selected word. The ternary DNA RAM cells that are not selected have become disabled, and their previous DNA sequence bit never changes. But when the memoryenabled input that passes into the decoder is equal to ACCTAG, none of the words are selected, and then all quantum cells remain unchanged regardless of the value of the read/ write input. This is the working procedure of RAM.
459
FIGURE 14.2 2-Bit Ternary DNA RAM
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Ternary DNA RAM Cell
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
DNA Ternary NOR Operation
Anneal >60 o
DNA Ternary NOT Operation
Anneal >60 o
DNA 1 to 3 T-Decorder
Anneal >60 o
Anneal >60 o
Anneal >60 o
DNA Ternary NOR Operation
DNA Ternary NOT Operation
Anneal >60 o
Anneal >60 o
DNA 1 to 3 T-Decorder
Anneal >60 o
Anneal >60 o
Anneal >60 o
Basic Components of Ternary DNA Nano Processor
460
Multiple-Valued DNA Nano Processor
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
DNA T-AND Operations
Anneal >60 o DNA T-NOT Operations
DNA T-RS Operations
FIGURE 14.3 Ternary 2-Bit DNA RAM Cell The ternary DNA RAM cell is designed using a ternary DNA R-S flip flop. The number of total DNA ternary cells per word will be m×n, where m represents words with n bits DNA molecule sequence. Let’s consider the above example; it is seen that This ternary DNA RAM cell consists of -” Select” that is shown as TGGATC, “Read/Write” is also assumed TGGATC, and “Input” is considered as ACCTAG. Performing all operations, one output line is obtained that is ACCTAG’. The “select” input is used to access reading or writing operations. The cell performs the memory operation when the select line is high or TGGATC. But when the select line of the ternary DNA cell is low or ACCTAG, then the cell does not perform a read from or written to. The following input is “Read/Write,” where a system clock will conduct this input. If the clock value on the read/write line is ACCTAG, this will signify “read,” When it is TGGATC, it will perform the “write” phase. This is the fundamental working procedure.
Basic Components of Ternary DNA Nano Processor
14.4.2
461
Ternary 2-Bit DNA Instruction Register (IR)
The ternary DNA molecule sequence instruction register consists of eighty one ternary DNA AND operations. To achieve eighty-one DNA AND operations, the help of 2-to-9 decoders will be taken where the 2-to-9 decoder number will be a total of nine. And these nine decoders are selected by another 2-to-9 ternary DNA decoders. Figure 14.4 depicts the ternary 4-Bit Molecular Sequence Instruction Register (IR). 14.4.2.1
Working Procedure of Ternary DNA Instruction Register
An instruction register is a special register that is mainly used to store the instructions currently being executed by the quantum computer. Figure 14.4 represents the ternary DNA instruction register. The number of ternary AND gates will be eightyone. Nine DNA decoders are used here to achieve 81 ternary DNA AND gates where each decoder will be 2-to-9 decoder form. The first 2-to-9 decoder is used here to produce nine outputs, and each output of this decoder is fed into the other 2-to-9 decoder. The first decoder acts as an enable. According to the enable line, any decoder among decoders 2-to-9 is selected. And the selected decoder yields nine outputs from which only one output line is activated at a time. When the one line of any decoder becomes active, another eighty ternary DNA AND operation is deactivated. The IR generally stores the instruction word. The instruction can be a ternary DNA bit sequence word or code that defines a specific operation to be performed. After that, the CPU decodes the instruction and then executes it. This IR 2-to-9 decoder has been used here without enabling input and with enabling output, which is shown respectively in Figure 14.5 and Figure 14.6. For constructing 2-to-9 ternary DNA decoders without enabling input, it is needed to use two 1-to-3 ternary DNA decoders where each decoder has three output lines. For designing 1-to-3 ternary decoders, it is needed to follow some steps. Any ternary DNA input, for example, A, first goes through NTI to produce A0, then again, the same input goes through PTI and NTI to produce A2, and finally, the result of A0 and A1 goes through ternary DNA NOR operation to produce A1. Each 1-to-3 ternary DNA decoder will work like this, and thus, the two numbers of 1-to-3 ternary decoder’s output line combination produce nine ternary DNA AND operations. The single ternary DNA AND operation works when the output of the 1-to-3 decoder is TGGATC. The working principle of the 2-to-9 decoder with enable is like a 2-to-9 ternary decoder without an enable. The output combinations of 1-to-3 ternary DNA decoder are connected with nine ternary DNA AND operations; the output of these AND operations and an enable input make further a ternary DNA AND operation, which gives the output. Only one AND gate is active, and another eight AND gates remain to deactivate.
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable 2 to 9 DNA T-Decoder with Enable
FIGURE 14.4 Ternary 4-Bit Molecular Sequence IR 2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
2 to 9 DNA T-Decoder with Enable
462 Multiple-Valued DNA Nano Processor
Anneal >60 o
FIGURE 14.5 Ternary 2-to-9 DNA Decoder without Enable
DNA Ternary NOT DNA Ternary NOR Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
DNA Ternary NOT DNA Ternary NOR
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Basic Components of Ternary DNA Nano Processor 463
Anneal >60 o
DNA Ternary NOT DNA Ternary NOR
FIGURE 14.6 Ternary 2-to-9 DNA Decoder with Enable
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o
DNA Ternary NOT DNA Ternary NOR
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
464 Multiple-Valued DNA Nano Processor
465
Basic Components of Ternary DNA Nano Processor
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
Anneal >60 o
FIGURE 14.7 Ternary 2-Bit Molecular Sequence DNA Program Counter
14.4.3
Ternary DNA Program Counter
The ternary DNA program counter consists of two ternary DNA D-flip flops where each D-flip flop has been designed using four ternary DNA NAND gates, and each D-flip flop is connected with a ternary DNA NOT operation. Figure 14.7 represents the ternary 2-Bit Molecular Sequence DNA Program Counter . 14.4.3.1
Working Principle of Ternary DNA Program Counter
The main function of the program counter is to store the next instruction that is going to be executed next. The program counter consists of two D-flip flops where each D-flip flop consists of four ternary DNA NAND operations, and each D-flip flip is connected with one ternary DNA NOT operation. The working procedure of ternary DNA NAND and DNA NOT are known. The program counter is incremented by one if an individual instruction is completed. All instructions and data have a specific address in memory. The instructions in a program always follow the sequence memory location for storing themselves.
466
Multiple-Valued DNA Nano Processor
FIGURE 14.8 Ternary 2-Bit Molecular Sequence DNA Incrementor
14.4.4
Ternary 2-Bit DNA Incrementor Circuit
The ternary DNA incrementor circuit is constructed here using two ternary DNA half adders. Each half adder consists of ternary 1-to-3 decoders. Two 1-to-3 decoders are used for getting the exact output. Figure 14.8 shows the ternary 2-Bit Molecular Sequence DNA Incrementor. This carry-out result will be the carry-in of the second half adder circuit which produces the second output and a carry-out. The second half adder has been avoided here to reduce circuit complexity. This is the working procedure of a 2-bit ternary DNA molecular program counter.
14.4.5
Ternary DNA Decoder
A decoder is another vital component of this ternary 2-bit DNA nano-processor. For designing this nano-processor, it is needed to construct a ternary 2-bit DNA decoder, and for this, a 2-to-9 decoder is used which is implemented using two 1-to-3 ternary decoders. These 2-to-9 ternary DNA decoders consist of nine ternary DNA AND operations with one enable input described earlier. The decoder is a combinational ternary DNA circuit that has n input line and can produce 3∧n output lines. Each output has one product, and for achieving this product, ternary quantum AND operations are performed here.
Basic Components of Ternary DNA Nano Processor
14.4.6
467
Ternary DNA ALU
An arithmetic logic unit is the core component of a nano-processor. It is a combinational ternary circuit that performs arithmetic and logic operations. The control unit indicates to ALU what process it needs to achieve on the data and stores the result in an output register. It is needed to construct a 2-bit ternary DNA ALU for a 2-bit ternary DNA nano processor. This 2-bit ternary DNA ALU consists of fifteen ternary DNA AND operations selected by ternary DNA function selection logic. This function selection logic is a 2-to-9 ternary decoder without enabling, shown in Figure 14.5. According to the function selection logic, only one logical operation is performed, such as addition, multiplier, or subtractor. Figure 14.9 depicts the Ternary 2-Bit Molecular Sequence DNA ALU. Every logical operation like addition and subtraction is executed with the help of a decoder. All arithmetic operations are described in volume 1, part 3, chapter 13.
14.4.7
Ternary DNA Multiplexer
A multiplexer is a special component of a nano processor that selects one of the n inputs and provides it with one output. It means many to one. A ternary 9-to-1 DNA multiplexer is needed for a 2-bit ternary DNA nano-processor. 9-to-1 mux is designed using ternary three 3-to-1 mux. To perform DNA 3-to-1 multiplexer operation, it is needed to operate a 1-to-3 decoder. The purpose of using this decoder is to take three inputs. As it is a ternary multiplexer, it is needed to access three inputs: ACCTAG, CAAGCT, and TGGATC. If 1-to-3 decoders are not used, it will not be possible to access all combinations of these three inputs. Therefore, the decoder will give three outputs for a given input. The output will produce the output with the help of three ternary AND operations followed by one ternary OR operation. Figure 14.10 shows DNA Ternary Multiplexer.
14.4.8
Ternary DNA Accumulator
The ternary DNA program Accumulator is designed using two ternary DNA D-flip flops where each D-flip flop has been developed using four ternary DNA NAND operations connected ternary DNA NOT operations. This design procedure is like a program counter; only an extra ternary quantum AND gate is used here where |LOAD> and |CLK> is the input of this operation those are assumed here TGGATC and TGGATC, and the obtained output from ternary DNA AND operation will be the input of each D-flip flop. After performing logical operations, the first and second outputs will be obtained from the first and second D-flip flop. The circuit architecture of 2-Bit DNA Ternary Accumulator is shown in Figure 14.11.
468
Anneal >60 o Anneal >60 o Anneal >60 o Anneal >60 o Anneal >60 o Anneal >60 o
Anneal >60 o Anneal >60 o Anneal >60 o
DNA T-Subtractor with Decorder
Anneal >60 o
Anneal >60 o
DNA T-Multiplier with Decorder
Anneal >60 o
Anneal >60 o
Anneal >60 o Anneal >60 o
DNA T-Divider with Decorder
Anneal >60 o
Anneal >60 o Anneal >60 o
Anneal >60 o Ternary DNA AND Operations FIGURE 14.9 Ternary 2-Bit Molecular Sequence DNA ALU
DNA T-EX-OR with Decorder
DNA Ternary Function Selection Logic
DNA T-Adder Module with Decorder
Multiple-Valued DNA Nano Processor
Anneal