Towards a resource theory of contextuality · I Precise relationship to violations of Bell...

128
Towards a resource theory of contextuality Samson Abramsky 1 Rui Soares Barbosa 1 Shane Mansfield 2 1 Department of Computer Science, University of Oxford {rui.soares.barbosa,samson.abramsky}@cs.ox.ac.uk 2 Institut de Recherche en Informatique Fondamentale, Universit´ e Paris Diderot – Paris 7 [email protected] Workshop on Compositionality Programme: Logical Structures in Computation Simons Institute for the Theory of Computing, UC Berkeley 8th December 2016

Transcript of Towards a resource theory of contextuality · I Precise relationship to violations of Bell...

Page 1: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Towards a resource theory of contextuality

Samson Abramsky1 Rui Soares Barbosa1 Shane Mansfield2

1Department of Computer Science, University of Oxford{rui.soares.barbosa,samson.abramsky}@cs.ox.ac.uk

2Institut de Recherche en Informatique Fondamentale, Universite Paris Diderot – Paris [email protected]

Workshop on CompositionalityProgramme: Logical Structures in Computation

Simons Institute for the Theory of Computing, UC Berkeley8th December 2016

Page 2: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

IntroductionI Contextuality: a fundamental non-classical phenomenon of QM

I Contextuality as a resource for QC:I Raussendorf (2013) – MBQC

“Contextuality in measurement-based quantum computation”I Howard, Wallman, Veith, & Emerson (2014) – MSD

“Contextuality supplies the ‘magic’ for quantum computation”

S Abramsky, R S Barbosa, & S Mansfield 1/27

Page 3: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Contextuality: a fundamental non-classical phenomenon of QM

I Contextuality as a resource for QC:I Raussendorf (2013) – MBQC

“Contextuality in measurement-based quantum computation”I Howard, Wallman, Veith, & Emerson (2014) – MSD

“Contextuality supplies the ‘magic’ for quantum computation”

S Abramsky, R S Barbosa, & S Mansfield 1/27

Page 4: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Abramsky–Brandenburger: unified framework for non-localityand contextuality in general measurement scenarios

I composional aspects

I in particular, “free” operations

I A–B: qualitative hierarchy of contextuality for empirical models

I quantitative grading – measure of contextuality(NB: there may be more than one useful measure)

S Abramsky, R S Barbosa, & S Mansfield 2/27

Page 5: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Abramsky–Brandenburger: unified framework for non-localityand contextuality in general measurement scenarios

I composional aspects

I in particular, “free” operations

I A–B: qualitative hierarchy of contextuality for empirical models

I quantitative grading – measure of contextuality(NB: there may be more than one useful measure)

S Abramsky, R S Barbosa, & S Mansfield 2/27

Page 6: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Abramsky–Brandenburger: unified framework for non-localityand contextuality in general measurement scenarios

I composional aspects

I in particular, “free” operations

I A–B: qualitative hierarchy of contextuality for empirical models

I quantitative grading – measure of contextuality(NB: there may be more than one useful measure)

S Abramsky, R S Barbosa, & S Mansfield 2/27

Page 7: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Abramsky–Brandenburger: unified framework for non-localityand contextuality in general measurement scenarios

I composional aspects

I in particular, “free” operations

I A–B: qualitative hierarchy of contextuality for empirical models

I quantitative grading – measure of contextuality(NB: there may be more than one useful measure)

S Abramsky, R S Barbosa, & S Mansfield 2/27

Page 8: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Introduction

I Abramsky–Brandenburger: unified framework for non-localityand contextuality in general measurement scenarios

I composional aspects

I in particular, “free” operations

I A–B: qualitative hierarchy of contextuality for empirical models

I quantitative grading – measure of contextuality(NB: there may be more than one useful measure)

S Abramsky, R S Barbosa, & S Mansfield 2/27

Page 9: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 10: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 11: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 12: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 13: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 14: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 15: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

OverviewWe introduce the contextual fraction(generalising the idea of non-local fraction)

It satisfies a number of desirable properties:

I General, i.e. applicable to any measurement scenario

I Normalised, allowing comparison across scenarios0 for non-contextuality . . . 1 for strong contextuality

I Computable using linear programming

I Precise relationship to violations of Bell inequalities

I Monotone wrt operations that don’t introduce contextuality resource theory

I Relates to quantifiable advantages in QC and QIP tasks

S Abramsky, R S Barbosa, & S Mansfield 3/27

Page 16: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality

Page 17: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Empirical data

A B (0,0) (0,1) (1,0) (1,1)a1 b1 1/2 0 0 1/2

a1 b2 3/8 1/8 1/8 3/8

a2 b1 3/8 1/8 1/8 3/8

a2 b2 1/8 3/8 3/8 1/8

measurementdevice

mA ∈ {a1, a2}

oA ∈ {0, 1}

measurementdevice

mB ∈ {b1, b2}

oB ∈ {0, 1}

preparation

p

S Abramsky, R S Barbosa, & S Mansfield 4/27

Page 18: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Abramsky–Brandenburger frameworkMeasurement scenario 〈X ,M,O〉:

I X is a finite set of measurements or variablesI O is a finite set of outcomes or valuesI M is a cover of X , indicating joint measurability (contexts)

Example: (2,2,2) Bell scenarioI The set of variables is X = {a1,a2,b1,b2}.I The outcomes are O = {0,1}.I The measurement contexts are:

{ {a1,b1}, {a1,b2}, {a2,b1}, {a2,b2} }.

A joint outcome or event in a context C is s ∈ OC , e.g.

s = [a1 7→ 0,b1 7→ 1] .

(These correspond to the cells of our probability tables.)

S Abramsky, R S Barbosa, & S Mansfield 5/27

Page 19: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Abramsky–Brandenburger frameworkMeasurement scenario 〈X ,M,O〉:

I X is a finite set of measurements or variablesI O is a finite set of outcomes or valuesI M is a cover of X , indicating joint measurability (contexts)

Example: (2,2,2) Bell scenarioI The set of variables is X = {a1,a2,b1,b2}.I The outcomes are O = {0,1}.I The measurement contexts are:

{ {a1,b1}, {a1,b2}, {a2,b1}, {a2,b2} }.

A joint outcome or event in a context C is s ∈ OC , e.g.

s = [a1 7→ 0,b1 7→ 1] .

(These correspond to the cells of our probability tables.)

S Abramsky, R S Barbosa, & S Mansfield 5/27

Page 20: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Abramsky–Brandenburger frameworkMeasurement scenario 〈X ,M,O〉:

I X is a finite set of measurements or variablesI O is a finite set of outcomes or valuesI M is a cover of X , indicating joint measurability (contexts)

Example: (2,2,2) Bell scenarioI The set of variables is X = {a1,a2,b1,b2}.I The outcomes are O = {0,1}.I The measurement contexts are:

{ {a1,b1}, {a1,b2}, {a2,b1}, {a2,b2} }.

A joint outcome or event in a context C is s ∈ OC , e.g.

s = [a1 7→ 0,b1 7→ 1] .

(These correspond to the cells of our probability tables.)

S Abramsky, R S Barbosa, & S Mansfield 5/27

Page 21: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Another example: 18-vector Kochen–Specker

I A set of 18 variables, X = {A, . . . ,O}

I A set of outcomes O = {0,1}

I A measurement coverM = {C1, . . . ,C9}, whose contexts Cicorrespond to the columns in the following table:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P QB E I K E K Q R RC F C G M N D F MD G J L N O J L O

S Abramsky, R S Barbosa, & S Mansfield 6/27

Page 22: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Another example: 18-vector Kochen–Specker

I A set of 18 variables, X = {A, . . . ,O}

I A set of outcomes O = {0,1}

I A measurement coverM = {C1, . . . ,C9}, whose contexts Cicorrespond to the columns in the following table:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P QB E I K E K Q R RC F C G M N D F MD G J L N O J L O

S Abramsky, R S Barbosa, & S Mansfield 6/27

Page 23: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Another example: 18-vector Kochen–Specker

I A set of 18 variables, X = {A, . . . ,O}

I A set of outcomes O = {0,1}

I A measurement coverM = {C1, . . . ,C9}, whose contexts Cicorrespond to the columns in the following table:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P QB E I K E K Q R RC F C G M N D F MD G J L N O J L O

S Abramsky, R S Barbosa, & S Mansfield 6/27

Page 24: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Empirical Models

Fix a measurement scenario 〈X ,M,O〉.

Empirical model: family {eC}C∈M where eC ∈ Prob(OC) for C ∈M.

It specifies a probability distribution over the events in each context. Thesecorrespond to the rows of our probability tables.

Compatibility condition: these distributions “agree on overlaps”, i.e.

∀C,C′∈M. eC |C∩C′ = eC′ |C∩C′ .

where marginalisation of distributions: if D ⊆ C, d ∈ Prob(OC),

d |D(s) :=∑

t∈OC , t|D=s

d(t) .

For multipartite scenarios, compatibility = the no-signalling principle.

S Abramsky, R S Barbosa, & S Mansfield 7/27

Page 25: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Empirical Models

Fix a measurement scenario 〈X ,M,O〉.

Empirical model: family {eC}C∈M where eC ∈ Prob(OC) for C ∈M.

It specifies a probability distribution over the events in each context. Thesecorrespond to the rows of our probability tables.

