example of programming a quantum robot this program can be easily changed to the following types of...

12
Example of programming a quantum robot This program can be easily changed to the following types of control: 1. Boolean Logic 2. Fuzzy logic 3. Probabilistic logic 4. Ternary logic 5. Mixed logic 6. Your own control for any algebra you may want

Upload: hillary-richards

Post on 05-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Example of programming a quantum robot

This program can be easily changed to the following types of control:1. Boolean Logic2. Fuzzy logic3. Probabilistic logic4. Ternary logic5. Mixed logic6. Your own control for any algebra you may want

Page 2: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic
Page 3: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

• Review matrices and vectors• Review how to multiply matrix by vector• Review how to multiply matrix by matrix

Page 4: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

For loop flowchart

}

}

}

Page 5: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

start

i=0

Ostate[i]=0

j=0

j=j+1

j < 4

i < 4

i=i+1

External loop

Internal loop

For loop flowchart

yes

yes

no

no

Page 6: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

• Review quantum measurement• Review probability

Page 7: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

start

i=0

Ostate[i]=0

j=0

j=j+1

j < 4

i < 4

i=i+1

For loop flowchart

yes

yes

no

no end

Page 8: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Initialize total

Calculate new value of total

Calculate value of output

oneCounter counts ones

Page 9: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Calculate deterministic values of control variables P and Q

Continue of subroutine of interpreting the output state

Loop for oneCounter

Page 10: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Translates output Boolean variables P and Q to actions of motors

Output Motion routine is for

motors

Page 11: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Converts sensor reading to input variables a and b

Two light sensors and touch sensor

Two light sensors and touch sensor

Input routine is for sensors

Page 12: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic

Main program links inputs, outputs and

brain (behavior)

input

brain

output

Intialize all