Model checking quantum Markov chains Yuan Feng, Nengkun Yu, and - - PowerPoint PPT Presentation

model checking quantum markov chains
SMART_READER_LITE
LIVE PREVIEW

Model checking quantum Markov chains Yuan Feng, Nengkun Yu, and - - PowerPoint PPT Presentation

Model checking quantum Markov chains Yuan Feng, Nengkun Yu, and Mingsheng Ying University of Technology Sydney, Australia, Tsinghua University, China Model checking quantum Markov chains. Journal of Computer and System Sciences 79, 1181-1198,


slide-1
SLIDE 1

Model checking quantum Markov chains

Yuan Feng, Nengkun Yu, and Mingsheng Ying

University of Technology Sydney, Australia, Tsinghua University, China Model checking quantum Markov chains. Journal of Computer and System Sciences 79, 1181-1198, (2013) Reachability of recursive quantum Markov chains. Proceedings of the 38th Int.

  • Symp. on Mathematical Foundations of Computer Science (MFCS’13) 385-396.
slide-2
SLIDE 2

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-3
SLIDE 3

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-4
SLIDE 4

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Motivation

Quantum mechanics is highly counterintuitive; flaws and errors creep in during the design of quantum programs and quantum protocols. So, it is indispensable to develop techniques of verifying and debugging quantum systems.

slide-5
SLIDE 5

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Model checking

Model-checking is one of the dominant techniques for verification of classical hardware as well as software systems. It has proved mature as witnessed by a large number of successful industrial applications. Quantum model checking???

slide-6
SLIDE 6

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-7
SLIDE 7

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Probability Theory v.s. Quantum Information Theory

Binary Random Varable X: X = 0 or X = 1 1 Quantum bit: Unit vector in a 2D Hilbert space |φ = a0|0 + a1|1, ai ∈ C, |a0|2 + |a1|2 = 1

|1 |0 |φ

slide-8
SLIDE 8

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Probability Theory v.s. Quantum Information Theory

Evolution: Stochastic Matrices Preserve l1-norm p′ = S · p 1

2 1 2 1 2 1 2

p0 p1

  • =

1

2 1 2

  • Evolution:

Unitary Matrices Preserve l2-norm |φ′ = U · |φ

  • 1

√ 2 1 √ 2 1 √ 2

− 1

√ 2

a0 a1

  • =
  • 1

√ 2(a0 + a1) 1 √ 2(a0 − a1)

slide-9
SLIDE 9

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Probability Theory v.s. Quantum Information Theory

Observation: Pr(X = b) = pb, pb ∈ [0, 1] Measurement: A measurement of |φ according to a Hermitian

  • perator M = ∑i λi|bibi| is a projection
  • nto the orthonormal vectors |bi, and

Pr[outcome is λi] = |φ|bi|2.

|1 |0 |φ⊥ |φ

slide-10
SLIDE 10

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Density operators

Mixed state: Classical distribution over (pure) quantum states. ρ =      |φ1, with probability p1 . . . . . . |φk, with probability pk Ensemble: {pi : |φi}. Density operator: ρ = ∑k

i=1 pi|φiφi| (hermitian,

trace 1, positive)

Contains all information about the state. Different ensembles can have the same density

  • perator.
slide-11
SLIDE 11

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Density operators

Different ensembles can have the same density

  • perator.
  • 1

√ 2(|0 − |1),

w.p.

1 2

|0, w.p.

1 2

=     

√ 3 2 |0 − 1 2|1,

w.p.

1 √ 3

|0, w.p.

3 4(1 − 1 √ 3)

|1, w.p.

1 4(1 − 1 √ 3)

=

  • 3

4

− 1

4

− 1

4 1 4

slide-12
SLIDE 12

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Super-operators and Kraus theorem

Super-operators: (special) mapping from density

  • perators to density operators.

Kraus representation theorem: A map E is a super-operator if and only if E(ρ) =

d

i=1

EiρE †

i

for some set of matrices {Ei, i = 1, . . . , d} with ∑i E †

i Ei ≤ I.

Special case:

Unitary transformation: ρ → UρU† Measurement with outcome i: ρ → |bibi|ρ|bibi| Measurement with reading outcome: ρ → ∑i |bibi|ρ|bibi|

slide-13
SLIDE 13

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Matrix representation of super-operators

Let E = {Ei : i ∈ I} be a super-operator. The matrix representation of E is defined as ME = ∑

i∈I

Ei ⊗ E ∗

i .

Here the complex conjugate is taken according to the orthonormal basis {|k : k ∈ K}. It is easy to check that ME is independent of the choice of orthonormal basis and the Kraus operators Ei.

slide-14
SLIDE 14

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-15
SLIDE 15

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Markov chains

A Markov chain (MC) is a tuple (S, P) where S is a countable set of states; P : S × S → [0, 1] such that for each s ∈ S,

t∈S

P(s, t) = 1,

  • r equivalently, P(s, ·) is a probabilistic

distribution over S.

slide-16
SLIDE 16

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Quantum Markov chains

(S, P) ⇒ (H, E) Set S

  • Prob. distributions

P : Dist(S) → Dist(S) ⇒ ⇒ ⇒ Hilbert space H Density operators E : D(H) → D(H)

slide-17
SLIDE 17

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Obstacles for model checking quantum system

The set of all possible quantum states, H, is a continuum, even when it is finite dimensional. The techniques of classical model checking, which normally work for finite state spaces, cannot be applied directly.

slide-18
SLIDE 18

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

In this talk, we propose...

A super-operator weighted Markov chain model which aims at providing finite models for general quantum programs and quantum communication protocols. A quantum extension QCTL of the logic PCTL to descibe properties we are interested in for QMCs. An algorithm to model check logic formulas in QCTL against a QMC model.

slide-19
SLIDE 19

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Some more notations

Let SO(H) be the set of super-operators on H, ranged over by E, F, · · · . Definition Let E, F ∈ SO(H).

1 E ⊑ F if for any ρ ∈ D(H), F(ρ) − E(ρ) is positive

semi-definite;

2 E F if for any ρ ∈ D(H), tr(E(ρ)) ≤ tr(F(ρ)).

Let be ∩ ; it is obviously an equivalence relation.

slide-20
SLIDE 20

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Some notations

Let SI(H) = {E ∈ SO(H) : E IH} be the ‘quantum’ correspondence of the unit interval [0, 1] for real numbers.

slide-21
SLIDE 21

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Quantum Markov chains

A super-operator weighted Markov chain, or quantum Markov chain (QMC), over H is a tuple (S, Q, AP, L), where S is a countable set of states; Q : S × S → SI(H) such that for each s ∈ S, ∑t∈S Q(s, t) IH, AP is a finite set of atomic propositions; L is a mapping from S to 2AP. A classical Markov chain may be viewed as a degenerate quantum Markov chain in which all super-operators appear in the transition matrix have the form pIH for some 0 ≤ p ≤ 1.

slide-22
SLIDE 22

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Example: quantum loop

A simple quantum loop program goes as follows: l0 : q := F(q) l1 : while M[q] do l2 : q := E(q) l3 :

  • d

where M = λ0|00| + λ1|11|.

slide-23
SLIDE 23

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Example: quantum loop

l0 l1 l2 l3 Fq E0

q

E1

q

Eq I

Here E0

q = {|0q0|} and E1 q = {|1q1|}.

slide-24
SLIDE 24

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-25
SLIDE 25

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

QCTL

The syntax of quantum computation tree logic (QCTL) is as follows: Φ ::= a | ¬Φ | Φ ∧ Ψ | Q∼E[ψ] ψ ::= XΦ | ΦUΨ where a is an atomic proposition, ∼ ∈ {, }, and E ∈ SI(H). We call Φ a state formula and ψ a path formula.

slide-26
SLIDE 26

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

QCTL

Let M = (S, Q, AP, L). The satisfaction relation | = is defined inductively: for any state s ∈ S, s | = a iff a ∈ L(s) s | = ¬Φ iff s | = Φ s | = Φ ∧ Ψ iff s | = Φ and s | = Ψ and for any path π ∈ PathM(s), π | = XΦ iff π(1) | = Φ π | = ΦUΨ iff ∃i ∈ N.(π(i) | = Ψ ∧ ∀j < i.(π(j) | = Φ)).

slide-27
SLIDE 27

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

QCTL

Finally, s | = Q∼E[ψ] iff QM(s, ψ) ∼ E where QM(s, ψ) = Qs({π ∈ PathM(s) | π | = ψ}). But how to define Qs?

slide-28
SLIDE 28

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Super-operator valued measures

Let (Ω, Σ) be a measurable space; that is, Ω is a non-empty set and Σ a σ-algebra over Ω. A function ∆ : Σ → SI(H) is said to be a super-operator valued measure (SVM for short) if ∆ satisfies the following properties:

1

∆(Ω) IH;

2

∆(

i Ai) ∑i ∆(Ai) for all pairwise disjoint and

countable sequence A1, A2, . . . in Ω. We call the triple (Ω, Σ, ∆) a (super-operator valued) measure space.

slide-29
SLIDE 29

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Properties of super-operator valued measures

Let (Ω, Σ, ∆) be a measure space. Then

1

∆(∅) = 0H;

2

∆(Ac) + ∆(A) IH;

3

for any A, A′ ∈ Σ, if A ⊆ A′ then ∆(A) ∆(A′);

4

for any sequence A1, A2, . . . in Σ,

if A1 ⊆ A2 ⊆ . . . , then there exists a sequence E1 ⊑ E2 ⊑ . . . in SI(H) such that for any i, ∆(Ai) Ei, and ∆(

i≥1 Ai) = limi→∞ Ei.

if A1 ⊇ A2 ⊇ . . . , then there exists a sequence E1 ⊒ E2 ⊒ . . . in SI(H) such that for any i, ∆(Ai) Ei, and ∆(

i≥1 Ai) = limi→∞ Ei.

slide-30
SLIDE 30

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

SVM for a QMC

