Teachers

Canvas

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

Log into Canvas

Dear all, since we did not have a regular lecture last week (only lab), this week we will try to catch up what we did not do last week. We will thus extend the lecture to 12pm, starting at 915am as usual.? ?The lecture will be recorded as usual. We will try to wrap up the discussions we did not finish last week on the Fokker-Planck equation, but the main emphasis will be on the optimization part. Thus, the aim is to discuss

Here are the plans with the link to the jupyter-notebook for this week, see https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week6/ipynb/week6.ipynb

Topics.

Finalizing the discussion of the Fokker-Planck equation (whiteboard notes mainly and additional notes at https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week4/pdf/fokkerplanck.pdf

Start discussion? of the optimization process and derivation of equations for the gradients of the energy

Gradie...

Feb. 26, 2026 5:15 PM

Dear all, welcome back to FYS4411/9411.?

Note that this week the lecture will be in the form of a recoding only due to Morten being at a meeting.

The recording will be uploaded later during the weekend (unfortunately, I apologize the delay). Thus, this week, there is no in-person nor direct zoom lecture. However, the lab session starts at our regular time 1115am and ends at 2pm. Aleksander will be there for the lab session. Else, the material this week will cover

1) Reminder on Fokker-Planck equation and Langevin equations (partly from last week)

2) Programming elements of correlation function (needed later)

We will send an email as soon as the recording has been uploaded.

The slides (jupyter-notebook) are at?https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week5/ipynb/week5.ipynb

Best wishes to you all,

Aleksander and Morten

Feb. 19, 2026 3:20 PM

Dear all, welcome back to FYS4411.

The plans for this week are?

Topics.

Short repetition from last week

Mathematical and computational details of importance sampling and Fokker-Planck and Langevin equations

For the lab session we will continue our discussions on how to build a VMC code for project 1

The jupyter-notebook for this week is at at https://github.com/CompPhysics/ComputationalPhysics2/blob/gh-pages/doc/pub/week4/ipynb/week4.ipynb (alternatively you can use the pdf file) and we will cover some of the mathematical details on how to compute the trial wave functions with importance sampling as well as the more mathematical (technicalities) of importance sampling such as the Fokker-Planck equation and how we? derive the actual expression for the quantum force.

To read more about Metropolis, Markov Chains, importance sampling, Fokker-Planck and Langevin equations, we recommend Becca and So...

Feb. 12, 2026 4:34 PM

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