Skip to content

Commit e8d0648

Browse files
committed
complete 3d overlap equation
1 parent 5a03d29 commit e8d0648

1 file changed

Lines changed: 34 additions & 17 deletions

File tree

notebooks/gto_integrals.ipynb

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": 2,
53+
"execution_count": 1,
5454
"metadata": {},
5555
"outputs": [
5656
{
@@ -59,7 +59,7 @@
5959
"5"
6060
]
6161
},
62-
"execution_count": 2,
62+
"execution_count": 1,
6363
"metadata": {},
6464
"output_type": "execute_result"
6565
}
@@ -87,7 +87,7 @@
8787
},
8888
{
8989
"cell_type": "code",
90-
"execution_count": 3,
90+
"execution_count": 2,
9191
"metadata": {},
9292
"outputs": [
9393
{
@@ -96,7 +96,7 @@
9696
"15"
9797
]
9898
},
99-
"execution_count": 3,
99+
"execution_count": 2,
100100
"metadata": {},
101101
"output_type": "execute_result"
102102
}
@@ -497,19 +497,20 @@
497497
"\\left(x_B^{l_\\nu} e^{-\\alpha_\\nu x_B^2} \\right) dx = \\\\\n",
498498
"\\int_{-\\infty}^\\infty \n",
499499
" e^{-\\alpha_\\mu \\alpha_\\nu (X_A - X_B)^2 / \\gamma} e^{-\\gamma x_C^2}\n",
500-
"\\sum_{s=0}^{l_\\mu+ l_\\nu} B(l_\\mu, l_\\nu, C_A, C_B, s) x_C^s dx\n",
500+
"\\sum_{s=0}^{l_\\mu+ l_\\nu} B(l_\\mu, l_\\nu, CA_x, CB_x, s) x_C^s dx\n",
501501
"$$\n",
502502
"Swapping the order of integration and the summation we see that we need to evaluate\n",
503503
"integrals of the form:\n",
504504
"$$\n",
505+
"\\tag{27}\n",
505506
"\\int_{-\\infty}^\\infty t^s e^{-a t^2} dt\n",
506507
"$$\n",
507508
"This has a known analytic solution that we can evaluate using SymPy:"
508509
]
509510
},
510511
{
511512
"cell_type": "code",
512-
"execution_count": 51,
513+
"execution_count": 10,
513514
"metadata": {},
514515
"outputs": [
515516
{
@@ -528,7 +529,7 @@
528529
"-∞ "
529530
]
530531
},
531-
"execution_count": 51,
532+
"execution_count": 10,
532533
"metadata": {},
533534
"output_type": "execute_result"
534535
}
@@ -544,7 +545,7 @@
544545
},
545546
{
546547
"cell_type": "code",
547-
"execution_count": 52,
548+
"execution_count": 11,
548549
"metadata": {},
549550
"outputs": [
550551
{
@@ -563,7 +564,7 @@
563564
" 2⋅√a 2⋅√a "
564565
]
565566
},
566-
"execution_count": 52,
567+
"execution_count": 11,
567568
"metadata": {},
568569
"output_type": "execute_result"
569570
}
@@ -581,7 +582,7 @@
581582
},
582583
{
583584
"cell_type": "code",
584-
"execution_count": 57,
585+
"execution_count": 12,
585586
"metadata": {},
586587
"outputs": [
587588
{
@@ -594,7 +595,7 @@
594595
"0"
595596
]
596597
},
597-
"execution_count": 57,
598+
"execution_count": 12,
598599
"metadata": {},
599600
"output_type": "execute_result"
600601
}
@@ -613,7 +614,7 @@
613614
},
614615
{
615616
"cell_type": "code",
616-
"execution_count": 65,
617+
"execution_count": 13,
617618
"metadata": {},
618619
"outputs": [
619620
{
@@ -627,7 +628,7 @@
627628
"a ⋅Γ(s + 1/2)"
628629
]
629630
},
630-
"execution_count": 65,
631+
"execution_count": 13,
631632
"metadata": {},
632633
"output_type": "execute_result"
633634
}
@@ -640,13 +641,29 @@
640641
"cell_type": "markdown",
641642
"metadata": {},
642643
"source": [
643-
"Using this result allows us to write the one-dimensional overlap integral as:\n",
644+
"This result can also be written in terms of the [double factorial](https://en.wikipedia.org/wiki/Double_factorial#Additional_identities) which gives us two possible computation strategies for this integral:\n",
645+
"$$\n",
646+
"\\tag{28}\n",
647+
"G(a, s) = \\int_{-\\infty}^{\\infty} t^{2s} e^{-a t^2} dt \\\\\n",
648+
"= a^{-s - \\frac{1}{2}} \\Gamma\\left(s + \\frac{1}{2}\\right) \\\\\n",
649+
"= \\frac{(2s-1)!!}{(2a)^s} \\sqrt{\\frac{\\pi}{a}}.\n",
650+
"$$\n",
651+
"The last form agrees with Equation (3.15) derived by [Fermann and Valeev](http://arxiv.org/abs/2007.12057).\n",
652+
"\n",
653+
"Using the function $G(a, s)$ allows us to write the one-dimensional overlap integral as:\n",
644654
"$$\n",
645655
"\\tilde{S}_{\\mu \\nu}^{(x)} = \n",
646656
"e^{-\\alpha_\\mu \\alpha_\\nu (X_A - X_B)^2 / \\gamma}\n",
647-
"\\sum_{s=0}^{\\lfloor(i+j)/2 \\rfloor} B(l_\\mu, l_\\nu, C_A, C_B, 2s)\n",
648-
"\\int_{-\\infty}^\\infty \n",
649-
"x_C^{2s} e^{-\\gamma x_C^2} dx\n",
657+
"\\sum_{s=0}^{\\lfloor(l_\\mu + l_\\nu)/2 \\rfloor} B(l_\\mu, l_\\nu, CA_x, CB_x, 2s)\\;G(\\gamma, 2s)\n",
658+
"$$\n",
659+
"substituting this back into Equation (11) gives us the overlap of two primitive Gaussians:\n",
660+
"$$\n",
661+
"\\tag{11}\n",
662+
"\\tilde{S}_{\\mu \\nu} = \\iiint p_\\mu(\\br) p_\\nu(\\br) dx dy dz \\\\\n",
663+
"= N_\\mu N_\\nu e^{-\\alpha_\\mu \\alpha_\\nu |\\mathbf{A}-\\mathbf{B}|^2 / \\gamma}\n",
664+
"\\sum_{s=0}^{\\lfloor(l_\\mu + l_\\nu)/2 \\rfloor} B(l_\\mu, l_\\nu, CA_x, CB_x, 2s)\\;G(\\gamma, 2s) \\\\\n",
665+
"\\times \\sum_{s=0}^{\\lfloor(m_\\mu + m_\\nu)/2 \\rfloor} B(m_\\mu, m_\\nu, CA_y, CB_y, 2s)\\;G(\\gamma, 2s)\n",
666+
"\\sum_{s=0}^{\\lfloor(n_\\mu + n_\\nu)/2 \\rfloor} B(n_\\mu, n_\\nu, CA_z, CB_z, 2s)\\;G(\\gamma, 2s)\n",
650667
"$$"
651668
]
652669
}

0 commit comments

Comments
 (0)