tnpy.tsdrg.HighEnergyTreeTensorNetworkSDRG
4.5. tnpy.tsdrg.HighEnergyTreeTensorNetworkSDRG#
- class tnpy.tsdrg.HighEnergyTreeTensorNetworkSDRG(*args, **kwargs)[source]#
Bases:
tnpy.tsdrg.TreeTensorNetworkSDRG
The tree tensor network version of strong disorder renormalization group algorithm.
- Parameters
mpo – The matrix product operator.
chi – The truncation dimensions.
Examples
The tSDRG algorithm can be launched by calling
run()
method.>>> tsdrg = TreeTensorNetworkSDRG(mpo, chi=32) >>> tsdrg.run()
After executing
run()
, one can access the binary tensor treeTensorTree
through the attributetree
. For measurements, please refer tomeasurements
orTreeTensorNetworkMeasurements
.- __init__(*args, **kwargs)[source]#
The tree tensor network version of strong disorder renormalization group algorithm.
- Parameters
mpo – The matrix product operator.
chi – The truncation dimensions.
Examples
The tSDRG algorithm can be launched by calling
run()
method.>>> tsdrg = TreeTensorNetworkSDRG(mpo, chi=32) >>> tsdrg.run()
After executing
run()
, one can access the binary tensor treeTensorTree
through the attributetree
. For measurements, please refer tomeasurements
orTreeTensorNetworkMeasurements
.
Methods
__init__
(*args, **kwargs)The tree tensor network version of strong disorder renormalization group algorithm.
block_eigen_solver
(locus)Solve the 2-site Hamiltonian with
chi
highest eigen-pairs.block_hamiltonian
(locus)Construct the 2-site Hamiltonian from coarse-graining MPO.
run
()Start the algorithm.
spectrum_projector
(locus, evecs)Coarse-grain the MPO with given evecs which is used to form a projector.
truncation_gap
(evals)Return the gap upon
chi
highest eigenvalues kept.Attributes
chi
The input bond dimensions.
evals
The renormalized eigenvalues, with length
chi
.measurements
Call available measurements in
TreeTensorNetworkMeasurements
.mpo
The input matrix product operator.
n_sites
Number of sites, i.e. the system size.
tree
The tree.
- __init__(*args, **kwargs)[source]#
The tree tensor network version of strong disorder renormalization group algorithm.
- Parameters
mpo – The matrix product operator.
chi – The truncation dimensions.
Examples
The tSDRG algorithm can be launched by calling
run()
method.>>> tsdrg = TreeTensorNetworkSDRG(mpo, chi=32) >>> tsdrg.run()
After executing
run()
, one can access the binary tensor treeTensorTree
through the attributetree
. For measurements, please refer tomeasurements
orTreeTensorNetworkMeasurements
.
- block_eigen_solver(locus)[source]#
Solve the 2-site Hamiltonian with
chi
highest eigen-pairs.- Parameters
locus (int) – The site in coarse-grained system during the RG process.
- Returns
A tuple (
evals
,evecs
), whereevals
are the highestchi
eigenvalues, andevecs
are the corresponding eigenvectors.- Return type
Tuple[numpy.ndarray, numpy.ndarray]
- truncation_gap(evals)[source]#
Return the gap upon
chi
highest eigenvalues kept.- Parameters
evals (numpy.ndarray) – The eigenvalues (energy spectrum).
- Returns
The truncation gap, evals[-chi] - evals[-chi-1].
- Return type
float