SlideShare una empresa de Scribd logo
1 de 43
Descargar para leer sin conexión
Vectorial types, non-determinism and
        probabilistic systems
     Towards a computational quantum logic




           Alejandro Díaz-Caro
          Université Paris-Ouest Nanterre
           INRIA Paris – Rocquencourt



       Quantum Computing at Nancy
                 March 21, 2013
A proof-as-programs approach to quantum logic
Motivation

     Curry-Howard correspondence
             Intuitionistic logics          ⇐⇒             Typed λ-calculus

                            hypotheses                       free variables
             implication elimination (modus ponens)           application
                     implication introduction                 abstraction

                                 A proof is a program
                     (the formula it proves is a type for the program)




                                                                              2 / 11
A proof-as-programs approach to quantum logic
Motivation

     Curry-Howard correspondence
             Intuitionistic logics          ⇐⇒             Typed λ-calculus

                            hypotheses                       free variables
             implication elimination (modus ponens)           application
                     implication introduction                 abstraction

                                 A proof is a program
                     (the formula it proves is a type for the program)


     Goal: To find a quantum Curry-Howard correspondence
     Between what?
         A quantum λ-calculus (quantum control/quantum data)
         Any logic, even if we need to define it!



                                                                              2 / 11
A proof-as-programs approach to quantum logic
Motivation

     Curry-Howard correspondence
             Intuitionistic logics          ⇐⇒             Typed λ-calculus

                            hypotheses                       free variables
             implication elimination (modus ponens)           application
                     implication introduction                 abstraction

                                 A proof is a program
                     (the formula it proves is a type for the program)


     Goal: To find a quantum Curry-Howard correspondence
     Between what?
         A quantum λ-calculus (quantum control/quantum data)
         Any logic, even if we need to define it!
                              Computational quantum logic
         We want a logic such that its proofs are quantum programs
                                                                              2 / 11
Untyped algebraic extensions to λ-calculus
  Two origins:
      Alg [Vaux’09] (from Linear Logic)
      Lineal [Arrighi,Dowek’08] (for Quantum computing)
  Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10]




                                                                3 / 11
Untyped algebraic extensions to λ-calculus
  Two origins:
      Alg [Vaux’09] (from Linear Logic)
      Lineal [Arrighi,Dowek’08] (for Quantum computing)
  Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10]

            t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring
              v ::= x | λx.t




                                                                      3 / 11
Untyped algebraic extensions to λ-calculus
  Two origins:
      Alg [Vaux’09] (from Linear Logic)
      Lineal [Arrighi,Dowek’08] (for Quantum computing)
  Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10]

            t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring
              v ::= x | λx.t

                       β-reduction: (λx.t)v → t[x := v]

         “Algebraic” reductions:
        α.t + β.t → (α + β).t,
             α.β.t → (α × β).t,
        t(r1 + r2 ) → tr1 + tr2 ,
        (t1 + t2 )r → t1 r + t2 r,
                    ...
     (oriented version of the axioms of
              vectorial spaces)

                                                                      3 / 11
Untyped algebraic extensions to λ-calculus
  Two origins:
      Alg [Vaux’09] (from Linear Logic)
      Lineal [Arrighi,Dowek’08] (for Quantum computing)
  Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10]

            t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring
              v ::= x | λx.t

                       β-reduction: (λx.t)v → t[x := v]

         “Algebraic” reductions:
        α.t + β.t → (α + β).t,             Vectorial space of values
             α.β.t → (α × β).t,            B = { vars. and abs. }
        t(r1 + r2 ) → tr1 + tr2 ,
        (t1 + t2 )r → t1 r + t2 r,         Space of values ::= Span(B)
                    ...
     (oriented version of the axioms of
              vectorial spaces)
                                      Value == result of the computation, if it ends
                                                                                       3 / 11
Example: simple encoding of quantum computing
[Arrighi,Dowek’08]
                        |0 = λx.λy .x
    Two base vectors:
                        |1 = λx.λy .y




                                                4 / 11
Example: simple encoding of quantum computing
[Arrighi,Dowek’08]
                        |0 = λx.λy .x
    Two base vectors:
                        |1 = λx.λy .y
                                          |+

                                       1
                                H|0 → √ (|0 + |1 )
    We want a linear map H s.t.         2
                                       1
                                H|1 → √ (|0 − |1 )
                                        2
                                          |−




                                                     4 / 11
Example: simple encoding of quantum computing
[Arrighi,Dowek’08]
                        |0 = λx.λy .x
    Two base vectors:
                        |1 = λx.λy .y
                                             |+

                                       1
                                H|0 → √ (|0 + |1 )
    We want a linear map H s.t.         2
                                       1
                                H|1 → √ (|0 − |1 )
                                        2
                                             |−



                        H := λx. {x [|+ ] [|− ]}




                                                     4 / 11
Example: simple encoding of quantum computing
[Arrighi,Dowek’08]
                        |0 = λx.λy .x
    Two base vectors:
                        |1 = λx.λy .y
                                             |+

                                       1
                                H|0 → √ (|0 + |1 )
    We want a linear map H s.t.         2
                                       1
                                H|1 → √ (|0 − |1 )
                                        2
                                             |−



                        H := λx. {x [|+ ] [|− ]}


               1               1                1
     H|+ = H( √ (|0 + |1 )) → √ (H|0 + H|1 ) → √ (|+ + |− )
                2               2                2
         1      1              1                 1 √
       =√      √ (|0 + |1 ) + √ (|0 − |1 )    → √ ( 2|0 ) → |0
          2      2              2                 2
                                                                 4 / 11
