格子スピン模型の計算科学2018_実習

Similar documents
HPhi_exercise.key

course pptx

スケーリング理論とはなにか? - --尺度を変えて見えること--

ProVisionaire Control V3.0セットアップガイド

References: 3 June 21, 2002 K. Hukushima and H. Kawamura, Phys.Rev.E, 61, R1008 (2000). M. Matsumoto, K. Hukushima,

[ ] (Ising model) 2 i S i S i = 1 (up spin : ) = 1 (down spin : ) (4.38) s z = ±1 4 H 0 = J zn/2 i,j S i S j (4.39) i, j z 5 2 z = 4 z = 6 3

Python ( ) Anaconda 2 3 Python Python IDLE Python NumPy 6 5 matpl

1 1.1 (JCPRG) 30 Nuclear Reaction Data File (NRDF) PC GSYS2.4 JCPRG GSYS2.4 Java Windows, Linux, Max OS X, FreeBSD GUI PNG, GIF, JPEG X Y GSYS2

Python (Anaconda ) Anaconda 2 3 Python Python IDLE Python NumPy 6

X Window System X X &

磁性物理学 - 遷移金属化合物磁性のスピンゆらぎ理論

1 I EViews View Proc Freeze

GNU Emacs GNU Emacs

Microsoft Word - RMD_75.doc


グラフ数値読み取りシステム (GSYS2.4) 利用の手引

syspro-0405.ppt

,, Andrej Gendiar (Density Matrix Renormalization Group, DMRG) 1 10 S.R. White [1, 2] 2 DMRG ( ) [3, 2] DMRG Baxter [4, 5] 2 Ising 2 1 Ising 1 1 Ising

273? C

2 I I / 61

2016 ǯ¥Î¡¼¥Ù¥ëʪÍý³Ø¾Þ²òÀ⥻¥ß¥Ê¡¼ Kosterlitz-Thouless ž°Ü¤È Haldane ͽÁÛ

TM-m30 詳細取扱説明書

Visual Python, Numpy, Matplotlib

01.ai

TM-m30 詳細取扱説明書

HIS-CCBASEver2

Specview Specview Specview STSCI(Space Telescope SCience Institute) VO Specview Web page htt

Step 1 Feature Extraction Featuer Extraction Feature Extraction Featuer Extraction Image Analysis Start>Programs>Agilent-Life Sciences>Feature Extract

workshop2009course.ppt

IntroductionToQuantumComputer

untitled

