Charged Particle Tracking as a QUBO Problem Solved with ...

56
Connecting the Dots 2019, Valencia, April 2-5 2019 Jean-Roch Vlimant on behalf of the QMLQCF project team Special credits to Abhishek Anand and Alexander Zlokapa Charged Particle Tracking as a QUBO Problem Solved with Quantum Annealing- inspired Optimization

Transcript of Charged Particle Tracking as a QUBO Problem Solved with ...

Page 1: Charged Particle Tracking as a QUBO Problem Solved with ...

Connecting the Dots 2019, Valencia, April 2-5 2019

Jean-Roch Vlimant on behalf of the QMLQCF project teamSpecial credits to

Abhishek Anand and Alexander Zlokapa

Charged Particle Tracking as a QUBOProblem Solved with Quantum Annealing-

inspired Optimization

Page 2: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 2CTD19, QA-Tracking, J-R Vlimant

Outline

Forewords on charged particletracking and dataset

Introduction to D-Wave andquantum annealing

Hopfield Network and segmentclassification as a QUBOproblem

Results and outlooks

Page 3: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 3CTD19, QA-Tracking, J-R Vlimant

The Challenge of ChargedParticle Tracking at the HL-LHC

Page 4: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 4CTD19, QA-Tracking, J-R Vlimant

Tracking in a Nutshell

Seeding Kalman Filter

● Particle trajectory bended in asolenoid magnetic field

● Curvature is a proxy tomomentum

● Particle ionize silicon pixel and strip throughout several concentric layers

● Thousands of sparse hits● Lots of hit pollution from low

momentum, secondary particles

● Explosion of hit combinatorics in both seeding and stepping pattern recognition● Highly time consuming task in extracting physics content from LHC data

Page 5: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 5CTD19, QA-Tracking, J-R Vlimant

Cost of Tracking● CPU time consumption in HL-LHC era surpasses computing budget

➔ Need for faster algorithms● Charged particle track reconstruction is one of the most CPU consuming

task in event reconstruction➔ Optimizations mostly saturated

● Large fraction of CPU required in the HLT. Cannot perform trackinginclusively

➔ Approximation allowed in the trigger

@HL-LHC <μ> >200

Page 6: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 6CTD19, QA-Tracking, J-R Vlimant

Fast Hardware Tracking● Track trigger implementation for Trigger

upgrades development on-going● Several approaches investigated● Dedicated hardware is the key to fast

computation.● Not applicable for offline processing unless

through adopting heterogeneous computing.Tracklets

Hough

Transform

Kalman

Filter

Page 7: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 7CTD19, QA-Tracking, J-R Vlimant

Deep Learning Approaches

Seq-to-seq track finding

https://tinyurl.com/yb3v93y9

End-to-end hit assignment

Track following with RNNhttps://heptrkx.github.io/

https://indico.cern.ch/event/587955/contributions/2937570/

https://indico.cern.ch/event/587955/contributions/2937540/

See Xiangyang later today https://indico.cern.ch/event/742793/contributions/3274328/

Page 8: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 8CTD19, QA-Tracking, J-R Vlimant

Charged Particle Tracking Dataset

https://www.kaggle.com/c/trackml-particle-identificationhttps://competitions.codalab.org/competitions/20112

● This work uses the publicdataset of the TrackMLParticle Tracking Challenge(Kaggle, codalab).

● Simulating the denseenvironment expected forHL-HLC. Average of 200proton-proton interaction perbunch crossing.

Page 9: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 9CTD19, QA-Tracking, J-R Vlimant

Motivation

● Classical charged particle tracking algorithmssuffer from combinatorial explosion

● Embrace the combinatorics considering allpossible branches of track candidates, andsolve the complex optimization problem withquantum annealing

Page 10: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 10CTD19, QA-Tracking, J-R Vlimant

The D-Wave Computing System

Page 11: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 11CTD19, QA-Tracking, J-R Vlimant

D-Wave 2XTM

1098 qubitsOperates at 15mKAnneals in 5-20 μs

Page 12: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 12CTD19, QA-Tracking, J-R Vlimant

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 13: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 13CTD19, QA-Tracking, J-R Vlimant

Quantum Annealing

Page 14: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 14CTD19, QA-Tracking, J-R Vlimant

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 15: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 15CTD19, QA-Tracking, J-R Vlimant

