Пример #1
0
def get_ground_state(k, tMax, tMin, tFactor, atoms, jMatrices, tol=1e-7):
    """This method performs the monte carlo simulation and then locally
    optimizes the results without the use of files."""
    spins = Sim_Aux(k, tMax, tMin, tFactor, atoms, jMatrices)
    print "Global Optimization Complete!"
    opt_spins = opt_aux(atoms, jMatrices, spins, tol)
    return opt_spins
Пример #2
0
def get_ground_state(k, tMax, tMin, tFactor, atoms, jMatrices, tol = 1e-25):
    """This method performs the monte carlo simulation and then locally
    optimizes the results without the use of files."""
    spins = Sim_Aux(k, tMax, tMin, tFactor, atoms, jMatrices)
    opt_spins = opt_aux(atoms, jMatrices, spins, tol)
    return opt_spins
    return spins
Пример #3
0
 def getSpins(self, inFilePath):
     atoms, jMatrices = readFile(inFilePath)
     spins = Sim_Aux(self.k, self.tMax, self.tMin, self.tFactor, atoms, jMatrices)
     opt_spins = opt_aux(atoms, jMatrices, spins, self.tol)
     return (spins, opt_spins)