Quantum neurons Yudong Cao with Gian Giacomo Guerreschi, Aln - - PowerPoint PPT Presentation

โ–ถ
quantum neurons
SMART_READER_LITE
LIVE PREVIEW

Quantum neurons Yudong Cao with Gian Giacomo Guerreschi, Aln - - PowerPoint PPT Presentation

Quantum neurons Yudong Cao with Gian Giacomo Guerreschi, Aln Aspuru-Guzik Quantum Techniques in Machine Learning 2017, Verona, Italy. The quest for quantum neural nets Parametrized quantum system that can be trained to accomplish tasks


slide-1
SLIDE 1

Quantum neurons

Yudong Cao

with Gian Giacomo Guerreschi, Alรกn Aspuru-Guzik

Quantum Techniques in Machine Learning 2017, Verona, Italy.

slide-2
SLIDE 2

The quest for quantum neural nets

  • Parametrized quantum system that can be trained

to accomplish tasks such as classification

  • In many cases, it is not easy to identify what is the

fundamental building block with which one could describe the quantum system as a learning algorithm

  • This work can be seen as a conceptual attempt at

addressing this issue

slide-3
SLIDE 3

Nonlinear and parallel Builds up its own rules through experience Neural network

a machine that is designed to mimic the way in which the brain performs a particular task or function of interest

slide-4
SLIDE 4

Basic requirements for quantum NN

  • 1. Initial state encodes

any N-bit binary string

  • 2. Reflects one or more

basic neural computing mechanisms

  • 3. The evolution is based
  • n quantum effects

e.g. attractor dynamics, synaptic connections, integrate & fire, training rules, structure of a NN 01001 01001 Schuld, M., Sinayskiy, I. & Petruccione, F. Quantum Inf Process (2014) 13: 2567 Superposition and entanglement

slide-5
SLIDE 5

(artificial) Neuron

๐œ„ ๐œ„ =

๐‘—

๐‘ฅ๐‘—๐‘ฆ๐‘— + ๐‘ ๐‘ 1 ๐œ„ ๐œ ๐œ„

slide-6
SLIDE 6

Can we reali lize art rtif ific icia ial l neurons on a quantum computer?

slide-7
SLIDE 7

QM + NN: an unlikely match ?

  • Unitary evolution
  • Rotation in Hilbert space

Quantum Mechanics (QM) Neural Networks (NN)

  • Lossy transformations
  • Clustering, classification,

compression etc

slide-8
SLIDE 8

Challenges

  • Sigmoid / step function activation

How to realize on quantum computers, whose dynamics is lin linear?

  • Measurement? Open system?

May collapse the state / reduce to classical probabilistic algorithms

Dissipative dynamics

Story of quantum error correction

Reversible circuits Cost scaling?

slide-9
SLIDE 9

Our proposal

Neuron Qubit Activation Rotation angle

rest active Activation ๐‘ง = ๐œ(๐œ„)

rest active 1

๐‘†๐‘ง(๐œ’) ๐œ’

๐œ„ =

๐‘—

๐‘ฅ๐‘—๐‘ฆ๐‘— + ๐‘ โ€ฆ ๐‘ฆ1 ๐‘ฆ2 ๐‘ฆ๐‘œ ๐‘ฅ1 ๐‘ฅ2 ๐‘ฅ๐‘œ 1 ๐œ„ ๐œ ๐œ„ Information from previous layer

๐œ’ = ๐›ฟ๐œ„ + ๐œŒ 4

slide-10
SLIDE 10

Introduce nonlinearity

Repeat-until-success (RUS) circuits: Given ability to realize ๐‘†๐‘ง 2๐‘ฆ One could use RUS to realize ๐‘†๐‘ง(2๐‘”(๐‘ฆ))

๐‘” ๐‘ฆ = arctan tan2 ๐‘ฆ

๐‘ฆ Measure 0: ๐‘†๐‘ง(๐‘”(๐‘ฆ)) ๐œ” Measure 1: ๐‘†๐‘ง(๐œŒ/4) ๐œ” Su Success Fail ail bu but eas easil ily cor

  • rrectable

Nonlinear!

Repeat until success

๐‘†๐‘ง ๐œ„ = cos ๐œ„ 2 โˆ’sin ๐œ„ 2 sin ๐œ„ 2 cos ๐œ„ 2

slide-11
SLIDE 11

๐‘” ๐‘” โ€ฆ ๐‘” ๐‘ฆ โ€ฆ = ๐‘”ยฐ๐‘™(๐‘ฆ)

๐‘™ times

๐‘†๐‘ง ๐‘ฆ ๐‘†๐‘ง ๐‘”(๐‘ฆ ) ๐‘†๐‘ง ๐‘”ยฐ๐‘™(๐‘ฆ)

โ€ฆ โ€ฆ

slide-12
SLIDE 12

๐‘†๐‘ง(2๐‘”(๐œ„)) 1 ๐‘†๐‘ง(๐‘”โˆ˜๐‘™(๐œ„)) ๐‘†๐‘ง(฿ ) 0 ๐œ„

  • Prev. layer

