Skip to content

Commit effa7c2

Browse files
Don't run !pip install ...
1 parent 00cc794 commit effa7c2

2 files changed

Lines changed: 5 additions & 23 deletions

File tree

‎src/orbital_magnetic_susceptibility_py.ipynb‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
},
7979
"outputs": [],
8080
"source": [
81-
"!pip install sparse_ir\n",
8281
"import numpy as np\n",
8382
"import scipy\n",
8483
"import itertools\n",
@@ -150,7 +149,7 @@
150149
" gx = vd @ gx @ v\n",
151150
" gy = vd @ gy @ v\n",
152151
" gxy = vd @ gxy @ v\n",
153-
" chi_iw += np.einsum(\"ab, bmn, bc, cmn, cd, dmn, da, amn->mn\", \n",
152+
" chi_iw += np.einsum(\"ab, bmn, bc, cmn, cd, dmn, da, amn->mn\",\n",
154153
" gx, giw, gy, giw, gx, giw, gy, giw, optimize=True)\n",
155154
" chi_iw += (1/2) * np.einsum(\"ab, bmn, bc, cmn, ca, amn->mn\",\n",
156155
" gx, giw, gy, giw, gxy, giw, optimize=True)\n",
@@ -314,12 +313,12 @@
314313
" kx, ky = 2*np.pi*k[0]/a, 2*np.pi*(k[0] + 2*k[1])/(a*sq3)\n",
315314
" h = -t * (np.exp(1j*ky*a/sq3) + 2 * np.cos(kx*a/2) * np.exp(-1j*ky*a/(2*sq3)))\n",
316315
" hk = np.array([ [ 0, h ], [ np.conj(h), 0 ] ])\n",
317-
" \n",
316+
"\n",
318317
" hx = t * a * np.sin(kx/2) * np.exp(-1j*ky/(2*sq3))\n",
319318
" hy = -t * a * (1j/sq3 * (np.exp(1j*ky/sq3) - np.cos(kx/2) * np.exp(-1j*ky/(2*sq3))))\n",
320319
" gx = np.array([ [ 0, hx ], [ np.conj(hx), 0 ] ])\n",
321320
" gy = np.array([ [ 0, hy ], [ np.conj(hy), 0 ] ])\n",
322-
" \n",
321+
"\n",
323322
" hxy = -t * a * a * 1j/(2*sq3) * np.sin(kx/2) * np.exp(-1j*ky/(2*sq3))\n",
324323
" gxy = np.array([ [ 0, hxy ], [ np.conj(hxy), 0 ] ])\n",
325324
"\n",
@@ -379,7 +378,7 @@
379378
"name": "python",
380379
"nbconvert_exporter": "python",
381380
"pygments_lexer": "ipython3",
382-
"version": "3.13.3"
381+
"version": "3.13.9"
383382
}
384383
},
385384
"nbformat": 4,

‎src/spm_py.ipynb‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,7 @@
1717
"$$ (lehmann-spm)\n",
1818
"\n",
1919
"We evaluate $\\rho(\\omega)$ for a given $G(\\tau)$.\n",
20-
"<!-- Because of ill-conditioned nature of the kernel function $K$, the inversion of this equation is sensitive to noise in $G(\\tau)$. SpM method extract relevant information in $G(\\tau)$ using $L_1$-norm regularization. -->\n",
21-
"\n",
22-
"\n",
23-
"## Preparation"
24-
]
25-
},
26-
{
27-
"cell_type": "code",
28-
"execution_count": null,
29-
"id": "7d93f9e5",
30-
"metadata": {
31-
"tags": [
32-
"remove-output"
33-
]
34-
},
35-
"outputs": [],
36-
"source": [
37-
"!pip install admmsolver"
20+
"<!-- Because of ill-conditioned nature of the kernel function $K$, the inversion of this equation is sensitive to noise in $G(\\tau)$. SpM method extract relevant information in $G(\\tau)$ using $L_1$-norm regularization. -->"
3821
]
3922
},
4023
{

0 commit comments

Comments
 (0)