vec
Typed Lineal : λ
[Arrighi,Díaz-Caro,Valiron’12]
                                                T +R      ≡   R +T
                                           T + (R + S)    ≡   (T + R) + S
       T , R ::= U | X | α.T | T + R               1.T    ≡   T
           U ::= X | U → T | ∀X.U | ∀X.U       α.(β.T )   ≡   (α × β).T
                                            α.T + α.R     ≡   α.(T + R)
                                            α.T + β.T     ≡   (α + β).T




                                                                            5 / 11
vec
Typed Lineal : λ
[Arrighi,Díaz-Caro,Valiron’12]
                                                               T +R      ≡   R +T
                                                          T + (R + S)    ≡   (T + R) + S
         T , R ::= U | X | α.T | T + R                            1.T    ≡   T
             U ::= X | U → T | ∀X.U | ∀X.U                    α.(β.T )   ≡   (α × β).T
                                                           α.T + α.R     ≡   α.(T + R)
                                                           α.T + β.T     ≡   (α + β).T

                                vec
    Most important property of λ
     Γ     t:   i    αi .Ti    ⇒   t →∗      i   αi .ri
                                                                    where Γ        ri : Ti
         t →∗       i αi .ri   ⇒   Γ t:          i αi .Ti + 0.R




                                                                                             5 / 11
vec
Typed Lineal : λ
[Arrighi,Díaz-Caro,Valiron’12]
                                                               T +R      ≡   R +T
                                                          T + (R + S)    ≡   (T + R) + S
         T , R ::= U | X | α.T | T + R                            1.T    ≡   T
             U ::= X | U → T | ∀X.U | ∀X.U                    α.(β.T )   ≡   (α × β).T
                                                           α.T + α.R     ≡   α.(T + R)
                                                           α.T + β.T     ≡   (α + β).T

                                vec
    Most important property of λ
     Γ     t:   i    αi .Ti    ⇒   t →∗      i   αi .ri
                                                                    where Γ        ri : Ti
         t →∗       i αi .ri   ⇒   Γ t:          i αi .Ti + 0.R

    A type system capturing the “vectorial” structure of terms
    . . . to check for properties of probabilistic processes
    . . . to check for properties of quantum processes
    . . . or whatever application needing the structure of the vector




                                                                                             5 / 11
vec
Typed Lineal : λ
[Arrighi,Díaz-Caro,Valiron’12]
                                                               T +R      ≡   R +T
                                                          T + (R + S)    ≡   (T + R) + S
         T , R ::= U | X | α.T | T + R                            1.T    ≡   T
             U ::= X | U → T | ∀X.U | ∀X.U                    α.(β.T )   ≡   (α × β).T
                                                           α.T + α.R     ≡   α.(T + R)
                                                           α.T + β.T     ≡   (α + β).T

                                vec
    Most important property of λ
     Γ     t:   i    αi .Ti    ⇒   t →∗      i   αi .ri
                                                                    where Γ        ri : Ti
         t →∗       i αi .ri   ⇒   Γ t:          i αi .Ti + 0.R

    A type system capturing the “vectorial” structure of terms
    . . . to check for properties of probabilistic processes
    . . . to check for properties of quantum processes
    . . . or whatever application needing the structure of the vector
    Still far from the main goal: (for a quantum Curry-Howard correspondence)
           vec
          λ −→ “vectorial” programs (not only quantum)

                                                                                             5 / 11
vec
Typed Lineal : λ
[Arrighi,Díaz-Caro,Valiron’12]
                                                               T +R      ≡   R +T
                                                          T + (R + S)    ≡   (T + R) + S
         T , R ::= U | X | α.T | T + R                            1.T    ≡   T
             U ::= X | U → T | ∀X.U | ∀X.U                    α.(β.T )   ≡   (α × β).T
                                                           α.T + α.R     ≡   α.(T + R)
                                                           α.T + β.T     ≡   (α + β).T

                                vec
    Most important property of λ
     Γ     t:   i    αi .Ti    ⇒   t →∗      i   αi .ri
                                                                    where Γ        ri : Ti
         t →∗       i αi .ri   ⇒   Γ t:          i αi .Ti + 0.R

    A type system capturing the “vectorial” structure of terms
    . . . to check for properties of probabilistic processes
    . . . to check for properties of quantum processes
    . . . or whatever application needing the structure of the vector
    Still far from the main goal: (for a quantum Curry-Howard correspondence)
           vec
          λ −→ “vectorial” programs (not only quantum)
          The logic behind −→ not easy to define
                                                                                             5 / 11
Non-determinism
Simplifying Lineal



                     t, r ::= x | λx.t | tr | t + r
                     t+r→t               t+r→r




                                                      6 / 11
Non-determinism
Simplifying Lineal



                             t, r ::= x | λx.t | tr | t + r
                             t+r→t               t+r→r


           Restricting to Linear Logic: Highly informative quantitative version
           of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13]




                                                                                  6 / 11
Non-determinism
Simplifying Lineal



                               t, r ::= x | λx.t | tr | t + r
                               t+r→t               t+r→r


           Restricting to Linear Logic: Highly informative quantitative version
           of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13]

                 However this is a restriction




                                                                                  6 / 11
Non-determinism
Simplifying Lineal



                               t, r ::= x | λx.t | tr | t + r
                               t+r→t               t+r→r


           Restricting to Linear Logic: Highly informative quantitative version
           of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13]

                 However this is a restriction


           Full calculus: 2nd order intuitionistic logic [Díaz-Caro,Petit’12]




                                                                                  6 / 11
Non-determinism
Simplifying Lineal



                               t, r ::= x | λx.t | tr | t + r
                               t+r→t                t+r→r


           Restricting to Linear Logic: Highly informative quantitative version
           of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13]

                 However this is a restriction


           Full calculus: 2nd order intuitionistic logic [Díaz-Caro,Petit’12]

                 2nd order intuitionistic logic ↔ A non linear fragment of Linear Logic

                 First logic related to (a fragment of) Lineal



                                                                                          6 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r   Uncontrolled non-determinism




                                                                 7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r      Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r     A projector controlling it




                                                                    7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r      Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r     A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences




                                                                       7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r      Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r     A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                  A∧B ≡B ∧A          We want t + r = r + t




                                                                       7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r       Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r      A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                   A∧B ≡B ∧A          We want t + r = r + t
               π1 (t + r) does not make any sense in this setting




                                                                       7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r       Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r      A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                   A∧B ≡B ∧A            We want t + r = r + t
               π1 (t + r) does not make any sense in this setting
                     Instead: πA (t + r) (when t : A or r : A)




                                                                       7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r       Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r      A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                    A∧B ≡B ∧A            We want t + r = r + t
                π1 (t + r) does not make any sense in this setting
                      Instead: πA (t + r) (when t : A or r : A)
         If both have type A, then this is a non-deterministic projector




                                                                           7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r        Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r       A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                     A∧B ≡B ∧A            We want t + r = r + t
                 π1 (t + r) does not make any sense in this setting
                       Instead: πA (t + r) (when t : A or r : A)
          If both have type A, then this is a non-deterministic projector
    λ+
         A proof system where equivalent propositions get the same proofs
                     A∧B ≡B ∧A          A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C
                         A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C )




                                                                            7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r        Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r       A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                     A∧B ≡B ∧A            We want t + r = r + t
                 π1 (t + r) does not make any sense in this setting
                       Instead: πA (t + r) (when t : A or r : A)
          If both have type A, then this is a non-deterministic projector
    λ+
         A proof system where equivalent propositions get the same proofs
                     A∧B ≡B ∧A          A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C
                         A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C )
         Curry-Howard correspondence with 2nd order intuitionistic logic
         Non-deterministic projector


                                                                            7 / 11
Non-determinism
[Díaz-Caro,Dowek’12–13]
        t + r → t and t + r → r        Uncontrolled non-determinism
     π(t + r) → t and π(t + r) → r       A projector controlling it

    Non-determinism naturally arise by considering some isomorphisms
               between propositions to be equivalences

                     A∧B ≡B ∧A            We want t + r = r + t
                 π1 (t + r) does not make any sense in this setting
                       Instead: πA (t + r) (when t : A or r : A)
          If both have type A, then this is a non-deterministic projector
    λ+
         A proof system where equivalent propositions get the same proofs
                     A∧B ≡B ∧A          A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C
                         A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C )
         Curry-Howard correspondence with 2nd order intuitionistic logic
         Non-deterministic projector
                   From non-determinism to probabilities?
                                                                            7 / 11
From non-determinism to probabilities
Work-in-progress (in collaboration with G. Dowek)



                    Premise: The algebraic calculi are too complex
                             Do we really need them?




                                                                     8 / 11
From non-determinism to probabilities
Work-in-progress (in collaboration with G. Dowek)



                    Premise: The algebraic calculi are too complex
                             Do we really need them?

         πA (t + πA (r + s) + s)

                     
                πA (r + s)

                                      91
 t                   r                       s




                                                                     8 / 11
From non-determinism to probabilities
Work-in-progress (in collaboration with G. Dowek)



                    Premise: The algebraic calculi are too complex
                             Do we really need them?

         πA (t + πA (r + s) + s)                             πA (t + πA (r + s) + s)
                                                                1      1         1
                                                                3      3         3
                                                                          
                πA (r + s)                                          πA (r + s)
                                                 →                     1
                                                                                     1
                                                                                     2
                                                                       2
                                      91                                             91
 t                   r                       s       t                     r                  s

                                                                    1   1  1
                                                              ∼       t+ r+ s
                                                                    3   6  2



                                                                                                  8 / 11
From non-determinism to probabilities
Generalising for any non-deterministic abstract rewrite system



     Definition (Oracle)
     f (a) = b if a → b                                   if a → bi with i = 1, . . . , n
     Ω = set of all the oracles                           there are n oracles




                                                                                            9 / 11
From non-determinism to probabilities
Generalising for any non-deterministic abstract rewrite system



     Definition (Oracle)
     f (a) = b if a → b                                   if a → bi with i = 1, . . . , n
     Ω = set of all the oracles                           there are n oracles


     E.g. Rewrite system
                                                    Ω = {f , g , h, i}, with
                       a
                                                        f (a) = b1          g (a) = b1
                   Ô                                  f (b2 ) = c1         g (b2 ) = c2
              b1                 b2
                                                       h(a) = b2             i(a) = b2
                         Ô                            h(b2 ) = c1          i(b2 ) = c2
                       c1             c2



                                                                                            9 / 11
From non-determinism to probabilities
  Theorem
  (Ω, A, P) is a probability space

      Ω is the set of all possible oracles
      A is the set of events (Lebesgue measurable subsets of Ω)
      P is the probability function (a Lebesgue measure over A)




                                                                  10 / 11
From non-determinism to probabilities
  Theorem
  (Ω, A, P) is a probability space

     Ω is the set of all possible oracles
     A is the set of events (Lebesgue measurable subsets of Ω)
     P is the probability function (a Lebesgue measure over A)
  Work-in-progress:
                Translation to/from LinealQ from/to λp (1)
                                                     +




  (1)
        LinealQ : Lineal in call-by-name, with scalars taken from Q∗
            λp : λ+ with probability rewriting
              +
                                                                       10 / 11
From non-determinism to probabilities
  Theorem
  (Ω, A, P) is a probability space

     Ω is the set of all possible oracles
     A is the set of events (Lebesgue measurable subsets of Ω)
     P is the probability function (a Lebesgue measure over A)
  Work-in-progress:
                Translation to/from LinealQ from/to λp (1)
                                                     +

  Theorem (From LinealQ to λp )
                            +
                                                                             pi
          t →∗      i   pi .ri   ⇒         t →∗ ri with probability      p1 +···+pn


  Theorem (From λp to LinealQ )
                 +
  t →∗ ri with probability pi , for i = 1, . . . , n          ⇒        t →∗     i   pi . ri

  (1)
        LinealQ : Lineal in call-by-name, with scalars taken from Q∗
            λp : λ+ with probability rewriting
              +
                                                                                              10 / 11
Summarising
   The long-term aim is to define a computational quantum logic




                                                                 11 / 11
Summarising
   The long-term aim is to define a computational quantum logic

  We have
     A λ-calculus extension able to express quantum programs
     A complex type system characterising the structure of the vectors
     A linear non-deterministic model related to linear logic
     A Curry-Howard correspondence between λ+ and 2nd order
     intuitionistic logic
     An easy way to move from non-determinism to probabilities, without
     changing the model




                                                                          11 / 11
Summarising
    The long-term aim is to define a computational quantum logic

  We have
      A λ-calculus extension able to express quantum programs
      A complex type system characterising the structure of the vectors
      A linear non-deterministic model related to linear logic
      A Curry-Howard correspondence between λ+ and 2nd order
      intuitionistic logic
      An easy way to move from non-determinism to probabilities, without
      changing the model

  We need
     To move from probabilities to quantum, without loosing the
     connections to logic
            No-cloning (Move back to call-by-value [Arrighi,Dowek’08])
            Measurement: we need to check for orthogonality
              α.M + β.N → M with prob. |α|2 ,       if M ⊥ N

                                                                           11 / 11

Más contenido relacionado

La actualidad más candente

Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systems
Selman Bozkır
 
Algorithm chapter 7
Algorithm chapter 7Algorithm chapter 7
Algorithm chapter 7
chidabdu
 
CPSC 125 Ch 1 sec 4
CPSC 125 Ch 1 sec 4CPSC 125 Ch 1 sec 4
CPSC 125 Ch 1 sec 4
David Wood
 
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: MixturesCVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
zukun
 
Sienna 2 analysis
Sienna 2 analysisSienna 2 analysis
Sienna 2 analysis
chidabdu
 

La actualidad más candente (20)

Athens workshop on MCMC
Athens workshop on MCMCAthens workshop on MCMC
Athens workshop on MCMC
 
Unbiased Hamiltonian Monte Carlo
Unbiased Hamiltonian Monte Carlo Unbiased Hamiltonian Monte Carlo
Unbiased Hamiltonian Monte Carlo
 
Ch01
Ch01Ch01
Ch01
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
Sets, maps and hash tables (Java Collections)
Sets, maps and hash tables (Java Collections)Sets, maps and hash tables (Java Collections)
Sets, maps and hash tables (Java Collections)
 
Origins of free
Origins of freeOrigins of free
Origins of free
 
Shanghai tutorial
Shanghai tutorialShanghai tutorial
Shanghai tutorial
 
Introduction to Sparse Methods
Introduction to Sparse Methods Introduction to Sparse Methods
Introduction to Sparse Methods
 
Discrete Logarithm Problem over Prime Fields, Non-canonical Lifts and Logarit...
Discrete Logarithm Problem over Prime Fields, Non-canonical Lifts and Logarit...Discrete Logarithm Problem over Prime Fields, Non-canonical Lifts and Logarit...
Discrete Logarithm Problem over Prime Fields, Non-canonical Lifts and Logarit...
 
Probabilistic information retrieval models & systems
Probabilistic information retrieval models & systemsProbabilistic information retrieval models & systems
Probabilistic information retrieval models & systems
 
03 banach
03 banach03 banach
03 banach
 
Some fundamental theorems in Banach spaces and Hilbert spaces
Some fundamental theorems in Banach spaces and Hilbert spacesSome fundamental theorems in Banach spaces and Hilbert spaces
Some fundamental theorems in Banach spaces and Hilbert spaces
 
Algorithm chapter 7
Algorithm chapter 7Algorithm chapter 7
Algorithm chapter 7
 
CPSC 125 Ch 1 sec 4
CPSC 125 Ch 1 sec 4CPSC 125 Ch 1 sec 4
CPSC 125 Ch 1 sec 4
 
High-dimensional polytopes defined by oracles: algorithms, computations and a...
High-dimensional polytopes defined by oracles: algorithms, computations and a...High-dimensional polytopes defined by oracles: algorithms, computations and a...
High-dimensional polytopes defined by oracles: algorithms, computations and a...
 
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: MixturesCVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
CVPR2010: Advanced ITinCVPR in a Nutshell: part 6: Mixtures
 
