Commit 4715ed03 authored by Jacob August Davison's avatar Jacob August Davison
Browse files

built pydocs

parent 24887342
......@@ -2,9 +2,9 @@
* reconfigure code logic
* [x] encapsulate normal ordered Hamiltonian and remove global variables
* [ ] change variable names to make more sense when reading
* [x] change variable names to make more sense when reading
* [x] create method for generating particle/hole basis and defining reference state (this is for an easy way to change number of particles in G.S., etc.)
* [ ] look into normal ordering procedure (could be written differently)
* [x] look into normal ordering procedure (could be written differently)
* [x] try object-oriented approach?
* [x] pass particle/hole tensors to generator
* [x] configure ability to flow with n_holes =/= n_particles
......@@ -15,9 +15,9 @@
* [x] write IMSRG flow in TensorNetwork architecture
* [x] refactor TN code for intuitive user control (e.g. let user control coupling strength and level spacing)
* [x] add pair breaking/creating term to Hamiltonian and include interactions in 1 pair and 0 pair blocks
* [ ] investigate where level crossing may occur for values of pb and g
* [ ] use exact diagonalization results to verify
* [ ] scan reference state configurations to find ground state for values of pb and g
* [x] investigate where level crossing may occur for values of pb and g
* [x] use exact diagonalization results to verify
* [x] scan reference state configurations to find ground state for values of pb and g
* [x] using TN to implement the IMSRG(3)
* [X] data for committee meeting
......
......@@ -8,8 +8,11 @@
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>flow</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Coop_imsrg%5Cflow.py">c:\users\davison\research\im-srg_tensorflow\oop_imsrg\flow.py</a></font></td></tr></table>
<p></p>
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/flow.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/flow.py</a></font></td></tr></table>
<p><tt>#import&nbsp;tensorflow&nbsp;as&nbsp;tf<br>
#&nbsp;tf.enable_v2_behavior()<br>
#import&nbsp;tensornetwork&nbsp;as&nbsp;tn<br>
#import&nbsp;numpy&nbsp;as&nbsp;np</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
......@@ -17,15 +20,11 @@
<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>
<a href="tensornetwork.config.html">tensornetwork.config</a><br>
<a href="tensornetwork.contractors.html">tensornetwork.contractors</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.ncon_interface.html">tensornetwork.ncon_interface</a><br>
<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>
<a href="tensornetwork.version.html">tensornetwork.version</a><br>
<a href="tensornetwork.visualization.html">tensornetwork.visualization</a><br>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
<a href="numba.html">numba</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
......@@ -125,9 +124,9 @@ Data descriptors inherited from <a href="flow.html#Flow">Flow</a>:<br>
<font color="#000000" face="helvetica, arial"><a name="Flow_IMSRG3">class <strong>Flow_IMSRG3</strong></a>(<a href="flow.html#Flow_IMSRG2">Flow_IMSRG2</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#Flow_IMSRG3">Flow_IMSRG3</a>(gen)<br>
<td colspan=2><tt><a href="#Flow_IMSRG3">Flow_IMSRG3</a>(h,&nbsp;occ_t)<br>
&nbsp;<br>
Calculates&nbsp;the&nbsp;flow&nbsp;equations&nbsp;for&nbsp;the&nbsp;IMSRG(2).<br>&nbsp;</tt></td></tr>
Calculates&nbsp;the&nbsp;flow&nbsp;equations&nbsp;for&nbsp;the&nbsp;IMSRG(3).&nbsp;Inherits&nbsp;from&nbsp;<a href="#Flow_IMSRG2">Flow_IMSRG2</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="flow.html#Flow_IMSRG3">Flow_IMSRG3</a></dd>
......@@ -137,16 +136,14 @@ Calculates&nbsp;the&nbsp;flow&nbsp;equations&nbsp;for&nbsp;the&nbsp;IMSRG(2).<br
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="Flow_IMSRG3-__init__"><strong>__init__</strong></a>(self, gen)</dt><dd><tt>Class&nbsp;constructor.&nbsp;Instantiates&nbsp;<a href="#Flow_IMSRG2">Flow_IMSRG2</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
<dl><dt><a name="Flow_IMSRG3-__init__"><strong>__init__</strong></a>(self, h, occ_t)</dt><dd><tt>Class&nbsp;constructor.&nbsp;Instantiates&nbsp;<a href="#Flow_IMSRG3">Flow_IMSRG3</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
h&nbsp;--&nbsp;Hamiltonian&nbsp;<a href="builtins.html#object">object</a><br>
occ_t&nbsp;--&nbsp;OccupationTensors&nbsp;<a href="builtins.html#object">object</a></tt></dd></dl>
<hr>
Methods inherited from <a href="flow.html#Flow_IMSRG2">Flow_IMSRG2</a>:<br>
<dl><dt><a name="Flow_IMSRG3-flow"><strong>flow</strong></a>(self, gen)</dt><dd><tt>Iterates&nbsp;the&nbsp;IMSRG2&nbsp;flow&nbsp;equations&nbsp;once.<br>
<dl><dt><a name="Flow_IMSRG3-flow"><strong>flow</strong></a>(self, gen)</dt><dd><tt>Iterates&nbsp;the&nbsp;IMSRG3&nbsp;flow&nbsp;equations&nbsp;once.&nbsp;Extends&nbsp;IMSRG2&nbsp;flow&nbsp;function.<br>
&nbsp;<br>
Arugments:<br>
&nbsp;<br>
......@@ -156,7 +153,8 @@ Returns:<br>
&nbsp;<br>
(dE,&nbsp;--&nbsp;zero-body&nbsp;tensor<br>
&nbsp;df,&nbsp;--&nbsp;one-body&nbsp;tensor<br>
&nbsp;dG)&nbsp;--&nbsp;two-body&nbsp;tensor</tt></dd></dl>
&nbsp;dG,&nbsp;--&nbsp;two-body&nbsp;tensor<br>
&nbsp;dW)&nbsp;--&nbsp;three-body&nbsp;tensor</tt></dd></dl>
<hr>
Data descriptors inherited from <a href="flow.html#Flow">Flow</a>:<br>
......@@ -166,12 +164,5 @@ Data descriptors inherited from <a href="flow.html#Flow">Flow</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></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>
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)</td></tr></table>
</td></tr></table></td></tr></table>
</body></html>
\ No newline at end of file
......@@ -8,8 +8,10 @@
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>generator</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Coop_imsrg%5Cgenerator.py">c:\users\davison\research\im-srg_tensorflow\oop_imsrg\generator.py</a></font></td></tr></table>
<p></p>
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/generator.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/generator.py</a></font></td></tr></table>
<p><tt>#import&nbsp;tensorflow&nbsp;as&nbsp;tf<br>
#&nbsp;tf.enable_v2_behavior()<br>
#import&nbsp;tensornetwork&nbsp;as&nbsp;tn</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
......@@ -17,15 +19,11 @@
<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>
<a href="tensornetwork.config.html">tensornetwork.config</a><br>
<a href="tensornetwork.contractors.html">tensornetwork.contractors</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.ncon_interface.html">tensornetwork.ncon_interface</a><br>
<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>
<a href="tensornetwork.version.html">tensornetwork.version</a><br>
<a href="tensornetwork.visualization.html">tensornetwork.visualization</a><br>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
<a href="numba.html">numba</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
......@@ -46,7 +44,9 @@
<dt><font face="helvetica, arial"><a href="generator.html#WegnerGenerator3B">WegnerGenerator3B</a>
</font></dt></dl>
</dd>
</dl>
<dt><font face="helvetica, arial"><a href="generator.html#WhiteGenerator">WhiteGenerator</a>
</font></dt><dt><font face="helvetica, arial"><a href="generator.html#WhiteGeneratorMP">WhiteGeneratorMP</a>
</font></dt></dl>
</dd>
</dl>
</dd>
......@@ -168,9 +168,8 @@ occ_t&nbsp;--&nbsp;OccupationTensor&nbsp;<a href="builtins.html#object">object</
<dl><dt><a name="WegnerGenerator3B-calc_eta"><strong>calc_eta</strong></a>(self)</dt><dd><tt>Inherits&nbsp;from&nbsp;<a href="#WegnerGenerator">WegnerGenerator</a>.<br>
&nbsp;<br>
Calculate&nbsp;the&nbsp;generator.&nbsp;The&nbsp;terms&nbsp;are&nbsp;defined&nbsp;in&nbsp;An<br>
Advanced&nbsp;Course&nbsp;in&nbsp;Computation&nbsp;Nuclear&nbsp;Physics,&nbsp;Ch.10.<br>
See&nbsp;also&nbsp;dx.doi.org/10.1016/j.physrep.2015.12.007<br>
Calculate&nbsp;the&nbsp;generator.&nbsp;See&nbsp;dx.doi.org/10.1016/j.physrep.2015.12.007,<br>
Appendix&nbsp;B,&nbsp;for&nbsp;three-body&nbsp;flow&nbsp;equations.<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
......@@ -220,12 +219,91 @@ Data descriptors inherited from <a href="generator.html#Generator">Generator</a>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<font color="#000000" face="helvetica, arial"><a name="WhiteGenerator">class <strong>WhiteGenerator</strong></a>(<a href="generator.html#Generator">Generator</a>)</font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)</td></tr></table>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#WhiteGenerator">WhiteGenerator</a>(h)<br>
&nbsp;<br>
Calculate&nbsp;White's&nbsp;generator&nbsp;for&nbsp;a&nbsp;normal&nbsp;ordered&nbsp;Hamiltonian.<br>
This&nbsp;standard&nbsp;implemenation&nbsp;uses&nbsp;Epstein-Nesbet&nbsp;denominators.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="generator.html#WhiteGenerator">WhiteGenerator</a></dd>
<dd><a href="generator.html#Generator">Generator</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WhiteGenerator-__init__"><strong>__init__</strong></a>(self, h)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
<dl><dt><a name="WhiteGenerator-calc_eta"><strong>calc_eta</strong></a>(self)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>G</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
f&nbsp;--&nbsp;two-body&nbsp;tensor&nbsp;elements&nbsp;(initialized&nbsp;by&nbsp;Hamiltonian&nbsp;object)</tt></dd>
</dl>
<dl><dt><strong>f</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
f&nbsp;--&nbsp;one-body&nbsp;tensor&nbsp;elements&nbsp;(initialized&nbsp;by&nbsp;Hamiltonian&nbsp;object)</tt></dd>
</dl>
<hr>
Data descriptors inherited from <a href="generator.html#Generator">Generator</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="WhiteGeneratorMP">class <strong>WhiteGeneratorMP</strong></a>(<a href="generator.html#Generator">Generator</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#WhiteGeneratorMP">WhiteGeneratorMP</a>(h)<br>
&nbsp;<br>
Calculate&nbsp;White's&nbsp;generator&nbsp;for&nbsp;a&nbsp;normal&nbsp;ordered&nbsp;Hamiltonian.<br>
This&nbsp;"standard"&nbsp;implemenation&nbsp;uses&nbsp;Moller-Plesset&nbsp;denominators.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="generator.html#WhiteGeneratorMP">WhiteGeneratorMP</a></dd>
<dd><a href="generator.html#Generator">Generator</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="WhiteGeneratorMP-__init__"><strong>__init__</strong></a>(self, h)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>
<dl><dt><a name="WhiteGeneratorMP-calc_eta"><strong>calc_eta</strong></a>(self)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>G</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
f&nbsp;--&nbsp;two-body&nbsp;tensor&nbsp;elements&nbsp;(initialized&nbsp;by&nbsp;Hamiltonian&nbsp;object)</tt></dd>
</dl>
<dl><dt><strong>f</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
f&nbsp;--&nbsp;one-body&nbsp;tensor&nbsp;elements&nbsp;(initialized&nbsp;by&nbsp;Hamiltonian&nbsp;object)</tt></dd>
</dl>
<hr>
Data descriptors inherited from <a href="generator.html#Generator">Generator</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>
\ No newline at end of file
......@@ -8,7 +8,7 @@
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>hamiltonian</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Coop_imsrg%5Chamiltonian.py">c:\users\davison\research\im-srg_tensorflow\oop_imsrg\hamiltonian.py</a></font></td></tr></table>
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/hamiltonian.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/hamiltonian.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
......@@ -17,16 +17,9 @@
<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>
<a href="tensornetwork.config.html">tensornetwork.config</a><br>
<a href="tensornetwork.contractors.html">tensornetwork.contractors</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.ncon_interface.html">tensornetwork.ncon_interface</a><br>
<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>
<a href="tensornetwork.version.html">tensornetwork.version</a><br>
<a href="tensornetwork.visualization.html">tensornetwork.visualization</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
......@@ -77,7 +70,7 @@ Data descriptors defined here:<br>
<font color="#000000" face="helvetica, arial"><a name="PairingHamiltonian2B">class <strong>PairingHamiltonian2B</strong></a>(<a href="hamiltonian.html#Hamiltonian">Hamiltonian</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PairingHamiltonian2B">PairingHamiltonian2B</a>(n_hole_states,&nbsp;n_particle_states,&nbsp;ref=None,&nbsp;d=1.0,&nbsp;g=0.5,&nbsp;pb=0.0)<br>
<td colspan=2><tt><a href="#PairingHamiltonian2B">PairingHamiltonian2B</a>(n_hole_states,&nbsp;n_particle_states,&nbsp;ref=[],&nbsp;d=1.0,&nbsp;g=0.5,&nbsp;pb=0.0)<br>
&nbsp;<br>
Generate&nbsp;the&nbsp;two-body&nbsp;pairing&nbsp;<a href="#Hamiltonian">Hamiltonian</a>.&nbsp;Inherits&nbsp;from&nbsp;<a href="#Hamiltonian">Hamiltonian</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
......@@ -88,7 +81,7 @@ Generate&nbsp;the&nbsp;two-body&nbsp;pairing&nbsp;<a href="#Hamiltonian">Hamilto
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PairingHamiltonian2B-__init__"><strong>__init__</strong></a>(self, n_hole_states, n_particle_states, ref=None, d=1.0, g=0.5, pb=0.0)</dt><dd><tt>Class&nbsp;constructor.&nbsp;Instantiate&nbsp;<a href="#PairingHamiltonian2B">PairingHamiltonian2B</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
<dl><dt><a name="PairingHamiltonian2B-__init__"><strong>__init__</strong></a>(self, n_hole_states, n_particle_states, ref=[], d=1.0, g=0.5, pb=0.0)</dt><dd><tt>Class&nbsp;constructor.&nbsp;Instantiate&nbsp;<a href="#PairingHamiltonian2B">PairingHamiltonian2B</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
......@@ -98,6 +91,7 @@ n_particle_states&nbsp;--&nbsp;number&nbsp;of&nbsp;particles&nbsp;states&nbsp;in
Keyword&nbsp;arguments:<br>
&nbsp;<br>
ref&nbsp;--&nbsp;the&nbsp;reference&nbsp;state.&nbsp;must&nbsp;match&nbsp;dimensions&nbsp;imposed&nbsp;by&nbsp;arugments&nbsp;(default:&nbsp;[1,1,1,1,0,0,0,0])<br>
p&nbsp;-<br>
d&nbsp;--&nbsp;the&nbsp;energy&nbsp;level&nbsp;spacing&nbsp;(default:&nbsp;1.0)<br>
g&nbsp;--&nbsp;the&nbsp;pairing&nbsp;strength&nbsp;(default:&nbsp;0.5)<br>
pb&nbsp;--&nbsp;strength&nbsp;of&nbsp;the&nbsp;pair-breaking&nbsp;term&nbsp;(operates&nbsp;in&nbsp;double&nbsp;particle&nbsp;basis)&nbsp;(default:&nbsp;0.0)</tt></dd></dl>
......@@ -209,12 +203,5 @@ Data descriptors inherited from <a href="hamiltonian.html#Hamiltonian">Hamiltoni
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></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>
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)</td></tr></table>
</td></tr></table></td></tr></table>
</body></html>
\ No newline at end of file
......@@ -8,8 +8,8 @@
<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
><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>
<p><tt>#&nbsp;Main&nbsp;program&nbsp;for&nbsp;IM-SRG.</tt></p>
><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>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
......@@ -17,26 +17,20 @@
<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>
<a href="oop_imsrg.ci_pairing.cipy_pairing_plus_ph.html">oop_imsrg.ci_pairing.cipy_pairing_plus_ph</a><br>
<a href="tensornetwork.config.html">tensornetwork.config</a><br>
<a href="tensornetwork.contractors.html">tensornetwork.contractors</a><br>
<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>
<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>
<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>
<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>
<a href="os.html">os</a><br>
<a href="pickle.html">pickle</a><br>
<a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br>
</td><td width="25%" valign=top><a href="benchmarking_wd.imsrg_pairing.html">benchmarking_wd.imsrg_pairing</a><br>
<a href="random.html">random</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
<a href="sys.html">sys</a><br>
<a href="time.html">time</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
<a href="tracemalloc.html">tracemalloc</a><br>
<a href="tensornetwork.version.html">tensornetwork.version</a><br>
<a href="tensornetwork.visualization.html">tensornetwork.visualization</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
......@@ -60,19 +54,8 @@ flow&nbsp;--&nbsp;Flow&nbsp;object<br>
Returns:<br>
&nbsp;<br>
dy&nbsp;--&nbsp;next&nbsp;step&nbsp;in&nbsp;flow</tt></dd></dl>
<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>
<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>
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>
......@@ -85,9 +68,6 @@ bas_len&nbsp;--&nbsp;length&nbsp;of&nbsp;single&nbsp;particle&nbsp;basis<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="-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>
<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>
......@@ -98,12 +78,5 @@ E,&nbsp;f,&nbsp;G&nbsp;--&nbsp;normal-ordered&nbsp;pieces&nbsp;of&nbsp;Hamiltoni
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>
<td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)</td></tr></table>
</td></tr></table>
</body></html>
\ No newline at end of file
......@@ -8,7 +8,7 @@
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>occupation_tensors</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Coop_imsrg%5Coccupation_tensors.py">c:\users\davison\research\im-srg_tensorflow\oop_imsrg\occupation_tensors.py</a></font></td></tr></table>
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/occupation_tensors.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/occupation_tensors.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
......@@ -18,7 +18,11 @@
<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="numpy.html">numpy</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<a href="numba.html">numba</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="tensornetwork.html">tensornetwork</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
......@@ -70,20 +74,32 @@ Data descriptors defined here:<br>
&nbsp;<br>
occA&nbsp;--&nbsp;represents&nbsp;n_a&nbsp;-&nbsp;n_b.</tt></dd>
</dl>
<dl><dt><strong>occA4</strong></dt>
<dd><tt>Built&nbsp;from&nbsp;flag&nbsp;=&nbsp;1;&nbsp;rank&nbsp;4&nbsp;tensor<br>
&nbsp;<br>
Returns:<br>
&nbsp;<br>
occA4&nbsp;--&nbsp;represents&nbsp;n_a&nbsp;-&nbsp;n_b.</tt></dd>
</dl>
<dl><dt><strong>occB</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
occB&nbsp;--&nbsp;represents&nbsp;1&nbsp;-&nbsp;n_a&nbsp;-&nbsp;n_b.</tt></dd>
</dl>
<dl><dt><strong>occB4</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
occB4&nbsp;--&nbsp;represents&nbsp;1&nbsp;-&nbsp;n_a&nbsp;-&nbsp;n_b.</tt></dd>
</dl>
<dl><dt><strong>occC</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
occC&nbsp;--&nbsp;represents&nbsp;n_a*n_b&nbsp;+&nbsp;(1-n_a-n_b)*n_c</tt></dd>
occC&nbsp;--&nbsp;represents&nbsp;n_a*n_b*(1-n_c)&nbsp;+&nbsp;(1-n_a)*(1-n_b)*n_c</tt></dd>
</dl>
<dl><dt><strong>occD</strong></dt>
<dd><tt>Returns:<br>
&nbsp;<br>
occD&nbsp;--&nbsp;represents&nbsp;na*nb*(1-nc-nd)&nbsp;+&nbsp;na*nb*nc*nd</tt></dd>
occD&nbsp;--&nbsp;represents&nbsp;&nbsp;n_a*n_b*(1-n_c)*(1-n_d)</tt></dd>
</dl>
<dl><dt><strong>occE</strong></dt>
<dd><tt>Returns:<br>
......@@ -116,5 +132,9 @@ occI&nbsp;--&nbsp;represents&nbsp;(1-n_a)*(1-n_b)*n_c*n_d&nbsp;-&nbsp;n_a*n_b*(1
&nbsp;<br>
occJ&nbsp;--&nbsp;represents&nbsp;n_a*n_b*n_c&nbsp;+&nbsp;(1-n_a)*(1-n_b)*(1-n_c)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>DATA_TYPE</strong> = &lt;class 'float'&gt;<dd><tt>Convert&nbsp;a&nbsp;string&nbsp;or&nbsp;number&nbsp;to&nbsp;a&nbsp;floating&nbsp;point&nbsp;number,&nbsp;if&nbsp;possible.</tt></dl>
</td></tr></table></td></tr></table>
</body></html>
\ No newline at end of file
......@@ -8,7 +8,7 @@
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>plot_data</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cdavison%5Cresearch%5Cim-srg_tensorflow%5Coop_imsrg%5Cplot_data.py">c:\users\davison\research\im-srg_tensorflow\oop_imsrg\plot_data.py</a></font></td></tr></table>
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/plot_data.py">/mnt/ufs18/home-115/daviso53/Research/im-srg_tensorflow/oop_imsrg/plot_data.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment