quantum computing for high energy physics workshop cern, 5-6 …€¦ · through inqnet, a program...
TRANSCRIPT
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
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
3
Overview
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
4
https://www.nature.com/articles/nature24047
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
5
Experiment
SIGNAL
BACKGROUND
Cla
ssifi cation
Quantum Annealing
SIMULATION
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
6
The D-Wave Computing System
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
8
D-Wave 2XTM
1098 qubitsOperates at 15mKAnneals in 5-20 μs
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 !
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
10
Quantum Annealing
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
12
D-Wave HamiltonianAnd
Chimera Graph
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
13
Externalmagnetic field
Interactions
D-Wave Hamiltonian
Runs overadjacent quBits
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
15
Model Embedding
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
17
Ising Hamiltonian
Runs over all quBit pairs
Externalmagnetic field
Interactions
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 )
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
19
Classification withQuantum Annealing
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
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
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
23
QUBOQuadratic Unconstrained Binary Optimization
Simple conversion of binary
weights to ±1
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
24
QAML End-to-End
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.
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
26
A Higgs-γγ/backgrounddataset
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
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
29
Characterizing Variables
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)
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
31
Weak Classifiers Numbering
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
32
Experiments
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.
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
34
Baseline Classifiers
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
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
36
Simulated Annealing
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.
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
38
Variable Importance
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
39
Weak Classifier Penalty
Penalize for using manyweak classifiers
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.
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
41
ClassificationPerformance
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.
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.
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.
11/05/18 D-Wave Classifier, OpenLab Q-HEP, J.-R. Vlimant
45
Hybrid Classifier
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
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
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
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.
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