Quantum Chebyshevs Inequality and Applications Yassine Hamoudi, - - PowerPoint PPT Presentation

quantum chebyshev s inequality and applications
SMART_READER_LITE
LIVE PREVIEW

Quantum Chebyshevs Inequality and Applications Yassine Hamoudi, - - PowerPoint PPT Presentation

Quantum Chebyshevs Inequality and Applications Yassine Hamoudi, Frdric Magniez IRIF , Universit de Paris, CNRS Mean Estimation Problem How many i.i.d. samples x 1 , x 2 , from some unknown bounded r.v. X [0,B] do we need to


slide-1
SLIDE 1

Quantum Chebyshev’s Inequality and Applications

Yassine Hamoudi, Frédéric Magniez

IRIF , Université de Paris, CNRS

slide-2
SLIDE 2

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

˜ μ

with proba. 2/3

slide-3
SLIDE 3

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

˜ μ

with proba. 2/3

˜ μ = x1 + . . . + xn n Sample mean:

slide-4
SLIDE 4

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

Chernoff’s Bound:

B ϵ2E(X)

˜ μ

with proba. 2/3

˜ μ = x1 + . . . + xn n Sample mean:

slide-5
SLIDE 5

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

Chernoff’s Bound: Bernstein’s Inequality:

B ϵ2E(X) Var(X) ϵ2E(X)2 + B ϵE(X)

(Var(X) ≤ B ⋅ E(X))

˜ μ

with proba. 2/3

˜ μ = x1 + . . . + xn n Sample mean:

slide-6
SLIDE 6

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

Chernoff’s Bound: Chebyshev’s Inequality: Bernstein’s Inequality:

B ϵ2E(X) Var(X) ϵ2E(X)2 + B ϵE(X) Var(X) ϵ2E(X)2

(Var(X) ≤ B ⋅ E(X))

˜ μ

with proba. 2/3

˜ μ = x1 + . . . + xn n Sample mean:

slide-7
SLIDE 7

take samples

Mean Estimation Problem

2

How many i.i.d. samples x1, x2,… from some unknown bounded r.v. X ∈ [0,B] do we need to compute such that

| ˜ μ − E(X)| ≤ ϵE(X)

Chernoff’s Bound: Chebyshev’s Inequality: Bernstein’s Inequality:

B ϵ2E(X) Var(X) ϵ2E(X)2 + B ϵE(X) Var(X) ϵ2E(X)2

(Var(X) ≤ B ⋅ E(X))

In practice: we often know Δ2 ≥ E(X2)

E(X)2

Δ2 ϵ2 ˜ μ

with proba. 2/3

= Var(X2) E(X)2 + 1

˜ μ = x1 + . . . + xn n Sample mean:

slide-8
SLIDE 8

Data stream model:

Frequency moments, Collision probability [Alon, Matias, Szegedy’99]

[Monemizadeh, Woodruff’] [Andoni et al.’11] [Crouch et al.’16]

Applications

Testing properties of distributions:

Closeness [Goldreich, Ron’11] [Batu et al.’13] [Chan et al.’14], Conditional independence [Canonne et al.’18]

Estimating graph parameters:

Number of connected components, Minimum spanning tree weight

[Chazelle, Rubinfeld, Trevisan’05], Average distance [Goldreich, Ron’08], Number

  • f triangles [Eden et al. 17]

Counting with Markov chain Monte Carlo methods:

