main.html 7.1 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
Jacob August Davison's avatar
Jacob August Davison committed
11
12
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/main.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/main.py</a></font></td></tr></table>
    <p><tt>#&nbsp;Main&nbsp;program&nbsp;for&nbsp;IM-SRG(2).</tt></p>
Davison's avatar
Davison committed
13
14
15
16
17
18
19
<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>
Jacob August Davison's avatar
Jacob August Davison committed
20
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="oop_imsrg.ci_pairing.cipy_pairing_plus_ph.html">oop_imsrg.ci_pairing.cipy_pairing_plus_ph</a><br>
21
<a href="glob.html">glob</a><br>
Jacob August Davison's avatar
Jacob August Davison committed
22
23
24
<a href="itertools.html">itertools</a><br>
<a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top><a href="numba.html">numba</a><br>
25
26
27
<a href="os.html">os</a><br>
<a href="pickle.html">pickle</a><br>
<a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br>
Jacob August Davison's avatar
Jacob August Davison committed
28
</td><td width="25%" valign=top><a href="benchmarking_wd.imsrg_pairing.html">benchmarking_wd.imsrg_pairing</a><br>
29
<a href="random.html">random</a><br>
Jacob August Davison's avatar
Jacob August Davison committed
30
<a href="sys.html">sys</a><br>
Davison's avatar
Davison committed
31
<a href="time.html">time</a><br>
Jacob August Davison's avatar
Jacob August Davison committed
32
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
33
<a href="tracemalloc.html">tracemalloc</a><br>
Davison's avatar
Davison committed
34
35
36
37
38
39
40
41
42
43
44
</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>
45
t&nbsp;--&nbsp;points&nbsp;at&nbsp;which&nbsp;to&nbsp;solve&nbsp;for&nbsp;y<br>
Davison's avatar
Davison committed
46
47
48
49
50
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>
Jacob August Davison's avatar
Jacob August Davison committed
51
52
generator&nbsp;&nbsp;&nbsp;--&nbsp;Generator&nbsp;object<br>
flow&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;Flow&nbsp;object<br>
Davison's avatar
Davison committed
53
54
55
56
&nbsp;<br>
Returns:<br>
&nbsp;<br>
dy&nbsp;--&nbsp;next&nbsp;step&nbsp;in&nbsp;flow</tt></dd></dl>
Jacob August Davison's avatar
Jacob August Davison committed
57
58
 <dl><dt><a name="-get_vacuum_coeffs"><strong>get_vacuum_coeffs</strong></a>(E, f, G, basis, holes)</dt></dl>
 <dl><dt><a name="-main"><strong>main</strong></a>(n_holes, n_particles, ref=[], d=1.0, g=0.5, pb=0.0, verbose=1, flow_data_log=0, generator='wegner')</dt><dd><tt>Main&nbsp;method&nbsp;uses&nbsp;scipy.integrate.ode&nbsp;to&nbsp;solve&nbsp;the&nbsp;IMSRG(2)&nbsp;flow<br>
Jacob August Davison's avatar
Jacob August Davison committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
equations.<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
n_holes&nbsp;--&nbsp;number&nbsp;of&nbsp;hole&nbsp;states&nbsp;in&nbsp;the&nbsp;SP&nbsp;basis&nbsp;(int)<br>
n_particles&nbsp;--&nbsp;number&nbsp;of&nbsp;particle&nbsp;states&nbsp;in&nbsp;the&nbsp;SP&nbsp;basis&nbsp;(int)<br>
&nbsp;<br>
Keyword&nbsp;arguments:<br>
&nbsp;<br>
ref&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;reference&nbsp;state&nbsp;for&nbsp;the&nbsp;IM-SRG&nbsp;flow&nbsp;(1D&nbsp;array)<br>
d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;energy&nbsp;spacing&nbsp;in&nbsp;Pairing&nbsp;model&nbsp;(default:&nbsp;1.0)<br>
g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;pairing&nbsp;strength&nbsp;in&nbsp;Pairing&nbsp;model&nbsp;(default:&nbsp;0.5)<br>
pb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;pair-breaking&nbsp;in&nbsp;Pairing-plus-ph&nbsp;model&nbsp;(default:&nbsp;0.0)<br>
verbose&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;toggles&nbsp;output&nbsp;of&nbsp;flow&nbsp;information<br>
flow_data_log&nbsp;--&nbsp;toggles&nbsp;output&nbsp;of&nbsp;flow&nbsp;data&nbsp;(pickled&nbsp;IM-SRG&nbsp;coefficients&nbsp;every&nbsp;10&nbsp;integrator&nbsp;steps)<br>
generator&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;specify&nbsp;generator&nbsp;to&nbsp;produce&nbsp;IM-SRG&nbsp;flow<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
convergence&nbsp;--&nbsp;0&nbsp;if&nbsp;diverged,&nbsp;1&nbsp;if&nbsp;converged&nbsp;(little&nbsp;bit&nbsp;outdated)<br>
iters&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;number&nbsp;of&nbsp;iterations&nbsp;before&nbsp;integrator&nbsp;stopped<br>
d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;energy&nbsp;spacing&nbsp;in&nbsp;pairing&nbsp;model<br>
g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;pairing&nbsp;strength&nbsp;in&nbsp;pairing&nbsp;model<br>
pb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;pair-breaking&nbsp;strength&nbsp;in&nbsp;Pairing-plus-ph&nbsp;model<br>
num_sp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;number&nbsp;of&nbsp;single&nbsp;particle&nbsp;states<br>
s_vals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;1D&nbsp;array&nbsp;of&nbsp;flow&nbsp;parameter&nbsp;values<br>
E_vals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;1D&nbsp;array&nbsp;of&nbsp;zero-body&nbsp;energy&nbsp;values<br>
time_str&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;time&nbsp;taken&nbsp;for&nbsp;flow&nbsp;completion&nbsp;(string)</tt></dd></dl>
Davison's avatar
Davison committed
87
88
89
 <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>
Jacob August Davison's avatar
Jacob August Davison committed
90
Arguments:<br>
Davison's avatar
Davison committed
91
&nbsp;<br>
Jacob August Davison's avatar
Jacob August Davison committed
92
y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;1D&nbsp;data&nbsp;array&nbsp;(output&nbsp;from&nbsp;unravel)<br>
Davison's avatar
Davison committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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>
 <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>
Jacob August Davison's avatar
Jacob August Davison committed
108
</td></tr></table>
Davison's avatar
Davison committed
109
</body></html>