(Jackson model) Ziman) (fluidity) (viscosity) (Free v

- 2 Copyright (C) All Rights Reserved.

I #2 : ( 8-13), () URL : j inoue/prog2007/prog2007.html

13 Student Software TI-Nspire CX CAS TI Web TI-Nspire CX CAS Student Software ( ) 1 Student Software 37 Student Software Nspire Nspire Nspir

フリーセルプロの使い方

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

ロードバランサー配下のシボレス IdP 環境設定に関する検証実験 2009 年 12 月 22 日国立情報学研究所学術ネットワーク研究開発センター山地一禎, 中村素典

OpenMP¤òÍѤ¤¤¿ÊÂÎó·×»»¡Ê£±¡Ë

2

2017 p vs. TDGL 4 Metropolis Monte Carlo equation of continuity s( r, t) t + J( r, t) = 0 (79) J s flux (67) J (79) J( r, t) = k δf δs s( r,

Unix * 3 PC 2 Linux, Mac *4 Windows Cygwin Cygwin gnuplot Cygwin unix emulator online gnuplot *5 matplotlib *6 SuperMongo *7 gnuplot gnuplot OS *8 Uni

Compiled MODELSでのDFT位相検出装置のモデル化と評価

Microsoft Word - Meta70_Preferences.doc

LSM5Pascal Ver 3.2 GFP 4D Image VisArt Carl Zeiss Co.,Ltd.

programmingII2019-v01

ProVAL Recent Projects, ProVAL Online 3 Recent Projects ProVAL Online Show Online Content on the Start Page Page 13

THE INSTITUTE OF ELECTRONICS, INFORMATION AND COMMUNICATION ENGINEERS TECHNICAL REPORT OF IEICE.

2004/12/16 texsan/shelx97/kenx Windows XWindows

Consuming a simple Web Service


HPhi_mVMC.key

4

fx-9860G Manager PLUS_J

TM-T88VI 詳細取扱説明書

スパコンに通じる並列プログラミングの基礎

Version1.5

New version (2.15.1) of Specview is now available Dismiss Windows Specview.bat set spv= Specview set jhome= JAVA (C:\Program Files\Java\jre<version>\

4

untitled

スパコンに通じる並列プログラミングの基礎

TF Editor V3.5 ユーザーガイド

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM

1 matplotlib matplotlib Python matplotlib numpy matplotlib Installing A 2 pyplot matplotlib 1 matplotlib.pyplot matplotlib.pyplot plt import import nu

LiveCode初心者開発入門サンプル

1 1 Gnuplot gnuplot Windows gnuplot gp443win32.zip gnuplot binary, contrib, demo, docs, license 5 BUGS, Chang

Visual Python, Numpy, Matplotlib

2

外部SQLソース入門

Transcription:

e-mail: t-okubo@phys.s.u-tokyo.ac.jp

ALPS ALPS mc-09-snapshot Paraview

Mac Paraview Mac ITC-LMS (https://itc-lms.ecc.u-tokyo.ac.jp/portal/login) 0618.pdf python python2.7 pyenv shell anaconda-4.0.0

ALPS ECCS imac ITC-LMS https://itc-lms.ecc.u-tokyo.ac.jp/portal/login Dropbox https://dl.dropboxusercontent.com/s/av4o8ljkbfj0ok3/alps-20160816.zip "alps-20160816.zip" home cd mv Downloads/alps-20160816.. alps-20160816/bin/alpsvars.sh "alps-201608..." ". " simplemc --help ITC-LMS https://itc-lms.ecc.u-tokyo.ac.jp/portal/login Tutorial20180618.zip Tutorial20180618 home cd mv Downloads/Tutorial20180618.

ALPS

ALPS ALPS Applications and Libraries for Physical Simulation) DMRG DMFT ALPS Wiki http://alps.comp-phys.org/mediawiki/index.php/main_page

ALPS (2015 Phase transition of ultracold atoms immersed in a BEC vortex lattice Entanglement entropy and topological order in resonating valence-bond quantum spin liquids First-order topological phase transition of the Haldane-Hubbard model DMFT Study for Valence Fluctuations in the Extended Periodic Anderson Model Static and dynamical spin correlations of the S =1/2 random-bond antiferromagnetic Heisenberg model on the triangular and kagome lattices Transport properties for a quantum dot coupled to normal leads with a pseudogap Magnetic structure and Dzyaloshinskii-Moriya interaction in the S =1/2 helical-honeycomb antiferromagnet α -Cu 2 V 2 O 7 Mott transition in the triangular lattice Hubbard model: A dynamical cluster approximation study SU (N) Heisenberg model with multicolumn representations Superconductivity in the two-band Hubbard model Local Electron Correlations in a Two-Dimensional Hubbard Model on the Penrose Lattice http://alps.comp-phys.org/mediawiki/index.php/paperstalks

ALPS MateriApps Parameter XML Files Lattice XML File Model XML File, XML Quantum Lattice Model Python Python (looper) Quantum Monte Carlo Exact Diagonalization DMRG Outputs in XML Format 100000 10000 20,000? speed up 1000 100 10 1 1 10 100 1000 10000 100000 number of nodes 26

ALPS T=Tc T>Tc T<Tc

ALPS {Si} 1. 2. XY T = Tc Kosterlitz-Thouless

simplemc: cd cd Tutorial20180618/Tutorial_MC/simplemc ALPS XML parameter2xml parm9a 5 simplemc parm9a.in.xml python plot9a.py python

Tips for error in matplotlib "plot9a.py" UTF-8 export LC_ALL=ja_JP.UTF-8 UTF-8 LC_ALL

parm9a LATTICE="square lattice" J=1 ALGORITHM="ising" SWEEPS=65536 L=8 { T=5.0 } { T=4.5 } { T=4.0 } { T=3.5 } { T=3.0 } { T=2.9 } { T=2.8 } { T=2.7 }... J > 0 1 THERMALIZATION THRMALIZATION SWEEPS 1/8 L L {}

plot9a.py Python pyalps.loadmeasurements X Y pyalps.collectxy matplotlib data = pyalps.loadmeasurements(pyalps.getresultfiles(prefix='parm9a'), ['Specific Heat', 'Magnetization Density^2', 'Energy Density']) for item in pyalps.flatten(data): item.props['l'] = int(item.props['l']) magnetization2 = pyalps.collectxy(data, x='t', y='magnetization Density^2', foreach=['l']) magnetization2.sort(key=lambda item: item.props['l']) pyplot.figure() alpsplot.plot(magnetization2) pyplot.xlabel('temperture $T$') pyplot.ylabel('magnetization Density Squared $m^2$') pyplot.legend(loc='best')

1. cp parm9a parm9a_2 2. parm9a_2 SWEEP 3. 4. plot9a.py

optional) or ALPS simplemc spinmc loop

Reedbush-U Reedbush-U alps "simplemc" "spinmc" spinmc Reedbush alps spinmc

simplemc @Reedbush-U Reedbush ssh /lustre cdw alps cp /lustre/gt03/share/alps-20160816.zip. unzip alps-20160816.zip. alps-20160816/bin/alpsvars.sh cp /lustre/gt03/share/tutorial20180618.zip. unzip Tutorial20180618.zip simplemc cd Tutorial20180618/Tutorial_MC/simplemc parameter2xml parm9a_sc submit evaluate qsub sub_parm9a_sc.sh python plot9a_sc.py ECCS parm9a_sc2

parm9a_sc, parm9a_sc2 parm9a_sc LATTICE="square lattice" J=1 ALGORITHM="ising" SWEEPS=655360 L=8 { T=5.0 } 10 10... parm9a_sc2 LATTICE="square lattice" J=1 ALGORITHM="ising" SWEEPS=655360 NUM_CLONE=2 L=8 { T=5.0 } NUM_CLONE NUM_CLONE

sub_parm9a_sc.sh #!/bin/sh #PBS -q u-lecture3 #PBS -l select=1:mpiprocs=36:ompthreads=1 #PBS -W group_list=gt03 #PBS -l walltime=00:10:00 #PBS -N simplemc_parm9a_sc cd ${PBS_O_WORKDIR}. /etc/profile.d/modules.sh echo "Current directory is [$(pwd)]." #set alps environment echo "[$(date)] set alps.". ${HOME}/alps-20160816/bin/alpsvars.sh echo "[$(date)] start main simulations." mpirun simplemc --mpi parm9a_sc.in.xml echo "[$(date)] end simulation." u-lecture3 u-lecture 1 36MPI NUM_CLONE=2 select=2 mpirun --mpi

36 10 ECCS MC NUM_CLONE

spinmc @ECCS spinmc: cd cd Tutorial20180618/Tutorial_MC/spinmc ALPS XML parameter2xml parm9a spinmc --Tmin 5 parm9a.in.xml --Tmin n I n=60 60 --Tmin 5 or --Tmin 1 simplemc spinmc_evaluate parm9a.task*.out.xml python plot9a.py python

Explanation of parameter file: parm9a LATTICE="square lattice" J=1 MODEL="Ising" UPDATE="local" THERMALIZATION=8192 SWEEPS=65536 L=8 { T=5.0 } { T=4.5 } { T=4.0 } { T=3.5 } { T=3.0 } { T=2.9 }... J > 0 local ( ) or cluster 1 THERMALIZATION THRMALIZATION spinmc L L {}

plot9a.py Python pyalps.loadmeasurements X Y pyalps.collectxy matplotlib data = pyalps.loadmeasurements(pyalps.getresultfiles(prefix='parm9a'), ['Specific Heat', 'Magnetization^2', 'Energy Density']) for item in pyalps.flatten(data): item.props['l'] = int(item.props['l']) magnetization2 = pyalps.collectxy(data, x='t', y='magnetization^2', foreach=['l']) magnetization2.sort(key=lambda item: item.props['l']) pyplot.figure() alpsplot.plot(magnetization2) pyplot.xlabel('temperture $T$') pyplot.ylabel('magnetization Density Squared $m^2$') pyplot.legend(loc='best')

spinmc @Reedbush-U Reedbush ssh /lustre cdw cp /lustre/gt03/share/tutorial20180618.zip. unzip Tutorial20180618.zip spinmc cd Tutorial20180618/Tutorial_MC/spinmc load module load alps/2.1.1-r6176 parameter2xml parm9a_sc submit evaluate qsub sub_parm9a_sc.sh alpspython plot9a_sc.py "python" "alpspython" ECCS

parm9a_sc parm9a_sc LATTICE="square lattice" J=1 MODEL="Ising" UPDATE="local" THERMALIZATION=81920 SWEEPS=655360 L=8 { T=5.0 } { T=4.5 } { T=4.0 } 10 Thermalzation 10 10... NUM_CLONE spinmc

sub_parm9a_sc.sh #!/bin/sh #PBS -q u-lecture3 #PBS -l select=1:mpiprocs=36:ompthreads=1 #PBS -W group_list=gt03 #PBS -l walltime=00:10:00 #PBS -N spinmc_parm9a_sc u-lecture3 u-lecture 1 36MPI cd ${PBS_O_WORKDIR}. /etc/profile.d/modules.sh echo "Current directory is [$(pwd)]." #load alps module echo "[$(date)] load modules." module load alps/2.1.1-r6176 echo "[$(date)] start main simulations." mpirun spinmc --mpi --Tmin 5 parm9a_sc.in.xml echo "[$(date)] start evaluations." spinmc_evaluate parm9a_sc.task*.out.xml echo "[$(date)] end simulation." ALPS load mpirun --mpi evaluate

T c L T p (L) T c T p (L) L ν parm9a parm9a SWEEP 1. 2. 3. T c c 4. L T c

LATTICE="simple cubic lattice" 1. T c 2. L 1. L 3.

Tips textout9a.py python textout9a.py python textout9a.py > filename.txt SWEEP SWEEP

ALPS

( ) MateriApps (parm9b) LATTICE="square lattice" SNAPSHOT_INTERVAL J=1 ALGORITHM="ising" SNAPSHOT_INTERVAL SWEEPS=16384 (*.snap) THERMALIZATION=0 SNAPSHOT_INTERVAL=16384 parameter2xml parm9b L = 128 simplemc parm9b.in.xml { T = 3.0 } ls -l parm9b.*.snap { T = 2.3 } (*.snap *.vtk) { T = 2.0 } snap2vtk parm9b.*.snap ls -l parm9b.*.vtk VTK (±1) 33

ParaView paraview ECCS " " paraview.app file open parm9b.task1.clone1.16384.vtk OK Apply filters common glyph ( ) Glyph Type = Box, X Length = 0.08, Y Length = 0.08, Maximum Number of Points = 20000 Apply OpenGL window file open parm9b.task2.clone1.16384.vtk OK Apply filters common glyph ( ) Glyph OpenGL window file open parm9b.task3.clone1.16384.vtk OK Apply filters common glyph ( ) Glyph MateriApps 34

ParaView ( ) MateriApps Tools Add Camera Link ( Link Camera... ) 35

MateriApps F = E TS T=0.995Tc T=Tc T=1.05Tc ordered state critical point disordered state 36

XY MateriApps parameter2xml parm9c simplemc parm9c.in.xml snap2vtk parm9c.*.snap ParaView paraview file open parm9c.task1.clone1.16384.vtk OK properties Apply LATTICE="square lattice" J=1 ALGORITHM="xy" SWEEPS=16384 THERMALIZATION=0 SNAPSHOT_INTERVAL=16384 L = 64 { T = 0.01 } Glyph Glyph Type = Arrow, Tip Radius = 0.2, Shaft Radius = 0.06, Translate = -0.1 0 0, Scale = 0.2 0.2 0.2 -> Apply 37

XY Kosterlitz-Thouless

python NumPy

TRG 1. 2. 3.

TRG TensorNetwork_TRG.py cd cd Tutorial20180618/Tutorial_TRG L=8, T=2.0 python TensorNetwork_TRG.py -n 3 -T 2.0 n: L=2n n=3 L=8 出力 :T, free_energy_density= 2.0-2.07271839193 freee_energy_l8_d4.dat D: SVD python TRG_tutorial1-1.py free_energy_l2_d4.dat TRG python Plot_TRG_1-1.py https://github.com/todo-group/exact

TensorNetwork_TRG python TensorNetwork_TRG -h usage: TensorNetwork_TRG.py [-h] [-D D] [-n n] [-T T] [--step] [-- energy] [-Tmin Tmin] [-Tmax Tmax] [-Tstep Tstep] Tensor Network Renormalization for Square lattice Ising model optional arguments: -h, --help show this help message and exit -D D set bond dimension D for TRG -n n set size n representing L=2^n -T T set Temperature --step Perform multi temperature calculation --energy Calculate energy density by using impurity tensor -Tmin Tmin set minimum temperature for step calculation -Tmax Tmax set maximum temperature for step calculation -Tstep Tstep set temperature increments for step calculation Python flag: D SVD n L=2 n T -- step: -Tmin -Tmax -Tstep TensorNetwok_TRG.Calculate_TRG(D, n, T, Tmin, Tmax, Tstep, Energy_flag, Step_flag) -- energy:

Plot_TRG1-1.py # coding:utf-8 import matplotlib.pyplot as plt import TensorNetwork_TRG as TN ## read data T_L2,f_L2 = TN.read_free_energy( free_energy_l2_d4.dat") T_L4,f_L4 = TN.read_free_energy( free_energy_l4_d4.dat ) # read exact data T_L2e,f_L2e = TN.read_free_energy( exact/outputs/free_energy_exact_l2.dat") T_L4e,f_L4e = TN.read_free_energy( exact/outputs/free_energy_exact_l4.dat") ## plot data fig1,ax1= plt.subplots() ax1.set_xlabel("t") ax1.set_ylabel("f") ax1.set_title("free energy density of square lattice Ising model") ax1.plot(t_l2e, f_l2e, "r",label = "L=2: Exact") ax1.plot(t_l4e,f_l4e, "g",label = "L=4: Exact") ax1.plot(t_l2, f_l2, "ro",label = "L=2") ax1.plot(t_l4,f_l4, "go",label = "L=4") TensorNetwork_TRG.read_free_energy(file_name) Matplotlib ax1.legend(loc="lower left") plt.show()

TRG TRG Tips 1. TRG 2. D Plot_TRG_1-1.py exact/outputs/ exact/free_energy_finite usage: exact/free_energy_finite L Tmin Tmax Tstep L=64 T=1.0 ~ 2.0 0.1 exact/free_energy_finite 64 1.0 2.0 0.1

TRG Make_EC.py mkdir tutorial1-1 mv *.dat tutorial1-1 L=2, T=1.5~3.0 ΔT=0.01 python TensorNetwork_TRG.py -n 1 -Tmin 1.5 -Tmax 3.0 -Tstep 0.01 --step free_energy_l2_d4.dat Make_EC.py python Make_EC.py free_energy_l2_d4.dat energy_from_free_energy_l2_d4.dat, specific_heat_from_free_energy_l2_d4.dat python Plot_TRG_2-1.py

TRG L=2,4,8,16,32 python TRG_tutorial2-2.py Plot python Plot_TRG_2-2.py Make_EC Calculate_EC(T,f)

TRG TRG python Plot_TRG_3-1.py cd../tutorial_mc/simplemc parameters2xml parm9a simplemc parm9a.in.xml

TRG SWEEP TRG 1. TRG 2. TRG TRG Tips exact/free_energy_finite exact/free_energy_finite 64 1.0 2.0 0.001 > free_energy_exact_l64.dat python Make_EC.py free_energy_exact_l64.dat

TRG L L 1. L=48, 64, 2. or TRG SWEEP D 3. TRG

optional ITC-LMS ITC-LMS t-okubo@phys.s.u-tokyo.ac.jp 7/31

ALPS wiki http://alps.comp-phys.org/mediawiki/index.php ALPS ALPS, 70, 275 (2015 4 ). A Guide to Monte Carlo Simulations in Statistical Physics D. P Landau and K. Binder, 4th edittion, Cambridge University Press (2015) Tensor Renormalization Group Approach to Two-Dimensional Classical Lattice Models, M. Levin and C. P. Nave, Phys. Rev. Lett. 99, 120601 (2007) 2017 10

MateriApps 物質科学シミュレーションのポータルサイト MateriApps のハンズオン資料から借用 公開ソフトウェア(アプリケーション)を核としたコミュニティー形成をめざして 155の物質科学アプリケーションや ツールを紹介(2015年9月現在) やりたいこと からアプリケーショ ンを検索 検索タグ 特徴 対象 手法 アルゴリズム 開発者の声を利用者に届ける アプリ紹介 開発者ページ アプリ の魅力 将来性 応用性 フォーラム(掲示板)を利用した意見交換 講習会情報 web講習会 更新情報 2013年5月公開 MateriApps,2013-2015. All rights reserved. 月間 8000 ページビューにまで成長 40

MateriApps 155 (2015 9 ) MateriApps (37) (19) (19) (22) (8) (26) (28) 41

MateriApps MateriApps ( ) ( ) 42

MateriApps MateriApps : (CMSI) (ISSP) (IMS) (IMR) (CMSI) MateriApps ( /ISSP) (ISSP) (CMSI-ISSP) (ISSP) (ISSP) (CMSI-ISSP) (CMSI-IMR) (CMSI- IMS) (RIST) (RIST) (ISSP) ( ) : CMSI 44