Fix a state s ∈ S. Sample space Ω = PathM(s). Let the cylinder set Cyl( π) ⊆ PathM(s) be defined as Cyl( π) = {π ∈ PathM(s) : π is a prefix of π}; that is, the set of all infinite paths with prefix π. σ-algebra over Ω: Σs = σ({Cyl( π) : π ∈ PathM

fin (s)}

slide-31
SLIDE 31

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

SVM for QMCs

For any finite path π = s0 . . . sn ∈ PathM

fin (s), we

define the super-operator Q( π) = IH, if n = 0; Q(sn−1, sn) · · · Q(s0, s1),

  • therwise.

Let a mapping Qs be defined by letting Qs(∅) = 0H and Qs(Cyl( π)) = Q( π). (1)

slide-32
SLIDE 32

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Extend Qs to a SVM

Theorem The mapping Qs can be extended to a SVM on the σ-algebra Σs. Furthermore, this extension is unique up to the equivalence relation . Remark: The main tool we use to prove this theorem is the Kluvanek’s generalisation of the Carath´ eodory-Hahn extension theorem from vector measure theory.

slide-33
SLIDE 33

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

QCTL

Theorem For each path formula ψ and each state s in a QMC M, the set {π ∈ PathM(s) | π | = ψ} is measurable.

slide-34
SLIDE 34

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Back to the example

l0 l1 l2 l3 Fq E0

q

E1

q

Eq I

Let ♦Ψ ≡ ttUΨ. The QCTL formula QE[♦ l3] asserts that the probability that the loop program terminates is lower bounded by

  • E. That is, for any initial quantum state ρ, the termination

probability is not less than tr(E(ρ)). In particular, the property that it terminates everywhere can be described as QIH[♦ l3].

slide-35
SLIDE 35

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-36
SLIDE 36

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Model checking

Given a state s in a qMC M = (S, Q, AP, L) and a state formula Φ expressed in QCTL, model checking if s | = Φ is essentially to determine whether s belongs to the satisfaction set Sat(Φ) = {s ∈ S : s | = Φ} which is defined inductively as follows: Sat(a) = {s ∈ S : a ∈ L(s)} Sat(¬Ψ) = S\Sat(Ψ) Sat(Ψ ∧ Φ) = Sat(Ψ) ∩ Sat(Φ) Sat(Q∼E[ψ]) = {s ∈ S : QM(s, ψ) ∼ E}. Recall: QM(s, ψ) = Qs({π ∈ PathM(s) | π | = ψ})

slide-37
SLIDE 37

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Case 1: ψ = XΦ

By definition, {π ∈ PathM(s) : π | = XΦ} =

t∈Sat(Φ) Cyl(st).

Thus QM(s, XΦ) = Qs  

  • t∈Sat(Φ)

Cyl(st)  

t∈Sat(Φ)

Qs(Cyl(st)) =

t∈Sat(Φ)

Q(s, t). This can be calculated easily since by the recursive nature of the definition, we can assume that Sat(Φ) is already known.

slide-38
SLIDE 38

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Case 2: ψ = ΦUΨ

In this case, after some calculation, we get the equation system QM(s, ΦUΨ)      IH, if s ∈ Sat(Ψ); 0H, if s ∈ Sat(Φ) ∪ Sat(Ψ);

t∈S

QM(t, ΦUΨ)Q(s, t), if s ∈ Sat(Φ)\Sat(Ψ). Then for each s ∈ Sat(Φ)\Sat(Ψ), QM(s, ΦUΨ)

t∈Sat(Φ)\Sat(Ψ)

QM(t, ΦUΨ)Q(s, t) +

t∈Sat(Ψ)

Q(s, t).

slide-39
SLIDE 39

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Let S′ = Sat(Φ)\Sat(Ψ). For any s ∈ S′, QM(s, ΦUΨ) ∑

t∈S′

QM(t, ΦUΨ)Q(s, t) +

t∈Sat(Ψ)

Q(s, t). Let T = [Q(t, s)]s,t∈S′ and G =

t∈Sat(Ψ)

Q(s, t)

  • s∈S′

. Then the required row vector (QM(s, ΦUΨ))s∈S′ is equivalent to the fixed point of the function f (X) = XT + G.

slide-40
SLIDE 40

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

A theorem

Theorem Let f (X) = XT + G be defined above. Then

1

f (X) has the least fixed point, denoted by E0, in SI(H)|S′| under the order ⊑;

2

Given any E ∈ SI(H) and 1 ≤ i ≤ |S′|, it can be decided whether E ∼ E0

i , ∼ ∈{, }, in time O(n2d4) where

d = dim(H) is the dimension of H and n = |S′|.

slide-41
SLIDE 41

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Back to the example again

We check the property QE[♦ l3] = QE[ttUl3] when F = {|+i| : i = 0, 1}, Ei = {|ii|}, i = 0, 1, and E = X .

l0 l1 l2 l3 Fq E0

q

E1

q

Eq I

We first calculate that Sat(l3) = {l3} and Sat(tt) = {l0, l1, l2, l3}.

slide-42
SLIDE 42

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Back to the example again

l0 l1 l2 l3 Fq E0

q

E1

q

Eq I

QM(l0, ♦ l3) = QM(l1, ♦ l3)F QM(l1, ♦ l3) = QM(l2, ♦ l3)E1 + E0 QM(l2, ♦ l3) = QM(l1, ♦ l3)E

slide-43
SLIDE 43

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Example

We calculate that for i = 0, 1, 2, QM(li, ♦ l3) = Set0 where Set0 = {|00|, |01|} I, and so li | = QE[♦ l3] for any E I.

slide-44
SLIDE 44

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Outline

1

Motivation

2

Basic notions from quantum information theory

3

Quantum Markov chain

4

Quantum computation tree logic

5

Algorithm

6

Summary

slide-45
SLIDE 45

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Summary

A super-operator weighted Markov chain model which aims at providing finite models for general quantum programs and quantum communication protocols. A quantum extension QCTL of the logic PCTL to descibe properties we are interested in for QMCs. An algorithm to model check logic formulas in QCTL against a QMC model.

slide-46
SLIDE 46

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Topics for further studies

Tools to implement the model checking algorithm. Model checking quantum properties. Check security of physically implemented quantum cryptographic systems.

slide-47
SLIDE 47

Motivation Basic notions from QIP Quantum Markov chain Quantum computation tree logic Algorithm Summary

Thank you! Questions or Comments?