Space of Hamiltonian

Externalmagnetic field

Interactions

Runs overadjacent quBits

Runs over all quBit pairs

Externalmagnetic field

Interactions

Chimera graphembedding

➢ ~1000 qubits on chimera graph canonly encode ~40 qubits full IsingHamiltonian

➢ Quadratic Unconstrained BinaryOptimization (QUBO) can bemapped to an Ising Hamiltonianwith change of variable {0,1}↔{-1,1}

Page 16: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 16CTD19, QA-Tracking, J-R Vlimant

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. SA in the legends.

Page 17: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 17CTD19, QA-Tracking, J-R Vlimant

Charged Particle Tracking usingAdiabatic Quantum Annealing

See also L. Linder https://indico.cern.ch/event/742793/contributions/3274780/

Page 18: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 18CTD19, QA-Tracking, J-R Vlimant

Hopfield Network Approach

Page 19: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 19CTD19, QA-Tracking, J-R Vlimant

Framing the Problem● Segment ≡ pair of hits on

consecutive layers of the detector● Assign a boolean to each segment

representing whether the segment iswithin a track or not

● Limits the number of hits/segments➔ Separating the hits in 16 sector in φ➔ pre-filtering the segments on Δφ and

Δz to reduce the number of spuriousbad segments

● Segment opening in r-phi-z plane inwhich helical segments are aligned

● Azimuthal angle in cartesiancoordinate in which high pT trackssegments are straight

θabc

rab

rbc

Page 20: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 20CTD19, QA-Tracking, J-R Vlimant

Segment QUBO

∑a , b ,c ( cos

λθabc+ρcosλϕabcrab+rbc

+η(zc−r c zc−zar c−ra )ζ

) sab sbc+α( ∑a , b≠c sab sac+ ∑

a≠b , csac sbc)+∑

a , b(β+γ P (sab)) sab

Helix TermSegments along

an helix

High pT TermAligned pair of segments

Beam spot TermSegment pointing at

the origin

Bifurcation TermNo shared hits

on valid segment

Inhibition TermReduced number

of segments

GP TermUse the quality

of segment

Page 21: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 21CTD19, QA-Tracking, J-R Vlimant

Resolving Sub-Group

● Train a gaussian kernel densityestimator on true single segment

● Aiming at reducing the number offalse segments, retaining

● Force segment off based on cosθabc

➢ cosθabc

= 0 if θabc

> θ0

● 5 best neighbors● Solvable in polynomial time

● Full all-to-all QUBO problem cannot fit on dWave. Aim at identifyingsub-groups of segments that can fit on the hardware

Page 22: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 22CTD19, QA-Tracking, J-R Vlimant

QA-Tracking Workflow

ResolvingSub-group (θ

0)

SegmentQUBO

ResolvingSub-group (θ

1)

SegmentQUBO

Page 23: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 23CTD19, QA-Tracking, J-R Vlimant

Performance● Simulated annealing and

Quantum annealing are inperfect agreement at 200 tracks

● Simulated annealing solves theexact problem at all multiplicity

● Limitation on number of qubitsprevents from solving eventsbeyond 200 tracks on Dwave ;solving a contrive problem

● Purity and Efficiency aremeasured with respect to truetracks with at least three hits

➢ Promising tracking efficiency forthe algorithm up to 2000 tracksper event

<P

U>

~16

<P

U>

~33

<P

U>

~8

Page 24: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 24CTD19, QA-Tracking, J-R Vlimant

Conclusion

● QMLQCF Scouting for applications of quantumannealing (among others) in HEP

● Charged particle tracking interpreted as asegment classification can be expressed in aQUBO problem

● Experimentation on dWave imposes somestringent algorithmic restrictions

● Limited hardware size limits the complexity of theproblem that can be solved

Page 25: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 25CTD19, QA-Tracking, J-R Vlimant

