Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmdean committed Jan 9, 2025
1 parent 948e178 commit 3e78135
Show file tree
Hide file tree
Showing 119 changed files with 1,225 additions and 1,126 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Binary file modified edrixs/_images/helloworld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_0_ed_calculator_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_0_ed_calculator_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_2_single_atom_RIXS_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_2_single_atom_RIXS_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_3_AIM_XAS_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_4_GS_analysis_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_5_charge_transfer_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_6_Hubbard_dimer_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_7_transitions_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_7_transitions_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_8_Hunds_interactions_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_8_Hunds_interactions_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_8_Hunds_interactions_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified edrixs/_images/sphx_glr_example_9_Coulomb_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 35 additions & 37 deletions edrixs/_modules/edrixs/angular_momentum.html

Large diffs are not rendered by default.

40 changes: 19 additions & 21 deletions edrixs/_modules/edrixs/basis_transform.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>edrixs.basis_transform &mdash; edrixs documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
<link rel="stylesheet" type="text/css" href="../../_static/plot_directive.css" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery.css?v=d2d258e8" />
Expand All @@ -14,15 +16,11 @@
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-rendered-html.css?v=1277b6f3" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=f281be69"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -82,12 +80,12 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>
<span></span><span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;cb_op&#39;</span><span class="p">,</span> <span class="s1">&#39;cb_op2&#39;</span><span class="p">,</span> <span class="s1">&#39;tmat_c2r&#39;</span><span class="p">,</span> <span class="s1">&#39;tmat_r2c&#39;</span><span class="p">,</span> <span class="s1">&#39;tmat_r2cub_f&#39;</span><span class="p">,</span>
<span class="s1">&#39;tmat_cub2r_f&#39;</span><span class="p">,</span> <span class="s1">&#39;tmat_c2j&#39;</span><span class="p">,</span> <span class="s1">&#39;transform_utensor&#39;</span><span class="p">,</span> <span class="s1">&#39;fourier_hr2hk&#39;</span><span class="p">]</span>

<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>


<div class="viewcode-block" id="cb_op">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.cb_op">[docs]</a>
<span class="k">def</span> <span class="nf">cb_op</span><span class="p">(</span><span class="n">oper_O</span><span class="p">,</span> <span class="n">TL</span><span class="p">,</span> <span class="n">TR</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">cb_op</span><span class="p">(</span><span class="n">oper_O</span><span class="p">,</span> <span class="n">TL</span><span class="p">,</span> <span class="n">TR</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Change the basis of an operator :math:`\\hat{O}`.</span>

Expand Down Expand Up @@ -146,7 +144,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="cb_op2">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.cb_op2">[docs]</a>
<span class="k">def</span> <span class="nf">cb_op2</span><span class="p">(</span><span class="n">oper_O</span><span class="p">,</span> <span class="n">TL</span><span class="p">,</span> <span class="n">TR</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">cb_op2</span><span class="p">(</span><span class="n">oper_O</span><span class="p">,</span> <span class="n">TL</span><span class="p">,</span> <span class="n">TR</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Change the basis of an operator :math:`\\hat{O}`.</span>

Expand Down Expand Up @@ -195,7 +193,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="tmat_c2r">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.tmat_c2r">[docs]</a>
<span class="k">def</span> <span class="nf">tmat_c2r</span><span class="p">(</span><span class="n">case</span><span class="p">,</span> <span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">tmat_c2r</span><span class="p">(</span><span class="n">case</span><span class="p">,</span> <span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the unitary transformation matrix from the basis of complex</span>
<span class="sd"> spherical harmonics to real spherical harmonics.</span>
Expand Down Expand Up @@ -316,7 +314,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="tmat_r2c">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.tmat_r2c">[docs]</a>
<span class="k">def</span> <span class="nf">tmat_r2c</span><span class="p">(</span><span class="n">case</span><span class="p">,</span> <span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">tmat_r2c</span><span class="p">(</span><span class="n">case</span><span class="p">,</span> <span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the unitary transformation matrix from the basis of real</span>
<span class="sd"> spherical harmonics to complex spherical harmonics.</span>
Expand Down Expand Up @@ -346,7 +344,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="tmat_r2cub_f">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.tmat_r2cub_f">[docs]</a>
<span class="k">def</span> <span class="nf">tmat_r2cub_f</span><span class="p">(</span><span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">tmat_r2cub_f</span><span class="p">(</span><span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the transformation matrix from real spherical harmonics to the</span>
<span class="sd"> cubic spherical harmonics that is the representation of the cubic</span>
Expand Down Expand Up @@ -409,7 +407,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="tmat_cub2r_f">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.tmat_cub2r_f">[docs]</a>
<span class="k">def</span> <span class="nf">tmat_cub2r_f</span><span class="p">(</span><span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">tmat_cub2r_f</span><span class="p">(</span><span class="n">ispin</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the transformation matrix from the cubic spherical harmonics to</span>
<span class="sd"> real spherical harmonics, only for :math:`f` system.</span>
Expand All @@ -432,7 +430,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="tmat_c2j">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.tmat_c2j">[docs]</a>
<span class="k">def</span> <span class="nf">tmat_c2j</span><span class="p">(</span><span class="n">orb_l</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">tmat_c2j</span><span class="p">(</span><span class="n">orb_l</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Get the transformation matrix from the complex spherical harmonics to</span>
<span class="sd"> the :math:`|j^2,j_z&gt;` basis in which the spin-oribt coupling Hamiltonian</span>
Expand Down Expand Up @@ -529,7 +527,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="transform_utensor">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.transform_utensor">[docs]</a>
<span class="k">def</span> <span class="nf">transform_utensor</span><span class="p">(</span><span class="n">umat</span><span class="p">,</span> <span class="n">tmat</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">transform_utensor</span><span class="p">(</span><span class="n">umat</span><span class="p">,</span> <span class="n">tmat</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Transform the rank-4 Coulomb interaction tensor from one basis to</span>
<span class="sd"> another basis.</span>
Expand Down Expand Up @@ -579,7 +577,7 @@ <h1>Source code for edrixs.basis_transform</h1><div class="highlight"><pre>

<div class="viewcode-block" id="fourier_hr2hk">
<a class="viewcode-back" href="../../reference/basis_transform.html#edrixs.basis_transform.fourier_hr2hk">[docs]</a>
<span class="k">def</span> <span class="nf">fourier_hr2hk</span><span class="p">(</span><span class="n">norbs</span><span class="p">,</span> <span class="n">nkpt</span><span class="p">,</span> <span class="n">kvec</span><span class="p">,</span> <span class="n">nrpt</span><span class="p">,</span> <span class="n">rvec</span><span class="p">,</span> <span class="n">deg_rpt</span><span class="p">,</span> <span class="n">hr</span><span class="p">):</span>
<span class="k">def</span><span class="w"> </span><span class="nf">fourier_hr2hk</span><span class="p">(</span><span class="n">norbs</span><span class="p">,</span> <span class="n">nkpt</span><span class="p">,</span> <span class="n">kvec</span><span class="p">,</span> <span class="n">nrpt</span><span class="p">,</span> <span class="n">rvec</span><span class="p">,</span> <span class="n">deg_rpt</span><span class="p">,</span> <span class="n">hr</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Fourier transform a tight-binding Hamiltonian :math:`H(r)` from</span>
<span class="sd"> real space to :math:`k` space :math:`H(k)`,</span>
Expand Down
Loading

0 comments on commit 3e78135

Please sign in to comment.