Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a...

40
Outline Introduction Learning in a quantum world Illustration: Clustering with a quantum dataset Work in progress: Towards a quantum analogue of boosting Conclusions and open problems Machine Learning in a Quantum World ebastien Gambs Joint work with Esma A¨ ımeur and Gilles Brassard based on Canadian AI 2006 and work in progress 18 August 2006 Universit´ e de Montr´ eal ebastien Gambs Machine Learning in a Quantum World 1

Transcript of Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a...

Page 1: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Machine Learning in a Quantum World

Sebastien Gambs

Joint work with Esma Aımeur and Gilles Brassardbased on Canadian AI 2006 and work in progress

18 August 2006

Universite de Montreal

Sebastien Gambs Machine Learning in a Quantum World 1

Page 2: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Introduction

Learning in a quantum world

Illustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boosting

Conclusions and open problems

Sebastien Gambs Machine Learning in a Quantum World 2

Page 3: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Introduction

Sebastien Gambs Machine Learning in a Quantum World 3

Page 4: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Machine Learning

Machine Learning (ML) is the field that studies techniques to giveto machines the ability to learn from past experience.

Supervised learning:

I Predict the class of an object (classification)

I or some unobserved characteristic (regression) based onobservations on this object.

Unsupervised learning:

I Discover clusters of similar objects (clustering)

I find a meaningful low dimensional representation(dimensionality reduction)

I or estimate the distribution of the data (density estimation).

Sebastien Gambs Machine Learning in a Quantum World 4

Page 5: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Quantum Information Processing

Quantum Information Processing (QIP) is the field that studies theimplication of quantum mechanics for information processingpurposes.

Quantum information is very different from its classical counterpartI It can exist in a superposition of states

I Quantum states can be entangled

I They can be teleported

I They cannot be measured reliably

I They are disturbed by observation

I They cannot be cloned

I · · ·

θ θθ

θθ

IMPOSSIBLE!

Sebastien Gambs Machine Learning in a Quantum World 5

Page 6: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Joining classical and quantum information

Together, quantum and classical information can realize wonderssuch as

I Factorize efficiently large integers (Shor 94)I Search elements in an unstructured database in time Θ(

√n)

(Grover 96)I Quantum cryptography (Bennett and Brassard 84)I · · · Long range quantum key exchange

Kurtsiefer et al, (2002), Nature, 419, 450.

Sebastien Gambs Machine Learning in a Quantum World 6

Page 7: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Previous encounters of ML with QIP

I Study and comparison of learnability in the classical andquantum settings (Servedio and Gortler 04)

I Quantum neural networks (Ezhov and Berman 03)

I Design of classical clustering algorithms inspired fromquantum mechanics (Horn and Gottlieb 01)

I Application of the maximum likelihood principle to quantumchannel modelling(Ziman, Plesch, Buzek and Stelmachovic 05)

I Quantum Bayesian calculus (Kuzmin and Warmuth 06)

I · · ·

Sebastien Gambs Machine Learning in a Quantum World 7

Page 8: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Novel task: Learning in a quantum world

Initial interrogation: Generally, ML learns from a training set thatcontains classical observations about classical objects.What would happen if the training dataset contained quantumobjects?

Main motivations:

I For people of the QIP community: Can the machine learningparadigm provide a constructive approach to resolve somequantum detection scenarios?

I For machine learning people: How does the change of physicaltheory influence the learning process?

Sebastien Gambs Machine Learning in a Quantum World 8

Page 9: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Learning in a quantum world

Sebastien Gambs Machine Learning in a Quantum World 9

Page 10: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Scenario

A space probe sent in exploration far away in the galaxy hasencountered some quantum phenomena and sampled from them.These samples would constitute the training dataset.What can be learned from this data?

Alternative scenario: A physicist in his laboratory has encounteredsome quantum phenomena during his experiments.What can be learned from the observations he made about them?

Sebastien Gambs Machine Learning in a Quantum World 10

Page 11: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

ML with a classical dataset

A classical training dataset containing n data points:Dn = {(x1, y1), . . . , (xn, yn)} where:

I xi are observations on the characteristics of the i th object(or data point)

I and yi is the class of that object.

Typical example: if each object is described using d real-valuedattributes then xi ∈ Rd and yi ∈ {−1,+1} for binary classification.

Remark: in unsupervised learning, as opposed to supervisedlearning, the yi values are unknown.

Sebastien Gambs Machine Learning in a Quantum World 11

Page 12: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Example 1 of machine learning task: Classification

Classification: from the training dataset, learn a classifier that canbe used later to predict the class of a new object based onobservations on this object.

More formally: learn a function f , called classifier, which canassociate to a vector of observations x, its corresponding class y .

A few examples : music genre classification, spam detection,recognition of the digital fingerprints or the face of a person, . . .

Sebastien Gambs Machine Learning in a Quantum World 12

Page 13: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Illustration of the classification task (a French example :-))

Sebastien Gambs Machine Learning in a Quantum World 13

Page 14: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Example 2 of machine learning task: Clustering

Clustering: try to discover natural clusters which are hidden insidethe data.

Recall that in the unsupervised setting: Dn = {x1, . . . , xn}.

Formal goal: associate to each x, a category (or cluster)y ∈ {1, . . . , k} such that similar objects are grouped together inthe same cluster (intra-similarity) and dissimilar objects are put indifferent clusters (inter-dissimilarity).

Examples of applications: find the typical sociological categoriesexisting inside a population, automatically group songs accordingto their genre, . . .

Sebastien Gambs Machine Learning in a Quantum World 14

Page 15: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Illustration of the clustering task

Sebastien Gambs Machine Learning in a Quantum World 15

Page 16: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

The case of ML with a quantum dataset

A quantum training dataset containing n quantum states:Dn = {(|ψ1〉 , y1), . . . , (|ψn〉 , yn)} where:

I |ψi 〉 is i th quantum state of the training set

I and yi is the class of that quantum state.

Typical example: for a quantum state living in a Hilbert spaceformed by d qubits, |ψn〉 ∈ C2d

and yi ∈ {−1,+1} for binaryclassification.

Remark: further generalization would include quantumsuperposition of classes as well.

Sebastien Gambs Machine Learning in a Quantum World 16

Page 17: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Learning classes

Definition: Lcontextgoal is a learning class, where goal is the learning

goal and context the form of the training dataset and/or thelearner’s abilities.

Example of learning classes:

I Lcq: all descriptions of the quantum states are given classically.

I L⊗kq : we received k copies of each training quantum state.

I Lcc : ML in a classical world.

I Lqc : classical ML goal but with the help of a quantum

computer.

Sebastien Gambs Machine Learning in a Quantum World 17

Page 18: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Possible learning strategies

Quantum classification: task of predicting the class of an unknownquantum state |ψ?〉 given a single copy of this state.

If Dn ∈ Lcq, it is possible to maximize the probability of a good

guess of the class of |ψ?〉 or minimize the probability of making awrong guess (unambiguous discrimination).

If Dn ∈ L⊗kq , possible strategies include:

(1) Estimation of the training set by making measurements (jointor not) on some of the copies

(2) Classification mechanism using the copies only when the timeto classify |ψ?〉 comes or

(3) Hybrid strategy based on (1) and (2).

Sebastien Gambs Machine Learning in a Quantum World 18

Page 19: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Some facts on the hierarchy of quantum learning classes

I L⊗kq ≡` Lc

q as k →∞.“An infinite number of copies is as a good as a classicaldescription (due to quantum tomography).”

I L⊗1q ≤` . . . ≤` L⊗k

q ≤` L⊗k+1q ≤` . . . ≤` Lc

q.“Adding more copies can never hurt.”

I L⊗kq +L⊗1

q ≤` L⊗k+1q , where “+” denotes a restriction that the

first k copies must be measured separately from the the last.“Joint measurement can sometimes give more informationthan separate ones.”

Sebastien Gambs Machine Learning in a Quantum World 19

Page 20: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ML with a classical datasetML with a quantum datasetLearning classesPossible learning strategiesHierarchy of learning classesBounds on the training error

Bounds on the training error for classification

Results from quantum detection and estimation theory can givebounds on the best training error we could hope for.Example:

I If Dn ∈ Lcq, probability of distinguishing between the two

classes is bounded above by (1 + D(ρ−, ρ+))/2, whereD(ρ−, ρ+) is a distance measure between ρ− and ρ+

(Helstrom 76)1.

I Recent bounds for unambiguous discrimination (Herzog andBergou 05).

Remark: The goal of a quantum ML algorithm is to give aconstructive way to come close (or to achieve) these bounds.

1ρ− = 1m−

Pni=1

1−yi2

|ψi 〉〈ψi |,ρ+ = 1m+

Pni=1

1+yi2

|ψi 〉〈ψi |Sebastien Gambs Machine Learning in a Quantum World 20

Page 21: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Illustration: Clusteringwith a quantum dataset

Sebastien Gambs Machine Learning in a Quantum World 21

Page 22: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Notion of fidelity

The fidelity Fid(|ψ〉 , |φ〉) = |〈φ|ψ〉|2 is a measure of similaritybetween quantum states.It ranges from

I 0 if the states are orthogonal (i.e. perfectly distinguishable) toI 1 if the states are identical.

Some properties of fidelity:I Symmetry: Fid(|ψ〉 , |φ〉) = Fid(|φ〉 , |ψ〉).I Invariance under unitary transformations:

Fid(|Uψ〉 , |Uφ〉) = Fid(|ψ〉 , |φ〉), where U is any unitaryoperation.

Remark: the fidelity can be transformed into a metric obeying thetriangle inequality by using Dist(|ψ〉 , |φ〉) = arccos Fid(|ψ〉 , |φ〉).

Sebastien Gambs Machine Learning in a Quantum World 22

Page 23: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Control-Swap test: Description

Control-Swap (C-Swap) test: quantum operation that can be usedto estimate the fidelity between two unknown quantum states |ψ〉and |φ〉 (BBDEJM2 96, BCWW3 01).

|0〉 H • H *-+,M

|ψ〉SWAP

|φ〉Figure: Circuit of the Control-SWAP test.

2Barenco, Berthiaume, Deutsch, Ekert, Jozsa and Macchiavello.3Buhrman, Cleve, Watrous and de Wolf.

Sebastien Gambs Machine Learning in a Quantum World 23

Page 24: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Control-Swap test: Fidelity estimator

Result of applying the C-Swap test is:

I |0〉 with probability 1 if |ψ〉 and |φ〉 are identical.

I Otherwise, |1〉 with probability 12 −

12 |〈φ|ψ〉|

2.

The C-Swap test provides an estimator of the fidelity.

With k copies of |ψ〉 and |φ〉, we can run it k times and estimateFid(|ψ〉 , |φ〉) as 1− 2×# |1〉 /k.

Note: A side effect of the C-SWAP test is to irreversibly disturbthe input states.

Sebastien Gambs Machine Learning in a Quantum World 24

Page 25: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Possible quantum clustering strategies (1)

Quantum clustering: Group similar quantum states together andseparate dissimilar quantum states into different clusters.

If Dn ∈ L⊗kq , it is possible to perform a quantum tomography by

using all the copies and then reconstruct of the classicaldescription of each training state.

The quality of the reconstruction depends on k, the number ofavailable copies, and d = 2n, the dimension of the Hilbert spacefor n qubits: Fid(|ψguess〉 , |ψtrue〉) = k+1

k+d .

Problem: This requires an exponential number of copies in thenumber of qubits for good reconstruction.

Sebastien Gambs Machine Learning in a Quantum World 25

Page 26: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Possible quantum clustering strategies (2)

More clever approaches:

I Estimate the fidelity between each pair of the training set byusing the C-Swap test several times and then run a classicalclustering algorithm (such as k-medians) on the data thusobtained.

I Adapt a classical algorithm to the quantum setting.

Example: An agglomerative algorithm that grows clustersaround quantum seeds in a adaptive manner.

Sebastien Gambs Machine Learning in a Quantum World 26

Page 27: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

(Classical) K -medians algorithm

1. Choose randomly k datapoints which will be the initial centersof the clusters.

2. DoI For each xi , attach him to the closest center.I For each cluster, recompute the center by setting it to the

datapoint which is at minimal distance from the other pointsin the cluster.

While there is no stabilization of the cluster centers

3. Return the discovered clusters and their centers.

Sebastien Gambs Machine Learning in a Quantum World 27

Page 28: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Simulated experimentation as a proof of concept

I Synthetic data of 5 clusters.

I The centre of each cluster is a 13-qubit pure state (d = 8192)generated randomly and uniformly according to the Haarmeasure.

I 20 pure states per cluster obtained by random perturbation ofthe centre and such that the fidelity with the centre is neverbelow some threshold.

Algorithm:

1. Construction of a similarity matrix by estimating the fidelitybetween each pair of states using the C-Swap test.

2. Running a variant of k-medians on this similarity matrix,which groups the quantum states in 5 clusters.

Sebastien Gambs Machine Learning in a Quantum World 28

Page 29: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Measure of distance between quantum statesControl-Swap as a fidelity estimatorPossible strategies for clusteringExperimentation

Clustering quality vs fidelity threshold

0.6

0.7

0.8

0.9

1

1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1Fidelity threshold for size of clusters

Qua

lity

of c

lust

erin

g

Figure: Evolution of the clustering quality (averaged over 5 trials) as thefidelity threshold decreases. Quality value of 1 = perfect clustering.Random “clustering” results in a quality of approximately 0.37.

Sebastien Gambs Machine Learning in a Quantum World 29

Page 30: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Boosting algorithmNotion of weak measurement

Work in progress: Towardsa quantum analogue of boosting

Sebastien Gambs Machine Learning in a Quantum World 30

Page 31: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Boosting algorithmNotion of weak measurement

Ensemble methods, boosting and AdaBoost

Illustration of the motto “Unity and diversity make strength”.

Principle of ensemble methods: Several classifiers are trained andthen combined into a single efficient mechanism (generaly using avoting mechanism).

Philosophy of boosting: construction of an efficient classifier byiteratively adding several weak classifiers whose predictions needonly to be a little bit better than a random guess.

AdaBoost (Adaptive Boosting): state-of-the-art boosting algorithm(Freund and Schapire 97).

Sebastien Gambs Machine Learning in a Quantum World 31

Page 32: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Boosting algorithmNotion of weak measurement

AdaBoost algorithm

Iterative boosting algorithm that stops after T iterations. Eachdatapoint has a weight which changes at each iteration. Thisweight reflects how hard it is to classify a datapoint.

Details of one iteration:

1. Find the weak classifier that minimizes the weighted error onthe datapoints.

2. Compute the coefficient of this weak classifier from itsweighted error.

3. Reweight the datapoints.For each datapoint, if it is correctly classified by the weakclassifier of the current iteration decrease its weight, otherwiseincrease it.

Sebastien Gambs Machine Learning in a Quantum World 32

Page 33: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

Boosting algorithmNotion of weak measurement

Weak measurement

Weak measurement: measurement which learns only a smallamount of information about an unknown quantum state |ψ?〉,thus disturbing it only a little.

|ψ〉 •

|0〉 H −θ 2θ *-+,M

Figure: Example of a weak measurement circuit. θ is a unitary operation(here a small rotation) close to the identity and whose strength can betune to change the amount of information acquired.

Resemblance between a weak classifier and a weak measurement.Currently finishing to develop a quantum version of AdaBoost.

Sebastien Gambs Machine Learning in a Quantum World 33

Page 34: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

Conclusions and open problems

Sebastien Gambs Machine Learning in a Quantum World 34

Page 35: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

Conclusions

I Novel learning task and new model of ML.

I Using quantum information has a great impact on the learningprocess.

I Offers a lot of interesting questions and perspectives whosestudy could lead to insights both in ML and QIP.

Sebastien Gambs Machine Learning in a Quantum World 35

Page 36: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

Open problems

I Define analogues of classical notions of ML in the quantumsetting (such as the generalization error or the margin).

I Study the effect of noise (both classical and quantum).

I Extend or generalize classical ML algorithms to the quantumworld.Currently in development: Quantum analogue of boosting andID3.

I Devise brand new ML algorithms.

I · · ·I Suggestions?

Sebastien Gambs Machine Learning in a Quantum World 36

Page 37: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

This is the end!!!

Thank you for your attention.Questions?

Sebastien Gambs Machine Learning in a Quantum World 37

Page 38: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

References: Some encounters between ML and QIP

I Aimeur, E., Brassard, G. and S. Gambs: Machine learning in aquantum world. Proceedings of Canadian AI 2006, pages 433-444,2006.

I Ezhov, A.A. and G.P. Berman: Introduction to quantum neuraltechnologies. Rinton Press, 2003.

I Horn, D. and A. Gottlieb: The method of quantum clustering.Proceedings of the Neural Information Processing Systems(NIPS’01), pages 769-776, 2001.

I Servedio, R. and A. Gortler: Equivalences and separations betweenquantum and classical learnability. SIAM Journal of Computing,33(5):1067-1092, 2004.

I Ziman, M., M. Plesch, V. Buzek and P. Stelmachovic: Processreconstruction: From unphysical to physical maps via maximumlikelihood. Physical Reviews A 72, article 022106, 2005.

Sebastien Gambs Machine Learning in a Quantum World 38

Page 39: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

This is the end (bis)!!!

Many thanks to the organizer!!!

Sebastien Gambs Machine Learning in a Quantum World 39

Page 40: Machine Learning in a Quantum World · Learning in a quantum world Illustration: Clustering with a quantum dataset ... quantum settings (Servedio and Gortler 04) I Quantum neural

OutlineIntroduction

Learning in a quantum worldIllustration: Clustering with a quantum dataset

Work in progress: Towards a quantum analogue of boostingConclusions and open problems

ConclusionsOpen problems

Bonus slide: Towards a quantum analogue of ID3

I ID3 (Quinlan 86) is a ML algorithm that produce a decisiontree and uses Shannon entropy as a splitting criterion.

I The von Neumann entropy is a measure of the uncertainty wehave about a quantum state.

I Strong relationship between Shannon and von Neumannentropies: S(ρ) = H(λi ) if λi and |ψi 〉 are respectively theeigenvalues and eigenvectors of ρ.

I Idea: construct a quantized version of ID3 that uses vonNeumann entropy as a splitting criterion.

Sebastien Gambs Machine Learning in a Quantum World 40