This file is indexed.

/usr/share/doc/libchemps2/html/interfaces.html is in chemps2-doc 1.8.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>11. Interfaces to psi4 and pyscf &#8212; CheMPS2 1.8.5 (2018-01-14) documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '1.8.5 (2018-01-14)',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="/usr/share/javascript/jquery/jquery.js"></script>
    <script type="text/javascript" src="/usr/share/javascript/underscore/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="12. DMRG workshop (12-jul-2016): hands-on session" href="handson.html" />
    <link rel="prev" title="10. Internally contracted CASPT2" href="caspt2.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="handson.html" title="12. DMRG workshop (12-jul-2016): hands-on session"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="caspt2.html" title="10. Internally contracted CASPT2"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">CheMPS2 1.8.5 (2018-01-14) documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <span class="target" id="index-0"></span><span class="target" id="index-1"></span><div class="section" id="interfaces-to-psi4-and-pyscf">
<span id="index-2"></span><h1>11. Interfaces to psi4 and pyscf<a class="headerlink" href="#interfaces-to-psi4-and-pyscf" title="Permalink to this headline"></a></h1>
<p>CheMPS2 is currently interfaced with two ab initio quantum chemistry packages:</p>
<ol class="arabic simple">
<li>The <code class="docutils literal"><span class="pre">dmrg</span></code> plugin to <a class="reference external" href="http://www.psicode.org/">psi4</a> allows to perform DMRG-CI, DMRG-SCF, and DMRG-CASPT2 calculations with CheMPS2. Since April 2015, CheMPS2 is also an integral part of psi4.</li>
<li>There are also DMRG-CI and DMRG-SCF interfaces between <a class="reference external" href="http://sunqm.github.io/pyscf/">pyscf</a> and CheMPS2.</li>
</ol>
<div class="section" id="psi4-dmrg-plugin">
<h2>11.1. psi4 <code class="docutils literal"><span class="pre">dmrg</span></code> plugin<a class="headerlink" href="#psi4-dmrg-plugin" title="Permalink to this headline"></a></h2>
<p>DMRG-CI, DMRG-SCF, and DMRG-CASPT2 calculations can be performed directly with <a class="reference external" href="http://www.psicode.org/">psi4</a>. The plugin has been tested on late March 2017 psi4 pre-1.1.
.. comment  <a class="reference external" href="https://github.com/psi4/psi4/releases/tag/0.5">tag</a> (released February 17, 2016).</p>
<p>Note that as of late June 2016, DMRG keywords in <a class="reference external" href="http://www.psicode.org/">psi4</a> have been realigned to those of the chemps2 executable. A <a class="reference external" href="https://github.com/psi4/psi4/issues/150#issuecomment-228951911">translation table</a> is available.</p>
<p>To perform DMRG-CI, DMRG-SCF, and DMRG-CASPT2 calculations, build <a class="reference external" href="http://www.psicode.org/">psi4</a> or use the conda binary, and then run:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> /mypsi4plugins
$ psi4 --plugin-name dmrg
$ <span class="nb">cd</span> dmrg
</pre></div>
</div>
<p>Now, replace the file <code class="docutils literal"><span class="pre">plugin.cc</span></code> with <code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/psi4plugins/dmrg.cc</span></code> (file can be named <code class="docutils literal"><span class="pre">plugin.cc</span></code> or <code class="docutils literal"><span class="pre">dmrg.cc</span></code>, but if the latter, change <code class="docutils literal"><span class="pre">CMakeLists.txt</span></code> to match). To compile the plugin, the CMakeLists.txt should be adjusted. Change the line</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>find_package<span class="o">(</span>psi4 <span class="m">1</span>.0 REQUIRED<span class="o">)</span>
</pre></div>
</div>
<p>to</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>find_package<span class="o">(</span>psi4 <span class="m">1</span>.0 REQUIRED COMPONENTS chemps2<span class="o">)</span>
</pre></div>
</div>
<p>Now call <code class="docutils literal"><span class="pre">psi4</span> <span class="pre">--plugin-compile</span></code> and execute the result. Additional variables can be passed to the <code class="docutils literal"><span class="pre">cmake</span></code> command (including <cite>-DCheMPS2_DIR</cite>), but none should be necessary. Avoid building against a Psi4 with PCMSolver enabled, as this will cause trouble with capturing stdout. To compile the plugin, run:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make
</pre></div>
</div>
<p>An example input file to perform a DMRG-CI calculation with the <code class="docutils literal"><span class="pre">dmrg</span></code> plugin:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">molecule</span> <span class="n">H2O</span> <span class="p">{</span>
 <span class="mi">0</span> <span class="mi">1</span>
   <span class="n">O</span>   <span class="mf">0.000000000</span>   <span class="mf">0.00</span>   <span class="mf">0.000000000</span>
   <span class="n">H</span>   <span class="mf">0.790689766</span>   <span class="mf">0.00</span>   <span class="mf">0.612217330</span>
   <span class="n">H</span>  <span class="o">-</span><span class="mf">0.790689766</span>   <span class="mf">0.00</span>   <span class="mf">0.612217330</span>
 <span class="n">units</span> <span class="n">angstrom</span>
