SyTen
example-dmrg.py File Reference

Example Python script calling DMRG. More...

Variables

 example-dmrg.dmrgconf = dmrg.DMRGConfig()
 dmrg config object More...
 
 example-dmrg.e1 = mp.expectation(mps1, lat.get("H"))
 energy after first stage More...
 
 example-dmrg.e2 = mp.expectation(mps2, lat.get("H"))
 energy after second stage More...
 
 example-dmrg.e3 = mp.expectation(mps3, lat.get("H"))
 energy after third stage More...
 
 example-dmrg.lat = mp.Lattice("sp.lat")
 the lattice file to be used More...
 
 example-dmrg.mps1 = pdmrg.run()
 state after first stage More...
 
 example-dmrg.mps2 = pdmrg.run()
 state after second stage More...
 
 example-dmrg.mps3 = pdmrg.run()
 state after third stage More...
 
 example-dmrg.pdmrg = mp.dmrg.PDMRG(rnd, [lat.get("H")], dmrgconf)
 PDMRG management object. More...
 
 example-dmrg.prefix
 prefix to be used for log files More...
 
 example-dmrg.rnd = mp.genSampledState(lat, quiet=False)
 our initial random state, here generated with keyword arguments More...
 

Detailed Description

Example Python script calling DMRG.

This script assumes that a file sp.lat already exists in the current directory and that this file defines an operator H to be used as the Hamiltonian (e.g. syten-sql-mps-spin -l 20 -o sp.lat).