Chasing Shadows A D Kennedy University of Edinburgh Tuesday, 06 October 2015 QCD & NA, Regensburg.

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

Mathematical Formulation of the Superposition Principle
Quantum One: Lecture 6. The Initial Value Problem for Free Particles, and the Emergence of Fourier Transforms.
Lecture 1: basics of lattice QCD Peter Petreczky Lattice regularization and gauge symmetry : Wilson gauge action, fermion doubling Different fermion formulations.
Summing planar diagrams
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.
Hamiltonian Formalism
Integrals over Operators
Point-wise Discretization Errors in Boundary Element Method for Elasticity Problem Bart F. Zalewski Case Western Reserve University Robert L. Mullen Case.
Quantum One: Lecture 4. Schrödinger's Wave Mechanics for a Free Quantum Particle.
Field quantization via discrete approximations: problems and perspectives. Jerzy Kijowski Center for Theoretical Physics PAN Warsaw, Poland.
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
QCD-2004 Lesson 1 : Field Theory and Perturbative QCD I 1)Preliminaries: Basic quantities in field theory 2)Preliminaries: COLOUR 3) The QCD Lagrangian.
Test of the Stefan-Boltzmann behavior for T>0 at tree-level of perturbation theory on the lattice DESY Summer Student 2010 Carmen Ka Ki Li Imperial College.
Lecture 3: Markov processes, master equation
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Symmetry. Phase Continuity Phase density is conserved by Liouville’s theorem.  Distribution function D  Points as ensemble members Consider as a fluid.
QCD – from the vacuum to high temperature an analytical approach an analytical approach.
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.
Active Set Support Vector Regression
Antonio RagoUniversità di Milano Techniques for automated lattice Feynman diagram calculations 1 Antonio RagoUniversità di Milano Techniques for automated.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
4. The Postulates of Quantum Mechanics 4A. Revisiting Representations
Sunday, 12 July 2015 BNL Domain Wall Fermions and other 5D Algorithms A D Kennedy University of Edinburgh.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
GENERAL PRINCIPLES OF BRANE KINEMATICS AND DYNAMICS Introduction Strings, branes, geometric principle, background independence Brane space M (brane kinematics)
Curvature operator and gravity coupled to a scalar field: the physical Hamiltonian operator (On going work) E. Alesci, M. Assanioussi, Jerzy Lewandowski.
Chang-Kui Duan, Institute of Modern Physics, CUPT 1 Harmonic oscillator and coherent states Reading materials: 1.Chapter 7 of Shankar’s PQM.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
F.F. Assaad. MPI-Stuttgart. Universität-Stuttgart Numerical approaches to the correlated electron problem: Quantum Monte Carlo.  The Monte.
9. Convergence and Monte Carlo Errors. Measuring Convergence to Equilibrium Variation distance where P 1 and P 2 are two probability distributions, A.
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.
Computing Eigen Information for Small Matrices The eigen equation can be rearranged as follows: Ax = x  Ax = I n x  Ax - I n x = 0  (A - I n )x = 0.
Uniform discretizations: the continuum limit of consistent discretizations Jorge Pullin Horace Hearne Institute for Theoretical Physics Louisiana State.
Suppressing Random Walks in Markov Chain Monte Carlo Using Ordered Overrelaxation Radford M. Neal 발표자 : 장 정 호.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
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.
Quantum Two 1. 2 Evolution of Many Particle Systems 3.
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.
ECE-7000: Nonlinear Dynamical Systems Overfitting and model costs Overfitting  The more free parameters a model has, the better it can be adapted.
Mathematical Tools of Quantum Mechanics
Two-dimensional SYM theory with fundamental mass and Chern-Simons terms * Uwe Trittmann Otterbein College OSAPS Spring Meeting at ONU, Ada April 25, 2009.
An Introduction to Lattice QCD and Monte Carlo Simulations Sinya Aoki Institute of Physics, University of Tsukuba 2005 Taipei Summer Institute on Particles.
Kevin Stevenson AST 4762/5765. What is MCMC?  Random sampling algorithm  Estimates model parameters and their uncertainty  Only samples regions of.
Chapter 3 Postulates of Quantum Mechanics. Questions QM answers 1) How is the state of a system described mathematically? (In CM – via generalized coordinates.
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.
Quantum Two 1. 2 Angular Momentum and Rotations 3.
Trigonometric Identities
Mathematical Formulation of the Superposition Principle
Canonical Quantization
Advanced Engineering Mathematics 6th Edition, Concise Edition
Trigonometric Identities
in collaboration with M. Bojowald, G. Hossain, S. Shankaranarayanan
Quantum One.
Quantum Two.
ENE/EIE 325 Electromagnetic Fields and Waves
Quantum One.
Phase structure of graphene from Hybrid Monte-Carlo simulations
Quantum Two.
Domain Wall Fermions and other 5D Algorithms
Adaptive Perturbation Theory: QM and Field Theory
Shadow Hamiltonians and Force-Gradient Symplectic Integrators
Physics 451/551 Theoretical Mechanics
Quantum One.
Presentation transcript:

Chasing Shadows A D Kennedy University of Edinburgh Tuesday, 06 October 2015 QCD & NA, Regensburg

2 Outline Functional Integrals, Markov Chains, and HMC Symplectic Integrators and Shadow Hamiltonians Symplectic 2-form and Hamiltonian vector fields Poisson brackets BCH formula Shadow Hamiltonians Shadows for gauge theories Improved integrators Hessian (force-gradient) integrators Instabilities Free field theory Pseudofermions Multiple pseudofermions Hasenbusch, RHMC, DD-HMC Multiple shifts and multiple sources Tuesday, 06 October 2015QCD & NA, Regensburg

3 Functional Integrals Tuesday, 06 October 2015 In lattice quantum field theory the goal is to compute the expectation value of some interesting operator Integral is over all field configurations (At least) one integral for each lattice site This become an infinite dimensional integral in the continuum limit QCD & NA, Regensburg

4 Fermions Tuesday, 06 October 2015 Fermion fields are Grassmann-valued Grassmann integration of quadratic form gives a determinant We replace these by bosonic integrals over pseudofermion fields with inverse kernel QCD & NA, Regensburg

5 Fermionic Operators Tuesday, 06 October 2015 Operators involving Fermion fields can be expressed as non-local bosonic operators Add Fermion sourcesComplete the squareShift Fermion fieldsEvaluate Grassmann integral Evaluating the inverses of the Fermion kernel is usually the expensive part of measuring operators on dynamical gauge configurations QCD & NA, Regensburg

6 Markov Chains Tuesday, 06 October 2015 Evaluate functional integrals by Monte Carlo Generate configurations from Markov chain Iterating ergodic Markov step(s) converges to fixed point distribution Detailed balance  fixed point Metropolis accept/reject  detailed balance QCD & NA, Regensburg

7 Hybrid Monte Carlo (HMC) Tuesday, 06 October 2015 Introduce fictitious momenta p for each q and generate phase space configurations with distribution with the Hamiltonian Solution of Hamilton’s equations would then generate a new phase space configuration which satisfies detailed balance Reversible (after a momentum flip) Measure preserving (Liouville’s theorem) Equiprobable (energy conservation) QCD & NA, Regensburg Momentum & pseudofermion heatbath  ergodicity?

8 HMC and Symplectic Integrators Tuesday, 06 October 2015 Symmetric symplectic integrators provide discrete approximations to the solution of Hamilton’s equations Symmetric  r eversible Symplectic  area preserving Such integrator only approximately conserve energy, but this may be corrected by Metropolis step with acceptance probability QCD & NA, Regensburg

9 Hamiltonian Dynamics Tuesday, 06 October 2015 The basic idea of a Hamiltonian system is that its state at time t is represented by a point in phase space (the cotangent bundle over configuration space ) Hamilton’s equations give the time evolution in terms of derivatives of a Hamiltonian which is a function (0-form) on phase space QCD & NA, Regensburg

10 Hamiltonian Dynamics Tuesday, 06 October 2015 More generally the time evolution of the system follows the integral curves of the Hamiltonian vector field, which is related to H through the symplectic 2-form through QCD & NA, Regensburg

11 Hamiltonian Dynamics Tuesday, 06 October 2015 Once can define a Hamiltonian vector field for any 0-form A on phase space The commutator of two such Hamiltonian vector fields is itself a Hamiltonian vector field where is the Poisson bracket QCD & NA, Regensburg

12 Proofs: I Tuesday, 06 October 2015 Definition: Exterior derivative dF of a 0- form F applied to a vector X is Hence for a Hamiltonian vector field Corollary QCD & NA, Regensburg

13 Proofs: II Tuesday, 06 October 2015 Observe that Definition: Exterior derivative of a 2-form field is Hence for Hamiltonian vector fields QCD & NA, Regensburg

14 Proofs: III Tuesday, 06 October 2015 This means that 0-forms on a symplectic manifold form a Lie algebra with a Lie bracket that is not a commutator Thus the closure of the symplectic 2-form implies the Jacobi identity for Poisson brackets Using the Jacobi identity we finally get for any F QCD & NA, Regensburg

15 Symplectic Integrators We are interested in finding the classical trajectory in phase space of a system described by the Hamiltonian The basic idea of a symplectic integrator is to write the time evolution operator as Tuesday, 06 October 2015QCD & NA, Regensburg

16 PQP Integrator 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 We can thus construct an approximate PQP leapfrog integrator Tuesday, 06 October 2015QCD & NA, Regensburg

17 Baker-Campbell-Hausdorff formula More precisely, where and The B n are Bernoulli numbers If and belong to any (non-commutative) algebra then, where is constructed from commutators of and Such commutators are in the Free Lie algebra Tuesday, 06 October 2015QCD & NA, Regensburg

18 BCH formula Explicitly, the first few terms are We only include commutators that are not related by antisymmetry or the Jacobi relation These are chosen from a Hall basis Tuesday, 06 October 2015QCD & NA, Regensburg

19 Symmetric Symplectic Integrators In order to construct reversible integrators we use symmetric symplectic integrators From the BCH formula the PQP integrator corresponds to the vector field Tuesday, 06 October 2015QCD & NA, Regensburg

20 Shadow Hamiltonian: I A symplectic integrator exactly follows the vector field where is constructed from commutators of Hamiltonian vector fields Commutators of Hamiltonian vector fields are themselves Hamiltonian vector fields, Therefore is itself the Hamiltonian vector field corresponding to the shadow Hamiltonian obtained by replacing the commutators in with Poisson brackets This only defines the shadow Hamiltonian as a series expansion in ; we will later consider what happens when this series fails to converge Tuesday, 06 October 2015QCD & NA, Regensburg

21 Shadow Hamiltonian: II The PQP integrator follows a trajectory that is the exact solution of Hamilton’s equations for the (exactly conserved) shadow Hamiltonian Tuesday, 06 October 2015QCD & NA, Regensburg

22 Scalar Theory Evaluating the Poisson brackets gives Note that H PQP cannot be written as the sum of a p-dependent kinetic term and a q-dependent potential term So, sadly, it is not possible to construct an integrator that conserves the Hamiltonian we started with Tuesday, 06 October 2015QCD & NA, Regensburg

23 How to Tune Integrators For any (symmetric) symplectic integrator the conserved Hamiltonian is constructed from the same Poisson brackets The procedure is therefore Measure average Poisson brackets during a preliminary 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 See talk by Paulo Silva for details Tuesday, 06 October 2015QCD & NA, Regensburg

24 On a Lie group there are left invariant forms dual to the generators that satisfy the Maurer-Cartan equations Classical Mechanics on Group Manifolds Tuesday, 06 October 2015 We first formulate classical mechanics on a Lie group manifold, and then rewrite it in terms of the usual constrained variables (U and P matrices) Haar measure is QCD & NA, Regensburg

25 Fundamental 2-form We may therefore define a closed symplectic fundamental 2-form This specifies the Poisson bracket Tuesday, 06 October 2015QCD & NA, Regensburg

26 Hamiltonian Vector Field Tuesday, 06 October 2015 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 Define a vector field such that QCD & NA, Regensburg

27 Poisson Brackets Tuesday, 06 October 2015 For we have vector fields QCD & NA, Regensburg

28 and the Hamiltonian vector corresponding to it More Poisson Brackets Tuesday, 06 October 2015 We thus compute the lowest-order Poisson bracket QCD & NA, Regensburg

29 Even More Poisson Brackets Tuesday, 06 October 2015QCD & NA, Regensburg

30 Integrators Tuesday, 06 October 2015QCD & NA, Regensburg

31 Hessian Integrators Tuesday, 06 October 2015 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 efficient Hessian (Force-Gradient) integrators QCD & NA, Regensburg

32 Higher-Order Integrators We can eliminate all the leading order Poisson brackets in the shadow Hamiltonian leaving errors of The coefficients of the higher-order Poisson brackets are much smaller than those from the Campostrini integrator Tuesday, 06 October 2015QCD & NA, Regensburg

33 Campostrini Integrator Tuesday, 06 October 2015QCD & NA, Regensburg

34 Hessian Integrators Tuesday, 06 October 2015QCD & NA, Regensburg

35 Multiple Timescale Integrators Use different integration step sizes for different contributions to the action (Sexton— Weingarten) Evaluate cheap forces that give a large contribution to the shadow Hamiltonian more frequently Original application failed because largest contribution to shadow Hamiltonian was also the most expensive Tuesday, 06 October 2015QCD & NA, Regensburg

36 Instabilities in Free Field Theory Tuesday, 06 October 2015QCD & NA, Regensburg For free field theory the Hamiltonian may be diagonalized to for some set of frequencies The shadow Hamiltonian is exactly This has a singularity at

37 Integrator Instabilities When the step size exceeds some critical value the BCH expansion for the shadow Hamiltonian diverges No real conserved shadow Hamiltonian Symplectic integrators become exponentially unstable in trajectory length Tuesday, 06 October 2015QCD & NA, Regensburg

38 Symptoms Tuesday, 06 October 2015QCD & NA, Regensburg Acceptance rate falls (exponentially) with trajectory length for Floating point rounding errors can also cause this For light fermions maximum frequency corresponds to inverse of smallest eigenvalue of fermion kernel This can grow as gauge fields equilibrate Often erroneously ascribed to exceptional configurations Real problem is exponential amplification due to instabilities

39 Higher Order Integrator Instabilities Tuesday, 06 October 2015QCD & NA, Regensburg The values of at which instabilities occur depends on the choice of integrator IntegratorCriticalvalue PQP, QPQ2 P2MN22.22 P24FG2.61 P5MN43.14 Q5MN4FG3.10 Campostrini1.57 Mike Clark Omelyan, Mryglod, Folk Computer Physics Communcations 151 (2003) Joo et al Phys Rev D62 (2000) (hep-lat/ )

40 Pseudofermions Tuesday, 06 October 2015 We must distinguish the intrinsic fermion part from that due to pseudofermionic noise The pseudofermion contribution to the shadow Hamiltonian has one more power of the inverse fermion kernel than the intrinsic fermion contribution The pseudofermions are fixed during a trajectory, so probably do not suppress this extra inverse power QCD & NA, Regensburg

41 This does not change the intrinsic fermion part at all Instability is driven by most singular kernel Must balance cost of applying kernels with reduction in contribution to shadow Hamiltonian No improvement with more than two or three pseudofermions so far Acceptance rate no longer limited by instability but by bulk contributions? Opportunity to use improved/higher-order integrators Rôle of finite density of fermion spectrum near zero? Eventually limited by intrinsic fermion part Multiple Pseudofermions Tuesday, 06 October 2015 The effect of the extra inverse power can be reduced by introducing multiple pseudofermions with less singular kernels QCD & NA, Regensburg

42 Multiple Pseudofermion Techniques Tuesday, 06 October 2015 Hasenbusch: Heavy pseudofermion cheap to invert Particularly cost-effective if we make use of existing pseudofermion (e.g., s quark): RHMC No parameter tuning necessary Can implement fractional flavours (e.g., for above) Lüscher DD-HMC Dominated by Schur complement part towards chiral limit? Evidence of this from PAC-CS data? Other benefits of DD? QCD & NA, Regensburg

43 Multi-Everything Solvers For RHMC we evaluate fractional powers of the fermion kernel using optimal (Chebyshev) partial fraction rational approximations We thus need to find solutions for this kernel (the Dirac operator or its square) for Multiple shifts: shifts are poles of rational approximation Multiple right hand sides: for multiple pseudofermions We already use a multishift solver, but How to do so for multiple right hand sides? Can we use an initial guess extrapolated from the past? Can we restart the solver to avoid stagnation? Tuesday, 06 October 2015QCD & NA, Regensburg

44 RHMC with Multiple Timescales Semiempirical observation: The largest force from a single pseudofermion does not come from the smallest shift For example, look at the numerators in the partial fraction expansion Use a coarser timescale for expensive smaller shifts Invert small shifts less accurately Cannot use chronological inverter with multishift solver anyhow Tuesday, 06 October 2015QCD & NA, Regensburg

45 Outlook Large-scale computations with light dynamical fermions require Avoiding integrator instabilities as far as possible Use multiple pseudofermion fields Reducing volume contributions to H Shadow Tune integrators by measuring Poisson brackets Use good higher order integrators, such as Hessian/Force Gradient Using longer trajectories Reduces autocorrelations as physical correlation lengths grow Amortizes cost of pseudofermion heatbath and Metropolis energy calculation Improving solver technology Tuesday, 06 October 2015QCD & NA, Regensburg