<span class="p">}</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="s1">&#39;./..&#39;</span><span class="p">)</span>
<span class="kn">import</span> <span class="nn">dmrg</span>

<span class="nb">set</span> <span class="n">basis</span>          <span class="n">cc</span><span class="o">-</span><span class="n">pVDZ</span>
<span class="nb">set</span> <span class="n">reference</span>      <span class="n">rhf</span>
<span class="nb">set</span> <span class="n">scf_type</span>       <span class="n">PK</span>
<span class="nb">set</span> <span class="n">e_convergence</span>  <span class="mf">1e-13</span>
<span class="nb">set</span> <span class="n">d_convergence</span>  <span class="mf">1e-13</span>
<span class="nb">set</span> <span class="n">ints_tolerance</span> <span class="mf">0.0</span>

<span class="nb">set</span> <span class="n">dmrg_irrep</span>                <span class="mi">0</span>
<span class="nb">set</span> <span class="n">dmrg_multiplicity</span>         <span class="mi">1</span>
<span class="nb">set</span> <span class="n">restricted_docc</span>           <span class="p">[</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">active</span>                    <span class="p">[</span> <span class="mi">5</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">4</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">]</span>

<span class="nb">set</span> <span class="n">dmrg_sweep_states</span>         <span class="p">[</span>  <span class="mi">200</span><span class="p">,</span>  <span class="mi">500</span><span class="p">,</span> <span class="mi">1000</span><span class="p">,</span> <span class="mi">1000</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_energy_conv</span>    <span class="p">[</span> <span class="mf">1e-8</span><span class="p">,</span> <span class="mf">1e-8</span><span class="p">,</span> <span class="mf">1e-8</span><span class="p">,</span> <span class="mf">1e-8</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_max_sweeps</span>     <span class="p">[</span>    <span class="mi">5</span><span class="p">,</span>    <span class="mi">5</span><span class="p">,</span>    <span class="mi">5</span><span class="p">,</span>  <span class="mi">100</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_noise_prefac</span>   <span class="p">[</span> <span class="mf">0.03</span><span class="p">,</span> <span class="mf">0.03</span><span class="p">,</span> <span class="mf">0.03</span><span class="p">,</span>  <span class="mf">0.0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_dvdson_rtol</span>    <span class="p">[</span> <span class="mf">1e-5</span><span class="p">,</span> <span class="mf">1e-5</span><span class="p">,</span> <span class="mf">1e-5</span><span class="p">,</span> <span class="mf">1e-9</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_print_corr</span>           <span class="n">false</span>
<span class="nb">set</span> <span class="n">dmrg_mp2_write</span>            <span class="n">false</span>

<span class="nb">set</span> <span class="n">dmrg_scf_max_iter</span>         <span class="mi">1</span>

<span class="nb">set</span> <span class="n">dmrg_molden_write</span>         <span class="n">true</span>  <span class="c1"># DMRG-CI pseudocanonical orbitals</span>
<span class="nb">set</span> <span class="n">dmrg_opdm_ao_print</span>        <span class="n">true</span>  <span class="c1"># DMRG-CI density in the AO basis</span>

<span class="n">energy</span><span class="p">(</span><span class="s1">&#39;dmrg&#39;</span><span class="p">)</span>

</pre></div>
</div>
<p>Note that the option <code class="docutils literal"><span class="pre">dmrg_max_iter</span></code> has been set to <code class="docutils literal"><span class="pre">1</span></code>, so that only one active space calculation is performed. This file (<code class="docutils literal"><span class="pre">H2O.dmrgci.in</span></code>) should be placed in the folder <code class="docutils literal"><span class="pre">/mypsi4plugins/dmrg</span></code>. The DMRG-CI calculation can then be started with:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> /mypsi4plugins/dmrg
$ psi4 H2O.dmrgci.in H2O.dmrgci.out
</pre></div>
</div>
<p>An example input file to perform a DMRG-SCF calculation with the <code class="docutils literal"><span class="pre">dmrg</span></code> plugin:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">molecule</span> <span class="n">O2</span> <span class="p">{</span>
  <span class="n">O</span>       <span class="mf">0.0</span>   <span class="mf">0.0</span>   <span class="mf">0.0</span>
  <span class="n">O</span>       <span class="mf">0.0</span>   <span class="mf">0.0</span>   <span class="mf">3.0</span> 
<span class="n">units</span> <span class="n">au</span>
<span class="p">}</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="s1">&#39;./..&#39;</span><span class="p">)</span>
<span class="kn">import</span> <span class="nn">dmrg</span>

<span class="nb">set</span> <span class="n">basis</span>          <span class="n">cc</span><span class="o">-</span><span class="n">pVDZ</span>
<span class="nb">set</span> <span class="n">reference</span>      <span class="n">rhf</span>
<span class="nb">set</span> <span class="n">scf_type</span>       <span class="n">PK</span>

<span class="nb">set</span> <span class="n">dmrg_irrep</span>                <span class="mi">0</span>
<span class="nb">set</span> <span class="n">dmrg_multiplicity</span>         <span class="mi">1</span>
<span class="nb">set</span> <span class="n">restricted_docc</span>           <span class="p">[</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">active</span>                    <span class="p">[</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">]</span>

<span class="nb">set</span> <span class="n">dmrg_sweep_states</span>         <span class="p">[</span>   <span class="mi">500</span><span class="p">,</span>  <span class="mi">1000</span><span class="p">,</span>  <span class="mi">1000</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_energy_conv</span>    <span class="p">[</span> <span class="mf">1e-10</span><span class="p">,</span> <span class="mf">1e-10</span><span class="p">,</span> <span class="mf">1e-10</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_max_sweeps</span>     <span class="p">[</span>     <span class="mi">5</span><span class="p">,</span>     <span class="mi">5</span><span class="p">,</span>    <span class="mi">10</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_noise_prefac</span>   <span class="p">[</span>  <span class="mf">0.05</span><span class="p">,</span>  <span class="mf">0.05</span><span class="p">,</span>   <span class="mf">0.0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_dvdson_rtol</span>    <span class="p">[</span>  <span class="mf">1e-5</span><span class="p">,</span>  <span class="mf">1e-5</span><span class="p">,</span>  <span class="mf">1e-9</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_print_corr</span>           <span class="n">false</span>
<span class="nb">set</span> <span class="n">dmrg_mps_write</span>            <span class="n">false</span>

<span class="nb">set</span> <span class="n">dmrg_scf_grad_thr</span>         <span class="mf">1e-6</span>
<span class="nb">set</span> <span class="n">dmrg_unitary_write</span>        <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_diis</span>                 <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_scf_diis_thr</span>         <span class="mf">1e-2</span>
<span class="nb">set</span> <span class="n">dmrg_diis_write</span>           <span class="n">true</span>

<span class="nb">set</span> <span class="n">dmrg_scf_max_iter</span>         <span class="mi">100</span>
<span class="nb">set</span> <span class="n">dmrg_excitation</span>           <span class="mi">1</span>   <span class="c1"># First excited state</span>
<span class="nb">set</span> <span class="n">dmrg_scf_state_avg</span>        <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_scf_active_space</span>     <span class="n">NO</span>  <span class="c1"># INPUT; NO; LOC</span>
<span class="nb">set</span> <span class="n">dmrg_local_init</span>           <span class="n">false</span>

<span class="nb">set</span> <span class="n">dmrg_molden_write</span>         <span class="n">true</span>  <span class="c1"># Converged DMRG-SCF pseudocanonical orbitals</span>
<span class="nb">set</span> <span class="n">dmrg_opdm_ao_print</span>        <span class="n">true</span>  <span class="c1"># Converged DMRG-SCF density in the AO basis</span>

<span class="n">energy</span><span class="p">(</span><span class="s1">&#39;dmrg&#39;</span><span class="p">)</span>

</pre></div>
</div>
<p>This file (<code class="docutils literal"><span class="pre">O2.dmrgscf.in</span></code>) should be placed in the folder <code class="docutils literal"><span class="pre">/mypsi4plugins/dmrg</span></code>. The DMRG-SCF calculation can then be started with:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> /mypsi4plugins/dmrg
$ psi4 O2.dmrgscf.in O2.dmrgscf.out
</pre></div>
</div>
<p>An example input file to perform a DMRG-CASPT2 calculation with the <code class="docutils literal"><span class="pre">dmrg</span></code> plugin:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">molecule</span> <span class="n">N2</span> <span class="p">{</span>
  <span class="n">N</span>       <span class="mf">0.0000</span>   <span class="mf">0.0000</span>   <span class="mf">0.0000</span>
  <span class="n">N</span>       <span class="mf">0.0000</span>   <span class="mf">0.0000</span>   <span class="mf">2.1180</span>
<span class="n">units</span> <span class="n">au</span>
<span class="p">}</span>

<span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="s1">&#39;./..&#39;</span><span class="p">)</span>
<span class="kn">import</span> <span class="nn">dmrg</span>

<span class="nb">set</span> <span class="n">basis</span>          <span class="n">cc</span><span class="o">-</span><span class="n">pVDZ</span>
<span class="nb">set</span> <span class="n">reference</span>      <span class="n">rhf</span>
<span class="nb">set</span> <span class="n">scf_type</span>       <span class="n">PK</span>
<span class="nb">set</span> <span class="n">e_convergence</span>  <span class="mf">1e-12</span>
<span class="nb">set</span> <span class="n">d_convergence</span>  <span class="mf">1e-12</span>

<span class="nb">set</span> <span class="n">dmrg_irrep</span>                <span class="mi">0</span>
<span class="nb">set</span> <span class="n">dmrg_multiplicity</span>         <span class="mi">1</span>
<span class="nb">set</span> <span class="n">restricted_docc</span>           <span class="p">[</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">active</span>                    <span class="p">[</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">0</span> <span class="p">,</span> <span class="mi">2</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">,</span> <span class="mi">1</span> <span class="p">]</span>

<span class="nb">set</span> <span class="n">dmrg_sweep_states</span>         <span class="p">[</span>   <span class="mi">500</span><span class="p">,</span>  <span class="mi">1000</span><span class="p">,</span>  <span class="mi">1000</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_energy_conv</span>    <span class="p">[</span> <span class="mf">1e-10</span><span class="p">,</span> <span class="mf">1e-10</span><span class="p">,</span> <span class="mf">1e-10</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_max_sweeps</span>     <span class="p">[</span>     <span class="mi">5</span><span class="p">,</span>     <span class="mi">5</span><span class="p">,</span>    <span class="mi">10</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_noise_prefac</span>   <span class="p">[</span>  <span class="mf">0.05</span><span class="p">,</span>  <span class="mf">0.05</span><span class="p">,</span>   <span class="mf">0.0</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_sweep_dvdson_rtol</span>    <span class="p">[</span>  <span class="mf">1e-5</span><span class="p">,</span>  <span class="mf">1e-5</span><span class="p">,</span>  <span class="mf">1e-9</span> <span class="p">]</span>
<span class="nb">set</span> <span class="n">dmrg_print_corr</span>           <span class="n">false</span>
<span class="nb">set</span> <span class="n">dmrg_mps_write</span>            <span class="n">false</span>

<span class="nb">set</span> <span class="n">dmrg_scf_grad_thr</span>         <span class="mf">1e-6</span>
<span class="nb">set</span> <span class="n">dmrg_unitary_write</span>        <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_diis</span>                 <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_scf_diis_thr</span>         <span class="mf">1e-2</span>
<span class="nb">set</span> <span class="n">dmrg_diis_write</span>           <span class="n">true</span>

<span class="nb">set</span> <span class="n">dmrg_scf_max_iter</span>         <span class="mi">100</span>
<span class="nb">set</span> <span class="n">dmrg_excitation</span>           <span class="mi">0</span>   <span class="c1"># Ground state</span>
<span class="nb">set</span> <span class="n">dmrg_scf_state_avg</span>        <span class="n">false</span>
<span class="nb">set</span> <span class="n">dmrg_scf_active_space</span>     <span class="n">INPUT</span> <span class="c1"># INPUT; NO; LOC</span>
<span class="nb">set</span> <span class="n">dmrg_local_init</span>           <span class="n">false</span>

<span class="nb">set</span> <span class="n">dmrg_molden_write</span>         <span class="n">false</span> <span class="c1"># Converged DMRG-SCF pseudocanonical orbitals</span>
<span class="nb">set</span> <span class="n">dmrg_opdm_ao_print</span>        <span class="n">true</span>  <span class="c1"># Converged DMRG-SCF density in the AO basis</span>

<span class="nb">set</span> <span class="n">dmrg_caspt2_calc</span>          <span class="n">true</span>
<span class="nb">set</span> <span class="n">dmrg_caspt2_orbs</span>          <span class="n">ACTIVE</span>
<span class="nb">set</span> <span class="n">dmrg_caspt2_ipea</span>          <span class="mf">0.00</span>
<span class="nb">set</span> <span class="n">dmrg_caspt2_imag_shift</span>    <span class="mf">0.00</span>

<span class="n">energy</span><span class="p">(</span><span class="s1">&#39;dmrg&#39;</span><span class="p">)</span>

</pre></div>
</div>
<p>This file (<code class="docutils literal"><span class="pre">N2.caspt2.in</span></code>) should be placed in the folder <code class="docutils literal"><span class="pre">/mypsi4plugins/dmrg</span></code>. The DMRG-CASPT2 calculation can then be started with:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> /mypsi4plugins/dmrg
$ psi4 N2.caspt2.in N2.caspt2.out
</pre></div>
</div>
<p>Since April 2015, CheMPS2 is also an integral part of <a class="reference external" href="http://www.psicode.org/">psi4</a>. Please consult <a class="reference external" href="http://www.psicode.org/">psi4</a>’s documentation on how to run DMRG-CI, DMRG-SCF, and DMRG-CASPT2 calculations with <a class="reference external" href="http://www.psicode.org/">psi4</a>.</p>
</div>
<div class="section" id="id7">
<h2>11.2. pyscf<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<p><a class="reference external" href="http://sunqm.github.io/pyscf/">pyscf</a> is a new quantum chemistry package, in which all layers are written or interfaced in python. In the future, the package will be able to perform DMRG-CI and DMRG-SCF calculations using PyCheMPS2: <a class="reference external" href="https://github.com/sunqm/pyscf/blob/master/future/dmrgscf/chemps2.py">chemps2.py</a>.</p>
<p>Examples of how to extract MO integrals from <a class="reference external" href="http://sunqm.github.io/pyscf/">pyscf</a> to perform DMRG-CI calculations with PyCheMPS2 can be found in:</p>
<ol class="arabic simple">
<li><code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/pyscf/example.py</span></code></li>
<li><code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/pyscf/example2.py</span></code></li>
<li><code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/pyscf/example3.py</span></code></li>
<li><code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/pyscf/dmrgci.py</span></code></li>
<li><code class="docutils literal"><span class="pre">/sourcefolder/chemps2/integrals/pyscf/call_chemps2.py</span></code></li>
</ol>
<p>Please remember to append the correct pyscf and PyCheMPS2 directories to <code class="docutils literal"><span class="pre">sys.path</span></code> at the top of these files.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/CheMPS2logo.png" alt="Logo"/>
            </a></p>
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">11. Interfaces to psi4 and pyscf</a><ul>
<li><a class="reference internal" href="#psi4-dmrg-plugin">11.1. psi4 <code class="docutils literal"><span class="pre">dmrg</span></code> plugin</a></li>
<li><a class="reference internal" href="#id7">11.2. pyscf</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="caspt2.html"
                        title="previous chapter">10. Internally contracted CASPT2</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="handson.html"
                        title="next chapter">12. DMRG workshop (12-jul-2016): hands-on session</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/interfaces.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="handson.html" title="12. DMRG workshop (12-jul-2016): hands-on session"
             >next</a> |</li>
        <li class="right" >
          <a href="caspt2.html" title="10. Internally contracted CASPT2"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">CheMPS2 1.8.5 (2018-01-14) documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2013-2018, Sebastian Wouters.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>