Counting vs. sampling [Jerrum, Sinclair’96] [Štefankovič et al.’09], Volume of convex bodies [Dyer, Frieze'91], Permanent [Jerrum, Sinclair, Vigoda’04]

etc.

3

slide-9
SLIDE 9

Random variable X on finite sample space Ω ⊂ [0,B]. Classical sample: one value x ∈ Ω, sampled with probability px

4

Quantum Mean Estimation Problem

slide-10
SLIDE 10

Quantum sample: one use of a unitary operator or satisfying Random variable X on finite sample space Ω ⊂ [0,B]. Classical sample: one value x ∈ Ω, sampled with probability px

SX|0⟩ = ∑

x∈Ω

px |x⟩

SX S−1

X

4

Quantum Mean Estimation Problem

slide-11
SLIDE 11

Quantum sample: one use of a unitary operator or satisfying Random variable X on finite sample space Ω ⊂ [0,B]. Classical sample: one value x ∈ Ω, sampled with probability px

SX|0⟩ = ∑

x∈Ω

px |x⟩

with ψx = arbitrary unit vector

SX S−1

X

4

Quantum Mean Estimation Problem

|ψx⟩

slide-12
SLIDE 12

Quantum sample: one use of a unitary operator or satisfying Random variable X on finite sample space Ω ⊂ [0,B]. Classical sample: one value x ∈ Ω, sampled with probability px

SX|0⟩ = ∑

x∈Ω

px |x⟩

with ψx = arbitrary unit vector

SX S−1

X

4

Question: can we estimate E(X) with less samples in the quantum setting?

Quantum Mean Estimation Problem

|ψx⟩

slide-13
SLIDE 13

Classical samples Quantum samples

(Chernoff) (Amplitude Estimation) (Chebyshev) [Montanaro’15]:

Our contribution:

B ϵ E(X)

Δ2 ϵ Δ ϵ ⋅ log3 ( B E(X))

5

Quantum Mean Estimation Problem

B ϵ2E(X)

Δ2 ϵ2

Δ2 ≥ E(X2) E(X)2

given

slide-14
SLIDE 14

Classical samples Quantum samples

(Chernoff) (Amplitude Estimation) (Chebyshev) [Montanaro’15]:

Our contribution:

B ϵ E(X)

Δ2 ϵ Δ ϵ ⋅ log3 ( B E(X))

5

Quantum Mean Estimation Problem

B ϵ2E(X)

Δ2 ϵ2

Δ2 ≥ E(X2) E(X)2

given

slide-15
SLIDE 15

Classical samples Quantum samples

(Chernoff) (Amplitude Estimation) (Chebyshev) [Montanaro’15]:

Our contribution:

B ϵ E(X)

Δ2 ϵ Δ ϵ ⋅ log3 ( B E(X))

5

Quantum Mean Estimation Problem

B ϵ2E(X)

Δ2 ϵ2

Δ2 ≥ E(X2) E(X)2

given

slide-16
SLIDE 16

Classical samples Quantum samples

(Chernoff) (Amplitude Estimation) (Chebyshev) [Montanaro’15]:

Our contribution:

B ϵ E(X)

Δ2 ϵ Δ ϵ ⋅ log3 ( B E(X))

5

Quantum Mean Estimation Problem

B ϵ2E(X)

Δ2 ϵ2

Δ2 ≥ E(X2) E(X)2

given

slide-17
SLIDE 17

Our Approach

slide-18
SLIDE 18

7

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-19
SLIDE 19

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X)

7

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-20
SLIDE 20

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X)

?

B ≫ E(X2) E(X)

7

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

If

slide-21
SLIDE 21

: map the outcomes larger than to 0 If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X)

?

B ≫ E(X2) E(X)

7

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

If E(X2) E(X)

slide-22
SLIDE 22

: map the outcomes larger than to 0 If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X)

?

B ≫ E(X2) E(X)

7

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

1 B

px x

If E(X2) E(X)

Random variable X

slide-23
SLIDE 23

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X)

?

B ≫ E(X2) E(X)

8

1 B

px x

E(X2) E(X)

b

New largest outcome

≈ E(X2) E(X)

If : map the outcomes larger than to 0

Random variable Xb

Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-24
SLIDE 24

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X) If : map the outcomes larger than to 0 B ≫ E(X2) E(X)

9

E(X2) E(X) Lemma: If then b ≥ E(X2) ϵE(X) (1 − ϵ)E(X) ≤ E(Xb) ≤ E(X) .

⇒ We can equivalently estimate the mean of Xb for b ≥ E(X2)

ϵE(X) Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-25
SLIDE 25

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X) If : map the outcomes larger than to 0 B ≫ E(X2) E(X)

9

E(X2) E(X) Lemma: If then b ≥ E(X2) ϵE(X) (1 − ϵ)E(X) ≤ E(Xb) ≤ E(X) .

⇒ We can equivalently estimate the mean of Xb for

Problem: is unknown… E(X2) E(X) b ≥ E(X2) ϵE(X) Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-26
SLIDE 26

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X) If : map the outcomes larger than to 0 B ≫ E(X2) E(X)

9

E(X2) E(X) Lemma: If then b ≥ E(X2) ϵE(X) (1 − ϵ)E(X) ≤ E(Xb) ≤ E(X) .

⇒ We can equivalently estimate the mean of Xb for

Problem: is unknown… Δ2 ≥ E(X2) E(X)2 E(X2) E(X) but we know b ≥ E(X2) ϵE(X) Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-27
SLIDE 27

If : the number of samples is B ≤ E(X2) E(X) O E(X2) ϵE(X) If : map the outcomes larger than to 0 B ≫ E(X2) E(X)

9

E(X2) E(X) Lemma: If then b ≥ E(X2) ϵE(X) (1 − ϵ)E(X) ≤ E(Xb) ≤ E(X) .

⇒ We can equivalently estimate the mean of Xb for

Problem: is unknown… Δ2 ≥ E(X2) E(X)2 E(X2) E(X) b ≈ E(X) ⋅ Δ2 ? but we know b ≥ E(X2) ϵE(X) Amplitude-Estimation: quantum samples to estimate E(X)

O ( B ϵ E(X) )

slide-28
SLIDE 28

10

Objective: given how to find a threshold ? Δ2 ≥ E(X2) E(X)2 b ≈ E(X) ⋅ Δ2

slide-29
SLIDE 29

Solution: use the Amplitude Estimation algorithm (again) to do a logarithmic search on b

10

Objective: given how to find a threshold ? Δ2 ≥ E(X2) E(X)2 b ≈ E(X) ⋅ Δ2

slide-30
SLIDE 30

Threshold Input r.v. Number of samples Amplitude Estimation

Solution: use the Amplitude Estimation algorithm (again) to do a logarithmic search on b

10

Objective: given how to find a threshold ? Δ2 ≥ E(X2) E(X)2 b ≈ E(X) ⋅ Δ2

b0 = BΔ2 b1 = (B/2)Δ2 b2 = (B/4)Δ2 ˜ μ0 …

Xb0

Δ Δ Δ

˜ μ1 ˜ μ2 … … …

Stopping rule: ˜ μi ≠ 0 Output: bi

Xb1 Xb2

slide-31
SLIDE 31

Threshold Input r.v. Number of samples Amplitude Estimation

Solution: use the Amplitude Estimation algorithm (again) to do a logarithmic search on b

10

Objective: given how to find a threshold ? Δ2 ≥ E(X2) E(X)2 b ≈ E(X) ⋅ Δ2

b0 = BΔ2 b1 = (B/2)Δ2 b2 = (B/4)Δ2 ˜ μ0 …

Xb0

Δ Δ Δ

˜ μ1 ˜ μ2 …

Theorem: the first non-zero is obtained w.h.p. when: ˜ μi

2 ⋅ E(X)Δ2 ≤ bi ≤ 10 ⋅ E(X)Δ2

… …

Stopping rule: ˜ μi ≠ 0 Output: bi

Xb1 Xb2

slide-32
SLIDE 32

11

Analysis

Theorem: the first non-zero is obtained w.h.p. when: ˜ μi

2 ⋅ E(X)Δ2 ≤ bi ≤ 10 ⋅ E(X)Δ2

slide-33
SLIDE 33

Ingredient 1:

1/Δ

11

E(Xb) b Analysis

Theorem: the first non-zero is obtained w.h.p. when: ˜ μi

2 ⋅ E(X)Δ2 ≤ bi ≤ 10 ⋅ E(X)Δ2

The output of Amplitude-Estimation is 0 w.h.p. if and only if the estimated amplitude is below the inverse number of samples.

[Brassard et al.’02]

slide-34
SLIDE 34

Ingredient 1:

1/Δ

11

E(Xb) b Analysis

If then

b ≥ 10 ⋅ E(X)Δ2 E(Xb) b ≤ E(X) b ≤ 1 10 ⋅ Δ2

Theorem: the first non-zero is obtained w.h.p. when: ˜ μi

2 ⋅ E(X)Δ2 ≤ bi ≤ 10 ⋅ E(X)Δ2

Ingredient 2:

The output of Amplitude-Estimation is 0 w.h.p. if and only if the estimated amplitude is below the inverse number of samples.

[Brassard et al.’02]

slide-35
SLIDE 35

Ingredient 1:

1/Δ

11

E(Xb) b

If then

E(Xb) b ≈ E(X) b ≈ 1 Δ2

b ≈ E(X) ⋅ Δ2

Analysis

If then

b ≥ 10 ⋅ E(X)Δ2 E(Xb) b ≤ E(X) b ≤ 1 10 ⋅ Δ2

Theorem: the first non-zero is obtained w.h.p. when: ˜ μi

2 ⋅ E(X)Δ2 ≤ bi ≤ 10 ⋅ E(X)Δ2

