SlideShare a Scribd company logo
1 of 27
Download to read offline
A lambda calculus for density matrices
with classical and probabilistic controls
Alejandro Díaz-Caro
UNIVERSIDAD NACIONAL DE QUILMES & CONICET
Buenos Aires, Argentina
APLAS 2017
November 27-29, 2017, Suzhou, China
Motivation
Two paradigms
make qubit 0 → q1;
make qubit 1 → q2;
apply CNOT q1 q2;
if(measure q1)
then . . .
|0 •
|1
(αP1 + αP2) |ψ
→ αP1 |ψ + αP2 |ψ
→ α |φ + α |ϕ
Classical control / quantum data Quantum control
In this work we propose a paradigm in between:
“Probabilistic control” or “Weak quantum control”
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 1 / 20
Outline
Density matrices and quantum mechanics
Postulates of quantum mechanics
Density matrices
Postulates of quantum mechanics with density matrices
λρ
Untyped
Typed language
Denotational semantics
λ◦
ρ
Taking advantage of density matrices
Conclusions
Postulates of quantum mechanics
Postulate 1: State space
The state of an isolated quantum system can be fully described by a state
vector, which is a unit vector in a complex Hilbert space∗
.
∗
Hilbert space: Vector space with inner product, complete in its norm
Examples
Space Vectors
C2
|0 = ( 1
0 ) |1 = ( 0
1 ) 1√
2
|0 + 1√
2
|1 =
1√
2
1√
2
C4
= C2
⊗ C2
|00 =
1
0
0
0
1√
3
|00 +
√
2√
3
|11 =


1√
3
0
0√
2√
3


Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 2 / 20
Postulates of quantum mechanics
Postulate 2: Evolution
The evolution of an isolated quantum system can be described by a
unitary matrix∗
.
|ψ = U |ψ
∗
U unitary if U†
= U−1
.
Examples
H = 1√
2
1 1
1 −1
H ( 1
0 ) =
1√
2
1√
2
= |+
H ( 0
1 ) =
1√
2
−1√
2
= |−
Not = ( 0 1
1 0 )
Not ( 1
0 ) = ( 0
1 )
Not ( 0
1 ) = ( 1
0 )
Z = 1 0
0 −1
Z |+ = |−
Z |− = |+
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 3 / 20
Postulates of quantum mechanics
Postulate 3: Measurement
The quantum measurement is described by a collection of measurement
matrices∗
{Mi }i , where i is the output of the measurement.
Condition over {Mi }i : i M†
i Mi = I
The probability of measuring i is: pi = ψ| M†
i Mi |ψ
The state after measuring i is: |ψ = Mi |ψ
√
pi
∗
square matrices with complex coefficients ψ| = |ψ
†
Example
{M0, M1} with M1 = ( 1 0
0 0 ), M2 = ( 0 0
0 1 ).
p0 =
√
2√
3
1√
3
( 1 0
0 0 )
2
√
2√
3
1√
3
= 2
3
1√
p0
M0
√
2√
3
1√
3
= 1√
p0
√
2√
3
0
= ( 1
0 )
p1 =
√
2√
3
1√
3
( 0 0
0 1 )
2
√
2√
3
1√
3
= 1
3
1√
p0
M1
√
2√
3
1√
3
= 1√
p1
0
1√
3
= ( 0
1 )
In general, with those {M0, M1}, the vector ( a
b ) measures 0 with
probability |a|2
and 1 with probability |b|2
, and the sates after measuring
are ( 1
0 ) y ( 0
1 ) respectively.
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 4 / 20
Postulates of quantum mechanics
Postulate 4: Composed system
The sate space of a composed system is the tensor product of the state
space of its components.
Given n systems in states |ψ1 , . . . , |ψn , the composed system is
|ψ1 ⊗ |ψ2 ⊗ · · · ⊗ |ψn
Example
System 1: |ψ =
1√
2
1√
2
System 2: |φ =
1√
5
2√
5
Composed system |ψ ⊗ |φ :
1√
2
1√
2
⊗
1√
5
2√
5
=