This project is supported in part by the United States Department ofEnergy, Office of High Energy Physics Research TechnologyComputational HEP and Fermi Research Alliance, LLC underContract No. DE-AC02-07CH11359. The project is also supported inpart under ARO grant number W911NF-12-1-0523 and NSF grantnumber INSPIRE-1551064. The work is supported in part by theAT&T Foundry Innovation Centers through INQNET, a program foraccelerating quantum technologies. We wish to thank the AdvancedScientific Computing Research program of the DOE for theopportunity to first present and discuss this work at the ASCRworkshop on Quantum Computing for Science (2015). AwardNumber: DE-SC0019227, Quantum Machine Learning and QuantumComputation Frameworks for HEP (QMLQCF), California Institute ofTechnology, Pasadena, CA

Part of this work was conducted at "iBanks", the AI GPU cluster atCaltech. We acknowledge NVIDIA, SuperMicro and the KavliFoundation for their support of "iBanks".

Acknowledgments

Page 26: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 26CTD19, QA-Tracking, J-R Vlimant

Problem Parameters Optimization

● Parameters of the hamiltonian are tuned usingbayesian optimization, modeling the figure of meritwith gaussian processes.

● Accuracy (# of properly labeled / # of segments)use as f.o.m

● Global inhibition model : α=3.E-3, β=2.63E-8, λ=7

● Threshold model : α=5.E-3, β=1.E-6, λ=7

Page 27: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 27CTD19, QA-Tracking, J-R Vlimant

Edge Aff inity

• Helical bias: tracks are straight in cylindrical coordinates• Momentum bias: high-PT tracks are straight in rectangular

coordinates• Short-edge bias: long tracks of short edge segments

 

Momentum bias(rectangular angle)

Helical bias(cylindrical angle)

Short-edge bias Ising variables (1 or 0)

θabc

rab

rbc

Page 28: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 28CTD19, QA-Tracking, J-R Vlimant

Cross-Term Penalties• Beam spot penalty: penalize tracks that originate further from the

origin

 

Z-intercept penalty

Ising variables (1 or 0)

Page 29: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 29CTD19, QA-Tracking, J-R Vlimant

• Global inhibition: limits total number of edges turned on• Prior probability: Bayesian prior based on edge position in rz-plane

• Computed using Gaussian kernel density estimation

 

Global inhibition

Ising variable (1 or 0)

Single-Edge Bias

Bayesian prior

Page 30: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 30CTD19, QA-Tracking, J-R Vlimant

Extra Material

Page 31: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 31CTD19, QA-Tracking, J-R Vlimant

References

Page 32: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 32CTD19, QA-Tracking, J-R Vlimant

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 33: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 33CTD19, QA-Tracking, J-R Vlimant

D-Wave HamiltonianAnd

Chimera Graph

Page 34: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 34CTD19, QA-Tracking, J-R Vlimant

Externalmagnetic field

Interactions

D-Wave Hamiltonian

Runs overadjacent quBits

Page 35: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 35CTD19, QA-Tracking, J-R Vlimant

D-Wave qubit Adjacency

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

Page 36: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 36CTD19, QA-Tracking, J-R Vlimant

Model Embedding

Page 37: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 37CTD19, QA-Tracking, J-R Vlimant

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 38: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 38CTD19, QA-Tracking, J-R Vlimant

Ising Hamiltonian

Runs over all quBit pairs

Externalmagnetic field

Interactions

Page 39: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 39CTD19, QA-Tracking, J-R Vlimant

High Luminosity LHCThe Challenge

Page 40: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 40CTD19, QA-Tracking, J-R Vlimant

HL-LHC Challenge

<PU>=7 <PU>=21

<PU>=140-20010x more hits

Circa 2025

● CPU time extrapolation into HL-LHC era far surpasses growth incomputing budget

● Need for faster algorithms

● Approximation allowed in the trigger

Page 41: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 41CTD19, QA-Tracking, J-R Vlimant

Complexity and Ambiguity

Shown trajectories are reconstructed objects

The future holds much more hits

Page 42: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 42CTD19, QA-Tracking, J-R Vlimant

HEP.TrkX Approaches

Seq-to-seq track finding

https://tinyurl.com/y87saehf

https://tinyurl.com/yb3v93y9

End-to-end hit assignment

Track following with RNN https://heptrkx.github.io/

Page 43: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 43CTD19, QA-Tracking, J-R Vlimant

Tracking Not In a Nutshell

● Hits preparation

● Seeding

● Pattern recognition

● Track fitting

● Track cleaning

Sev

eral

Tim

es

Page 44: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 44CTD19, QA-Tracking, J-R Vlimant

Hit Preparation

● Calculate the hit position from barycenter of chargedeposits

● Use of neural net classifier to split cluster in ATLAS

● Access to trajectory local parameter from clustershape

● Remove hits from previous tracking iterations

● HL-LHC design include double layers giving moreconstraints on the local trajectory parameters

Page 45: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 45CTD19, QA-Tracking, J-R Vlimant

Seeding

● Combinatorics of 2 or 3 hitswith tight/loose constraintsto the beam spot or vertex

● Seed cleaning/purity playsin an important in reducingthe CPU requirements ofsub-sequent steps➔ Consider pixel cluster

shape and charge toremove incompatibleseeds

● Initial track parameters fromhelix fit

Page 46: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 46CTD19, QA-Tracking, J-R Vlimant

Pattern Recognition● Use of the Kalman filter

formalism with weight matrix

● Identify possible next layersfrom geometrical considerations

● Combinatorics with compatibleshits, retain N best candidates

● No smoothing procedure

● Resilient to missing modules

● Hits are mostly belonging to onetrack and one track only

● Hit sharing can happen in denseevents, in the innermost part

● Lots of hits from low momentumparticles

Page 47: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 47CTD19, QA-Tracking, J-R Vlimant

Kalman Filter● Trajectory state propagation

done either✔ Analytical (helix, fastest)✔ Stepping helix (fast)✔ Runge-Kutta (slow)

● Material effect added totrajectory state covariance

● Projection matrix of local helixparameters onto module surface➔ Trivial expression due to local

helix parametrisation● Hits covariance matrix for pixel

and stereo hits properly formed✗ Issue with strip hits and

longitudinal error being nongaussian (square)

Page 48: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 48CTD19, QA-Tracking, J-R Vlimant

Track Fitting

● Use of the Kalman filterformalism with weightmatrix

● Use of smoothingprocedure to identifyoutliers

● Field non uniformity aretaken into account

● Detector alignmenttaken into account

Page 49: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 49CTD19, QA-Tracking, J-R Vlimant

Cleaning, Selection

● Track qualityestimated usingranking orclassification method➔Use of MVA

● Hits from high qualitytracks are removefor the next iterationswhere applicable

Page 50: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 50CTD19, QA-Tracking, J-R Vlimant

A Charged Particle Journey

Page 51: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 51CTD19, QA-Tracking, J-R Vlimant

First order effect : electromagnetic elasticinteraction of the charge particle with nuclei (heavy

and multiply charged) and electrons (light andsingle charged)

Second order effect : inelastic interaction withnuclei.

Page 52: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 52CTD19, QA-Tracking, J-R Vlimant

Magnetic Field● Magnetic fieldB acts on charged particles

in motion : Lorentz Force

● The solution in uniform magnetic field isan helix along the field : 5 parameters

● Helix radius proportional to the componentof momentum perpendicular to B

● Separate particles in dense environment

➔ Bending induces radiation :bremsstrahlung

➔ The magnetic field has to be known to agood precision for accurate tracking ofparticle

Page 53: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 53CTD19, QA-Tracking, J-R Vlimant

Multiple Scattering● Deflection on nuclei (effect from

electron are negligible)

● Addition of scattering processes

● Gaussian approximation valid forsubstantial material traversed

Gaussian Approximation

Page 54: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 54CTD19, QA-Tracking, J-R Vlimant

Bremsstrahlung● Electromagnetic radiation of

charged particles under accelerationdue to nuclei charge

● Significant at low mass or highenergy

● Discontinuity in energy lossspectrum due to photon emissionand track curvature

➔ Can be observed as kink in thetrajectory or presence of collinearenergetic photons

Page 55: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 55CTD19, QA-Tracking, J-R Vlimant

Energy Loss● Momentum transfer to electrons when

traversing material (effect of nuclei isnegligible

● Energy loss at low momentumdepends on mass : can be used asmass spectrometer

ALICE Experiment

Page 56: Charged Particle Tracking as a QUBO Problem Solved with ...

04/02/19 56CTD19, QA-Tracking, J-R Vlimant

Summary on Material Effects

● Collective effects can be estimatedstatistically and taken into account in how theymodify the trajectory

● Bremstrahlung and nuclear interactionssignificantly distort trajectories