Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

47
Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015

Transcript of Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Page 1: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Quantum Gibbs Samplers

Fernando G.S.L. BrandãoQuArC, Microsoft Research

Q-QuArC Retreat, 2015

Page 2: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Dynamical Properties

Hij

Hamiltonian:

State at time t:

Compute:

Expectation values:

Temporal correlations:

Page 3: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Quantum Simulators, Dynamical

Quantum Computer Can simulate the dynamics of every multi-particle quantum system

Spin models (Lloyd ‘96, …, Berry, Childs, Kothari ‘15) Fermionic and bosonic models (Bravyi, Kitaev ’00, …) Topological quantum field theory (Freedman, Kitaev, Wang ‘02) Quantum field theory (Jordan, Lee, Preskill ‘11) Quantum Chemestry (Hastings, Wecker, Bauer, Triyer ’14)

Quantum Simulators Can simulate the dynamics of particular models

Optical LatticesIon TrapsSuperconducting systems…

Page 4: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Static Properties

Page 5: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Hamiltonian:

Static Properties

Hij

Page 6: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Hamiltonian:

Groundstate:

Thermal state:

Compute: local expectation values (e.g. magnetization), correlation functions (e.g. ), …

Static Properties

Hij

Page 7: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Static PropertiesCan we prepare groundstates?

Warning: in general hard, even for one-dimensional translational-invariant models (…, Gottesman-Irani ‘09)

Page 8: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Static PropertiesCan we prepare groundstates?

Warning:I in general hard, even for one-dimensional translational-invariant models

Method 1: Adiabatic Evolution; works if Δ ≥ n-c

Method 2: Phase Estimation; works if can find a “simple” state |0>

such that

*

(Abrams, Lloyd ‘99)

H(si)ψi

H(s)ψs = E0,sψs

Δ := min Δ(s)H(s)ψs

H(sf)

(…, Gottesman-Irani ‘09)

Page 9: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Static PropertiesCan we prepare thermal states?

Warning: NP-hard to estimate energy of general classical Gibbs states

Page 10: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Static PropertiesCan we prepare thermal states?

Are quantum computers useful in some cases?

Warning: NP-hard to estimate energy of general classical Gibbs states

Page 11: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Plan

1. Classical Glauber dynamics

2. Mixing in space vs mixing in time

3. Quantum Master Equations

4. Mixing in space vs mixing in time for commuting quantum systems

5. Approach to non-commuting

6. Potential Applications

Page 12: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

ThermalizationCan we prepare thermal states?

Method 1: Couple to a bath of the right temperature and wait.

But size of environment might be huge. Maybe not efficient. No guarantee Gibbs state will be reached

S B

Page 13: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Method 2 (classical): Metropolis Sampling

Consider e.g. Ising model:

Coupling to bath modeled by stochastic map Q

The stationary state is the thermal (Gibbs) state:

Metropolis Update:

i j

Page 14: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Consider e.g. Ising model:

Coupling to bath modeled by stochastic map Q

The stationary state is the thermal (Gibbs) state:

Metropolis Update:

• (Metropolis et al ’53) “We devised a general method to calculate the properties of any substance comprising individual molecules with classical statistics”

• Example of Markov Chain Monte Carlo method. Extremely useful algorithmic technique

i j

Method 2 (classical): Metropolis Sampling

Page 15: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Glauber Dynamics

A stochastic map R = eG is a Glauber dynamics for a (classical) Hamiltonian if it’s generator G is local and the unique fixed point of R is e-βH/Z(β) (+ detailed balance) Ex: Metropolis, Heat-bath generator, ….

Page 16: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Glauber Dynamics

A stochastic map R = eG is a Glauber dynamics for a (classical) Hamiltonian if it’s generator G is local and the unique fixed point of R is e-βH/Z(β) (+ detailed balance) Ex: Metropolis, Heat-bath generator, ….

Rapidly mixing Glauber dynamics

Gibbs state with finite correlation

length

Gibbs Sampling in P (vs NP -hard)

(Stroock, Zergalinski ’92; Martinelli, Olivieri ’94, …)

When is Glauber dynamics effective for sampling from Gibbs state?

(Sly ‘10)

(Proved only for hard core mode and 2-spin anti- ferromagetic model)

Page 17: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Temporal Mixing

eigenvalueseigenprojectors

Convergence time given by the gap Δ = 1- λ1:

Time of equilibration ≈ n/Δ

We have rapid mixing if Δ = constant

transition matrixafter t time steps

Page 18: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Spatial MixingLet be the Gibbs state for a model in the lattice V with boundary conditions τ, i.e.

blue: V, red: boundary

0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0

00000

00000

Ex. τ = (0, … 0)

Page 19: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Spatial MixingLet be the Gibbs state for a model in the lattice V with boundary conditions τ, i.e.

blue: V, red: boundary

0 0 0 0 0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0 0 0 0 0

00000

00000

Ex. τ = (0, … 0)def: The Gibbs state has correlation length ξ if for every f, g

fg

Page 20: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Temporal Mixing <-> Spatial Mixing(Stroock, Zergalinski ’92; Martinelli, Olivieri ’94, …) For every classical Hamiltonian, the Gibbs state has finite correlation length if, and only if, the Glauber dynamics has a finite gap

Page 21: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Obs1: Same is true for the log-Sobolev constant of the system

Obs2: For many models, when correlation length diverges, gap is exponentially small in the system size (e.g. Ising model)

Obs3: Any model in 1D, and any model in arbitrary dim. at high enough temperature, has a finite correlation length(connected to uniqueness of the phase, e.g. Dobrushin’s condition)

(Stroock, Zergalinski ’92; Martinelli, Olivieri ’94, …) For every classical Hamiltonian, the Gibbs state has finite correlation length if, and only if, the Glauber dynamics has a finite gap

Temporal Mixing <-> Spatial Mixing

Page 22: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Obs1: Same is true for the log-Sobolev constant of the system

Obs2: For many models, when correlation length diverges, gap is exponentially small in the system size (e.g. Ising model)

Obs3: Any model in 1D, and any model in arbitrary dim. at high enough temperature, has a finite correlation length(connected to uniqueness of the phase, e.g. Dobrushin’s condition)

(Stroock, Zergalinski ’92; Martinelli, Olivieri ’94, …) For every classical Hamiltonian, the Gibbs state has finite correlation length if, and only if, the Glauber dynamics has a finite gap

Does something similar hold in the quantum case?

1st step: Need a quantum version of Glauber dynamics…

Temporal Mixing <-> Spatial Mixing

Page 23: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Preparing Quantum Thermal States(Terhal and diVincenzo ’00, …) Simulate interaction of system with heat bath no run-time estimate

(Poulin, Wocjan ’09, …) Grover-type speed-up for preparing Gibbs states exponential run-time

(Temme et al ‘09) Quantum metropolis: Quantum channel s.t. (i) can be implemented efficiently on a quantum computer and (ii) has Gibbs state as fixed point no run-time estimate

(Yung, Aspuru-Guzik ‘10) Amplitude amplification applied to quantum metropolis: Square-root speed-up on spectral gap. no run-time estimate

(Hastings ’08; Bilgin, Boixo ’10) Poly-time quantum/classical algorithm for every 1D model restricted to 1D

Page 24: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Lindblad Equation:

(most general Markovian and time homogeneous q. master equation)

Canonical example: cavity QED

Quantum Master Equations

Page 25: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Lindblad Equation:

(most general Markovian and time homogeneous q. master equation)

Quantum Master Equations

Generator completely positive trace-preserving map:

fixed point:

How fast does it converge? Determined by gap of of Lindbladian

Canonical example: cavity QED

Page 26: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Lindblad Equation:

Quantum Master EquationsCanonical example: cavity QED

Local master equations: L is k-local if all Ai act on at most k sites

(Kliesch et al ‘11) Time evolution of every k-local Lindbladian on n qubits can be simulated in time poly(n, 2^k) in the circuit model

Ai

Page 27: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Davies MapsLindbladian:

Lindblad terms:

: spectral density

Page 28: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Lindbladian:

Lindblad terms:

Hij

Sα (Xα, Yα, Zα)

: spectral density

Thermal state is the unique fixed point:

(satisfies q. detailed balance: )

Davies Maps

Page 29: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Why Davies Maps?

(Davies ‘74) Rigorous derivation in the weak-coupling limit: Coarse grain over time t ≈ λ-2 >> max(1/ (Ei – Ej + Ek - El)) (Ei: eigenvalues of H)

Interacting Ham.

Page 30: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Why Davies Maps?

(Davies ‘74) Rigorous derivation in the weak-coupling limit: Coarse grain over time t ≈ λ-2 >> max(1/ (Ei – Ej + Ek - El)) (Ei: eigenvalues of H)

But: for n spin Hamiltonian H: max(1/ (Ei – Ej + Ek - El)) = exp(O(n))

Consequence: Sα(ω) are non-local (act on n qubits);

But for commuting Hamiltonian H, it is local

Interacting Ham.

Page 31: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Gap

The relevant gap is given by

L2 weighted inner product:

Variance:

Gap equal to spectral gap of

Mixing time of order

Page 32: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Previous Results

(Alicki, Fannes, Horodecki ‘08) Λ = Ω(1) for 2D toric code

(Alicki, Horodecki, Horodecki, Horodecki ‘08) Λ = exp(-Ω(n)) for 4D toric code

(Temme ‘14) Λ > exp(- βε)/n, with ε the energy barrier, for stabilizer Hamiltonians

Gap has been estimated for:

Page 33: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Equivalence of Clustering in Space and Time for Quantum Commuting

thm For commuting Hamiltonians in a finite dimensional lattice, the Davies generator has a constant gap if, and only if, the Gibbs state satisfies strong clustering of correlations

(Kastoryano, B. 1409.3435)