1√
10
2√
10
1√
10
2√
10



Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 5 / 20
Density matrices
A representation of our ignorance about the system
Definition (Density matrix)
Mixed state: A distribution set of pure states: {(pi , |ψi )}i
Density matrix: ρ = i pi |ψi ψi |
Characterisation: ρ density matrix ⇔ tr(ρ) = 1 ∧ ρ positive
Let M = {M0, M1}, with M0 and M1 projecting to the canonical base
After measuring ( α
β ):
( 1
0 ) with probability |α|2
( 0
1 ) with probability |β|2
Example: Pre and post measure
{(|α|2
, ( 1
0 )), (|β|2
, ( 0
1 ))} ⇒ ρ=|α|2
( 1
0 ) ( 1 0 )+|β|2
( 0
1 ) ( 0 1 )= |α|2
0
0 |β|2
{(1, ( α
β ))} ⇒ ρ = ( α
β ) ( α∗
β∗
) = |α|2
αβ∗
α∗
β |β|2
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 6 / 20
Postulates of quantum mechanics
with density matrices
Postulate 1 (with vectors): State space
The state of an isolated quantum system can be fully described by a state
vector, which is a unit vector in a complex Hilbert space.
Postulate 1 (with matrices): State space
The state of an isolated quantum system can be fully described by a density
matrix, which is a square matrix ρ with trace 1 acting on a complex Hilbert
space.
If a quantum system is in state ρi with probability pi , the density matrix
of the system is
i
pi ρi
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 7 / 20
Postulates of quantum mechanics
with density matrices
Postulate 2 (with vectors): Evolution
The evolution of an isolated quantum system can be described by a
unitary matrix.
|ψ = U |ψ
Postulate 2 (with matrices): Evolution
The evolution of an isolated quantum system can be described by a
unitary matrix.
ρ = UρU†
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 8 / 20
Postulates of quantum mechanics
with density matrices
Postulate 3 (with vectors): Measurement
The quantum measurement is described by a collection of measurement
matrices {Mi }i , where i is the output of the measurement.
Condition over {Mi }i : i M†
i Mi = I
The probability of measuring i is: pi = ψ| M†
i Mi |ψ
The state after measuring i is: |ψ = Mi |ψ
√
pi
Postulate 3 (with matrices): Measurement
The quantum measurement is described by a collection of measurement
matrices {Mi }i , where i is the output of the measurement.
Condition over {Mi }i : i M†
i Mi = I
The probability of measuring i is: pi = tr(M†
i Mi ρ)
The state after measuring i is: ρ =
Mi ρM†
i
pi
(|ψ ψ |)
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 9 / 20
Postulates of quantum mechanics
with density matrices
Postulate 4 (with vectors): Composed system
The sate space of a composed system is the tensor product of the state
space of its components.
Given n systems in states |ψ1 , . . . , |ψn , the composed system is
|ψ1 ⊗ |ψ2 ⊗ · · · ⊗ |ψn
Postulate 4 (with matrices): Composed system
The sate space of a composed system is the tensor product of the state
space of its components.
Given n systems in states ρ1, . . . , ρn, the composed system is
ρ1 ⊗ ρ2 ⊗ · · · ⊗ ρn
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 10 / 20
Example
[Nielsen-Chuang p371]
Experiment 1: Toss a coin
Experiment 2: Toss a coin to decide whether or not to apply Z to
1√
2
1√
2
Experiment 1
{(1/2, ( 1
0 )), (1/2, ( 0
1 ))}
ρ1 = 1/2 ( 1
0 ) ( 1 0 ) + 1/2 ( 0
1 ) ( 0 1 ) =
1/2 0
0 1/2
Experiment 2
{(1/2,
1√
2
1√
2
), (1/2,
1√
2
−1√
2
)}
ρ2 = 1/2
1√
2
1√
2
( 1√
2
1√
2 ) + 1/2
1√
2
−1√
2
( 1√
2
−1√
2 ) =
1/2 0
0 1/2
Same density matrix does not imply same mixed state
But mixed states with same density matrices are indistinguishable
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 11 / 20
Outline
Density matrices and quantum mechanics
Postulates of quantum mechanics
Density matrices
Postulates of quantum mechanics with density matrices
λρ
Untyped
Typed language
Denotational semantics
λ◦
ρ
Taking advantage of density matrices
Conclusions
Untyped λρ
t := x | λx.t | tt (lambda calculus)
| ρn
| Un
t | πn
t | t ⊗ t (the 4 postulates)
| (bm
, ρn
) | letcase x = r in {t . . . t} (classical control over meas.)
where
πn
= {π0, . . . , π2n−1} is a measurement in the computational base
bm
is a m-bits number
(λx.t)r −→1 t[r/x]
Um
ρn
−→1 ρ
n
πm
ρn
−→pi
(im
, ρn
i )
ρ1 ⊗ ρ2 −→1 ρ
letcase x = (bm
, ρn
) in {t0, . . . , t2m−1} −→1 tbm [ρn
/x]
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 12 / 20
Types
A := n | (m, n) | A A
Γ, x : A x : A
ax
Γ, x : A t : B
Γ λx.t : A B
i
Γ t : A B ∆ r : A
Γ, ∆ tr : B
e
Γ ρn
: n
axρ
Γ t : n
Γ Um
t : n
u
Γ t : n
Γ πm
t : (m, n)
m
Γ t : n ∆ r : m
Γ, ∆ t ⊗ r : n + m
⊗
Γ (bm
, ρn
) : (m, n)
axam
∆, x : n t0 : A . . . ∆, x : n t2m−1 : A Γ r : (m, n)
Γ, ∆ letcase x = r in {t0, . . . , t2m−1} : A
lc
with m ≤ n and 0 ≤ bm
< 2m
.
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 13 / 20
Denotational semantics
Intuition
πn
ρn
= {(p0, ρ0), . . . , (p2n−1, ρ2n−1)}
where, with probability pi the final state is ρi
πn
ρn
= i pi ρi
In general:
t = {(pi , ei )}i
with ei density matrix or function from density matrices to density
matrices
t =
i
pi ei
where (a.f + b.g)(x) = a.f (x) + b.g(x)
n = (m, n) = Dn A B = DDA DB
= DA DB
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 14 / 20
Example 1
Experiment 1: Toss a coin
Experiment 2: Toss a coin to decide whether or not to apply Z to
1
2
1
2
1
2
1
2
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
Example 1
Experiment 1: Toss a coin
Experiment 2: Toss a coin to decide whether or not to apply Z to
1
2
1
2
1
2
1
2
Experiment 1: π1
1
2
1
2
1
2
1
2
Experiment 2: letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
}
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
Example 1
Experiment 1: Toss a coin
Experiment 2: Toss a coin to decide whether or not to apply Z to
1
2
1
2
1
2
1
2
Experiment 1: π1
1
2
1
2
1
2
1
2
π1
1
2
1
2
1
2
1
2
= {(1
2 , ( 1 0
0 0 )), (1
2 , ( 0 0
0 1 ))}
Experiment 2: letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
}
letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
}
= {(1
2 ,
1
2
1
2
1
2
1
2
), (1
2 ,
1
2 − 1
2
− 1
2
1
2
)}
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
Example 1
Experiment 1: Toss a coin
Experiment 2: Toss a coin to decide whether or not to apply Z to
1
2
1
2
1
2
1
2
Experiment 1: π1
1
2
1
2
1
2
1
2
π1
1
2
1
2
1
2
1
2
= {(1
2 , ( 1 0
0 0 )), (1
2 , ( 0 0
0 1 ))}
Experiment 2: letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
}
letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
}
= {(1
2 ,
1
2
1
2
1
2
1
2
), (1
2 ,
1
2 − 1
2
− 1
2
1
2
)}
letcase x = π1
1
2
1
2
1
2
1
2
in {
1
2
1
2
1
2
1
2
, Z
1
2
1
2
1
2
1
2
} =
1
2 0
0 1
2
= π1
1
2
1
2
1
2
1
2
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
Example 2
Measure a given ρ and then toss a coin to decide whether to return the
resulting state of the measurement, or the output of a tossing a new coin.
t = (letcase y = π1
1
2
1
2
1
2
1
2
in {λx.letcase z = π1
1
2
1
2
1
2
1
2
in {z, z}, λx.x}
)
(letcase z = π1
ρ in {z, z})
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 16 / 20
Example 2
A possible trace (confluence of trees to be proven following [DC-Martínez LSFA’17])
(letcase y = π1
1
2
1
2
1
2
1
2
in {
to
λx.letcase z = π1
1
2
1
2
1
2
1
2
s
in {z, z},
t1
λx.x})
r1
(letcase z = π1
ρ in {z, z})
r2
r1r2
r1l0 r1l1
r1 ( 1 0
0 0 ) r1 ( 0 0
0 1 )
r0
1 ( 1 0
0 0 ) r1
1 ( 1 0
0 0 )
t0 ( 1 0
0 0 )
letcase y = s in {y, y}
t1 ( 1 0
0 0 )
r0
1 ( 0 0
0 1 )
t0 ( 0 0
0 1 )
letcase y = s in {y, y}
r1
1 ( 0 0
0 1 )
t1 ( 0 0
0 1 )
l0
( 1 0
0 0 )
l1
( 0 0
0 1 )
( 1 0
0 0 )
l0
( 1 0
0 0 )
l1
( 0 0
0 1 )
( 0 0
0 1 )
Let ρ =
3/4
√
3/4
√
3/4 1/4
r1r2 = {(5
8 , ( 1 0
0 0 )), (3
8 , ( 0 0
0 1 ))
r1r2 =
5
8 0
0 3
8
3
4
1
1
2
1
1
1
2
1
1
2
1
1
1
2
1
1
4
1
1
2
1
1
1
2
1
1
1
2
1
1
2
1
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 17 / 20
Outline
Density matrices and quantum mechanics
Postulates of quantum mechanics
Density matrices
Postulates of quantum mechanics with density matrices
λρ
Untyped
Typed language
Denotational semantics
λ◦
ρ
Taking advantage of density matrices
Conclusions
λ◦
ρ : taking advantage of density matrices
t := x | λx.t | tt (lambda calculus)
| ρn
| Un
t | πn
t | t ⊗ t (the 4 postulates)
| (bm
, ρn
) | letcase x = r in {t . . . t} (classical control over meas.)
|
n
i=1
pi ti | letcase◦
x = r in {t . . . t} (probabilistic control)
(λx.t)r → t[r/x]
Um
ρn
→ ρ
n
πm
ρn
−→pi
(im
, ρn
i )
ρ1 ⊗ ρ2 → ρ
letcase x = (bm
, ρn
) in {t0, . . . , t2m−1} → tbm [ρn
/x]
letcase◦
x = πm
ρn
in {t0, . . . , t2m−1} →
i
pi ti [ρn
i /x]
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 18 / 20
Example 2 again
Measure a given ρ and then toss a coin to decide whether to return the
resulting state of the measurement, or the output of a tossing a new coin.
t = (letcase◦
y = π1
1
2
1
2
1
2
1
2
in {λx.letcase◦
z = π1
1
2
1
2
1
2
1
2
in {z, z}, λx.x}
)
(letcase◦
z = π1
ρ in {z, z})
t →∗
5
8 0
0 3
8
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 19 / 20
Summarising
λρ: classical control/quantum data (data = density matrices)
λ◦
ρ : probabilistic control/quantum data
Same denotational semantics
Future works
Comparison between λρ/λ◦
ρ, and Selinger-Valiron’s λq
(with Agustín Borgna (UBA))
Implementation of a simulator in Haskell
(with Alan Rodas and Pablo E. Martínez López (UNQ))
Polymorphic extension and proofs of SN and confluence
(with Lucas Romero (UBA))
Studding a fixed point operator
(with Malena Ivnisky and Hernán Melgratti (UBA))
Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 20 / 20

More Related Content

What's hot

Phase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsPhase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsStefan Eng
 
Sampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsSampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsStephane Senecal
 
Unbiased Bayes for Big Data
Unbiased Bayes for Big DataUnbiased Bayes for Big Data
Unbiased Bayes for Big DataChristian Robert
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsMeenakshisundaram N
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilakyknv4
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical MethodsChristian Robert
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical MethodsChristian Robert
 
Seismic data processing lecture 3
Seismic data processing lecture 3Seismic data processing lecture 3
Seismic data processing lecture 3Amin khalil
 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrangeSamuelOseiAsare
 

What's hot (20)

2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
Phase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle SystemsPhase-Type Distributions for Finite Interacting Particle Systems
Phase-Type Distributions for Finite Interacting Particle Systems
 
Statistical Physics Assignment Help
Statistical Physics Assignment HelpStatistical Physics Assignment Help
Statistical Physics Assignment Help
 
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
QMC Program: Trends and Advances in Monte Carlo Sampling Algorithms Workshop,...
 
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
2018 MUMS Fall Course - Bayesian inference for model calibration in UQ - Ralp...
 
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
2018 MUMS Fall Course - Statistical and Mathematical Techniques for Sensitivi...
 
Sampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methodsSampling strategies for Sequential Monte Carlo (SMC) methods
Sampling strategies for Sequential Monte Carlo (SMC) methods
 
Unbiased Bayes for Big Data
Unbiased Bayes for Big DataUnbiased Bayes for Big Data
Unbiased Bayes for Big Data
 
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...
 
Interpolation
InterpolationInterpolation
Interpolation
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Chris Sherlock's slides
Chris Sherlock's slidesChris Sherlock's slides
Chris Sherlock's slides
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilaky
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical Methods
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical Methods
 
A bit about мcmc
A bit about мcmcA bit about мcmc
A bit about мcmc
 
Dag in mmhc
Dag in mmhcDag in mmhc
Dag in mmhc
 
Seismic data processing lecture 3
Seismic data processing lecture 3Seismic data processing lecture 3
Seismic data processing lecture 3
 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrange
 

Similar to A lambda calculus for density matrices with classical and probabilistic controls

2012 mdsp pr05 particle filter
2012 mdsp pr05 particle filter2012 mdsp pr05 particle filter
2012 mdsp pr05 particle filternozomuhamada
 
2012 mdsp pr03 kalman filter
2012 mdsp pr03 kalman filter2012 mdsp pr03 kalman filter
2012 mdsp pr03 kalman filternozomuhamada
 
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...AIST
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical MethodsTeja Ande
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Rediet Moges
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsElvis DOHMATOB
 
New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...Alexander Litvinenko
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianTomonari Masada
 
Random Matrix Theory and Machine Learning - Part 2
Random Matrix Theory and Machine Learning - Part 2Random Matrix Theory and Machine Learning - Part 2
Random Matrix Theory and Machine Learning - Part 2Fabian Pedregosa
 
Notions of equivalence for linear multivariable systems
Notions of equivalence for linear multivariable systemsNotions of equivalence for linear multivariable systems
Notions of equivalence for linear multivariable systemsStavros Vologiannidis
 
Linear models for classification
Linear models for classificationLinear models for classification
Linear models for classificationSung Yub Kim
 
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...ijcsa
 
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...ijcsa
 

Similar to A lambda calculus for density matrices with classical and probabilistic controls (20)

2012 mdsp pr05 particle filter
2012 mdsp pr05 particle filter2012 mdsp pr05 particle filter
2012 mdsp pr05 particle filter
 
KAUST_talk_short.pdf
KAUST_talk_short.pdfKAUST_talk_short.pdf
KAUST_talk_short.pdf
 
534 hw2
534 hw2534 hw2
534 hw2
 
2012 mdsp pr03 kalman filter
2012 mdsp pr03 kalman filter2012 mdsp pr03 kalman filter
2012 mdsp pr03 kalman filter
 
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...
Gracheva Inessa - Fast Global Image Denoising Algorithm on the Basis of Nonst...
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
 
ch3.ppt
ch3.pptch3.ppt
ch3.ppt
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
 
MVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priorsMVPA with SpaceNet: sparse structured priors
MVPA with SpaceNet: sparse structured priors
 
New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...
 
Mcqmc talk
Mcqmc talkMcqmc talk
Mcqmc talk
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
 
Random Matrix Theory and Machine Learning - Part 2
Random Matrix Theory and Machine Learning - Part 2Random Matrix Theory and Machine Learning - Part 2
Random Matrix Theory and Machine Learning - Part 2
 
Notions of equivalence for linear multivariable systems
Notions of equivalence for linear multivariable systemsNotions of equivalence for linear multivariable systems
Notions of equivalence for linear multivariable systems
 
Linear models for classification
Linear models for classificationLinear models for classification
Linear models for classification
 
Jere Koskela slides
Jere Koskela slidesJere Koskela slides
Jere Koskela slides
 
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...
Nonstationary Relaxed Multisplitting Methods for Solving Linear Complementari...
 
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...
NONSTATIONARY RELAXED MULTISPLITTING METHODS FOR SOLVING LINEAR COMPLEMENTARI...
 

More from Alejandro Díaz-Caro

Typing quantum superpositions and measurement
Typing quantum superpositions and measurementTyping quantum superpositions and measurement
Typing quantum superpositions and measurementAlejandro Díaz-Caro
 
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 controlAlejandro Díaz-Caro
 
Affine computation and affine automaton
Affine computation and affine automatonAffine computation and affine automaton
Affine computation and affine automatonAlejandro Díaz-Caro
 
Simply typed lambda-calculus modulo isomorphisms
Simply typed lambda-calculus modulo isomorphismsSimply typed lambda-calculus modulo isomorphisms
Simply typed lambda-calculus modulo isomorphismsAlejandro Díaz-Caro
 
The probability of non-confluent systems
The probability of non-confluent systemsThe probability of non-confluent systems
The probability of non-confluent systemsAlejandro Díaz-Caro
 
Vectorial types, non-determinism and probabilistic systems: Towards a computa...
Vectorial types, non-determinism and probabilistic systems: Towards a computa...Vectorial types, non-determinism and probabilistic systems: Towards a computa...
Vectorial types, non-determinism and probabilistic systems: Towards a computa...Alejandro Díaz-Caro
 
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
 
Non determinism through type isomophism
Non determinism through type isomophismNon determinism through type isomophism
Non determinism through type isomophismAlejandro Díaz-Caro
 
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 disciplineAlejandro Díaz-Caro
 
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"Alejandro Díaz-Caro
 
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 settingAlejandro Díaz-Caro
 
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-calculusAlejandro Díaz-Caro
 
Equivalence of algebraic λ-calculi
Equivalence of algebraic λ-calculiEquivalence of algebraic λ-calculi
Equivalence of algebraic λ-calculiAlejandro Díaz-Caro
 

More from Alejandro Díaz-Caro (15)

Typing quantum superpositions and measurement
Typing quantum superpositions and measurementTyping quantum superpositions and measurement
Typing quantum superpositions and measurement
 
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
 
Vectorial types, non-determinism and probabilistic systems: Towards a computa...
Vectorial types, non-determinism and probabilistic systems: Towards a computa...Vectorial types, non-determinism and probabilistic systems: Towards a computa...
Vectorial types, non-determinism and probabilistic systems: Towards a computa...
 
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...
 
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
 
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"
 
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
 
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
 
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
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

A lambda calculus for density matrices with classical and probabilistic controls

  • 1. A lambda calculus for density matrices with classical and probabilistic controls Alejandro Díaz-Caro UNIVERSIDAD NACIONAL DE QUILMES & CONICET Buenos Aires, Argentina APLAS 2017 November 27-29, 2017, Suzhou, China
  • 2. Motivation Two paradigms make qubit 0 → q1; make qubit 1 → q2; apply CNOT q1 q2; if(measure q1) then . . . |0 • |1 (αP1 + αP2) |ψ → αP1 |ψ + αP2 |ψ → α |φ + α |ϕ Classical control / quantum data Quantum control In this work we propose a paradigm in between: “Probabilistic control” or “Weak quantum control” Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 1 / 20
  • 3. Outline Density matrices and quantum mechanics Postulates of quantum mechanics Density matrices Postulates of quantum mechanics with density matrices λρ Untyped Typed language Denotational semantics λ◦ ρ Taking advantage of density matrices Conclusions
  • 4. Postulates of quantum mechanics Postulate 1: State space The state of an isolated quantum system can be fully described by a state vector, which is a unit vector in a complex Hilbert space∗ . ∗ Hilbert space: Vector space with inner product, complete in its norm Examples Space Vectors C2 |0 = ( 1 0 ) |1 = ( 0 1 ) 1√ 2 |0 + 1√ 2 |1 = 1√ 2 1√ 2 C4 = C2 ⊗ C2 |00 = 1 0 0 0 1√ 3 |00 + √ 2√ 3 |11 =   1√ 3 0 0√ 2√ 3   Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 2 / 20
  • 5. Postulates of quantum mechanics Postulate 2: Evolution The evolution of an isolated quantum system can be described by a unitary matrix∗ . |ψ = U |ψ ∗ U unitary if U† = U−1 . Examples H = 1√ 2 1 1 1 −1 H ( 1 0 ) = 1√ 2 1√ 2 = |+ H ( 0 1 ) = 1√ 2 −1√ 2 = |− Not = ( 0 1 1 0 ) Not ( 1 0 ) = ( 0 1 ) Not ( 0 1 ) = ( 1 0 ) Z = 1 0 0 −1 Z |+ = |− Z |− = |+ Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 3 / 20
  • 6. Postulates of quantum mechanics Postulate 3: Measurement The quantum measurement is described by a collection of measurement matrices∗ {Mi }i , where i is the output of the measurement. Condition over {Mi }i : i M† i Mi = I The probability of measuring i is: pi = ψ| M† i Mi |ψ The state after measuring i is: |ψ = Mi |ψ √ pi ∗ square matrices with complex coefficients ψ| = |ψ † Example {M0, M1} with M1 = ( 1 0 0 0 ), M2 = ( 0 0 0 1 ). p0 = √ 2√ 3 1√ 3 ( 1 0 0 0 ) 2 √ 2√ 3 1√ 3 = 2 3 1√ p0 M0 √ 2√ 3 1√ 3 = 1√ p0 √ 2√ 3 0 = ( 1 0 ) p1 = √ 2√ 3 1√ 3 ( 0 0 0 1 ) 2 √ 2√ 3 1√ 3 = 1 3 1√ p0 M1 √ 2√ 3 1√ 3 = 1√ p1 0 1√ 3 = ( 0 1 ) In general, with those {M0, M1}, the vector ( a b ) measures 0 with probability |a|2 and 1 with probability |b|2 , and the sates after measuring are ( 1 0 ) y ( 0 1 ) respectively. Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 4 / 20
  • 7. Postulates of quantum mechanics Postulate 4: Composed system The sate space of a composed system is the tensor product of the state space of its components. Given n systems in states |ψ1 , . . . , |ψn , the composed system is |ψ1 ⊗ |ψ2 ⊗ · · · ⊗ |ψn Example System 1: |ψ = 1√ 2 1√ 2 System 2: |φ = 1√ 5 2√ 5 Composed system |ψ ⊗ |φ : 1√ 2 1√ 2 ⊗ 1√ 5 2√ 5 =    1√ 10 2√ 10 1√ 10 2√ 10    Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 5 / 20
  • 8. Density matrices A representation of our ignorance about the system Definition (Density matrix) Mixed state: A distribution set of pure states: {(pi , |ψi )}i Density matrix: ρ = i pi |ψi ψi | Characterisation: ρ density matrix ⇔ tr(ρ) = 1 ∧ ρ positive Let M = {M0, M1}, with M0 and M1 projecting to the canonical base After measuring ( α β ): ( 1 0 ) with probability |α|2 ( 0 1 ) with probability |β|2 Example: Pre and post measure {(|α|2 , ( 1 0 )), (|β|2 , ( 0 1 ))} ⇒ ρ=|α|2 ( 1 0 ) ( 1 0 )+|β|2 ( 0 1 ) ( 0 1 )= |α|2 0 0 |β|2 {(1, ( α β ))} ⇒ ρ = ( α β ) ( α∗ β∗ ) = |α|2 αβ∗ α∗ β |β|2 Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 6 / 20
  • 9. Postulates of quantum mechanics with density matrices Postulate 1 (with vectors): State space The state of an isolated quantum system can be fully described by a state vector, which is a unit vector in a complex Hilbert space. Postulate 1 (with matrices): State space The state of an isolated quantum system can be fully described by a density matrix, which is a square matrix ρ with trace 1 acting on a complex Hilbert space. If a quantum system is in state ρi with probability pi , the density matrix of the system is i pi ρi Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 7 / 20
  • 10. Postulates of quantum mechanics with density matrices Postulate 2 (with vectors): Evolution The evolution of an isolated quantum system can be described by a unitary matrix. |ψ = U |ψ Postulate 2 (with matrices): Evolution The evolution of an isolated quantum system can be described by a unitary matrix. ρ = UρU† Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 8 / 20
  • 11. Postulates of quantum mechanics with density matrices Postulate 3 (with vectors): Measurement The quantum measurement is described by a collection of measurement matrices {Mi }i , where i is the output of the measurement. Condition over {Mi }i : i M† i Mi = I The probability of measuring i is: pi = ψ| M† i Mi |ψ The state after measuring i is: |ψ = Mi |ψ √ pi Postulate 3 (with matrices): Measurement The quantum measurement is described by a collection of measurement matrices {Mi }i , where i is the output of the measurement. Condition over {Mi }i : i M† i Mi = I The probability of measuring i is: pi = tr(M† i Mi ρ) The state after measuring i is: ρ = Mi ρM† i pi (|ψ ψ |) Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 9 / 20
  • 12. Postulates of quantum mechanics with density matrices Postulate 4 (with vectors): Composed system The sate space of a composed system is the tensor product of the state space of its components. Given n systems in states |ψ1 , . . . , |ψn , the composed system is |ψ1 ⊗ |ψ2 ⊗ · · · ⊗ |ψn Postulate 4 (with matrices): Composed system The sate space of a composed system is the tensor product of the state space of its components. Given n systems in states ρ1, . . . , ρn, the composed system is ρ1 ⊗ ρ2 ⊗ · · · ⊗ ρn Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 10 / 20
  • 13. Example [Nielsen-Chuang p371] Experiment 1: Toss a coin Experiment 2: Toss a coin to decide whether or not to apply Z to 1√ 2 1√ 2 Experiment 1 {(1/2, ( 1 0 )), (1/2, ( 0 1 ))} ρ1 = 1/2 ( 1 0 ) ( 1 0 ) + 1/2 ( 0 1 ) ( 0 1 ) = 1/2 0 0 1/2 Experiment 2 {(1/2, 1√ 2 1√ 2 ), (1/2, 1√ 2 −1√ 2 )} ρ2 = 1/2 1√ 2 1√ 2 ( 1√ 2 1√ 2 ) + 1/2 1√ 2 −1√ 2 ( 1√ 2 −1√ 2 ) = 1/2 0 0 1/2 Same density matrix does not imply same mixed state But mixed states with same density matrices are indistinguishable Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 11 / 20
  • 14. Outline Density matrices and quantum mechanics Postulates of quantum mechanics Density matrices Postulates of quantum mechanics with density matrices λρ Untyped Typed language Denotational semantics λ◦ ρ Taking advantage of density matrices Conclusions
  • 15. Untyped λρ t := x | λx.t | tt (lambda calculus) | ρn | Un t | πn t | t ⊗ t (the 4 postulates) | (bm , ρn ) | letcase x = r in {t . . . t} (classical control over meas.) where πn = {π0, . . . , π2n−1} is a measurement in the computational base bm is a m-bits number (λx.t)r −→1 t[r/x] Um ρn −→1 ρ n πm ρn −→pi (im , ρn i ) ρ1 ⊗ ρ2 −→1 ρ letcase x = (bm , ρn ) in {t0, . . . , t2m−1} −→1 tbm [ρn /x] Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 12 / 20
  • 16. Types A := n | (m, n) | A A Γ, x : A x : A ax Γ, x : A t : B Γ λx.t : A B i Γ t : A B ∆ r : A Γ, ∆ tr : B e Γ ρn : n axρ Γ t : n Γ Um t : n u Γ t : n Γ πm t : (m, n) m Γ t : n ∆ r : m Γ, ∆ t ⊗ r : n + m ⊗ Γ (bm , ρn ) : (m, n) axam ∆, x : n t0 : A . . . ∆, x : n t2m−1 : A Γ r : (m, n) Γ, ∆ letcase x = r in {t0, . . . , t2m−1} : A lc with m ≤ n and 0 ≤ bm < 2m . Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 13 / 20
  • 17. Denotational semantics Intuition πn ρn = {(p0, ρ0), . . . , (p2n−1, ρ2n−1)} where, with probability pi the final state is ρi πn ρn = i pi ρi In general: t = {(pi , ei )}i with ei density matrix or function from density matrices to density matrices t = i pi ei where (a.f + b.g)(x) = a.f (x) + b.g(x) n = (m, n) = Dn A B = DDA DB = DA DB Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 14 / 20
  • 18. Example 1 Experiment 1: Toss a coin Experiment 2: Toss a coin to decide whether or not to apply Z to 1 2 1 2 1 2 1 2 Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
  • 19. Example 1 Experiment 1: Toss a coin Experiment 2: Toss a coin to decide whether or not to apply Z to 1 2 1 2 1 2 1 2 Experiment 1: π1 1 2 1 2 1 2 1 2 Experiment 2: letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
  • 20. Example 1 Experiment 1: Toss a coin Experiment 2: Toss a coin to decide whether or not to apply Z to 1 2 1 2 1 2 1 2 Experiment 1: π1 1 2 1 2 1 2 1 2 π1 1 2 1 2 1 2 1 2 = {(1 2 , ( 1 0 0 0 )), (1 2 , ( 0 0 0 1 ))} Experiment 2: letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } = {(1 2 , 1 2 1 2 1 2 1 2 ), (1 2 , 1 2 − 1 2 − 1 2 1 2 )} Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
  • 21. Example 1 Experiment 1: Toss a coin Experiment 2: Toss a coin to decide whether or not to apply Z to 1 2 1 2 1 2 1 2 Experiment 1: π1 1 2 1 2 1 2 1 2 π1 1 2 1 2 1 2 1 2 = {(1 2 , ( 1 0 0 0 )), (1 2 , ( 0 0 0 1 ))} Experiment 2: letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } = {(1 2 , 1 2 1 2 1 2 1 2 ), (1 2 , 1 2 − 1 2 − 1 2 1 2 )} letcase x = π1 1 2 1 2 1 2 1 2 in { 1 2 1 2 1 2 1 2 , Z 1 2 1 2 1 2 1 2 } = 1 2 0 0 1 2 = π1 1 2 1 2 1 2 1 2 Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 15 / 20
  • 22. Example 2 Measure a given ρ and then toss a coin to decide whether to return the resulting state of the measurement, or the output of a tossing a new coin. t = (letcase y = π1 1 2 1 2 1 2 1 2 in {λx.letcase z = π1 1 2 1 2 1 2 1 2 in {z, z}, λx.x} ) (letcase z = π1 ρ in {z, z}) Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 16 / 20
  • 23. Example 2 A possible trace (confluence of trees to be proven following [DC-Martínez LSFA’17]) (letcase y = π1 1 2 1 2 1 2 1 2 in { to λx.letcase z = π1 1 2 1 2 1 2 1 2 s in {z, z}, t1 λx.x}) r1 (letcase z = π1 ρ in {z, z}) r2 r1r2 r1l0 r1l1 r1 ( 1 0 0 0 ) r1 ( 0 0 0 1 ) r0 1 ( 1 0 0 0 ) r1 1 ( 1 0 0 0 ) t0 ( 1 0 0 0 ) letcase y = s in {y, y} t1 ( 1 0 0 0 ) r0 1 ( 0 0 0 1 ) t0 ( 0 0 0 1 ) letcase y = s in {y, y} r1 1 ( 0 0 0 1 ) t1 ( 0 0 0 1 ) l0 ( 1 0 0 0 ) l1 ( 0 0 0 1 ) ( 1 0 0 0 ) l0 ( 1 0 0 0 ) l1 ( 0 0 0 1 ) ( 0 0 0 1 ) Let ρ = 3/4 √ 3/4 √ 3/4 1/4 r1r2 = {(5 8 , ( 1 0 0 0 )), (3 8 , ( 0 0 0 1 )) r1r2 = 5 8 0 0 3 8 3 4 1 1 2 1 1 1 2 1 1 2 1 1 1 2 1 1 4 1 1 2 1 1 1 2 1 1 1 2 1 1 2 1 Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 17 / 20
  • 24. Outline Density matrices and quantum mechanics Postulates of quantum mechanics Density matrices Postulates of quantum mechanics with density matrices λρ Untyped Typed language Denotational semantics λ◦ ρ Taking advantage of density matrices Conclusions
  • 25. λ◦ ρ : taking advantage of density matrices t := x | λx.t | tt (lambda calculus) | ρn | Un t | πn t | t ⊗ t (the 4 postulates) | (bm , ρn ) | letcase x = r in {t . . . t} (classical control over meas.) | n i=1 pi ti | letcase◦ x = r in {t . . . t} (probabilistic control) (λx.t)r → t[r/x] Um ρn → ρ n πm ρn −→pi (im , ρn i ) ρ1 ⊗ ρ2 → ρ letcase x = (bm , ρn ) in {t0, . . . , t2m−1} → tbm [ρn /x] letcase◦ x = πm ρn in {t0, . . . , t2m−1} → i pi ti [ρn i /x] Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 18 / 20
  • 26. Example 2 again Measure a given ρ and then toss a coin to decide whether to return the resulting state of the measurement, or the output of a tossing a new coin. t = (letcase◦ y = π1 1 2 1 2 1 2 1 2 in {λx.letcase◦ z = π1 1 2 1 2 1 2 1 2 in {z, z}, λx.x} ) (letcase◦ z = π1 ρ in {z, z}) t →∗ 5 8 0 0 3 8 Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 19 / 20
  • 27. Summarising λρ: classical control/quantum data (data = density matrices) λ◦ ρ : probabilistic control/quantum data Same denotational semantics Future works Comparison between λρ/λ◦ ρ, and Selinger-Valiron’s λq (with Agustín Borgna (UBA)) Implementation of a simulator in Haskell (with Alan Rodas and Pablo E. Martínez López (UNQ)) Polymorphic extension and proofs of SN and confluence (with Lucas Romero (UBA)) Studding a fixed point operator (with Malena Ivnisky and Hernán Melgratti (UBA)) Alejandro Díaz-Caro (UNQ Argentina) A lambda calculus for density matrices 20 / 20