|010โ€ฆ> RUS x k Controlled rotations by angle ๐‘ฅ๐‘—, ๐‘ โ€ฆ ๐‘ฆ1 = 0 ๐‘ฆ2 = 1 ๐‘ฆ3 = 0 Close to either 0 or 1 due to nonlinear function ๐‘” Weighted sum Nonlinear

  • utput

๐œ„ =

๐‘—

๐‘ฅ๐‘—๐‘ฆ๐‘— + ๐‘ โ€ฆ ๐‘ฆ1 ๐‘ฆ2 ๐‘ฆ3 ๐‘ฅ1 ๐‘ฅ2 ๐‘ฅ3 ๐œ„ =

๐‘—

๐‘ฅ๐‘—๐‘ฆ๐‘— + ๐‘ ๐‘ง = ๐œ(๐œ„) Prev. layer Weighted sum Nonlinear

  • utput
slide-13
SLIDE 13
  • Size
  • Neuron type
  • Connectivity
  • Activation function
  • Weight/bias setting
  • Training method
  • โ€ฆ
slide-14
SLIDE 14
slide-15
SLIDE 15

Feedforward network

โ€œcatโ€

slide-16
SLIDE 16

XOR network

๐‘ฆ1 ๐‘ฆ2

Train the network such that ๐‘ก = ๐‘ฆ1โจ๐‘ฆ2

๐‘ก 1 2 00 1 + 01 0 + 10 0 + 11 1 ๐’š๐Ÿ ๐’š๐Ÿ ๐’• 1 1 1 1 1 1 Input Correct output ๐‘Ž๐‘Ž

Accuracy:

1+ ๐‘Ž๐‘Ž 2

slide-17
SLIDE 17

1 2 00 1 + 01 0 + 10 0 + 11 1 Solid: training on Dashed: testing on 00 10 01 11 average

slide-18
SLIDE 18
slide-19
SLIDE 19

8-bit parity network

๐‘ฆ1 ๐‘ฆ2

Train the network such that ๐‘ก = ๐‘ฆ1โจ โ€ฆ โจ๐‘ฆ8

๐‘ก ๐‘Ž๐‘Ž

Accuracy:

1+ ๐‘Ž๐‘Ž 2

๐‘ฆ3 ๐‘ฆ4 ๐‘ฆ5 ๐‘ฆ6 ๐‘ฆ7 ๐‘ฆ8

โ‹ฎ

8

slide-20
SLIDE 20

1 28

๐‘—=0 28โˆ’1

๐‘— Parity(๐‘—) Solid: training on Dashed: testing on 28=256 states 00000000 00000001 โ‹ฏ 11111111 average

slide-21
SLIDE 21
slide-22
SLIDE 22

Hopfield network

Initial state Update Repeat Final state (attractor)

๐‘ก๐‘—

๐‘ก๐‘— = 1 ๐œ„๐‘— > 0 โˆ’1 ๐œ„๐‘— < 0

๐‘ก

๐‘˜

๐‘ฅ๐‘—๐‘˜

๐œ„๐‘— =

๐‘˜โ‰ ๐‘—

๐‘ฅ๐‘—๐‘˜๐‘ก

๐‘˜ + ๐‘๐‘—

slide-23
SLIDE 23

Hopfield net of quantum neurons

๐‘ก1

๐‘ก๐‘— = 1 ๐œ„๐‘— > 0 โˆ’1 ๐œ„๐‘— < 0 ๐œ„๐‘— =

๐‘˜โ‰ ๐‘—

๐‘ฅ๐‘—๐‘˜๐‘ก

๐‘˜ + ๐‘๐‘—

๐‘ก2 ๐‘ก3 ๐‘ก4 ๐‘Ÿ1

(0)

๐‘Ÿ2

(0)

๐‘Ÿ3

(0)

๐‘Ÿ4

(0)

๐‘Ÿ3

(1)

RUS x k ๐‘Ÿ4

(2)

RUS x k ๐‘Ÿ2

(3)

RUS x k

โ€ฆ

๐‘œ + ๐‘ข + ๐‘™ qubits for Hopfield network of ๐‘œ neurons and ๐‘ข updates

slide-24
SLIDE 24

Numerical example

attractors: letters C and Y 3x3 grid

1

+ + +

1 1 1 initial input after 1 update after 2 updates after 3 updates

slide-25
SLIDE 25

Summary

  • Building block for quantum neural network satisfying
  • Initial state encoding n-bit strings

Neuron <-> Qubit

  • One or more neural computing mechanisms

Sigmoid/step function, attractor

  • Evolution based on quantum effects

Train with superposition of examples

  • Application and extensions
  • Superposition of weights (networks) ?
  • Different forms of networks
  • Different activation functions
slide-26
SLIDE 26

Acknowledgements

Gian Giacomo Guerreschi Alรกn Aspuru-Guzik

Post

  • stdo

docs cs Peter Johnson Jonathan Olson Gr Grad adua uate te stu stude dent nts Jhonathan Romero Fontalvo Hannah (Sukin) Sim Tim Menke Florian Hase

slide-27
SLIDE 27

Thanks!