Page 34: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Equivalence of Clustering in Space and Time for Quantum Commuting

Strong Clustering holds true in:

• 1D at any temperature• Any D at sufficiently high temperature (critical T determined only by dim and interaction range)

thm For commuting Hamiltonians in a finite dimensional lattice, the Davies generator has a constant gap if, and only if, the Gibbs state satisfies strong clustering of correlations

Page 35: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Equivalence of Clustering in Space and Time for Quantum Commuting

Strong Clustering holds true in:

• 1D at any temperature• Any D at sufficiently high temperature (critical T determined only by dim and interaction range)

Gives first polynomial-time quantum algorithm for preparing Gibbs states of commuting models at high temperature.

Caveat: At high temperature cluster expansion works well for computing local expectation values. (Open: How the two threshold T’s compare?)

Q advantage: we get the full Gibbs state (e.g. could perform swap test of purifications of two Gibbs states. Good for anything?)

thm For commuting Hamiltonians in a finite dimensional lattice, the Davies generator has a constant gap if, and only if, the Gibbs state satisfies strong clustering of correlations

Page 36: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Strong Clustering

A B

def: Strong clustering holds if there is ξ>0 s.t. for every A and B and operator f acting on

Conditional Covariance:

Conditional Expectation:

Xc : complement of X

d(X, Y) : distance between regions X and Y

Page 37: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Strong Clustering

A B

def: Strong clustering holds if there is ξ>0 s.t. for every A and B and operator f acting on

Fact 1:

Fact 2: Strong clustering follows if

Page 38: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Strong Clustering -> GapWe show that under the clustering condition:

A B

Getting:

V : entire latticeV0 : sublattice of size O(ξ)

Key lemma: If

then

Follows idea of a proof of the classical analogue for Glauber dynamics (Bertini et al ‘00)

Page 39: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Gap -> Strong Clustering

Employs the following mapping between Liouvillians for commuting Hamiltonians and local Hamiltonians on a larger space:

Apply the detectability lemma (Aharonov et al ‘10) to prove gap -> strong clustering (strengthening proof previous proof that gap -> clustering)

Page 40: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Non-Commuting Hamiltonians?Davies Master Equation is Non-Local…

Question: Can it be implemented efficiently on a quantum computer?

Page 41: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Non-Commuting Hamiltonians?Davies Master Equation is Non-Local… Beyond master equations:

def: Hamiltonian H satisfies local indistinguishability (LI) if for every

A B

Λ

Page 42: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Non-Commuting Hamiltonians?Davies Master Equation is Non-Local… Beyond master equations:

def: Hamiltonian H satisfies local indistinguishability (LI) if for every

thm Suppose H (local Ham in d dim) satisfies LI and for every region A,

Then e-H/T/Z(T) can be created by a quantumcircuit of size exp(O(logd(n)))

A Bl

l

Based on recent lower bound by Fawzi and Renner on conditional mutual information

Page 43: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Non-Commuting Hamiltonians?Davies Master Equation is Non-Local… Beyond master equations:

def: Hamiltonian H satisfies local indistinguishability (LI) if for every

thm Suppose H (local Ham in d dim) satisfies LI and for every region A,

Then e-H/T/Z(T) can be created by a quantumcircuit of size exp(O(logd(n)))

A Bl

l

• When is the requirement on mutual information true? (always true for commuting models)

• Can we improve to poly(n) time?

Page 44: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Applications of Q. Gibbs Samplers1. Machine Learning? (Nate’s talk)2. Quantum Algorithms for semidefinite programming?

O(d4log(1/ε))-time algorithm (interior point methods)

For sparse Ai, Y, is there a polylog(d) quantum algorithm? (think of HHL quantum algorithm for linear equations)

Page 45: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Applications of Q. Gibbs Samplers1. Machine Learning? (Nate’s talk)2. Quantum Algorithms for semidefinite programming?

O(d4log(1/ε))-time algorithm (interior point methods)

For sparse Ai, Y, is there a polylog(d) quantum algorithm? (think of HHL quantum algorithm for linear equations)

No, unless NP in BQP

Page 46: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Applications of Q. Gibbs Samplers1. Machine Learning? (Nate’s talk)2. Quantum Algorithms for semidefinite programming?

(Peng, Tangwongsan ‘12) For Ai > 0 (||A||<1), can reduce the problem to

polylog(d) evaluations of (for λi < log(d)/ε)

Page 47: Quantum Gibbs Samplers Fernando G.S.L. Brandão QuArC, Microsoft Research Q-QuArC Retreat, 2015.

Applications of Q. Gibbs Samplers1. Machine Learning? (Nate’s talk)2. Quantum Algorithms for semidefinite programming?

(Peng, Tangwongsan ‘12) For Ai > 0 (||A||<1), can reduce the problem to

polylog(d) evaluations of (for λi < log(d)/ε)

Are there interesting choices of {Ai} for which quantum gives an advantage to compute the Gibbs states above?