Fuzzy inventory model with shortages in man power planning
Fuzzy inventory model with shortages in man power planningFuzzy inventory model with shortages in man power planning
Fuzzy inventory model with shortages in man power planning
 
Beamerpresentation
BeamerpresentationBeamerpresentation
Beamerpresentation
 
Sienna 2 analysis
Sienna 2 analysisSienna 2 analysis
Sienna 2 analysis
 
Chapter 16
Chapter 16Chapter 16
Chapter 16
 

Similar a Vectorial types, non-determinism and probabilistic systems: Towards a computational quantum logic

Quantum computing, non-determinism, probabilistic systems... and the logic be...
Quantum computing, non-determinism, probabilistic systems... and the logic be...Quantum computing, non-determinism, probabilistic systems... and the logic be...
Quantum computing, non-determinism, probabilistic systems... and the logic be...
Alejandro Díaz-Caro
 
Largedictionaries handout
Largedictionaries handoutLargedictionaries handout
Largedictionaries handout
csedays
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 
A current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systemsA current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systems
Alexander Decker
 

Similar a Vectorial types, non-determinism and probabilistic systems: Towards a computational quantum logic (20)

Slides used during my thesis defense "Du typage vectoriel"
Slides used during my thesis defense "Du typage vectoriel"Slides used during my thesis defense "Du typage vectoriel"
Slides used during my thesis defense "Du typage vectoriel"
 
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
Optimization Methods for Machine Learning and Engineering: Optimization in Ve...
 
Quantum computing, non-determinism, probabilistic systems... and the logic be...
Quantum computing, non-determinism, probabilistic systems... and the logic be...Quantum computing, non-determinism, probabilistic systems... and the logic be...
Quantum computing, non-determinism, probabilistic systems... and the logic be...
 
cswiercz-general-presentation
cswiercz-general-presentationcswiercz-general-presentation
cswiercz-general-presentation
 
Numerical solution of boundary value problems by piecewise analysis method
Numerical solution of boundary value problems by piecewise analysis methodNumerical solution of boundary value problems by piecewise analysis method
Numerical solution of boundary value problems by piecewise analysis method
 
1404.1503
1404.15031404.1503
1404.1503
 
A type system for the vectorial aspects of the linear-algebraic lambda-calculus
A type system for the vectorial aspects of the linear-algebraic lambda-calculusA type system for the vectorial aspects of the linear-algebraic lambda-calculus
A type system for the vectorial aspects of the linear-algebraic lambda-calculus
 
SVM for Regression
SVM for RegressionSVM for Regression
SVM for Regression
 
Fixed points theorem on a pair of random generalized non linear contractions
Fixed points theorem on a pair of random generalized non linear contractionsFixed points theorem on a pair of random generalized non linear contractions
Fixed points theorem on a pair of random generalized non linear contractions
 
Q-Metrics in Theory and Practice
Q-Metrics in Theory and PracticeQ-Metrics in Theory and Practice
Q-Metrics in Theory and Practice
 
Q-Metrics in Theory And Practice
Q-Metrics in Theory And PracticeQ-Metrics in Theory And Practice
Q-Metrics in Theory And Practice
 
Quasi Lie systems and applications
Quasi Lie systems and applicationsQuasi Lie systems and applications
Quasi Lie systems and applications
 
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeksBeginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
 
Mesh Processing Course : Active Contours
Mesh Processing Course : Active ContoursMesh Processing Course : Active Contours
Mesh Processing Course : Active Contours
 
Largedictionaries handout
Largedictionaries handoutLargedictionaries handout
Largedictionaries handout
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
2 vectors notes
2 vectors notes2 vectors notes
2 vectors notes
 
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
2024.03.22 - Mike Heddes - Introduction to Hyperdimensional Computing.pdf
 
cyclic_code.pdf
cyclic_code.pdfcyclic_code.pdf
cyclic_code.pdf
 
A current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systemsA current perspectives of corrected operator splitting (os) for systems
A current perspectives of corrected operator splitting (os) for systems
 

Más de Alejandro Díaz-Caro

Más de Alejandro Díaz-Caro (12)

Typing quantum superpositions and measurement
Typing quantum superpositions and measurementTyping quantum superpositions and measurement
Typing quantum superpositions and measurement
 
A lambda calculus for density matrices with classical and probabilistic controls
A lambda calculus for density matrices with classical and probabilistic controlsA lambda calculus for density matrices with classical and probabilistic controls
A lambda calculus for density matrices with classical and probabilistic controls
 
Towards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum controlTowards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum control
 
Affine computation and affine automaton
Affine computation and affine automatonAffine computation and affine automaton
Affine computation and affine automaton
 
Simply typed lambda-calculus modulo isomorphisms
Simply typed lambda-calculus modulo isomorphismsSimply typed lambda-calculus modulo isomorphisms
Simply typed lambda-calculus modulo isomorphisms
 
The probability of non-confluent systems
The probability of non-confluent systemsThe probability of non-confluent systems
The probability of non-confluent systems
 
Non determinism through type isomophism
Non determinism through type isomophismNon determinism through type isomophism
Non determinism through type isomophism
 
Call-by-value non-determinism in a linear logic type discipline
Call-by-value non-determinism in a linear logic type disciplineCall-by-value non-determinism in a linear logic type discipline
Call-by-value non-determinism in a linear logic type discipline
 
Linearity in the non-deterministic call-by-value setting
Linearity in the non-deterministic call-by-value settingLinearity in the non-deterministic call-by-value setting
Linearity in the non-deterministic call-by-value setting
 
