Physics becomes the computer Norm Margolus CBSSS 6/25/02 Physics - - PowerPoint PPT Presentation

physics becomes the computer
SMART_READER_LITE
LIVE PREVIEW

Physics becomes the computer Norm Margolus CBSSS 6/25/02 Physics - - PowerPoint PPT Presentation

Computing Beyond Silicon Summer School Physics becomes the computer Norm Margolus CBSSS 6/25/02 Physics becomes the computer Emulating Physics Finite-state, locality, invertibility, and conservation laws Physical Worlds


slide-1
SLIDE 1

CBSSS 6/25/02

Computing Beyond Silicon Summer School

Physics becomes the computer

Norm Margolus

slide-2
SLIDE 2

CBSSS 6/25/02

Physics becomes the computer

Emulating Physics

» Finite-state, locality, invertibility, and conservation laws

Physical Worlds

» Incorporating comp-universality at small and large scales

Spatial Computers

» Architectures and algorithms for large-scale spatial computations

Nature as Computer

» Physical concepts enter CS and computer concepts enter Physics

0/1

slide-3
SLIDE 3

CBSSS 6/25/02

Review: Why emulate physics?

  • Comp must adapt to

microscopic physics

  • Comp models may help

us understand nature

  • Rich dynamics
  • Started with locality

(Cellular Automata).

slide-4
SLIDE 4

CBSSS 6/25/02

Review: Conway’s “Life”

  • Captures physical locality and finite-

state But,

  • Not reversible (doesn’t map well onto

microscopic physics)

  • No conservation laws (nothing like

momentum or energy)

  • No interesting large-scale behavior

Observation:

  • It’s hard to create (or discover)

conservations in conventional CA’s.

256x256 region of a larger grid. Activity has mostly died off.

slide-5
SLIDE 5

CBSSS 6/25/02

Review: CA’s with conservations

1. The data are rearranged without any interaction, or 2. The data are partitioned into disjoint groups of bits that change as a unit. Data that affect more than one such group don’t change.

To make reversibility and other conservations manifest, we employ a multi-step update, in each step of which either Conservations allow computations to map efficiently onto microscopic physics, and also allow them to have interesting macroscopic behavior. Such CA’s have hardly been studied.

b c d a c d a b x

x

xh g

slide-6
SLIDE 6

CBSSS 6/25/02

slide-7
SLIDE 7

CBSSS 6/25/02

Physical Worlds

Some regular spatial systems:

  • 1. Programmable gate arrays at

the atomic scale

  • 2. Fundamental finite-state

models of physics

  • 3. Rich “toy universes”
  • All of these systems must be

computation universal

slide-8
SLIDE 8

CBSSS 6/25/02

Computation Universality

If you can build basic logic elements and connect them together, then you can construct any logic function -- your system can do anything that any other digital system can do!

  • It doesn’t take much.
  • Can construct CA that

support logic.

  • Can discover logic in

existing CAs (eg. Life)

  • Universal CA can

simulate any other

Logic circuit in gate-array-like CA

slide-9
SLIDE 9

CBSSS 6/25/02

Computation Universality

If you can build basic logic elements and connect them together, then you can construct any logic function -- your system can do anything that any other digital system can do.

  • It doesn’t take much.
  • Can construct CA that

support logic.

  • Can discover logic in

existing CAs (eg. Life)

  • Universal CA can

simulate any other

Logic circuit in gate-array-like CA

slide-10
SLIDE 10

CBSSS 6/25/02

What’s wrong with Life?

Glider guns in Conway’s “Game of Life” CA. Streams of gliders can be used as signals in Life logic circuits.

  • One can build signals,

wires, and logic out of patterns of bits in the Life CA

slide-11
SLIDE 11

CBSSS 6/25/02

What’s wrong with Life?

  • One can build signals,

wires, and logic out of patterns of bits in the Life CA

  • Life is short!
  • Life is microscopic
  • Can we do better with

a more physical CA?

Life on a 2Kx2K space, run from a random initial pattern. All activity dies out after about 16,000 steps.

slide-12
SLIDE 12

CBSSS 6/25/02

Billiard Ball Logic

  • Simple reversible logic gates

can be universal

  • Turn continuous model into

digital at discrete times!

  • (A,B)Æ AND(A,B) isn’t

reversible by itself

  • Can do better than just throw

away extra outputs

  • Need to also show that you

can compose gates

Fredkin’s reversible Billiard Ball Logic Gate

slide-13
SLIDE 13

CBSSS 6/25/02

Billiard Ball Logic

Fixed mirrors allow signals to be routed around. Mirrors allow signals to cross without interaction.

slide-14
SLIDE 14

CBSSS 6/25/02

A BBM CA rule

2x2 blockings. The solid blocks are used at even time steps, the dotted blocks at

  • dd steps.

A BBMCA collision: BBMCA rule. Single one goes to opposite corner, 2 ones on diagonal go to other diag, no

  • ther cases change.
slide-15
SLIDE 15

CBSSS 6/25/02

The “Critters” rule

Use 2x2 blockings. Use solid blocks on even time steps, use dotted blocks on odd steps. This rule is applied both to the even and the odd blockings. We show all cases: each rotation of a case

  • n the left maps to the

corresponding rotation

  • f the case on the right.

Note that the number of

  • nes in one step equals

the number of zeros in the next step.

slide-16
SLIDE 16

CBSSS 6/25/02

The “Critters” rule

This rule is applied both to the even and the odd blockings. We show all cases: each rotation of a case

  • n the left maps to the

corresponding rotation

  • f the case on the right.

Note that the number of

  • nes in one step equals

the number of zeros in the next step. Reversible “Critters” rule, started from a low-entropy initial state (2Kx2K).

slide-17
SLIDE 17

CBSSS 6/25/02

“Critters” is universal

A BBMCA collision: Critters “glider” collision:

slide-18
SLIDE 18

CBSSS 6/25/02

UCA with momentum conservation

Hard sphere collision

  • Hard-sphere collision

conserves momentum

  • Can’t make simple CA
  • ut of this that does
  • Problem: finite impact

parameter required

  • Suggestion: find a new

physical model!

slide-19
SLIDE 19

CBSSS 6/25/02

UCA with momentum conservation

Hard sphere collision Soft sphere collision

slide-20
SLIDE 20

CBSSS 6/25/02

UCA with momentum conservation

Can shrink balls to points! Soft sphere collision

slide-21
SLIDE 21

CBSSS 6/25/02

UCA with momentum conservation

SSM rule: rotations also act like this. All other cases remain unchanged. This is a Lattice Gas: movement and interaction steps alternate.

Can shrink balls to points!

slide-22
SLIDE 22

CBSSS 6/25/02

UCA with momentum conservation

SSM rule: rotations also act like this. All other cases remain unchanged. This is a Lattice Gas: movement and interaction steps alternate.

Add mirrors at lattice points to guide balls.

slide-23
SLIDE 23

CBSSS 6/25/02

UCA with momentum conservation

Add mirrors at lattice points to guide balls. SSM rule with mirrors

slide-24
SLIDE 24

CBSSS 6/25/02

UCA with momentum conservation

Add mirrors at lattice points to guide balls. Mirrors allow signals to cross without interacting.

slide-25
SLIDE 25

CBSSS 6/25/02

SSM collisions on other lattices

Triangular lattice 3D Cubic lattice

slide-26
SLIDE 26

CBSSS 6/25/02

Getting rid of mirrors

Mirrors allow signals to cross without interacting.

  • SSM with mirrors does

not conserve momentum

  • Mirrors must have

infinite mass

  • Want both universality

and mom conservation

  • Can do this with just the

SSM collision!

slide-27
SLIDE 27

CBSSS 6/25/02

Getting rid of mirrors

Mirrors allow signals to cross without interacting. Adding a rest particle allows signals to cross.

slide-28
SLIDE 28

CBSSS 6/25/02

Getting rid of mirrors

Adding a rest particle allows signals to cross.

  • The rule is very simple

without mirrors: just one collision and it’s inverse.

  • All other cases, including

the rest particle case, go straight through.

slide-29
SLIDE 29

CBSSS 6/25/02