Ingredient 2: Ingredient 3:

The output of Amplitude-Estimation is 0 w.h.p. if and only if the estimated amplitude is below the inverse number of samples.

[Brassard et al.’02]

slide-36
SLIDE 36

Applications

slide-37
SLIDE 37

13

Input: graph G=(V,E) with n vertices, m edges, t triangles Query access: unitaries Odeg|v⟩|0⟩ = |v⟩|deg(v)⟩

Opair|v⟩|w⟩|0⟩ = |v⟩|w⟩|(v, w) ∈ E ?⟩ Ongh|v⟩|i⟩|0⟩ = |v⟩|i⟩|vi⟩

ith neighbor of v

(degree query) (pair query) (neighbor query)

Application 1: approximating graph parameters

slide-38
SLIDE 38

13

Input: graph G=(V,E) with n vertices, m edges, t triangles

˜ Θ ( n t1/6 + m3/4 t ) quantum queries to triangle estimation

Result: Query access: unitaries Odeg|v⟩|0⟩ = |v⟩|deg(v)⟩

Opair|v⟩|w⟩|0⟩ = |v⟩|w⟩|(v, w) ∈ E ?⟩ Ongh|v⟩|i⟩|0⟩ = |v⟩|i⟩|vi⟩

ith neighbor of v

(degree query) (pair query) (neighbor query)

Application 1: approximating graph parameters

˜ Θ ( n m1/4) quantum queries for edge estimation

slide-39
SLIDE 39

classical queries)

13

Input: graph G=(V,E) with n vertices, m edges, t triangles

˜ Θ ( n t1/6 + m3/4 t ) quantum queries to triangle estimation

Result:

(vs. ˜

Θ ( n t1/3 + m3/2 t ) classical queries)

Query access: unitaries Odeg|v⟩|0⟩ = |v⟩|deg(v)⟩

Opair|v⟩|w⟩|0⟩ = |v⟩|w⟩|(v, w) ∈ E ?⟩ Ongh|v⟩|i⟩|0⟩ = |v⟩|i⟩|vi⟩

ith neighbor of v

(degree query) (pair query) (neighbor query)

Application 1: approximating graph parameters

˜ Θ ( n m1/4) quantum queries for edge estimation

(vs. ˜

Θ ( n m )

[Goldreich, Ron’08] [Seshadhri’15] [Eden, Levi, Ron’15] [Eden, Levi, Ron, Seshadhri’17]

slide-40
SLIDE 40

Application 2: frequency moments in the streaming model

14

Fk =

n

i=1

|xi|k (moment of order k ≥ 3)

Input: stream of updates to x Output: (at the end of the stream) estimate of

xi ← xi + δ

Initially: x = (0,…,0) of dimension n

slide-41
SLIDE 41

Application 2: frequency moments in the streaming model

14

Fk =

n

i=1

|xi|k

What is the smallest memory size M needed to estimate Fk using P passes over the same stream?

(moment of order k ≥ 3)

Input: stream of updates to x Output: (at the end of the stream) estimate of

xi ← xi + δ

Initially: x = (0,…,0) of dimension n

slide-42
SLIDE 42

Application 2: frequency moments in the streaming model

14

Fk =

n

i=1

|xi|k

What is the smallest memory size M needed to estimate Fk using P passes over the same stream?

(moment of order k ≥ 3)

[Monemizadeh, Woodruff’10] [Andoni, Krauthgamer, Onak’11]

M = ˜ O ( n1−2/k P2 )

Input: stream of updates to x Output: (at the end of the stream) estimate of Result:

xi ← xi + δ

qubits of memory (vs. classical bits of memory)

M = ˜ Θ ( n1−2/k P )

Initially: x = (0,…,0) of dimension n

slide-43
SLIDE 43

Conclusion

slide-44
SLIDE 44

16

The mean of a random variable X can be estimated with multiplicative error ε using quantum samples, given .

Δ2 ≥ E(X2) E(X)2 ˜ O ( Δ ϵ ⋅ log3 ( MΩ E(X)))

Open questions:

  • Can we improve the complexity to O(Δ/ε) exactly?
  • Lower bound for the Frequency Moments estimation problem?
  • Other applications ?

arXiv: 1807.06456

Lower bound:

quantum samples

Ω ( Δ − 1 ϵ )

copies of the state

Ω ( Δ2 − 1 ϵ2 )

  • r

SX|0⟩ = ∑

x∈Ω

px |ψx⟩|x⟩