Slides QuAND 2011
Slides QuAND 2011Slides QuAND 2011
Slides QuAND 2011
 
Equivalence of algebraic λ-calculi
Equivalence of algebraic λ-calculiEquivalence of algebraic λ-calculi
Equivalence of algebraic λ-calculi
 
A System F accounting for scalars
A System F accounting for scalarsA System F accounting for scalars
A System F accounting for scalars
 

Vectorial types, non-determinism and probabilistic systems: Towards a computational quantum logic

  • 1. Vectorial types, non-determinism and probabilistic systems Towards a computational quantum logic Alejandro Díaz-Caro Université Paris-Ouest Nanterre INRIA Paris – Rocquencourt Quantum Computing at Nancy March 21, 2013
  • 2. A proof-as-programs approach to quantum logic Motivation Curry-Howard correspondence Intuitionistic logics ⇐⇒ Typed λ-calculus hypotheses free variables implication elimination (modus ponens) application implication introduction abstraction A proof is a program (the formula it proves is a type for the program) 2 / 11
  • 3. A proof-as-programs approach to quantum logic Motivation Curry-Howard correspondence Intuitionistic logics ⇐⇒ Typed λ-calculus hypotheses free variables implication elimination (modus ponens) application implication introduction abstraction A proof is a program (the formula it proves is a type for the program) Goal: To find a quantum Curry-Howard correspondence Between what? A quantum λ-calculus (quantum control/quantum data) Any logic, even if we need to define it! 2 / 11
  • 4. A proof-as-programs approach to quantum logic Motivation Curry-Howard correspondence Intuitionistic logics ⇐⇒ Typed λ-calculus hypotheses free variables implication elimination (modus ponens) application implication introduction abstraction A proof is a program (the formula it proves is a type for the program) Goal: To find a quantum Curry-Howard correspondence Between what? A quantum λ-calculus (quantum control/quantum data) Any logic, even if we need to define it! Computational quantum logic We want a logic such that its proofs are quantum programs 2 / 11
  • 5. Untyped algebraic extensions to λ-calculus Two origins: Alg [Vaux’09] (from Linear Logic) Lineal [Arrighi,Dowek’08] (for Quantum computing) Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10] 3 / 11
  • 6. Untyped algebraic extensions to λ-calculus Two origins: Alg [Vaux’09] (from Linear Logic) Lineal [Arrighi,Dowek’08] (for Quantum computing) Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10] t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring v ::= x | λx.t 3 / 11
  • 7. Untyped algebraic extensions to λ-calculus Two origins: Alg [Vaux’09] (from Linear Logic) Lineal [Arrighi,Dowek’08] (for Quantum computing) Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10] t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring v ::= x | λx.t β-reduction: (λx.t)v → t[x := v] “Algebraic” reductions: α.t + β.t → (α + β).t, α.β.t → (α × β).t, t(r1 + r2 ) → tr1 + tr2 , (t1 + t2 )r → t1 r + t2 r, ... (oriented version of the axioms of vectorial spaces) 3 / 11
  • 8. Untyped algebraic extensions to λ-calculus Two origins: Alg [Vaux’09] (from Linear Logic) Lineal [Arrighi,Dowek’08] (for Quantum computing) Equivalent formalisms [Díaz-Caro,Perdrix,Tasson,Valiron’10] t, r ::= v | tr | t + r | α.t | 0 α ∈ (S, +, ×), a ring v ::= x | λx.t β-reduction: (λx.t)v → t[x := v] “Algebraic” reductions: α.t + β.t → (α + β).t, Vectorial space of values α.β.t → (α × β).t, B = { vars. and abs. } t(r1 + r2 ) → tr1 + tr2 , (t1 + t2 )r → t1 r + t2 r, Space of values ::= Span(B) ... (oriented version of the axioms of vectorial spaces) Value == result of the computation, if it ends 3 / 11
  • 9. Example: simple encoding of quantum computing [Arrighi,Dowek’08] |0 = λx.λy .x Two base vectors: |1 = λx.λy .y 4 / 11
  • 10. Example: simple encoding of quantum computing [Arrighi,Dowek’08] |0 = λx.λy .x Two base vectors: |1 = λx.λy .y |+ 1 H|0 → √ (|0 + |1 ) We want a linear map H s.t. 2 1 H|1 → √ (|0 − |1 ) 2 |− 4 / 11
  • 11. Example: simple encoding of quantum computing [Arrighi,Dowek’08] |0 = λx.λy .x Two base vectors: |1 = λx.λy .y |+ 1 H|0 → √ (|0 + |1 ) We want a linear map H s.t. 2 1 H|1 → √ (|0 − |1 ) 2 |− H := λx. {x [|+ ] [|− ]} 4 / 11
  • 12. Example: simple encoding of quantum computing [Arrighi,Dowek’08] |0 = λx.λy .x Two base vectors: |1 = λx.λy .y |+ 1 H|0 → √ (|0 + |1 ) We want a linear map H s.t. 2 1 H|1 → √ (|0 − |1 ) 2 |− H := λx. {x [|+ ] [|− ]} 1 1 1 H|+ = H( √ (|0 + |1 )) → √ (H|0 + H|1 ) → √ (|+ + |− ) 2 2 2 1 1 1 1 √ =√ √ (|0 + |1 ) + √ (|0 − |1 ) → √ ( 2|0 ) → |0 2 2 2 2 4 / 11
  • 13. vec Typed Lineal : λ [Arrighi,Díaz-Caro,Valiron’12] T +R ≡ R +T T + (R + S) ≡ (T + R) + S T , R ::= U | X | α.T | T + R 1.T ≡ T U ::= X | U → T | ∀X.U | ∀X.U α.(β.T ) ≡ (α × β).T α.T + α.R ≡ α.(T + R) α.T + β.T ≡ (α + β).T 5 / 11
  • 14. vec Typed Lineal : λ [Arrighi,Díaz-Caro,Valiron’12] T +R ≡ R +T T + (R + S) ≡ (T + R) + S T , R ::= U | X | α.T | T + R 1.T ≡ T U ::= X | U → T | ∀X.U | ∀X.U α.(β.T ) ≡ (α × β).T α.T + α.R ≡ α.(T + R) α.T + β.T ≡ (α + β).T vec Most important property of λ Γ t: i αi .Ti ⇒ t →∗ i αi .ri where Γ ri : Ti t →∗ i αi .ri ⇒ Γ t: i αi .Ti + 0.R 5 / 11
  • 15. vec Typed Lineal : λ [Arrighi,Díaz-Caro,Valiron’12] T +R ≡ R +T T + (R + S) ≡ (T + R) + S T , R ::= U | X | α.T | T + R 1.T ≡ T U ::= X | U → T | ∀X.U | ∀X.U α.(β.T ) ≡ (α × β).T α.T + α.R ≡ α.(T + R) α.T + β.T ≡ (α + β).T vec Most important property of λ Γ t: i αi .Ti ⇒ t →∗ i αi .ri where Γ ri : Ti t →∗ i αi .ri ⇒ Γ t: i αi .Ti + 0.R A type system capturing the “vectorial” structure of terms . . . to check for properties of probabilistic processes . . . to check for properties of quantum processes . . . or whatever application needing the structure of the vector 5 / 11
  • 16. vec Typed Lineal : λ [Arrighi,Díaz-Caro,Valiron’12] T +R ≡ R +T T + (R + S) ≡ (T + R) + S T , R ::= U | X | α.T | T + R 1.T ≡ T U ::= X | U → T | ∀X.U | ∀X.U α.(β.T ) ≡ (α × β).T α.T + α.R ≡ α.(T + R) α.T + β.T ≡ (α + β).T vec Most important property of λ Γ t: i αi .Ti ⇒ t →∗ i αi .ri where Γ ri : Ti t →∗ i αi .ri ⇒ Γ t: i αi .Ti + 0.R A type system capturing the “vectorial” structure of terms . . . to check for properties of probabilistic processes . . . to check for properties of quantum processes . . . or whatever application needing the structure of the vector Still far from the main goal: (for a quantum Curry-Howard correspondence) vec λ −→ “vectorial” programs (not only quantum) 5 / 11
  • 17. vec Typed Lineal : λ [Arrighi,Díaz-Caro,Valiron’12] T +R ≡ R +T T + (R + S) ≡ (T + R) + S T , R ::= U | X | α.T | T + R 1.T ≡ T U ::= X | U → T | ∀X.U | ∀X.U α.(β.T ) ≡ (α × β).T α.T + α.R ≡ α.(T + R) α.T + β.T ≡ (α + β).T vec Most important property of λ Γ t: i αi .Ti ⇒ t →∗ i αi .ri where Γ ri : Ti t →∗ i αi .ri ⇒ Γ t: i αi .Ti + 0.R A type system capturing the “vectorial” structure of terms . . . to check for properties of probabilistic processes . . . to check for properties of quantum processes . . . or whatever application needing the structure of the vector Still far from the main goal: (for a quantum Curry-Howard correspondence) vec λ −→ “vectorial” programs (not only quantum) The logic behind −→ not easy to define 5 / 11
  • 18. Non-determinism Simplifying Lineal t, r ::= x | λx.t | tr | t + r t+r→t t+r→r 6 / 11
  • 19. Non-determinism Simplifying Lineal t, r ::= x | λx.t | tr | t + r t+r→t t+r→r Restricting to Linear Logic: Highly informative quantitative version of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13] 6 / 11
  • 20. Non-determinism Simplifying Lineal t, r ::= x | λx.t | tr | t + r t+r→t t+r→r Restricting to Linear Logic: Highly informative quantitative version of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13] However this is a restriction 6 / 11
  • 21. Non-determinism Simplifying Lineal t, r ::= x | λx.t | tr | t + r t+r→t t+r→r Restricting to Linear Logic: Highly informative quantitative version of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13] However this is a restriction Full calculus: 2nd order intuitionistic logic [Díaz-Caro,Petit’12] 6 / 11
  • 22. Non-determinism Simplifying Lineal t, r ::= x | λx.t | tr | t + r t+r→t t+r→r Restricting to Linear Logic: Highly informative quantitative version of strong normalisation [Díaz-Caro,Manzonetto,Pagani’13] However this is a restriction Full calculus: 2nd order intuitionistic logic [Díaz-Caro,Petit’12] 2nd order intuitionistic logic ↔ A non linear fragment of Linear Logic First logic related to (a fragment of) Lineal 6 / 11
  • 23. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism 7 / 11
  • 24. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it 7 / 11
  • 25. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences 7 / 11
  • 26. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t 7 / 11
  • 27. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting 7 / 11
  • 28. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting Instead: πA (t + r) (when t : A or r : A) 7 / 11
  • 29. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting Instead: πA (t + r) (when t : A or r : A) If both have type A, then this is a non-deterministic projector 7 / 11
  • 30. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting Instead: πA (t + r) (when t : A or r : A) If both have type A, then this is a non-deterministic projector λ+ A proof system where equivalent propositions get the same proofs A∧B ≡B ∧A A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C ) 7 / 11
  • 31. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting Instead: πA (t + r) (when t : A or r : A) If both have type A, then this is a non-deterministic projector λ+ A proof system where equivalent propositions get the same proofs A∧B ≡B ∧A A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C ) Curry-Howard correspondence with 2nd order intuitionistic logic Non-deterministic projector 7 / 11
  • 32. Non-determinism [Díaz-Caro,Dowek’12–13] t + r → t and t + r → r Uncontrolled non-determinism π(t + r) → t and π(t + r) → r A projector controlling it Non-determinism naturally arise by considering some isomorphisms between propositions to be equivalences A∧B ≡B ∧A We want t + r = r + t π1 (t + r) does not make any sense in this setting Instead: πA (t + r) (when t : A or r : A) If both have type A, then this is a non-deterministic projector λ+ A proof system where equivalent propositions get the same proofs A∧B ≡B ∧A A ∧ (B ∧ C ) ≡ (A ∧ B) ∧ C A ⇒ (B ∧ C ) ≡ (A ⇒ B) ∧ (A ⇒ C ) Curry-Howard correspondence with 2nd order intuitionistic logic Non-deterministic projector From non-determinism to probabilities? 7 / 11
  • 33. From non-determinism to probabilities Work-in-progress (in collaboration with G. Dowek) Premise: The algebraic calculi are too complex Do we really need them? 8 / 11
  • 34. From non-determinism to probabilities Work-in-progress (in collaboration with G. Dowek) Premise: The algebraic calculi are too complex Do we really need them? πA (t + πA (r + s) + s) πA (r + s)  91 t r s 8 / 11
  • 35. From non-determinism to probabilities Work-in-progress (in collaboration with G. Dowek) Premise: The algebraic calculi are too complex Do we really need them? πA (t + πA (r + s) + s) πA (t + πA (r + s) + s) 1 1 1 3 3 3 πA (r + s) πA (r + s) → 1 1 2 2  91  91 t r s t r s 1 1 1 ∼ t+ r+ s 3 6 2 8 / 11
  • 36. From non-determinism to probabilities Generalising for any non-deterministic abstract rewrite system Definition (Oracle) f (a) = b if a → b if a → bi with i = 1, . . . , n Ω = set of all the oracles there are n oracles 9 / 11
  • 37. From non-determinism to probabilities Generalising for any non-deterministic abstract rewrite system Definition (Oracle) f (a) = b if a → b if a → bi with i = 1, . . . , n Ω = set of all the oracles there are n oracles E.g. Rewrite system Ω = {f , g , h, i}, with a f (a) = b1 g (a) = b1 Ô f (b2 ) = c1 g (b2 ) = c2 b1 b2 h(a) = b2 i(a) = b2 Ô h(b2 ) = c1 i(b2 ) = c2 c1 c2 9 / 11
  • 38. From non-determinism to probabilities Theorem (Ω, A, P) is a probability space Ω is the set of all possible oracles A is the set of events (Lebesgue measurable subsets of Ω) P is the probability function (a Lebesgue measure over A) 10 / 11
  • 39. From non-determinism to probabilities Theorem (Ω, A, P) is a probability space Ω is the set of all possible oracles A is the set of events (Lebesgue measurable subsets of Ω) P is the probability function (a Lebesgue measure over A) Work-in-progress: Translation to/from LinealQ from/to λp (1) + (1) LinealQ : Lineal in call-by-name, with scalars taken from Q∗ λp : λ+ with probability rewriting + 10 / 11
  • 40. From non-determinism to probabilities Theorem (Ω, A, P) is a probability space Ω is the set of all possible oracles A is the set of events (Lebesgue measurable subsets of Ω) P is the probability function (a Lebesgue measure over A) Work-in-progress: Translation to/from LinealQ from/to λp (1) + Theorem (From LinealQ to λp ) + pi t →∗ i pi .ri ⇒ t →∗ ri with probability p1 +···+pn Theorem (From λp to LinealQ ) + t →∗ ri with probability pi , for i = 1, . . . , n ⇒ t →∗ i pi . ri (1) LinealQ : Lineal in call-by-name, with scalars taken from Q∗ λp : λ+ with probability rewriting + 10 / 11
  • 41. Summarising The long-term aim is to define a computational quantum logic 11 / 11
  • 42. Summarising The long-term aim is to define a computational quantum logic We have A λ-calculus extension able to express quantum programs A complex type system characterising the structure of the vectors A linear non-deterministic model related to linear logic A Curry-Howard correspondence between λ+ and 2nd order intuitionistic logic An easy way to move from non-determinism to probabilities, without changing the model 11 / 11
  • 43. Summarising The long-term aim is to define a computational quantum logic We have A λ-calculus extension able to express quantum programs A complex type system characterising the structure of the vectors A linear non-deterministic model related to linear logic A Curry-Howard correspondence between λ+ and 2nd order intuitionistic logic An easy way to move from non-determinism to probabilities, without changing the model We need To move from probabilities to quantum, without loosing the connections to logic No-cloning (Move back to call-by-value [Arrighi,Dowek’08]) Measurement: we need to check for orthogonality α.M + β.N → M with prob. |α|2 , if M ⊥ N 11 / 11