Compatibility condition: these distributions “agree on overlaps”, i.e.

∀C,C′∈M. eC |C∩C′ = eC′ |C∩C′ .

where marginalisation of distributions: if D ⊆ C, d ∈ Prob(OC),

d |D(s) :=∑

t∈OC , t|D=s

d(t) .

For multipartite scenarios, compatibility = the no-signalling principle.

S Abramsky, R S Barbosa, & S Mansfield 7/27

Page 26: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Empirical Models

Fix a measurement scenario 〈X ,M,O〉.

Empirical model: family {eC}C∈M where eC ∈ Prob(OC) for C ∈M.

It specifies a probability distribution over the events in each context. Thesecorrespond to the rows of our probability tables.

Compatibility condition: these distributions “agree on overlaps”, i.e.

∀C,C′∈M. eC |C∩C′ = eC′ |C∩C′ .

where marginalisation of distributions: if D ⊆ C, d ∈ Prob(OC),

d |D(s) :=∑

t∈OC , t|D=s

d(t) .

For multipartite scenarios, compatibility = the no-signalling principle.

S Abramsky, R S Barbosa, & S Mansfield 7/27

Page 27: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Empirical Models

Fix a measurement scenario 〈X ,M,O〉.

Empirical model: family {eC}C∈M where eC ∈ Prob(OC) for C ∈M.

It specifies a probability distribution over the events in each context. Thesecorrespond to the rows of our probability tables.

Compatibility condition: these distributions “agree on overlaps”, i.e.

∀C,C′∈M. eC |C∩C′ = eC′ |C∩C′ .

where marginalisation of distributions: if D ⊆ C, d ∈ Prob(OC),

d |D(s) :=∑

t∈OC , t|D=s

d(t) .

For multipartite scenarios, compatibility = the no-signalling principle.

S Abramsky, R S Barbosa, & S Mansfield 7/27

Page 28: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality

A (compatible) empirical model is non-contextual if there exists aglobal distribution d ∈ Prob(OX ) (on the joint assignments of out-comes to all measurements) that marginalises to all the eC :

∃d∈Prob(OX ). ∀C∈M. d |C = eC .

That is, we can glue all the local information together into a global con-sistent description from which the local information can be recovered.

Contextuality:family of data which is locally consistent but globally inconsistent.

The import of results such as Bell’s and Bell–Kochen–Specker’s theorems isthat there are empirical models arising from quantum mechanics that are con-textual.

S Abramsky, R S Barbosa, & S Mansfield 8/27

Page 29: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality

A (compatible) empirical model is non-contextual if there exists aglobal distribution d ∈ Prob(OX ) (on the joint assignments of out-comes to all measurements) that marginalises to all the eC :

∃d∈Prob(OX ). ∀C∈M. d |C = eC .

That is, we can glue all the local information together into a global con-sistent description from which the local information can be recovered.

Contextuality:family of data which is locally consistent but globally inconsistent.

The import of results such as Bell’s and Bell–Kochen–Specker’s theorems isthat there are empirical models arising from quantum mechanics that are con-textual.

S Abramsky, R S Barbosa, & S Mansfield 8/27

Page 30: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality

A (compatible) empirical model is non-contextual if there exists aglobal distribution d ∈ Prob(OX ) (on the joint assignments of out-comes to all measurements) that marginalises to all the eC :

∃d∈Prob(OX ). ∀C∈M. d |C = eC .

That is, we can glue all the local information together into a global con-sistent description from which the local information can be recovered.

Contextuality:family of data which is locally consistent but globally inconsistent.

The import of results such as Bell’s and Bell–Kochen–Specker’s theorems isthat there are empirical models arising from quantum mechanics that are con-textual.

S Abramsky, R S Barbosa, & S Mansfield 8/27

Page 31: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality

A (compatible) empirical model is non-contextual if there exists aglobal distribution d ∈ Prob(OX ) (on the joint assignments of out-comes to all measurements) that marginalises to all the eC :

∃d∈Prob(OX ). ∀C∈M. d |C = eC .

That is, we can glue all the local information together into a global con-sistent description from which the local information can be recovered.

Contextuality:family of data which is locally consistent but globally inconsistent.

The import of results such as Bell’s and Bell–Kochen–Specker’s theorems isthat there are empirical models arising from quantum mechanics that are con-textual.

S Abramsky, R S Barbosa, & S Mansfield 8/27

Page 32: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Strong contextuality

Strong Contextuality:no event can be extended to aglobal assignment.

E.g. K–S models, GHZ, the PRbox:

A B (0, 0) (0, 1) (1, 0) (1, 1)a1 b1 X × × Xa1 b2 X × × Xa2 b1 X × × Xa2 b2 × X X ×

•a1

• b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

S Abramsky, R S Barbosa, & S Mansfield 9/27

Page 33: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Strong contextuality

Strong Contextuality:no event can be extended to aglobal assignment.

E.g. K–S models, GHZ, the PRbox:

A B (0, 0) (0, 1) (1, 0) (1, 1)a1 b1 X × × Xa1 b2 X × × Xa2 b1 X × × Xa2 b2 × X X ×

•a1

• b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

S Abramsky, R S Barbosa, & S Mansfield 9/27

Page 34: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fraction

Page 35: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)e′

where eNC is a non-contextual model.

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 36: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)e′

where eNC is a non-contextual model.

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 37: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)e′

where eNC is a non-contextual model.

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 38: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)e′

where eNC is a non-contextual model.

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 39: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)e′

where eNC is a non-contextual model.

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 40: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)eSC

where eNC is a non-contextual model. eSC is strongly contextual!

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 41: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

The contextual fractionNon-contextuality: global distribution d ∈ Prob(OX ) such that:

∀C∈M. d |C = eC .

Which fraction of a model admits a non-contextual explanation?

Consider subdistributions c ∈ SubProb(OX ) such that:

∀C∈M. c|C ≤ eC .

Non-contetual fraction: maximum weigth of such a subdistribution.

Equivalently, maximum weight λ over all convex decompositions

e = λeNC + (1− λ)eSC

where eNC is a non-contextual model. eSC is strongly contextual!

NCF(e) = λ CF(e) = 1− λ

S Abramsky, R S Barbosa, & S Mansfield 10/27

Page 42: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

(Non-)contextual fraction via linear programming

Checking contextuality of e corresponds to solving

Find d ∈ Rn

such that M d = ve

and d ≥ 0 .

Computing the non-contextual fraction corresponds to solving the fol-lowing linear program:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

S Abramsky, R S Barbosa, & S Mansfield 11/27

Page 43: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

(Non-)contextual fraction via linear programming

Checking contextuality of e corresponds to solving

Find d ∈ Rn

such that M d = ve

and d ≥ 0 .

Computing the non-contextual fraction corresponds to solving the fol-lowing linear program:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

S Abramsky, R S Barbosa, & S Mansfield 11/27

Page 44: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

E.g. Equatorial measurements on GHZ(n)

(a) (b)

Figure: Non-contextual fraction of empirical models obtained with equatorialmeasurements at φ1 and φ2 on each qubit of |ψGHZ(n)〉 with: (a) n = 3; (b)n = 4.

S Abramsky, R S Barbosa, & S Mansfield 12/27

Page 45: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Violations of Bell inequalities

Page 46: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Generalised Bell inequalities

An inequality for a scenario 〈X ,M,O〉 is given by:I a set of coefficients α = {α(C, s)}C∈M,s∈E(C)

I a bound R

For a model e, the inequality reads as

Bα(e) ≤ R ,

whereBα(e) :=

∑C∈M,s∈E(C)

α(C, s)eC(s) .

Wlog we can take R non-negative (in fact, we can take R = 0).

It is called a Bell inequality if it is satisfied by every NC model. If it issaturated by some NC model, the Bell inequality is said to be tight.

S Abramsky, R S Barbosa, & S Mansfield 13/27

Page 47: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Generalised Bell inequalities

An inequality for a scenario 〈X ,M,O〉 is given by:I a set of coefficients α = {α(C, s)}C∈M,s∈E(C)

I a bound R

For a model e, the inequality reads as

Bα(e) ≤ R ,

whereBα(e) :=

∑C∈M,s∈E(C)

α(C, s)eC(s) .

Wlog we can take R non-negative (in fact, we can take R = 0).

It is called a Bell inequality if it is satisfied by every NC model. If it issaturated by some NC model, the Bell inequality is said to be tight.

S Abramsky, R S Barbosa, & S Mansfield 13/27

Page 48: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Generalised Bell inequalities

An inequality for a scenario 〈X ,M,O〉 is given by:I a set of coefficients α = {α(C, s)}C∈M,s∈E(C)

I a bound R

For a model e, the inequality reads as

Bα(e) ≤ R ,

whereBα(e) :=

∑C∈M,s∈E(C)

α(C, s)eC(s) .

Wlog we can take R non-negative (in fact, we can take R = 0).

It is called a Bell inequality if it is satisfied by every NC model. If it issaturated by some NC model, the Bell inequality is said to be tight.

S Abramsky, R S Barbosa, & S Mansfield 13/27

Page 49: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Generalised Bell inequalities

An inequality for a scenario 〈X ,M,O〉 is given by:I a set of coefficients α = {α(C, s)}C∈M,s∈E(C)

I a bound R

