Tensor Network Theory Library  Beta release 1.2.1
A library of routines for performing TNT-based operations
 All Data Structures Functions Variables Groups Pages
tntMatCreateBlankFullInit.m
1 
2 %======================================================================
3 %> @ingroup matscripts
4 %> Creates and initialises all the variables needed for initialisation file
5 %> with default values
6 %======================================================================
7 
9 
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 % First set all the default values
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 
14 % System parameters
15 chi = 50;
16 L = 20;
17 tntSystem.zero_tol = 1e-14;
18 tntSystem.abs_trunc_tol = -1;
19 tntSystem.rel_trunc_tol = 1e-16;
20 tntSystem.trunc_err_func = '2norm';
21 tntSystem.svdtype = 1;
22 tntSystem.maxeigiter = 300;
23 tntSystem.reshape_reuse = 0;
24 tntSystem.sysnum = 0;
25 tntSystem.basisOp = [];
26 tntSystem.symm_num_qn = 0;
27 tntSystem.symm_type = 0;
28 
29 % Ground state calculcation parameters
30 precision = -1.0;
31 qn_tot = 0;
32 i_max = 50;
33 wf_gs = tntMatCreateProdMps({},[]);
34 osg = tntMatCreateOpArray({});
35 osparamg= [];
36 nnlg = tntMatCreateOpArray({});
37 nnrg = tntMatCreateOpArray({});
38 nnparamg = [];
39 
40 % Modifier parameters
41 mod_renorm = 1;
42 modifypmpo = [];
43 
44 % Time evolution parameters
45 numsteps = 0;
46 dt = 0.01;
47 tbigstep = 50;
48 U1symm_dyn = 1;
49 wf_start = tntMatCreateProdMps({},[]);
50 ost = tntMatCreateOpArray({});
51 osparamt = [];
52 osparamt_time = [];
53 nnlt = tntMatCreateOpArray({});
54 nnrt = tntMatCreateOpArray({});
55 nnparamt = [];
56 nnparamt_time = [];
57 calc_ol_gs = 0;
58 calc_ol_is = 0;
59 calc_energy = 0;
60 
61 % Expectation value structure
62 ExOp.os_operators = tntMatCreateOpArray({});
63 ExOp.os_labels = {};
64 ExOp.nn_operators = tntMatCreateOpArray({});
65 ExOp.nn_labels = {};
66 ExOp.cs_operators = tntMatCreateOpArray({});
67 ExOp.cs_labels = {};
68 ExOp.ap_operators = tntMatCreateOpArray({});
69 ExOp.ap_labels = {};
70 
71 
72 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
73 % Now assign them to the workspace of the calling function
74 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75 
76 assignin('caller','chi',chi);
77 assignin('caller','L',L);
78 assignin('caller','tntSystem',tntSystem);
79 assignin('caller','precision',precision);
80 assignin('caller','qn_tot',qn_tot);
81 assignin('caller','i_max',i_max);
82 assignin('caller','wf_gs',wf_gs);
83 assignin('caller','osg', osg);
84 assignin('caller','osparamg', osparamg);
85 assignin('caller','nnlg', nnlg);
86 assignin('caller','nnrg', nnrg);
87 assignin('caller','nnparamg', nnparamg);
88 assignin('caller','mod_renorm', mod_renorm);
89 assignin('caller','modifypmpo', modifypmpo);
90 assignin('caller','numsteps', numsteps);
91 assignin('caller','dt', dt);
92 assignin('caller','tbigstep', tbigstep);
93 assignin('caller','U1symm_dyn', U1symm_dyn);
94 assignin('caller','wf_start', wf_start);
95 assignin('caller','ost', ost);
96 assignin('caller','osparamt', osparamt);
97 assignin('caller','osparamt_time', osparamt_time);
98 assignin('caller','nnlt', nnlt);
99 assignin('caller','nnrt', nnrt);
100 assignin('caller','nnparamt', nnparamt);
101 assignin('caller','nnparamt_time', nnparamt_time);
102 assignin('caller','calc_ol_gs', calc_ol_gs);
103 assignin('caller','calc_ol_is', calc_ol_is);
104 assignin('caller','calc_energy', calc_energy);
105 assignin('caller','ExOp', ExOp);
106 
107 end
function tntMatCreateBlankFullInit()
function tntMatCreateOpArray(in ops)
function tntMatCreateProdMps(in cfg, in qnums)