What you know you can't explain, but you feel it. You've felt it your entire life, that there's something wrong with the world. You don't know what it is, but it's there, like a splinter in your mind, driving you mad.
Main /
SimpleScriptExample#!/bin/bash # check that we have the correct number of parameters if [ $# -ne 2 ] ; then echo "error: expected 2 parameters <L> <Sz>" exit 1 fi L=$1 Sz=$2 # Some other parameters we will not need to vary often states=20 sweeps=10 # construct the lattice # filename of the lattice LatticeFile="lattice-$L" # does the lattice exist already? if [ -f $LatticeFile ] ; then echo "Lattice file already exists" else echo "Constructing lattice file $LatticeFile ..." spinchain-u1 -L $L -o $LatticeFile fi # construct an initial state WaveFile="psi-$L-$Sz" echo "Constructing initial state $WaveFile ..." mp-random -l $LatticeFile -q $Sz -o $WaveFile # run the dmrg program mp-dmrg -H $LatticeFile:"H" -w $WaveFile -m $states -s $sweeps |