For a model e, the inequality reads as

Bα(e) ≤ R ,

whereBα(e) :=

∑C∈M,s∈E(C)

α(C, s)eC(s) .

Wlog we can take R non-negative (in fact, we can take R = 0).

It is called a Bell inequality if it is satisfied by every NC model. If it issaturated by some NC model, the Bell inequality is said to be tight.

S Abramsky, R S Barbosa, & S Mansfield 13/27

Page 50: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Violation of a Bell inequality

A Bell inequality establishes a bound for the value of Bα(e) amongstNC models.

For a general (no-signalling) model e, the quantity is limited only by

‖α‖ :=∑

C∈M

max {α(C, s) | s ∈ E(C)}

The normalised violation of a Bell inequality 〈α,R〉 by an empiricalmodel e is the value

max{0,Bα(e)− R}‖α‖ − R

.

S Abramsky, R S Barbosa, & S Mansfield 14/27

Page 51: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Violation of a Bell inequality

A Bell inequality establishes a bound for the value of Bα(e) amongstNC models.

For a general (no-signalling) model e, the quantity is limited only by

‖α‖ :=∑

C∈M

max {α(C, s) | s ∈ E(C)}

The normalised violation of a Bell inequality 〈α,R〉 by an empiricalmodel e is the value

max{0,Bα(e)− R}‖α‖ − R

.

S Abramsky, R S Barbosa, & S Mansfield 14/27

Page 52: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Violation of a Bell inequality

A Bell inequality establishes a bound for the value of Bα(e) amongstNC models.

For a general (no-signalling) model e, the quantity is limited only by

‖α‖ :=∑

C∈M

max {α(C, s) | s ∈ E(C)}

The normalised violation of a Bell inequality 〈α,R〉 by an empiricalmodel e is the value

max{0,Bα(e)− R}‖α‖ − R

.

S Abramsky, R S Barbosa, & S Mansfield 14/27

Page 53: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fraction

PropositionLet e be an empirical model.

I The normalised violation by e of any Bell inequality is at mostCF(e).

I This is attained: there exists a Bell inequality whose normalisedviolation by e is exactly CF(e).

I Moreover, this Bell inequality is tight at “the” non-contextualmodel eNC and maximally violated by “the” strongly contextualmodel eSC :

e = NCF(e)eNC + CF(e)eSC .

S Abramsky, R S Barbosa, & S Mansfield 15/27

Page 54: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fraction

PropositionLet e be an empirical model.

I The normalised violation by e of any Bell inequality is at mostCF(e).

I This is attained: there exists a Bell inequality whose normalisedviolation by e is exactly CF(e).

I Moreover, this Bell inequality is tight at “the” non-contextualmodel eNC and maximally violated by “the” strongly contextualmodel eSC :

e = NCF(e)eNC + CF(e)eSC .

S Abramsky, R S Barbosa, & S Mansfield 15/27

Page 55: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fraction

PropositionLet e be an empirical model.

I The normalised violation by e of any Bell inequality is at mostCF(e).

I This is attained: there exists a Bell inequality whose normalisedviolation by e is exactly CF(e).

I Moreover, this Bell inequality is tight at “the” non-contextualmodel eNC and maximally violated by “the” strongly contextualmodel eSC :

e = NCF(e)eNC + CF(e)eSC .

S Abramsky, R S Barbosa, & S Mansfield 15/27

Page 56: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fraction

PropositionLet e be an empirical model.

I The normalised violation by e of any Bell inequality is at mostCF(e).

I This is attained: there exists a Bell inequality whose normalisedviolation by e is exactly CF(e).

I Moreover, this Bell inequality is tight at “the” non-contextualmodel eNC and maximally violated by “the” strongly contextualmodel eSC :

e = NCF(e)eNC + CF(e)eSC .

S Abramsky, R S Barbosa, & S Mansfield 15/27

Page 57: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fractionQuantifying Contextuality LP:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

e = λeNC + (1−λ)eSC with λ = 1 ·x∗.

NC

C

SC

Qve

Dual LP:

Find y ∈ Rm

minimising y · ve

subject to MT y ≥ 1and y ≥ 0 .

a := 1− |M|y

Find a ∈ Rm

maximising a · ve

subject to MT a≤0and a ≤ 1 .

computes tight Bell inequality(separating hyperplane)

S Abramsky, R S Barbosa, & S Mansfield 16/27

Page 58: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fractionQuantifying Contextuality LP:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

e = λeNC + (1−λ)eSC with λ = 1 ·x∗.

NC

C

SC

Qve

Dual LP:

Find y ∈ Rm

minimising y · ve

subject to MT y ≥ 1and y ≥ 0 .

a := 1− |M|y

Find a ∈ Rm

maximising a · ve

subject to MT a≤0and a ≤ 1 .

computes tight Bell inequality(separating hyperplane)

S Abramsky, R S Barbosa, & S Mansfield 16/27

Page 59: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fractionQuantifying Contextuality LP:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

e = λeNC + (1−λ)eSC with λ = 1 ·x∗.

NC

C

SC

Qve

Dual LP:

Find y ∈ Rm

minimising y · ve

subject to MT y ≥ 1and y ≥ 0 .

a := 1− |M|y

Find a ∈ Rm

maximising a · ve

subject to MT a≤0and a ≤ 1 .

computes tight Bell inequality(separating hyperplane)

S Abramsky, R S Barbosa, & S Mansfield 16/27

Page 60: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fractionQuantifying Contextuality LP:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

e = λeNC + (1−λ)eSC with λ = 1 ·x∗.

NC

C

SC

Qve

Dual LP:

Find y ∈ Rm

minimising y · ve

subject to MT y ≥ 1and y ≥ 0 .

a := 1− |M|y

Find a ∈ Rm

maximising a · ve

subject to MT a≤0and a ≤ 1 .

computes tight Bell inequality(separating hyperplane)

S Abramsky, R S Barbosa, & S Mansfield 16/27

Page 61: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Bell inequality violation and the contextual fractionQuantifying Contextuality LP:

Find c ∈ Rn

maximising 1 · csubject to M c ≤ ve

and c ≥ 0 .

e = λeNC + (1−λ)eSC with λ = 1 ·x∗.

NC

C

SC

Qve

Dual LP:

Find y ∈ Rm

minimising y · ve

subject to MT y ≥ 1and y ≥ 0 .

a := 1− |M|y

Find a ∈ Rm

maximising a · ve

subject to MT a≤0and a ≤ 1 .

computes tight Bell inequality(separating hyperplane)

S Abramsky, R S Barbosa, & S Mansfield 16/27

Page 62: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations on empirical models

Page 63: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality as a resource

I More than one possible measure of contextuality.

I What properties should a good measure satisfy?

I Monotonicity wrt operations that do not introduce contextuality

I Towards a resource theory as for entanglement (e.g. LOCC),non-locality, . . .

S Abramsky, R S Barbosa, & S Mansfield 17/27

Page 64: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality as a resource

I More than one possible measure of contextuality.

I What properties should a good measure satisfy?

I Monotonicity wrt operations that do not introduce contextuality

I Towards a resource theory as for entanglement (e.g. LOCC),non-locality, . . .

S Abramsky, R S Barbosa, & S Mansfield 17/27

Page 65: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality as a resource

I More than one possible measure of contextuality.

I What properties should a good measure satisfy?

I Monotonicity wrt operations that do not introduce contextuality

I Towards a resource theory as for entanglement (e.g. LOCC),non-locality, . . .

S Abramsky, R S Barbosa, & S Mansfield 17/27

Page 66: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality as a resource

I More than one possible measure of contextuality.

I What properties should a good measure satisfy?

I Monotonicity wrt operations that do not introduce contextuality

I Towards a resource theory as for entanglement (e.g. LOCC),non-locality, . . .

S Abramsky, R S Barbosa, & S Mansfield 17/27

Page 67: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextuality as a resource

I More than one possible measure of contextuality.

I What properties should a good measure satisfy?

I Monotonicity wrt operations that do not introduce contextuality

I Towards a resource theory as for entanglement (e.g. LOCC),non-locality, . . .

S Abramsky, R S Barbosa, & S Mansfield 17/27

Page 68: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Algebra of empirical models

I Consider operations on empirical models.

I These operations should not increase contextuality.

I Write type statements e : 〈X ,M,O〉 to mean that e is a(compatible) emprical model on the scenario 〈X ,M,O〉.

I The operations remind one of process algebras.

S Abramsky, R S Barbosa, & S Mansfield 18/27

Page 69: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Algebra of empirical models

I Consider operations on empirical models.

I These operations should not increase contextuality.

I Write type statements e : 〈X ,M,O〉 to mean that e is a(compatible) emprical model on the scenario 〈X ,M,O〉.

I The operations remind one of process algebras.

S Abramsky, R S Barbosa, & S Mansfield 18/27

Page 70: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Algebra of empirical models

I Consider operations on empirical models.

I These operations should not increase contextuality.

I Write type statements e : 〈X ,M,O〉 to mean that e is a(compatible) emprical model on the scenario 〈X ,M,O〉.

I The operations remind one of process algebras.

S Abramsky, R S Barbosa, & S Mansfield 18/27

Page 71: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Algebra of empirical models

I Consider operations on empirical models.

I These operations should not increase contextuality.

I Write type statements e : 〈X ,M,O〉 to mean that e is a(compatible) emprical model on the scenario 〈X ,M,O〉.

I The operations remind one of process algebras.

S Abramsky, R S Barbosa, & S Mansfield 18/27

Page 72: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 73: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 74: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 75: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 76: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 77: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 78: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I relabellinge : 〈X ,M,O〉, α : (X ,M) ∼= (X ′,M ′) e[α] : 〈X ′,M′,O〉

For C ∈M, s : α(C) −→ O, e[α]α(C)(s) := eC(s ◦ α−1)

I restrictione : 〈X ,M,O〉, (X ′,M′) ≤ (X ,M) e �M′ : 〈X ′,M′,O〉

For C′ ∈ M ′, s : C′ −→ O, (e �M′)C′(s) := eC |C′(s)with any C ∈M s.t. C′ ⊆ C

I coarse-graininge : 〈X ,M,O〉, f : O −→ O′ e/f : 〈X ,M,O′〉

For C ∈ M, s : C −→ O′, (e/f )C(s) :=∑

t :C−→O,f◦t=s eC(t)

S Abramsky, R S Barbosa, & S Mansfield 19/27

Page 79: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 80: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 81: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 82: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 83: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 84: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 85: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}

For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 86: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations

I mixinge : 〈X ,M,O〉, e′ : 〈X ,M,O〉, λ ∈ [0,1] e +λ e′ : 〈X ,M,O〉

For C ∈ M, s : C −→ O′,(e +λ e′)C(s) := λeC(s) + (1− λ)e′C(s)

I choicee : 〈X ,M,O〉, e′ : 〈X ,M,O〉 e&e′ : 〈X t X ′,MtM′,O〉

For C ∈ M, (e&e′)C := eC

For D ∈ M ′, (e&e′)D := e′D

I tensore : 〈X ,M,O〉, e′ : 〈X ′,M′,O〉 e ⊗ e′ : 〈X t X ′,M ?M′,O〉

M ?M′ := {C t D | C ∈M,D ∈M′}For C ∈M,D ∈M′, s = 〈s1, s2〉 : C t D −→ O,

(e ⊗ e′)CtD〈s1, s2〉 := eC(s1) e′D(s2)

S Abramsky, R S Barbosa, & S Mansfield 20/27

Page 87: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 88: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 89: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 90: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 91: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 92: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 93: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Operations and the contextual fraction

I relabellingCF(e[α]) = CF(e)

I restrictionCF(e � σ′) ≤ CF(e)

I coarse-grainingCF(e/f ) ≤ CF (e)

I mixingCF (e +λ e′) ≤ λCF(e) + (1− λ)CF(e′)

I choiceCF(e&e′) = max{CF(e),CF(e′)}NCF(e&e′) = min{NCF(e),NCF(e′)}

I tensorCF(e1 ⊗ e2) = CF(e1) + CF(e2)− CF(e1)CF(e2)NCF(e1 ⊗ e2) = NCF(e1)NCF(e2)

S Abramsky, R S Barbosa, & S Mansfield 21/27

Page 94: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and quantumadvantages

Page 95: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and advantages

I Contextuality has been associated with quantum advantage ininformation-processing and computational tasks.

I Measure of contextuality to quantify such advantages.

S Abramsky, R S Barbosa, & S Mansfield 22/27

Page 96: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and advantages

I Contextuality has been associated with quantum advantage ininformation-processing and computational tasks.

I Measure of contextuality to quantify such advantages.

S Abramsky, R S Barbosa, & S Mansfield 22/27

Page 97: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 98: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 99: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 100: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 101: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 102: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQCE.g. Raussendorf (2013) `2-MBQC

I measurement-based quantum computing scheme(m input bits, l output bits, n parties)

I classical control:I pre-processes inputI determines the flow of measurementsI post-processes to produce the output

only Z2-linear computations.

I additional power to compute non-linear functions resides incertain resource empirical models.

I Raussendorf (2013): If an `2-MBQC deterministically computesa non-linear Boolean function f : 2m −→ 2l then the resourcemust be strongly contextual.

I Probabilistic version: non-linear function computed withsufficently large probability of success implies contextuality.

S Abramsky, R S Barbosa, & S Mansfield 23/27

Page 103: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQC

I average distance between two Boolean functionsf ,g : 2m −→ 2l :d(f ,g) := 2−m| {i ∈ 2m | f (i) 6= g(i)}

I ν(f ): average distance between f and closest Z2-linear function(how difficult the problem is)

I `2-MBQC computing f with average probability (over all 2m

possible inputs) of success pS.

I Then, 1− pS ≥ NCF(e)ν(f ).

S Abramsky, R S Barbosa, & S Mansfield 24/27

Page 104: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQC

I average distance between two Boolean functionsf ,g : 2m −→ 2l :d(f ,g) := 2−m| {i ∈ 2m | f (i) 6= g(i)}

I ν(f ): average distance between f and closest Z2-linear function(how difficult the problem is)

I `2-MBQC computing f with average probability (over all 2m

possible inputs) of success pS.

I Then, 1− pS ≥ NCF(e)ν(f ).

S Abramsky, R S Barbosa, & S Mansfield 24/27

Page 105: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQC

I average distance between two Boolean functionsf ,g : 2m −→ 2l :d(f ,g) := 2−m| {i ∈ 2m | f (i) 6= g(i)}

I ν(f ): average distance between f and closest Z2-linear function(how difficult the problem is)

I `2-MBQC computing f with average probability (over all 2m

possible inputs) of success pS.

I Then, 1− pS ≥ NCF(e)ν(f ).

S Abramsky, R S Barbosa, & S Mansfield 24/27

Page 106: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and MBQC

I average distance between two Boolean functionsf ,g : 2m −→ 2l :d(f ,g) := 2−m| {i ∈ 2m | f (i) 6= g(i)}

I ν(f ): average distance between f and closest Z2-linear function(how difficult the problem is)

I `2-MBQC computing f with average probability (over all 2m

possible inputs) of success pS.

I Then, 1− pS ≥ NCF(e)ν(f ).

S Abramsky, R S Barbosa, & S Mansfield 24/27

Page 107: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and cooperative games

I Game described by n formulae (one for each possible input).

I These describe the winning condition that the correspondingoutputs must satisfy.

I Formulae are k -consistent (at most k of them have a jointsatisfying assignment)

I cf. Abramsky–Hardy “Logical Bell inequalities”

I Hardness of the game measured by n−kn .

I 1− pS ≤ NCF(e) (n−k)n .

S Abramsky, R S Barbosa, & S Mansfield 25/27

Page 108: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and cooperative games

I Game described by n formulae (one for each possible input).

I These describe the winning condition that the correspondingoutputs must satisfy.

I Formulae are k -consistent (at most k of them have a jointsatisfying assignment)

I cf. Abramsky–Hardy “Logical Bell inequalities”

I Hardness of the game measured by n−kn .

I 1− pS ≤ NCF(e) (n−k)n .

S Abramsky, R S Barbosa, & S Mansfield 25/27

Page 109: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Contextual fraction and cooperative games

I Game described by n formulae (one for each possible input).

I These describe the winning condition that the correspondingoutputs must satisfy.

I Formulae are k -consistent (at most k of them have a jointsatisfying assignment)

I cf. Abramsky–Hardy “Logical Bell inequalities”

I Hardness of the game measured by n−kn .

I 1− pS ≤ NCF(e) (n−k)n .

S Abramsky, R S Barbosa, & S Mansfield 25/27

Page 110: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directions

I Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 111: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 112: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 113: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 114: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 115: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 116: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 117: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 118: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Alternative relaxation of global probability distribution requirement.

I Find quasi-probability distribution q on OX such that q|C = eC

I . . . with minimal weight |q| = 1 + 2ε.The value ε provides alternative measure of contextuality.

I How are these related?

I Corresponds to affine decomposition

e = (1 + ε) e1 − ε e2

with e1 and e2 both non-contextual.

I Corresponding inequalities |Bα(e)| ≤ R.

I Cyclic measurement scenarios

I

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 119: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 120: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 121: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 122: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 123: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 124: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 125: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directionsI Negative Probabilities Measure

I Signalling models

I Empirical data may sometimes not satisfy no-signalling(compatibility).

I Given a signalling table, can we quantify amount of no-signallingand contextuality?

I Similarly, we can define no-signalling fraction

e = λ eNS − (1− λ) eSS .

I Analysis of real data:

eDelft ≈ 0.0664 eSS + 0.4073 eSC + 0.5263 eNC

eNIST ≈ 0.0000049 eSS + 0.0000281 eSC + 0.9999670 eNC

I First extract NS fraction, then NC fraction? Or vice-versa? Also:non-uniqueness of witnesses!

I Connections with Contextuality-by-Default (Dzhafarov et al.)

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 126: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directions

I Negative Probabilities Measure

I Signalling models

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 127: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Further directions

I Negative Probabilities Measure

I Signalling models

I Resource Theory

I Sequencing

I What (else) is this resource useful for?

S Abramsky, R S Barbosa, & S Mansfield 26/27

Page 128: Towards a resource theory of contextuality · I Precise relationship to violations of Bell inequalities I Monotone wrt operations that don’t introduce contextuality resource theory

Questions...

?S Abramsky, R S Barbosa, & S Mansfield 27/27