main.html 6.12 KB
Newer Older
Davison's avatar
Davison committed
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module main</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>main</strong></big></big></font></td
><td align=right valign=bottom
11
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Cmain.py">c:\users\davison\research\im-srg_tensorflow\main.py</a></font></td></tr></table>
Davison's avatar
Davison committed
12
13
14
15
16
17
18
19
20
    <p><tt>#&nbsp;Main&nbsp;program&nbsp;for&nbsp;IM-SRG.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="tensornetwork.backends.html">tensornetwork.backends</a><br>
21
<a href="oop_imsrg.ci_pairing.cipy_pairing_plus_ph.html">oop_imsrg.ci_pairing.cipy_pairing_plus_ph</a><br>
Davison's avatar
Davison committed
22
23
<a href="tensornetwork.config.html">tensornetwork.config</a><br>
<a href="tensornetwork.contractors.html">tensornetwork.contractors</a><br>
24
25
26
27
<a href="glob.html">glob</a><br>
</td><td width="25%" valign=top><a href="itertools.html">itertools</a><br>
<a href="linecache.html">linecache</a><br>
<a href="tensornetwork.ncon_interface.html">tensornetwork.ncon_interface</a><br>
Davison's avatar
Davison committed
28
29
30
<a href="tensornetwork.network.html">tensornetwork.network</a><br>
<a href="tensornetwork.network_components.html">tensornetwork.network_components</a><br>
</td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
31
32
33
34
35
<a href="os.html">os</a><br>
<a href="pickle.html">pickle</a><br>
<a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br>
<a href="random.html">random</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
Davison's avatar
Davison committed
36
<a href="time.html">time</a><br>
37
<a href="tracemalloc.html">tracemalloc</a><br>
Davison's avatar
Davison committed
38
<a href="tensornetwork.version.html">tensornetwork.version</a><br>
39
<a href="tensornetwork.visualization.html">tensornetwork.visualization</a><br>
Davison's avatar
Davison committed
40
41
42
43
44
45
46
47
48
49
50
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-derivative"><strong>derivative</strong></a>(t, y, hamiltonian, occ_tensors, generator, flow)</dt><dd><tt>Defines&nbsp;the&nbsp;derivative&nbsp;to&nbsp;pass&nbsp;into&nbsp;ode&nbsp;object.<br>
&nbsp;<br>
Arguments:<br>
(required&nbsp;by&nbsp;scipy.integrate.ode)<br>
51
t&nbsp;--&nbsp;points&nbsp;at&nbsp;which&nbsp;to&nbsp;solve&nbsp;for&nbsp;y<br>
Davison's avatar
Davison committed
52
53
54
55
56
57
58
59
60
61
62
y&nbsp;--&nbsp;in&nbsp;this&nbsp;case,&nbsp;1D&nbsp;array&nbsp;that&nbsp;contains&nbsp;E,&nbsp;f,&nbsp;G<br>
&nbsp;<br>
(additional&nbsp;parameters)<br>
hamiltonian&nbsp;--&nbsp;Hamiltonian&nbsp;object<br>
occ_tensors&nbsp;--&nbsp;OccupationTensors&nbsp;object<br>
generator&nbsp;--&nbsp;Generator&nbsp;object<br>
flow&nbsp;--&nbsp;Flow&nbsp;object<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
dy&nbsp;--&nbsp;next&nbsp;step&nbsp;in&nbsp;flow</tt></dd></dl>
63
64
65
66
67
68
69
70
71
72
73
74
75
 <dl><dt><a name="-exact_diagonalization"><strong>exact_diagonalization</strong></a>(d, g)</dt><dd><tt>Result&nbsp;of&nbsp;exact&nbsp;diagonalization&nbsp;in&nbsp;spin=0&nbsp;block&nbsp;of<br>
pairing&nbsp;Hamiltonian,&nbsp;given&nbsp;8&nbsp;single&nbsp;particle&nbsp;states&nbsp;(4&nbsp;hole&nbsp;states<br>
and&nbsp;4&nbsp;particle&nbsp;states).<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
d&nbsp;--&nbsp;energy&nbsp;level&nbsp;spacing<br>
g&nbsp;--&nbsp;pairing&nbsp;strength<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
E&nbsp;--&nbsp;ground&nbsp;state&nbsp;energy</tt></dd></dl>
 <dl><dt><a name="-main"><strong>main</strong></a>(n_holes, n_particles, ref=None, d=1.0, g=0.5, pb=0.0)</dt><dd><tt>Main&nbsp;method&nbsp;uses&nbsp;scipy.integrate.ode&nbsp;to&nbsp;solve&nbsp;the&nbsp;IMSRG&nbsp;flow<br>
Davison's avatar
Davison committed
76
77
78
79
80
81
82
83
84
85
86
87
equations.</tt></dd></dl>
 <dl><dt><a name="-ravel"><strong>ravel</strong></a>(y, bas_len)</dt><dd><tt>Transforms&nbsp;1D&nbsp;array&nbsp;into&nbsp;E,&nbsp;f,&nbsp;and&nbsp;G.&nbsp;Facilitates<br>
compatability&nbsp;with&nbsp;scipy.integrate.ode.<br>
&nbsp;<br>
Arugments:<br>
&nbsp;<br>
y&nbsp;--&nbsp;1D&nbsp;data&nbsp;array&nbsp;(output&nbsp;from&nbsp;unravel)<br>
bas_len&nbsp;--&nbsp;length&nbsp;of&nbsp;single&nbsp;particle&nbsp;basis<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
E,&nbsp;f,&nbsp;G&nbsp;--&nbsp;normal-ordered&nbsp;pieces&nbsp;of&nbsp;Hamiltonian</tt></dd></dl>
88
89
90
 <dl><dt><a name="-scan_params"><strong>scan_params</strong></a>()</dt><dd><tt>#&nbsp;@profile</tt></dd></dl>
 <dl><dt><a name="-test_exact"><strong>test_exact</strong></a>(plots_dir)</dt></dl>
 <dl><dt><a name="-test_refs"><strong>test_refs</strong></a>(plots_dir)</dt></dl>
Davison's avatar
Davison committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
 <dl><dt><a name="-unravel"><strong>unravel</strong></a>(E, f, G)</dt><dd><tt>Transforms&nbsp;E,&nbsp;f,&nbsp;and&nbsp;G&nbsp;into&nbsp;a&nbsp;1D&nbsp;array.&nbsp;Facilitates<br>
compatability&nbsp;with&nbsp;scipy.integrate.ode.<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
E,&nbsp;f,&nbsp;G&nbsp;--&nbsp;normal-ordered&nbsp;pieces&nbsp;of&nbsp;Hamiltonian<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
concatenation&nbsp;of&nbsp;tensors&nbsp;peeled&nbsp;into&nbsp;1D&nbsp;arrays</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
108
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)</td></tr></table>
Davison's avatar
Davison committed
109
</body></html>