1 / 30

Quantum random flip-flop: a novel device for digital and analog signal processing

Quantum random flip-flop: a novel device for digital and analog signal processing. University of California Santa Barbara March 10, 2015 Mario Stip c evi c Photonics and Quantum Optics U nit Center of E xcellence for A dvanced M aterials and Sensors

fjackson
Download Presentation

Quantum random flip-flop: a novel device for digital and analog signal processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Quantum random flip-flop: a novel device for digital and analog signal processing University of California Santa Barbara March 10, 2015 Mario Stipcevic Photonics and Quantum Optics Unit Center of Excellence for AdvancedMaterials and Sensors Ruđer Bošković Institute, Zagreb, Croatia E-mail:stipcevi@gmail.com

  2. Boolean logic circuits • AND, OR, NOT, NAND, flip-flop,…. • NAND – a single universal element sufficient to build any logic circuit, e.g. a computer. • Computer does not compute: it merely performs logic operations • on pieces of information. • It is Human interpretation only what we perceive as: • Computation with numbers (ALU – many basic logic circuits), • Text processing, • Graphics, • Music, … etc. • Computer “knows” nothing about any of it.

  3. Moreover, computers per se can make only deterministic • decisions – they behave predictably. They can be modeled by • a theoretical model called Turing machine. • However, a more powerful computing paradigm known as • probabilistic Turing machine (PTM) can execute randomized • algorithms: • may compute faster that its deterministic counterpart • may be less prone to computational errors • may solve otherwise intractable problems • does calculations sequentially and deterministically. • Examples: • Rabin-Miller primality test, Monte Carlo, Cryptography… • PTMdepends on random decisions– but no logic circuits that • could implement that feature exist(ed) so far!

  4. Flip-flop (a reminder) • A non-sequential logic circuit • Several types: D, T, JK, RS,… with optional Set and Reset • Examples: • D-type FF transfers state at D on appearance of pulse at CP; • T-type FF toggles state (Q) on CP if T=1 otherwise nothing. • FF’s can emulate each other: • Sequential and non-sequential logic circuits are building blocks • of all contemporary ICT devices. They are DETERMINISTIC.

  5. Flip-flops are used for: • Memory storage (memories, registers,…) • Counters • Clocks • Frequency division • One-shot oscillators (period generators) • Serial-to-parallel and parallel-to-serial stream data conversion, etc Examples of frequency division of periodic signal by 2 and by n

  6. What “random” means ? Random variable a number “drawn” from a p.d.f. Random numbers (sequence) 0110010101010… D. Knuth: There is NO definition of random sequence of numbers. Time-wise physical random events Radioactive decay, photon emission from a laser, Big-Bang… Randomness Is throwing a coin random? Is statistical mechanics random? Are chaotic moves random? NO! Governed by Newtoinian laws => deterministic.

  7. A physical system being RANDOM means that if we keep repeating the exact same experiment on it, with exact same initial conditions THEN it yields unexpected result EVERY TIME and EVEN IN THEORY => quantum theory Randomness is a purely quantum effect and has no classical analog. Randomness is probably the only thing that cannot be defined because it would imply describing “random” by means of deterministic, (Boolean) logic. Unless …… we introduce the non-deterministic logic.

  8. Random flip-flop A single Universal logic element enabling random decisions. The most important building block of a PTM. Operates in the same way as ordinary flip-flop except its clock input acts with a probability of ½. Conventional DFF: Exact truth table Random “DRFF”: “Typical” truth table

  9. Random flip-flop has inputs and outputs fully compatible with conventional logic circuits and can be easily combined with. For example, RFFs can emulate each other (in the exact same way as their deterministic counterparts): Emulation of TRFF by DRFF (left) and vice versa (right).

  10. Applications of random flip-flops Most obvious application: a random bit generator (RBG). A RBG produces one random bit upon a request. Two equivalent realizations of a stream random bit generator with DRFF (left) and TRFF (right). Straightforward to parallelize any number of RBGs to achieve multi-bit RNG A single clock fixed or float point Uniform p.d.f. random variable. Important! The main difference between a (single) RNG and RFF is parallelism of randomness (-> RPT computing).

  11. Random numbers are esentialfor many important applications: Cryptography Stochastic (aka Monte Carlo) simulations & calculations Lottery and online gambling (6 G$ annually in US only) Numbering of Prepaid & Gift cards Electronic money Industrial testing: micro processors (chips), automotive industry, bench top testing equipment Industry labeling (unique chip numbers, MAC numbers…) etc.

  12. But how do we BUILD a RFF ? It must have some source of randomness. IBM’s balanced bistable multivibrator: The quality is bad - requires complex, slow and hardware extensive post-processing. Is this the best that could be done? NO!

  13. Realization of a RFF How to make RFF without the need for crytical adjustments? One solution: slowly sampled exponential p.d.f. : Random Pulse-train Generator (RPG) (LED (LD)  dispersive filter  photon detector) toggles the TFF whose state controls the clock pulse input (CP). This DRFF is edge-triggered. M. Stipcevic, Rev. Sci. Instrum. 75(2004)4442-4449 V. Bagini and M. Bucci., CHES 1999, pp. 204–218, P. Chevalier, C. Menard, B. Dorval, Patent No. US3790768A

  14. Random Programming Language Instructions Programming of a PTM requires existence of a computer programming language that feature random decisions, like: Ordinary PLProbabilistic PL 1. 2. 3. IF {condition} THEN {block1} ELSE {block2} ENDIF RIF {prob} {condition} THEN {block1} ELSE {block2} ENDIF GOTO n OF lab1, lab2, lab3, ... RGOTO lab1, lab2, lab3, ... srand(seed); …… a = rand(); a= rfloat; OR a= rdouble;

  15. Analog noise generator • Gaussian white noise is a very useful resource for: • measuring and testing of audio equipment • speech and music synthesis, • testing radio communication circuits, etc • Pseudo-random techniques exhibit peaks, electronic noise (eg. • transistor noise) exhibits 1/f rise near zero. • Spectrum starts at 0 and drops down by -0.1dB at 0.12 fclock, -1dB at 0.26 fclock • Power density envelope is flat near zero and has • no peaks.

  16. Randomness preserving frequency division Random pulse train (RPT) = time-wise random pulses (events). Frequency of periodic signals can be divided using ordinary flip-flops and yield periodic signals. Circuits with ordinary FFs divide random pulses too but … time-wise randomness is NOT preserved. Example: Deterministic division by 2 => exactly every second pulse is omitted. Random division by 2 => on average every second pulse is omitted. Random division preserves time-wise randomness. Random pulse train (RPT) consists of logic pulses of equal width and height such that waiting times obey Exponential p.d.f.  

  17. Basic random divider circuits Basic random dividers: Stacking basic dividers frequency of a RPT can be divided by 2N. Randomness preserving frequency division wasn’t feasible so far. • random divider by 2; b) random divider by 4; c) divider which performs • random division by 2 followed by deterministic division by 2; d) equivalent to c).

  18. Waiting time distributions of a RPT (the exponential p.d.f.) and of a RPT divided by factors: 2D, 2D2R, 2D4R and 2D16R. Random and Deterministic divisions do not commute, i.e. 1/2D/2R≠ 1/2R/2D Random division is a self-healing process. Can we randomly divide by an arbitrary integer number n? This is still an open question. Naively it may be done by a random counter-to-n but that does not work !

  19. Random Counter A random analog of the 4-bit synchronous binary counter exhibits rich set of phenomena. Known so far: Need for NEW tools to compute circuits (random Boolean logic?) • Counter has 16 states Q={Q3,Q2,Q1,Q0} • representing numbers in range 0-15 • Advancement resembles random walker • wondering about 15/2 with steps of ±1 • Each output Qi generates a random • number sequence with zero bias and • serial correlation coefficients: • ak(Qi) = (1-2-i)k(a Markov process). • Frequency of the clock appears at Qi divided: • f(Qi) = fin/(2i+1)R/2D • BUT the outputs are 100% correlated thus • frequency synthesis is not possible.

  20. Towards Random Frequency Synthesis If we cannot divide – let’s multiply by <1! μ-multiplier: μ-multiplier schematic and the table of realizable multiplication factors k/2N

  21. Advantages: • Instantaneous change of random pulse rate (not limited by the • quasi-Heisenberg uncertainty principle ) • Digitally selectable frequency (similar to PLL circuit) • Disadvantage: • Sparse set of multiplication factors. • A research on general random frequency synthesis circuits in under • way (see arXiv:1308.5719 [quant-ph]).

  22. Digression:Binary symmetric channel with noise In information-theoretic secure cryptographic protocols based on noisy channels (BSCN) is a crucial resource. BSCN flips the data bit with a predetermined “bit error probability” probability perr < ½. Realization of BSCN with perr = µ

  23. In Maurer’s scenario Alice, Bob and Eve all have access to a • public string (S0) via individual BSCNs and Eve’s perr=γ >0. • There are 2 deviations from the Shannon crypto model: • Alice, Bob and Eve do not have the same information • There is an arbitrary small probability that Alice and Bob • would end up with a different key. • A protocol exist by which Alice and Bob can arrive to a IT • provable secure key by public communication, just s in QKD! • IEEE T Inform. Theor. 49, 822-831 (2003)

  24. Using RFF and deterministic logic it is possible to make a Random Pulse Selector (RPS): sends an input pulse randomly to one of the two output ports. A block schematic of a full-fledged RPT generator of frequency in the range [f0, f0+f1] in arbitrary small steps Δf = f1/2N . Here N=4.

  25. Using 4 RFFs and one random source (f1 = 1 MHz), we built a random frequency synthesizer capable of generating frequencies in range 0 to 1 MHz in steps of 62.5 kHz: fout = k * 62.5 KHz, k = 0…16 Exponential distribution of output pulses is indicated by a straight-line Shape of the distribution in the log plot.

  26. Electronic dice And now some fun. Send a request pulse and obtain integer random value in the range 1-6, just like throwing a dice. Note: the device is symmetric on permutation of outputs.  A Request pulse generates a number in the range 0-7. If codes 0 or 7 are obtained, an intenal generator sends further request pulses until a value 1-6 is obtained. Ready signifies the end of the process.

  27. Random pulse computing paradigm • Binary operations between frequencies of random pulse trains • High immunity against noise (used in airplanes) • Fast with a slow hardware • Simple Random pulse train (RPT) consists of logic pulses of equal width and height such that waiting times obey exponential p.d.f.   Realizations of elementary binary mathematical operations between frequencies of RPTs.  

  28. Having the 3 elementary binary operations (+, -, *) one can evaluate • polynomials (with very little resources in comparison to digital • operations) and thus all functions that allow Taylor expansion. • Adding operations requires minimum additional hardware • All n-nary operations are parallel (not sequential) • Polynomial with any number of terms  2 gate delays only! • Takes advantage of multiple, independent randomness sources to achieve massive parallel computing! • Randomness essential to effectuate the calculation • A circle enabling continued fractions expansion exists. • Open problems: • binary division is unknown • fast analog-RPT and RPT-analog conversions

  29. Further research Find the laws governing the randomized Boolean logic (e.g. be able to construct divider-by-n without guessing) Lower errors and limitations (due to: non-perfect randomness, non-perfect probability of ½ ,the finite pulse width …) Develop further the RPT computing paradigm Realize RFF on chip using the existing technology Find further applications

  30. Conclusion • Random flip-flop is a novel digital circuit that generates and processes • classical information by means of a purely quantum effect – randomness. • It features inputs and outputs fully compatible with ordinary logic. • Potential applications: • Probabilistic digital Turing machine • Random pulse computing • Random number generation • Randomness preserving frequency division • Random frequency synthesis& spurless DDS • Random counters • Simulation of random walks, fair coins, fair dices, etc. • Many more?

More Related