Getting rid of mirrors

Pairing every signal with its complement allows constant streams of 1’s to act like mirrors

  • The rule is very simple

without mirrors: just one collision and it’s inverse.

  • All other cases, including

the rest particle case, go straight through.

slide-30
SLIDE 30

CBSSS 6/25/02

Getting rid of mirrors

  • Fredkin Gate,

built in SSM

  • No mirrors
  • Constants of 1

act as mirrors

  • Dual-rail pairs

used as signals

  • Can show that

1’s can be reused by building BBMCA in SSM

slide-31
SLIDE 31

CBSSS 6/25/02

Macroscopic universality

With exact microscopic control of every bit, the SSM model lets us compute reversibly and with momentum conservation, but

  • an interesting world should have macroscopic

complexity!

  • Relativistic invariance would allow large-scale

structures to move: laws of physics same in motion

  • This would allow a robust Darwinian evolution
  • Requires us to reconcile forces and conservations

with invertibility and universality.

slide-32
SLIDE 32

CBSSS 6/25/02

Relativistic conservation

‹Non-relativistically, mass and energy are conserved separately ‹Simple lattice gasses that conserve only m and mv are more like rel than non-rel systems!

E

Â

= ¢ E

Â

Ei r v

i

Â

= ¢ E

i ¢

r v

i

Â

1 2 miv2

Â

=

1 2

¢ m

i

Â

¢ v 2 mi

Â

= ¢ m

i

Â

mi r v

i

Â

= ¢ m

i ¢

r v

i

Â

(since r p = gmr v = gmc

2 ¥ r

v /c

2)

Non-relativistic: Relativistic: (energy) (mass) (mom) (energy) (mom)

slide-33
SLIDE 33

CBSSS 6/25/02

Relativistic conservation

  • We used dual-rail

signalling to allow constant 1’s to act as mirrors

  • Dual rail signals don’t

rotate very easily

  • Suggestion: make an

LGA in which you don’t need dual-rail

A A B B

Dual-rail signals have a defect when it comes to allowing rotated signals to interact with each other.

slide-34
SLIDE 34

CBSSS 6/25/02

Relativistic conservation

The rule we infer from this is:

slide-35
SLIDE 35

CBSSS 6/25/02

Can we add macroscopic forces?

3D momentum conserving crystallization. becomes: Particles six sites apart along the lattice attract each other.

slide-36
SLIDE 36

CBSSS 6/25/02

Can we add macroscopic forces?

Crystallization using irreversible forces (Jeff Yepez, AFOSR)

slide-37
SLIDE 37

CBSSS 6/25/02

Summary

  • Universality is a low threshold that separates triviality

from arbitrary complexity

  • More of the richness of physical dynamics can be

captured by adding physical properties:

» Reversible systems last longer, and have a realistic thermodynamics. » Reversibility plus conservations leads to robust “gliders” and interesting macroscopic properties & symmetries.

  • We know how to reconcile universality with reversibility

and relativistic conservations

slide-38
SLIDE 38

CBSSS 6/25/02

Physics becomes the computer

Emulating Physics

» Finite-state, locality, invertibility, and conservation laws

Physical Worlds

» Incorporating comp-universality at small and large scales

Spatial Computers

» Architectures and algorithms for large-scale spatial computations

Nature as Computer

» Physical concepts enter CS and computer concepts enter Physics

0/1

slide-39
SLIDE 39

CBSSS 6/25/02

Problem from last lecture: Dynamical Ising rule

Even steps: update gold sublattice Odd steps: update silver sublattice A spin is flipped if exactly 2 of its 4 neighbors are parallel to it. After the flip, exactly 2 neighbors are still parallel.

slide-40
SLIDE 40

CBSSS 6/25/02

Problem from last lecture: Dynamical Ising rule

Even steps: update gold sublattice Odd steps: update silver sublattice A spin is flipped if exactly 2 of its 4 neighbors are parallel to it. After the flip, exactly 2 neighbors are still parallel.

Problem:

  • Show that the waves

running along the boundary obey the wave equation exactly Hint:

  • The wave equation’s

solutions consist of a superposition of right- and left-going waves