Detailed Description

Post-processing of a single DMRG run.

Definition at line 29 of file dmrg_postprocessing.py.

Public Member Functions

def __init__ (self, base_dir, jobs_dir='', label=None)
 Initializes the Data object. More...
 
def PathToFile (self, filename="")
 Returns the path to a filename prepended with the base directory. More...
 
def Label (self)
 Returns the label of the Data object. More...
 
def RunData (self)
 Returns the contents of the DMRGRun.json data file. More...
 
def Steps (self, header=None)
 Returns a specific column of data of DMRGSteps.json according to the header string or returns a deepcopy of the entire data table. More...
 
def StepsHeaders (self)
 Returns the headers of the table in DMRGSteps.json. More...
 
def SweepIdx (self, show_all=False)
 Returns the step indices corresponding to the end of a sweep. More...
 
def EnergyPerSite (self)
 Calculates the energy per site of the superblock Hamiltonian for all steps. More...
 
def NumStatesSuperblock (self, n=None)
 Determines the number of states in the superblock Hamiltonian. More...
 
def PlotEnergyPerSite (self, kwargs)
 Plots the energy per site of the superblock Hamiltonian as a function of DMRG steps. More...
 
def PlotErrorEnergyPerSite (self, which='abs', compare_with='min', kwargs)
 Plots the error in the energy per site of the superblock Hamiltonian as a function of DMRG steps. More...
 
def PlotLoopBars (self, my_color=None, kwargs)
 Plot vertical lines corresponding to the end of each sweep. More...
 
def Timings (self)
 
def TimingsHeaders (self)
 
def TotalTime (self)
 
def PlotTotalTime (self, which='plot', cumulative=False, units='sec', kwargs)
 
def PreallocData (self, n=None, key=None)
 
def PlotPreallocData (self, n, totals_only=True, kwargs)
 
def RDMEigenvalues (self, idx=None)
 Loads the reduced density matrix eigenvalues at the end of each sweep or for a particular sweep. More...
 
def EntanglementEntropy (self)
 Calculates the entanglement entropy using eigenvalues from all sectors. More...
 
def PlotEntanglementEntropy (self)
 Plots the entanglement entropy using eigenvalues from all sectors. More...
 
def Correlations (self)
 
def CorrelationsInfo (self)
 
def CorrelationsValues (self, key=None, labels=None)
 
def CorrelationsInfoGetIndex (self, key=None, value=None)
 

Private Member Functions

def _LoadRun (self)
 Loads the DMRGRun.json data file, if not loaded, and returns its contents. More...
 
def _LoadSteps (self)
 Loads data from DMRGSteps.json, if not loaded, and extracts the indices for required data columns. More...
 
def _LoadTimings (self)
 
def _LoadSpectra (self)
 
def _LoadCorrelations (self)
 
def _LoadCorrelationsLookup (self)
 

Private Attributes

 _base_dir
 
 _label
 
 _run
 
 _sweepIdx
 
 _steps
 
 _timings
 
 _hamPrealloc
 
 _entSpectra
 
 _corr
 
 _corrLookup
 
 _color
 
 _stepsHeaders
 
 _idxEnergy
 
 _idxNSysEnl
 
 _idxNEnvEnl
 
 _idxLoopidx
 
 _idxNStatesH
 
 _NStatesH
 
 _p
 
 _timingsHeaders
 
 _idxTimeTot
 

The documentation for this class was generated from the following file:
This site was generated by Sphinx using Doxygen with a customized theme from doxygen-bootstrapped.