Teachers

Canvas

This course uses Canvas. See tips and guides for Canvas.

Log into Canvas

Dear all and welcome back to Comp Phys 2.

Since Morten is away for a workshop in Sweden, the lecture will via zoom only tomorrow. However, the lab session from 11.15am to 2pm will take place as usual. Aleksander will be there for the whole lab session.

Our plans this week are

Markov Chain Monte Carlo and repetition from last week

Metropolis-Hastings sampling and introducing importance sampling

Importance sampling will allow us to sample more reliably from a transition probability that mimics the physics at play. This will lead us to a discussion of what is called the Fokker-Plank equation and the Langevin equation in actual implementations of importance sampling.

We start with a top-down approach first where we present the equations we have to implement and show how to program this. Thereafter we will discuss the mathematical foundation. In the lab session we continue on implementing the variational Monte...

Feb. 5, 2026 8:34 PM

Dear all, welcome back to FYS4411/9411.??Here are the plans for the lecture and lab session this week.

You will find the lecture notes for this week at https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week2/ipynb/week2.ipynb

The topics this week are?

Repetition from last week and discussions of code templates in python and C++

Essential ingredients: Variational Monte Carlo methods, Metropolis Algorithm, statistics and Markov Chain theory

How to structure the VMC code

Sections 3.1-3.9 of Sorella and Becca's text follow to a large extent the topics for the lecture. Chapter 2 gives a good review of central statistics elements and can serve as background literature.

You can download the book for free from the university library by accessing it via oria.no or simply use the link https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/Literature/MCbookSorella...

Jan. 29, 2026 5:04 PM

Dear all, welcome to a new semester and FYS4411/9411.

Our first session is January 23 at 915am, room F?434 at the Department of Physics, UiO.

All lectures will be recorded and the videos will be posted asap online here. Our first lab session follows right after the first lecture. You can attend the lectures remotely as well via zoom at https://uio.zoom.us/my/mortenhj

The link to the teaching material is at https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week1/ipynb/week1.ipynb or as a PDF file at https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week1/pdf/week1.pdf

Note that for codes the jupyter-notebook is better suited than the pdf file.

Best wishes to you all and welcome.

Aleksander and Morten

Dec. 29, 2025 8:50 AM