quantum computing for high energy physics workshop cern, 5-6 …€¦ · through inqnet, a program...

50
Jean-Roch Vlimant [email protected] California Institute of Technology Quantum Computing for High Energy Physics workshop CERN, 5-6 Nov 2018 Classification with Quantum Annealing on the D-Wave System

Upload: others

Post on 30-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

Jean-Roch [email protected]

California Institute of Technology

Quantum Computing for HighEnergy Physics workshop

CERN, 5-6 Nov 2018

Classification with QuantumAnnealing on the D-Wave System

Page 2: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

2

Outline

➢ Overview

● Quantum Annealing● QA Machine Learning● A Higgs dataset

➢ Experiments➢ Outlooks

Page 3: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

3

Overview

Page 4: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

4

https://www.nature.com/articles/nature24047

Page 5: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

5

Experiment

SIGNAL

BACKGROUND

Cla

ssifi cation

Quantum Annealing

SIMULATION

Page 6: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

6

The D-Wave Computing System

Page 7: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

7

https://www.dwavesys.com/ 1999 Founded 2011 D-Wave One : 128 qubits2013 D-Wave Two : 512 qubits2015 D-Wave 2X : 1000 qubits2017 D-Wave 2000Q : 2000 qubits2019? 5000 qubits ?

The D-Wave Company

Page 8: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

8

D-Wave 2XTM

1098 qubitsOperates at 15mKAnneals in 5-20 μs

Page 9: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

9

qubit and qubit

Quantum CircuitsSeries of quantum gates

operating on a set ofquantum states.

Quantum AnnealingEvolution of a quantum

system to a low T Gibbs stateThat's D-Wave !

Page 10: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

10

Quantum Annealing

Page 11: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

11

Adiabatic Quantum Annealing ➢ System setup with trivial hamiltonian H(0) and ground state➢ Evolve adiabatically the hamiltonian towards the desired

Hamiltonian Hp

➢ Adiabatic theorem : with a slow evolution of the system, thestate stays in the ground state.

https://arxiv.org/abs/quant-ph/0001106 https://arxiv.org/abs/quant-ph/0104129

Page 12: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

12

D-Wave HamiltonianAnd

Chimera Graph

Page 13: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

13

Externalmagnetic field

Interactions

D-Wave Hamiltonian

Runs overadjacent quBits

Page 14: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

14

D-Wave qubit Adjacency

Active qubits in greenCoupling to 5-6 qubitsInactive qubits in redNot a fully connected graph

Page 15: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

15

Model Embedding

Page 16: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

16

Full Ising Model

https://arxiv.org/abs/1210.8395

● Create chains of spins throughthe chimera graph

● Split local fields across allqubits in the chain

● Tightly couple (JF=6)

● Non-unique embedding.Heuristic approach.

● Suppressing spin flip withinchain as error correction.

● Use majority vote

➔ Approximately full Ising Modelwith ~<40 spins

Page 17: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

17

Ising Hamiltonian

Runs over all quBit pairs

Externalmagnetic field

Interactions

Page 18: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

18

D-Wave Sampling Solutions

D-Wave provides samplingfrom lowest energy levels

(appox. Gibbs) ( {σ

i }

k, N({σ

i }

k) )

Multiple 5 μs annealing cycles

User provides( h

i , J

ij )

Page 19: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

19

Classification withQuantum Annealing

Page 20: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

20

Formalism to transform a binaryclassification into an Ising model

hamiltonian optimization

K.L. Pudenz, D.A. Lidar https://arxiv.org/abs/1109.0325

QA Machine Learning

Page 21: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

21

QAML Weak/Strong Classifier

Define functions hi of the

input variables into [-1,1]such that ➢ P(signal|h>0) > P(bkg|h>0)➢ P(bkg|h<0) > P(signal|h<0)

i.e. Most signal on h>0, mostbkg on h<0

Define wi as binary linear

combination of hi

https://arxiv.org/abs/1109.0325

Page 22: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

22

QAML Target/ObjectiveDefine as a “target” function

Per event error

Full error

➔ Cij and C

iy are summations over the values of h

i over the training set

➔ λ is a parameter penalizing the number of non-zero wi

https://arxiv.org/abs/1109.0325

Page 23: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

23

QUBOQuadratic Unconstrained Binary Optimization

Simple conversion of binary

weights to ±1

Page 24: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

24

QAML End-to-End

Page 25: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

25

QAML Discriminant

Run on D-Wave

Signal and Background samples.Less than 40 features

Mask (wi) of features contributing to

continuous discriminant function. One mask per energy level.

Page 26: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

26

A Higgs-γγ/backgrounddataset

Page 27: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

27

Generated Samples

SIGNAL

BACKGROUND

Generated with PYTHIA 6.4at 8TeV proton-protonc.o.m energy

Generated with SHERPA at 8TeVproton-proton c.o.m energy➔ Photon pT of 32 GeV and 25 GeV

for realistic trigger selection➔ Di-photon mass [122.5, 127.5] GeV➔ Higgs candidate |η|<2.5

Page 28: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

28

Sample Size and Folding

● 300k signal + 300k background total sample● Training set

● 20 stratified, independent splits of sizes 100,1000, 5000, 10k, 15k, 20k events

➔ Spread of classifier performance over the foldsreported as the uncertainty due to the choiceof training sample, and initialization.

● Testing set● Remaining 100k+100k independent sample➔ Statistical error on the classifier performance

estimated using bootstrapping

Page 29: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

29

Characterizing Variables

Page 30: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

30

Weak Classifier Function

Define vshift

● Based on 70th and 30th percentile of the signaldistribution (s

70, s

30)

● If the percentile ofbackground at s

70 is less

than 70%, then translateto s

70 and invert the

variable● Else, check the percentile

of background at s30

, andif more than 30%, thentranslate to s

30.

● Else, the two distributionsare “too overlapping” andwe discard the variable.

Define h● v

+1 and v

-1 are the 10th and

90th percentile of vshift

Applied to all variables and theirproduct (inverse if flipped)

Page 31: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

31

Weak Classifiers Numbering

Page 32: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

32

Experiments

Page 33: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

33

Outline

➔ Train classical classifiers as a baselinemeasurement of performance.

➔ Evaluate the exact solution of the problemusing simulating annealing of the Ising model.

➔ Scan for λ, penalty on number of weakclassifiers.

➔ Classification performance depending on thesize of the training set.

➔ Scan on the fraction of exited states includedin the classifier.

Page 34: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

34

Baseline Classifiers

Page 35: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

35

Classical Baseline

➔ XGBoost (XGB)● Extremely efficient library for training decision trees● http://xgboost.readthedocs.io ● Discovered during the higgs-ml challenge

https://www.kaggle.com/c/higgs-boson● Moderately optimize the hyper-parameters

➔ Deep Neural Network (DNN)● Simple fully connected model 2 layers 1000 nodes● https://keras.io/

http://deeplearning.net/software/theano/ ● Moderately optimize the hyper-parameters

Page 36: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

36

Simulated Annealing

Page 37: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

37

Ising Model Heuristic Solution● Monte-Carlo based method to find ground state

of energy functions● Random walk across phase space

➔ accepting descent➔ accepting ascent with probability e-ΔE/kT

● Decrease T with time

Applied to the QUBO problem, and finds theground state reasonably well. SA in the legends.

Page 38: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

38

Variable Importance

Page 39: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

39

Weak Classifier Penalty

Penalize for using manyweak classifiers

Page 40: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

40

Surviving Weak Classifiers

Table : Number of times the weak classifier of a given variableis used in the ground state solution, as a function of the penalty

Three major variables (2, 13, 28) :Relates to the creation of a heavy particle (Higgs) with lesstransverse energy than typical QCD in the same mass range.

Page 41: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

41

ClassificationPerformance

Page 42: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

42

Sample Size of 100 Events

DW & SA

DNN & XGB

Two components in theerror band.

1.Stat error of the testset. Negligible.

2.Spread over the folds.

Page 43: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

43

Sample Size of 20k Events

DW & SA

DNN & XGB

Two components in theerror band. Both negligible

1.Stat error of the testset.

2.Spread over the folds.

Page 44: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

44

Evolution With Training Size

DW & SA

DNN & XGBTwo components in theerror band.

1.Stat error of the testset.

2.Spread over the folds.

Page 45: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

45

Hybrid Classifier

Page 46: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

46

In presence of Excited States

● Excited states bring new mask of weak classifier tobuild discriminators

● Building a discriminator including excited states➔ Take x% of the levels above the ground state➔ For each evaluate the average ROC on the

training folds➔ At each signal efficiency, pick the energy state

that has the most rejecting discriminator

Page 47: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

47

Comparison DW/SA

Ground state onlyE<E

0+2% excited states

E<E0+5% excited states

Page 48: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

48

Chimera Spin ChainsCoupling = 1

Coupling ~ 1/JF

● Quantum Annealing gets better atfinding the ground truth groundstate with strong chain strength.

● SA does not include spin chains.● Feedback to machine developers

Page 49: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

49

Summary

● First application of D-Wave quantum annealingcapability to High Energy Physics use case.Raises interesting questions.

● Scope of the Quantum Annealing on the D-Wave computing device is solving the Isingmodel. Limited but powerful.

➔ Potential applicability of Quantum Annealing toother problems.

Page 50: Quantum Computing for High Energy Physics workshop CERN, 5-6 …€¦ · through INQNET, a program for accelerating quantum technologies. We wish to thank the Advanced Scientific

11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant

50

This project is supported in part by the United StatesDepartment of Energy, Office of High Energy Physics ResearchTechnology Computational HEP and Fermi Research Alliance,LLC under Contract No. DE-AC02-07CH11359. The project isalso supported in part under ARO grant number W911NF-12-1-0523 and NSF grant number INSPIRE-1551064. The work issupported in part by the AT&T Foundry Innovation Centersthrough INQNET, a program for accelerating quantumtechnologies. We wish to thank the Advanced ScientificComputing Research program of the DOE for the opportunity tofirst present and discuss this work at the ASCR workshop onQuantum Computing for Science (2015). We acknowledge thefunding agencies and all the scientists and staff at CERN andinternationally whose hard work resulted in the momentousH(125) discovery in 2012.

With special thanks to Joshua Job.

Thanks