Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tutorials for the lecture "Computational Methods in Many-Body Physics"

License

NotificationsYou must be signed in to change notification settings

jhauschild/lecture_comp_methods

Repository files navigation

Authors: Prof. Frank Pollmann, Prof. Michael Knap, Johannes Hauschild

This is a set of tutorial codes and exercises for the lectureCompuational Methods in Many-Body Physics given at TU Munich in the summer term 2018.Lecture notes, exercise sheets and further references are available at the course web page:https://www.groups.ph.tum.de/cmt/teaching/archive/computational-methods-ss18/ (Password for the lecture notes upon request by Email)The codes are organized in folders by topics, since some of the exercises build on previous codes.

For some exercise, we provide some codes implementing various algorithms, as pure python 3 files with*.py filenames,and some data files, included in the folderexercises.The solutions to the exercise are provided as jupyter notebooks (formerly known as ipython notebooks), withsol*.ipynb filenames.If the exercise asked to modify a function, it is copied into the notebook, leaving the original templates*.py untouched as provided on the course webpage.

Setup

If you are completely new to python, a good introduction for our course are the scipy lectures

If you have a laptop, a very good python distribution is provided by Anaconda, available athttps://www.anaconda.com/download. It ships with jupyter, uses Intel MKL and comes with the numba package.

Thenumba package is used in some of the codes for optimization.This brings in some cases a speed up of up to 100, installing numba is therefore highly recommended.If you really have big trouble installing numba, or find the error messages produced by it too confusing,you can copy the filenumba.py providing a dummy@jit decorator into the other folders.The price is that you loose the speed-up...

On the work stations in the CIP pool at TUM, the intelpython distribution is installed.To start a jupyter notebook, follow these steps:

  1. Open a terminal
  2. Go to the directory where you keep your scripts/notebooks usingcd some/directory
  3. On your laptop, enterjupyter notebook, or at the TUM workstations enter/mount/packs/intelpython35/bin/jupyter notebookThis should start a local server opening a webpage in the browser (e.g. firefox), where you can create python notbooks etc.If you close the web page by accident, open the pagehttp://localhost:8888/
  4. Do your calculations.
  5. Once you're done, stop the server in the terminal by pressing Ctrl-C and confirm with 'y'

We use the ipython magic%matplotlib inline to include plots showing the results directly in the notebooks.

Further references

About

Tutorials for the lecture "Computational Methods in Many-Body Physics"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp