Saturday, 02 May 2015 Speeding up HMC with better integrators A D Kennedy and M A Clark School of Physics & SUPA, The University of Edinburgh Boston University.

Slides:



Advertisements
Similar presentations
Wednesday, 04 June 2014 QCD&NA Yale Using Poisson Brackets on Group Manifolds to Tune HMC A D Kennedy School of Physics, The University of Edinburgh.
Advertisements

Molecular dynamics in different ensembles
Quantum One: Lecture 6. The Initial Value Problem for Free Particles, and the Emergence of Fourier Transforms.
Vector integrals Line integrals Surface integrals Volume integrals Integral theorems The divergence theorem Green’s theorem in the plane Stoke’s theorem.
Poisson Brackets. Matrix Form  The dynamic variables can be assigned to a single set. q 1, q 2, …, q n, p 1, p 2, …, p nq 1, q 2, …, q n, p 1, p 2, …,
HAMILTONIAN STRUCTURE OF THE PAINLEVE’ EQUATIONS.
Hamiltonian Formalism
A journey inside planar pure QED CP3 lunch meeting By Bruno Bertrand November 19 th 2004.
Introduction to Molecular Orbitals
Field quantization via discrete approximations: problems and perspectives. Jerzy Kijowski Center for Theoretical Physics PAN Warsaw, Poland.
The formulation of General Relativity in extended phase space as a way to its quantization T. P. Shestakova Department of Theoretical and Computational.
What is symmetry? Immunity (of aspects of a system) to a possible change.
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
Gauge Invariance and Conserved Quantities
The electromagnetic (EM) field serves as a model for particle fields  = charge density, J = current density.
Mechanics.
Quantum fermions from classical statistics. quantum mechanics can be described by classical statistics !
Wednesday, 24 June 2015 QCD on Teraflop Computers, ZiF The RHMC Algorithm A D Kennedy School of Physics, The University of Edinburgh.
Sunday, 12 July 2015 BNL Domain Wall Fermions and other 5D Algorithms A D Kennedy University of Edinburgh.
VECTOR FUNCTIONS 13. VECTOR FUNCTIONS Later in this chapter, we are going to use vector functions to describe the motion of planets and other objects.
STATIC EQUILIBRIUM [4] Calkin, M. G. “Lagrangian and Hamiltonian Mechanics”, World Scientific, Singapore, 1996, ISBN Consider an object having.
Monday, Apr. 2, 2007PHYS 5326, Spring 2007 Jae Yu 1 PHYS 5326 – Lecture #12, 13, 14 Monday, Apr. 2, 2007 Dr. Jae Yu 1.Local Gauge Invariance 2.U(1) Gauge.
GENERAL PRINCIPLES OF BRANE KINEMATICS AND DYNAMICS Introduction Strings, branes, geometric principle, background independence Brane space M (brane kinematics)
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
Chasing Shadows A D Kennedy University of Edinburgh Tuesday, 06 October 2015 QCD & NA, Regensburg.
21 st of March of 2011 On the role of the boundary terms for the non-Gaussianity Frederico Arroja 이화여자대학교 EWHA WOMANS UNIVERSITY FA and Takahiro Tanaka,
MA Day 55 – April 4, 2013 Section 13.3: The fundamental theorem for line integrals – Review theorems – Finding Potential functions – The Law of.
L.I. Petrova “Specific features of differential equations of mathematical physics.” Investigation of the equations of mathematical physics with the help.
MATH4248 Weeks Topics: review of rigid body motion, Legendre transformations, derivation of Hamilton’s equations of motion, phase space and Liouville’s.
Fundamental principles of particle physics Our description of the fundamental interactions and particles rests on two fundamental structures :
Uniform discretizations: the continuum limit of consistent discretizations Jorge Pullin Horace Hearne Institute for Theoretical Physics Louisiana State.
The embedding-tensor formalism with fields and antifields. Antoine Van Proeyen K.U. Leuven Moscow, 4th Sakharov conf., May 21, 2009.
Solvable Lie Algebras in Supergravity and Superstrings Pietro Fré Bonn February 2002 An algebraic characterization of superstring dualities.
Stable, Circulation- Preserving, Simplicial Fluids Sharif Elcott, Yiying Tong, Eva Kanso, Peter Schröder, and Mathieu Desbrun.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Wednesday, Mar. 5, 2003PHYS 5326, Spring 2003 Jae Yu 1 PHYS 5326 – Lecture #13 Wednesday, Mar. 5, 2003 Dr. Jae Yu Local Gauge Invariance and Introduction.
Ch. 8: Hamilton Equations of Motion Sect. 8.1: Legendre Transformations Lagrange Eqtns of motion: n degrees of freedom (d/dt)[(∂L/∂q i )] - (∂L/∂q i )
Quantum Two 1. 2 Evolution of Many Particle Systems 3.
Advanced EM - Master in Physics We have now calculated all the intermediate derivatives which we need for calculating the fields E and B. We.
1 CE 530 Molecular Simulation Lecture 23 Symmetric MD Integrators David A. Kofke Department of Chemical Engineering SUNY Buffalo
Dr. Wang Xingbo Fall , 2005 Mathematical & Mechanical Method in Mechanical Engineering.
1 MODELING MATTER AT NANOSCALES 4. Introduction to quantum treatments Outline of the principles and the method of quantum mechanics.
A.Sako S.Kuroki T.Ishikawa Graduate school of Mathematics, Hiroshima University Graduate school of Science, Hiroshima University Higashi-Hiroshima ,Japan.
Canonical Equations of Motion -- Hamiltonian Dynamics
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Non-Commutative Einstein Equations and Seiberg–Witten Map Paolo Aschieri,Elisabetta Di Grezia, Giampiero Esposito, INFN, Turin and Naples. Friedmann Seminar,
Chapter 7 Work & Energy Classical Mechanics beyond the Newtonian Formulation.
Monday, Apr. 11, 2005PHYS 3446, Spring 2005 Jae Yu 1 PHYS 3446 – Lecture #18 Monday, Apr. 11, 2005 Dr. Jae Yu Symmetries Local gauge symmetry Gauge fields.
Ch 9.6: Liapunov’s Second Method In Section 9.3 we showed how the stability of a critical point of an almost linear system can usually be determined from.
Lecture from Quantum Mechanics. Marek Zrałek Field Theory and Particle Physics Department. Silesian University Lecture 6.
Wednesday, Nov. 15, 2006PHYS 3446, Fall 2006 Jae Yu 1 PHYS 3446 – Lecture #19 Wednesday, Nov. 15, 2006 Dr. Jae Yu 1.Symmetries Local gauge symmetry Gauge.
Fundamental principles of particle physics Our description of the fundamental interactions and particles rests on two fundamental structures :
From physical assumptions to classical Hamiltonian and Lagrangian particle mechanics Gabriele Carcassi, Christine A. Aidala, David John Baker and Lydia.
PHYS 3446 – Lecture #23 Symmetries Why do we care about the symmetry?
Algebraic Bethe ansatz for the XXZ Heisenberg spin chain
Chapter V Interacting Fields Lecture 1 Books Recommended:
Physics 222 UCSD/225b UCSB Lecture 10 Chapter 14 in H&M.
Geometric Integrators in the Study of Gravitational Collapse
in collaboration with M. Bojowald, G. Hossain, S. Shankaranarayanan
Quantum One.
Hyun Seok Yang Center for Quantum Spacetime Sogang University
Quantized K
Noncommutative Shift Invariant Quantum Field Theory
Shadow Hamiltonians and Force-Gradient Symplectic Integrators
Gauge invariant flow equation
Physics 451/551 Theoretical Mechanics
Physics 451/551 Theoretical Mechanics
Physics 451/551 Theoretical Mechanics
Physics 451/551 Theoretical Mechanics
Quantum One.
Presentation transcript:

Saturday, 02 May 2015 Speeding up HMC with better integrators A D Kennedy and M A Clark School of Physics & SUPA, The University of Edinburgh Boston University A D Kennedy and M A Clark School of Physics & SUPA, The University of Edinburgh Boston University

2 2Saturday, 02 May 2015A D Kennedy Abstract We shall discuss how dynamical fermion computations may be made yet cheaper by using symplectic integrators that conserve energy much more accurately without increasing the integration step size. We will first explain why symplectic integrators exactly conserve a “shadow” Hamiltonian close to the desired one, and how this Hamiltonian may be computed in terms of Poisson brackets. We shall then discuss how classical mechanics may be implemented on Lie groups and derive the form of the Poisson brackets and force terms for some interesting integrators such as those making use of second derivatives of the action (Hessian or force gradient integrators). These will be seen to greatly improved energy conservation for only a small additional cost (one extra inversion of the Dirac operator), and we hope to show that their use significantly reduces the cost of dynamical fermion computations.

3 3Saturday, 02 May 2015A D Kennedy Outline Symmetric symplectic integrators in HMC Shadow Hamiltonians and Poisson brackets Tuning integrators using Poisson brackets Hessian or Force-Gradient integrators Symplectic integrators and Poisson brackets on Lie groups Results for single-link updates Symmetric symplectic integrators in HMC Shadow Hamiltonians and Poisson brackets Tuning integrators using Poisson brackets Hessian or Force-Gradient integrators Symplectic integrators and Poisson brackets on Lie groups Results for single-link updates

4 4Saturday, 02 May 2015A D Kennedy Symplectic Integrators We are interested in finding the classical trajectory in phase space of a system described by the Hamiltonian The idea of a symplectic integrator is to write the time evolution operator (Lie derivative) as

5 5Saturday, 02 May 2015A D Kennedy Symplectic Integrators Define and so that Since the kinetic energy T is a function only of p and the potential energy S is a function only of q, it follows that the action of and may be evaluated trivially

6 6Saturday, 02 May 2015A D Kennedy If A and B belong to any (non-commutative) algebra then, where  constructed from commutators of A and B (i.e., is in the Free Lie Algebra generated by A and B ) Symplectic Integrators More precisely, where and Baker-Campbell-Hausdorff (BCH) formula

7 7Saturday, 02 May 2015A D Kennedy Symplectic Integrators Explicitly, the first few terms are In order to construct reversible integrators we use symmetric symplectic integrators The following identity follows directly from the BCH formula

8 8Saturday, 02 May 2015A D Kennedy Symplectic Integrators From the BCH formula we find that the PQP symmetric symplectic integrator is given by In addition to conserving energy to O (  ² ) such symmetric symplectic integrators are manifestly area preserving and reversible

9 9Saturday, 02 May 2015A D Kennedy Shadow Hamiltonians This may be obtained by replacing the commutators in the BCH expansion of with the Poisson bracket For each symplectic integrator there exists a Hamiltonian H’ which is exactly conserved

10 Saturday, 02 May 2015A D Kennedy Conserved Hamiltonian For the PQP integrator we have

11 Saturday, 02 May 2015A D Kennedy Tuning HMC For any (symmetric) symplectic integrator the conserved Hamiltonian is constructed from the same Poisson brackets A procedure for tuning such integrators is Measure the Poisson brackets during an HMC run Optimize the integrator (number of pseudofermions, step- sizes, order of integration scheme, etc.) offline using these measured values This can be done because the acceptance rate (and instabilities) are completely determined by δH = H’ - H For any (symmetric) symplectic integrator the conserved Hamiltonian is constructed from the same Poisson brackets A procedure for tuning such integrators is Measure the Poisson brackets during an HMC run Optimize the integrator (number of pseudofermions, step- sizes, order of integration scheme, etc.) offline using these measured values This can be done because the acceptance rate (and instabilities) are completely determined by δH = H’ - H

12 Saturday, 02 May 2015A D Kennedy Simple Example (Omelyan) Consider the PQPQP integrator The conserved Hamiltonian is thus Measure the “operators” and minimize the cost by adjusting the parameter α

13 Saturday, 02 May 2015A D Kennedy Hessian Integrators We may therefore evaluate the integrator explicitly An interesting observation is that the Poisson bracket depends only of q The force for this integrator involves second derivatives of the action Using this type of step we can construct very efficient Force-Gradient integrators The force for this integrator involves second derivatives of the action Using this type of step we can construct very efficient Force-Gradient integrators

14 Saturday, 02 May 2015A D Kennedy Higher-Order Integrators We can eliminate all the leading order Poisson brackets in the shadow Hamiltonian leaving errors of O (δτ 2 ) The coefficients of the higher-order Poisson brackets are much smaller than those from the Campostrini integrator We can eliminate all the leading order Poisson brackets in the shadow Hamiltonian leaving errors of O (δτ 2 ) The coefficients of the higher-order Poisson brackets are much smaller than those from the Campostrini integrator

15 Saturday, 02 May 2015A D Kennedy Beyond Scalar Field Theory We need to extend the formalism beyond a scalar field theory Fermions are easy How do we extend all this fancy differential geometry formalism to gauge fields?

16 Saturday, 02 May 2015A D Kennedy Hamiltonian Mechanics Flat ManifoldGeneral Symplectic 2-form Hamiltonian vector field Equations of motion Poisson bracket Darboux theorem: All manifolds are locally flat

17 Saturday, 02 May 2015A D Kennedy Maurer-Cartan Equations The left invariant forms dual to the generators of a Lie algebra satisfy the Maurer- Cartan equations

18 Saturday, 02 May 2015A D Kennedy We can invent any Classical Mechanics we want… So we may therefore define a closed symplectic 2-form which globally defines an invariant Poisson bracket by Fundamental 2-form

19 Saturday, 02 May 2015A D Kennedy We may now follow the usual procedure to find the equations of motion: Introduce a Hamiltonian function (0-form) H on the cotangent bundle (phase space) over the group manifold Hamiltonian Vector Field Define a vector field such that

20 Saturday, 02 May 2015A D Kennedy Integral Curves The classical trajectories are then the integral curves of h :

21 Saturday, 02 May 2015A D Kennedy Poisson Brackets Recall our Hamiltonian vector field For H(q,p) = T(p) + S(q) we have vector fields

22 Saturday, 02 May 2015A D Kennedy More Poisson Brackets We thus compute the lowest-order Poisson bracket and the Hamiltonian vector corresponding to it

23 Saturday, 02 May 2015A D Kennedy Even More Poisson Brackets

24 Saturday, 02 May 2015A D Kennedy Integrators

25 Saturday, 02 May 2015A D Kennedy Campostrini Integrator

26 Saturday, 02 May 2015A D Kennedy Hessian Integrators

27 Saturday, 02 May 2015A D Kennedy One-Link Results

28 Saturday, 02 May 2015A D Kennedy Scaling Behaviour

29 Saturday, 02 May 2015A D Kennedy Conclusions We hope that very significant performance improvements can be obtained using Force- Gradient integrators For fermions one extra inversion of the Dirac operator is required Pure gauge force terms and Poisson brackets get quite complicated to program Real-life speed-up factors will be measured really soon… We hope that very significant performance improvements can be obtained using Force- Gradient integrators For fermions one extra inversion of the Dirac operator is required Pure gauge force terms and Poisson brackets get quite complicated to program Real-life speed-up factors will be measured really soon…