main.html 4.55 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
51
52
53
54
55
56
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>
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>
Davison's avatar
Davison committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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>
 <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
81
</td></tr></table>
Davison's avatar
Davison committed
82
</body></html>