formal reasoning for quantum programs
play

Formal Reasoning for Quantum Programs Yuxin Deng East China Normal - PowerPoint PPT Presentation

Formal Reasoning for Quantum Programs Yuxin Deng East China Normal University Thanks to Yuan Feng and Mingsheng Ying Outline Background Preliminaries on quantum mechanics Equivalences for quantum processes Symbolic semantics An algorithm


  1. Formal Reasoning for Quantum Programs Yuxin Deng East China Normal University Thanks to Yuan Feng and Mingsheng Ying

  2. Outline Background Preliminaries on quantum mechanics Equivalences for quantum processes Symbolic semantics An algorithm for ground bisimulation Hoare logic Summary

  3. Outline Background Preliminaries on quantum mechanics Equivalences for quantum processes Symbolic semantics An algorithm for ground bisimulation Hoare logic Summary

  4. Quantum communication ◮ In 1984, C. Bennett (IBM) and C. Brassard (Univ. of Montreal) proposed the first protocol for quantum key distribution, the BB84 protocol. . . .

  5. Quantum communication ◮ In 1984, C. Bennett (IBM) and C. Brassard (Univ. of Montreal) proposed the first protocol for quantum key distribution, the BB84 protocol. . . . ◮ On August 16, 2016, China launched the first satellite using quantum technology to send communications back to earth.

  6. Quantum communication ◮ In 1984, C. Bennett (IBM) and C. Brassard (Univ. of Montreal) proposed the first protocol for quantum key distribution, the BB84 protocol. . . . ◮ On August 16, 2016, China launched the first satellite using quantum technology to send communications back to earth. ◮ A 2000-km quantum communication main network between Beijing and Shanghai will be fully operational later this year.

  7. Quantum computation ◮ In 1982, R. Feynman proposed the idea to construct quantum computers based on the theory of quantum mechanics. . . .

  8. Quantum computation ◮ In 1982, R. Feynman proposed the idea to construct quantum computers based on the theory of quantum mechanics. . . . ◮ In 2011, the Canadian company D-Wave Systems claimed to have created the first commercial 128-qubit quantum computer, D-wave One.

  9. Quantum computation ◮ In 1982, R. Feynman proposed the idea to construct quantum computers based on the theory of quantum mechanics. . . . ◮ In 2011, the Canadian company D-Wave Systems claimed to have created the first commercial 128-qubit quantum computer, D-wave One. ◮ In December 2015, Google announced that, in solving a specific optimization problem, their 512-qubit D-Wave 2X is 100 million times faster than conventional single-core computers.

  10. Quantum programming “the real challenge will be the software .... Programming this thing [D-Wave] is ridiculously hard; it can take months to work out how to phrase a problem so that the computer can understand it.” — G. Rose Founder and CTO at D-Wave Systems [N. Jones. The Quantum Company. Nature 498:286-288, 2013.]

  11. Quantum programming languages ◮ “Quantum data, classical control” [Selinger] ◮ Sequential languages ◮ Quipper [Dalhousie Univ.] ◮ LIQUi | > [Microsoft] ◮ Scaffold [Princeton] ◮ ...

  12. Quantum programming languages ◮ “Quantum data, classical control” [Selinger] ◮ Sequential languages ◮ Quipper [Dalhousie Univ.] ◮ LIQUi | > [Microsoft] ◮ Scaffold [Princeton] ◮ ... ◮ Concurrent languages (quantum process algebras) Aiming to specify and verify quantum protocols. ◮ QPAlg [Jorrand and Lalire] ◮ CQP [Gay and Nagarajan] ◮ qCCS [Feng et al.]

  13. In this talk, we focus on

  14. In this talk, we focus on ◮ Coinduction for quantum processes

  15. In this talk, we focus on ◮ Coinduction for quantum processes ◮ Hoare logic for quantum programs

  16. Outline Background Preliminaries on quantum mechanics Equivalences for quantum processes Symbolic semantics An algorithm for ground bisimulation Hoare logic Summary

  17. Dirac-notation Let H be a Hilbert space.

  18. Dirac-notation Let H be a Hilbert space. ◮ ‘ket’ | ψ � stands for a (normalized) vector in H .

  19. Dirac-notation Let H be a Hilbert space. ◮ ‘ket’ | ψ � stands for a (normalized) vector in H . ◮ ‘bra’ � ψ | stands for the adjoint (dual vector) of | ψ � .

  20. Dirac-notation Let H be a Hilbert space. ◮ ‘ket’ | ψ � stands for a (normalized) vector in H . ◮ ‘bra’ � ψ | stands for the adjoint (dual vector) of | ψ � . ◮ Generally, A † stands for the adjoint of A , such that ( A † | ψ � , | φ � ) = ( | ψ � , A | φ � ) . In particular, ( | ψ � ) † = � ψ | .

  21. Quantum states ◮ Associated to any quantum system is a Hilbert space known as the state space.

  22. Quantum states ◮ Associated to any quantum system is a Hilbert space known as the state space. ◮ The state of a closed quantum system is described by a unit vector, say | ψ � , in its state space.

  23. Quantum states(Cont’d) ◮ ρ = ∑ k p k | ψ k �� ψ k | : lies in the state | ψ k � with probability p k , ∑ k p k = 1. ◮ ρ is a positive operator ◮ tr ( ρ ) = 1

  24. Quantum states(Cont’d) ◮ ρ = ∑ k p k | ψ k �� ψ k | : lies in the state | ψ k � with probability p k , ∑ k p k = 1. ◮ ρ is a positive operator ◮ tr ( ρ ) = 1 ◮ These two conditions characterize exactly the set of density operators.

  25. Quantum dynamics A super-operator E over Hilbert space H is a linear map on the space of linear operators on H .

  26. Quantum dynamics A super-operator E over Hilbert space H is a linear map on the space of linear operators on H . E is trace-preserving, if tr ( E ( A )) = tr ( A ) for any positive ◮ operator A .

  27. Quantum dynamics A super-operator E over Hilbert space H is a linear map on the space of linear operators on H . E is trace-preserving, if tr ( E ( A )) = tr ( A ) for any positive ◮ operator A . E is completely positive, if for any auxiliary space H ′ and any ◮ positive operator σ on the tensor Hilbert space H ′ ⊗ H , ( I H ′ ⊗ E )( σ ) is also a positive operator on H ′ ⊗ H .

  28. Quantum dynamics ◮ The evolution of a quantum system is described by a super-operator ρ ′ = E ( ρ )

  29. Quantum measurements ◮ An observable A is a Hermitian operator, A † = A . Let A = ∑ λ k P k , k where P k is the eigenspace associated with λ k .

  30. Quantum measurements ◮ An observable A is a Hermitian operator, A † = A . Let A = ∑ λ k P k , k where P k is the eigenspace associated with λ k . ◮ If we measure ρ by the observable A , then we obtain the result k with probability p k = tr ( P k ρ )

  31. Quantum measurements ◮ An observable A is a Hermitian operator, A † = A . Let A = ∑ λ k P k , k where P k is the eigenspace associated with λ k . ◮ If we measure ρ by the observable A , then we obtain the result k with probability p k = tr ( P k ρ )

  32. Quantum measurements ◮ An observable A is a Hermitian operator, A † = A . Let A = ∑ λ k P k , k where P k is the eigenspace associated with λ k . ◮ If we measure ρ by the observable A , then we obtain the result k with probability p k = tr ( P k ρ ) ◮ The measurement disturbs the system, leaving it in a state P k ρ P k / p k determined by the outcome.

  33. Syntax of qCCS The syntax of qCCS: nil | pref . P | P + Q | P � Q | P \ L | if b then P | A ( ˜ q ; ˜ x ) where pref :: = τ | c ? x | c ! e | c ? q | c ! q | E [ � q ] | M [ � q ; x ]

  34. Further requirements ◮ c ? x . d ! x . d ! x .0 �⇒ c ? r . d ! r . d ! r .0 ◮ Quantum no-cloning theorem!

  35. Syntax of qCCS, cont’d For a process to be legal, we require 1. q �∈ qv ( P ) in the process c ! q . P ; 2. qv ( P ) ∩ qv ( Q ) = ∅ in the process P || Q .

  36. Operational Semantics of qCCS A pair of the form � P , ρ � is a configuration, where P is a closed quantum process and ρ is a density operator. The set of configurations is denoted by Con . We let C , D , . . . range over Con .

  37. Operational Semantics of qCCS Let = { τ } ∪ { c ? v , c ! v | c classical channel, v real number } ∪ Act { c ? r , c ! r | c quantum channel, r quantum variable } , and D ( Con ) be the set of finite-support probability distributions over Con . The semantics of qCCS is given by the probabilistic labeled transition system ( Con , Act , → ) , where → ⊆ Con × Act × D ( Con ) is the smallest relation satisfying some rules.

  38. An example: Teleportation Quantum teleportation [Bennett, Brassard, Crepeau, Jozsa, Peres, and Wootters, PRL 1993] makes use of a maximally entangled state to teleport an unknown quantum state by sending only classical information. It serves as a key ingredient in many other quantum communication protocols.

  39. An example: Teleportation M 1 ✒ | ψ � H M 2 ✒ | Ψ � | ψ � X M 2 Z M 1 Let : = CNot [ q , q 1 ] . H [ q ] . M [ q , q 1 ; x ] . c ! x . nil Alice : = c ? x . U x [ q 2 ] . nil Bob Telep : = ( Alice � Bob ) \{ c } Here M = ∑ 3 i = 0 λ i | ˜ i �� ˜ i | , and U x [ q 2 ] . nil : = if x = λ 0 then σ 0 [ q 2 ] . nil + if x = λ 1 then σ 1 [ q 2 ] . nil + if x = λ 2 then σ 3 [ q 2 ] . nil + if x = λ 3 then σ 2 [ q 2 ] . nil .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend