Optimization with Cython: Ising Models (Part 1)

preview_player
Показать описание
This screencast shows how Cython can be used to optimize scientific Python code.

In part 1, I develop some code to simulate a Ising model in Python, as well as to display the model with PIL/pillow and to interactively explore the evolution with ipywidgets.

Рекомендации по теме
Комментарии
Автор

Hi Jake, i learned alot just from this short video, looking forward to the optimization video. Many thanks.

brotherlui
Автор

Man, I am so grateful to find this video. Thank you Jake for sharing!

kadekhendradarmasastrawan
Автор

Nice video! I was wondering if the icing would better be done on a copy of the original spin field.
i.e get the sum from a copy of the field and then apply on the original version. then the icing steps would be independent

duoasch
Автор

Hi, great video! What's the critical temperature of the specific code written here? I assume there is no external field and that the coupling constant is taken to be equal to the Boltzmann constant?

kartrix
Автор

Awesome. Cython starts in second video.

arjunkirpal
Автор

Hello, where can i find the mathematical background about this models. I don't understand why the dE is 2 times * H

muhammadhidayat
Автор

could you tell me how much time it will take for the program to go over MC steps? also, when you select the spins randomly was there any repeated random no. calling or you took care of it?

P.S. I am asking since I have done it in C++ and if this takes less time then I might shift to this language

harsharajbhattacharya
Автор

Hey, I'd be really grateful if anybody could tell me what the '%' symbol does there, I really don't get it. Is it an IPython magic command stuff?

lefontaine
Автор

how we can calculate heat capacity by Ising Model ?

KhairiFahad
join shbcf.ru