Computational Statistical Mechanics — Lectures and labs

Computational Statistical Mechanics: Monte Carlo, Molecular Dynamics, Machine Learning

← Back to the home page of the personal website

Material of the course (academic year 2026-27): lecture notes and slides, and the slides of the lab sessions, where we write, from scratch, simple C++ codes for Monte Carlo and Molecular Dynamics simulations.

Lectures

Lecture notes

Lecture notes (LaTeX)

Slides

Downloads

📦 C++ examples (ZIP) 📦 Project classes (ZIP)
  • C++ examples: the examples shown in the labs so far (folder examples/).
  • Project classes: the classes of the project you are writing (project/; for now pvector.hpp and its test pvector.cpp).

Both archives grow as the labs go on.

Labs

Lab Topic
Lab 1 Development environment (WSL 2), introduction to C++ (part I), a first vector class
Lab 2 Introduction to C++ (part II): protected members, function overloading; new constructor and operators for pvector
Lab 3 Introduction to C++ (part III): dynamic memory (new, delete), namespaces; operator() and friend functions for pvector