edrixs 0.1.3__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- edrixs-0.2.0/AUTHORS.rst +29 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/CONTRIBUTING.rst +21 -24
- {edrixs-0.1.3 → edrixs-0.2.0}/MANIFEST.in +1 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/PKG-INFO +3 -2
- {edrixs-0.1.3 → edrixs-0.2.0}/README.rst +1 -1
- edrixs-0.2.0/docs/source/_ext/backend_options_directive.py +81 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/conf.py +43 -15
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/index.rst +1 -1
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/index.rst +3 -1
- edrixs-0.2.0/docs/source/reference/models.rst +16 -0
- edrixs-0.2.0/docs/source/reference/poles.rst +5 -0
- edrixs-0.2.0/docs/source/release-history.rst +175 -0
- edrixs-0.2.0/docs/source/user/backend.rst +62 -0
- edrixs-0.2.0/docs/source/user/backends/dense.rst +49 -0
- edrixs-0.2.0/docs/source/user/backends/fortran.rst +65 -0
- edrixs-0.2.0/docs/source/user/backends/petsc.rst +27 -0
- edrixs-0.2.0/docs/source/user/backends/scipy.rst +56 -0
- edrixs-0.2.0/docs/source/user/conventions.rst +148 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/user/devcontainer.rst +6 -6
- edrixs-0.2.0/docs/source/user/examples.rst +32 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/user/index.rst +4 -4
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/user/installation.rst +38 -19
- edrixs-0.2.0/docs/source/user/introduction.rst +204 -0
- edrixs-0.2.0/docs/source/user/nio_l23_xas.rst +17 -0
- edrixs-0.2.0/docs/source/user/nio_siam_xas_rixs.rst +52 -0
- edrixs-0.2.0/docs/source/user/papers.rst +98 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/user/usedocker.rst +8 -6
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/user/whatisedrixs.rst +3 -3
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/__init__.py +3 -0
- edrixs-0.2.0/edrixs/_backend_options.py +169 -0
- edrixs-0.2.0/edrixs/_operator_builder.py +501 -0
- edrixs-0.2.0/edrixs/_solvers_helpers.py +726 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/angular_momentum.py +5 -5
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/basis_transform.py +1 -1
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/coulomb_utensor.py +12 -12
- edrixs-0.2.0/edrixs/dense_backend/__init__.py +17 -0
- edrixs-0.2.0/edrixs/dense_backend/dense_backend.py +307 -0
- edrixs-0.2.0/edrixs/dense_backend/options.py +20 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/fit_hyb.py +1 -1
- edrixs-0.2.0/edrixs/fock_basis.py +662 -0
- edrixs-0.2.0/edrixs/fortran_backend/__init__.py +21 -0
- edrixs-0.2.0/edrixs/fortran_backend/fortran_backend.py +455 -0
- edrixs-0.2.0/edrixs/fortran_backend/iostream_fortran.py +197 -0
- edrixs-0.2.0/edrixs/fortran_backend/options.py +108 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/iostream.py +1 -163
- edrixs-0.2.0/edrixs/models.py +993 -0
- edrixs-0.2.0/edrixs/petsc_backend/__init__.py +1 -0
- edrixs-0.2.0/edrixs/petsc_backend/hash_basis_methods.py +28 -0
- edrixs-0.2.0/edrixs/petsc_backend/options.py +19 -0
- edrixs-0.2.0/edrixs/petsc_backend/petsc_backend.py +86 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/photon_transition.py +12 -0
- edrixs-0.2.0/edrixs/plot_spectrum.py +45 -0
- edrixs-0.2.0/edrixs/poles.py +90 -0
- edrixs-0.2.0/edrixs/scipy_backend/__init__.py +1 -0
- edrixs-0.2.0/edrixs/scipy_backend/hash_basis_methods.py +46 -0
- edrixs-0.2.0/edrixs/scipy_backend/krylov.py +311 -0
- edrixs-0.2.0/edrixs/scipy_backend/options.py +76 -0
- edrixs-0.2.0/edrixs/scipy_backend/scipy_backend.py +739 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/solvers.py +898 -804
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/utils.py +80 -1
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/PKG-INFO +3 -2
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/SOURCES.txt +62 -13
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/requires.txt +1 -0
- edrixs-0.2.0/pyproject.toml +17 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/requirements.txt +1 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/setup.py +5 -2
- edrixs-0.2.0/tests/test_angular_momentum.py +256 -0
- edrixs-0.2.0/tests/test_backend_options.py +86 -0
- edrixs-0.2.0/tests/test_basis_representation_routes.py +142 -0
- edrixs-0.2.0/tests/test_basis_transform.py +224 -0
- edrixs-0.2.0/tests/test_coulomb_utensor.py +214 -0
- edrixs-0.2.0/tests/test_dense_backend.py +194 -0
- edrixs-0.2.0/tests/test_ed_krylov.py +55 -0
- edrixs-0.2.0/tests/test_ed_shift.py +211 -0
- edrixs-0.2.0/tests/test_filled_core.py +133 -0
- edrixs-0.2.0/tests/test_fock_basis.py +211 -0
- edrixs-0.2.0/tests/test_fortran_backend.py +148 -0
- edrixs-0.2.0/tests/test_fortran_backend_mpi.py +149 -0
- edrixs-0.2.0/tests/test_legacy_solver_deprecations.py +27 -0
- edrixs-0.2.0/tests/test_manybody_operator.py +252 -0
- edrixs-0.2.0/tests/test_model_operator_routes.py +106 -0
- edrixs-0.2.0/tests/test_model_siam_2d1p.py +123 -0
- edrixs-0.2.0/tests/test_operator_route_consistency.py +187 -0
- edrixs-0.2.0/tests/test_petsc_backend.py +70 -0
- edrixs-0.2.0/tests/test_rixs_solve_reuse.py +107 -0
- edrixs-0.2.0/tests/test_scipy_backend.py +225 -0
- edrixs-0.2.0/tests/test_scipy_krylov.py +96 -0
- edrixs-0.2.0/tests/test_scipy_operator_construction.py +130 -0
- edrixs-0.2.0/tests/test_soc.py +142 -0
- edrixs-0.2.0/tests/test_solver_helpers.py +62 -0
- edrixs-0.2.0/tests/test_solvers_dispatch.py +125 -0
- {edrixs-0.1.3/edrixs → edrixs-0.2.0}/tests/test_utils.py +10 -0
- edrixs-0.2.0/tests/test_utils_extra.py +367 -0
- edrixs-0.1.3/AUTHORS.rst +0 -13
- edrixs-0.1.3/docs/source/release-history.rst +0 -6
- edrixs-0.1.3/docs/source/user/basics.ed.rst +0 -5
- edrixs-0.1.3/docs/source/user/basics.rixs.rst +0 -5
- edrixs-0.1.3/docs/source/user/basics.rst +0 -10
- edrixs-0.1.3/docs/source/user/basics.xas.rst +0 -5
- edrixs-0.1.3/docs/source/user/examples.rst +0 -69
- edrixs-0.1.3/docs/source/user/papers.rst +0 -54
- edrixs-0.1.3/docs/source/user/pythontips.rst +0 -66
- edrixs-0.1.3/docs/source/user/quickstart.rst +0 -46
- edrixs-0.1.3/edrixs/fock_basis.py +0 -451
- edrixs-0.1.3/edrixs/plot_spectrum.py +0 -175
- edrixs-0.1.3/edrixs/tests/__init__.py +0 -0
- edrixs-0.1.3/edrixs/tests/conftest.py +0 -0
- edrixs-0.1.3/edrixs/tests/test_examples.py +0 -3
- edrixs-0.1.3/edrixs/tests/test_fortran.py +0 -42
- edrixs-0.1.3/pyproject.toml +0 -9
- {edrixs-0.1.3 → edrixs-0.2.0}/LICENSE +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/Makefile +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/make.bat +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/angular_momentum.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/basis_transform.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/coulomb_utensor.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/fit_hyb.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/fock_basis.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/iostream.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/manybody_operator.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/photon_transition.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/plot_spectrum.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/rixs_utils.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/soc.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/solvers.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/utils.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/docs/source/reference/wannier_ham.rst +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/_version.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Co.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Cr.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Cu.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Fe.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Ir.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Mn.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Ni.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Os.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Pu.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Re.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Sm.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/Ti.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/U.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/atom_data/V.json +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/manybody_operator.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/rixs_utils.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/scripts.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/soc.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs/wannier_ham.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/dependency_links.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/entry_points.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/edrixs.egg-info/top_level.txt +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/setup.cfg +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/arpack.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/ed_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/ed_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/fock.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/full_diag.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/ham.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/io.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/lanczos.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/linsys.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/m_constants.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/m_control.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/m_global.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/m_types.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/opavg_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/opavg_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/pyapi.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/rixs_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/rixs_main.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/spmv.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/utils.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/xas_driver.f90 +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/src/xas_main.f90 +0 -0
- {edrixs-0.1.3/edrixs → edrixs-0.2.0}/tests/test_wannier_ham.py +0 -0
- {edrixs-0.1.3 → edrixs-0.2.0}/versioneer.py +0 -0
edrixs-0.2.0/AUTHORS.rst
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
=======
|
|
2
|
+
Credits
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
Maintainer
|
|
6
|
+
----------
|
|
7
|
+
|
|
8
|
+
* Mark Dean, Brookhaven National Laboratory <mdean@bnl.gov>
|
|
9
|
+
|
|
10
|
+
Contributors
|
|
11
|
+
------------
|
|
12
|
+
|
|
13
|
+
The following contributors are recorded in the Git history (aliases have been
|
|
14
|
+
combined and automated accounts omitted):
|
|
15
|
+
|
|
16
|
+
* Yilin Wang
|
|
17
|
+
* Mark Dean
|
|
18
|
+
* Marton Lajer
|
|
19
|
+
* Max Rakitin
|
|
20
|
+
* Seher Karakuzu
|
|
21
|
+
* Steve Johnston
|
|
22
|
+
* Jinu Thomas
|
|
23
|
+
* Mithilesh Nayak
|
|
24
|
+
* Joseph Kleinhenz
|
|
25
|
+
* Anselm Hahn
|
|
26
|
+
* Stuart Campbell
|
|
27
|
+
* Dan Allan
|
|
28
|
+
* Thomas A. Caswell
|
|
29
|
+
* Scott Wedge
|
|
@@ -13,7 +13,7 @@ Types of Contributions
|
|
|
13
13
|
Report Bugs
|
|
14
14
|
~~~~~~~~~~~
|
|
15
15
|
|
|
16
|
-
Report bugs at https://github.com/
|
|
16
|
+
Report bugs at https://github.com/EDRIXS/edrixs/issues.
|
|
17
17
|
|
|
18
18
|
If you are reporting a bug, please include:
|
|
19
19
|
|
|
@@ -42,7 +42,8 @@ or even on the web in blog posts, articles, and such.
|
|
|
42
42
|
Submit Feedback
|
|
43
43
|
~~~~~~~~~~~~~~~
|
|
44
44
|
|
|
45
|
-
The best way to send feedback is to file an issue at
|
|
45
|
+
The best way to send feedback is to file an issue at
|
|
46
|
+
https://github.com/EDRIXS/edrixs/issues.
|
|
46
47
|
|
|
47
48
|
If you are proposing a feature:
|
|
48
49
|
|
|
@@ -54,40 +55,34 @@ If you are proposing a feature:
|
|
|
54
55
|
Get Started!
|
|
55
56
|
------------
|
|
56
57
|
|
|
57
|
-
Ready to contribute? Here's how to set up
|
|
58
|
+
Ready to contribute? Here's how to set up ``edrixs`` for local development.
|
|
59
|
+
|
|
60
|
+
1. Fork the ``EDRIXS/edrixs`` repository on GitHub.
|
|
58
61
|
|
|
59
|
-
1. Fork the `edrixs` repo on GitHub.
|
|
60
62
|
2. Clone your fork locally::
|
|
61
63
|
|
|
62
64
|
$ git clone git@github.com:your_name_here/edrixs.git
|
|
65
|
+
$ cd edrixs
|
|
63
66
|
|
|
64
|
-
3.
|
|
65
|
-
|
|
66
|
-
$ mkvirtualenv edrixs
|
|
67
|
-
$ cd edrixs/
|
|
68
|
-
$ python setup.py develop
|
|
67
|
+
3. Follow the `source-compilation instructions
|
|
68
|
+
<https://edrixs.github.io/edrixs/user/installation.html#sourceinstall>`_.
|
|
69
69
|
|
|
70
70
|
4. Create a branch for local development::
|
|
71
71
|
|
|
72
|
-
$ git
|
|
72
|
+
$ git switch -c name-of-your-bugfix-or-feature
|
|
73
73
|
|
|
74
74
|
Now you can make your changes locally.
|
|
75
75
|
|
|
76
|
-
5.
|
|
76
|
+
5. Install the pre-commit hooks::
|
|
77
77
|
|
|
78
78
|
$ pre-commit install
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$ git commit -a -m "Your commit message"
|
|
84
|
-
|
|
85
|
-
6. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
|
|
86
|
-
|
|
87
|
-
$ python setup.py test
|
|
88
|
-
$ tox
|
|
80
|
+
6. When you are done making changes, run the checks used for local
|
|
81
|
+
development::
|
|
89
82
|
|
|
90
|
-
|
|
83
|
+
$ pre-commit run --all-files
|
|
84
|
+
$ pytest -s -vv
|
|
85
|
+
$ make -C docs html
|
|
91
86
|
|
|
92
87
|
7. Commit your changes and push your branch to GitHub::
|
|
93
88
|
|
|
@@ -106,6 +101,8 @@ Before you submit a pull request, check that it meets these guidelines:
|
|
|
106
101
|
2. If the pull request adds functionality, the docs should be updated. Put
|
|
107
102
|
your new functionality into a function with a docstring, and add the
|
|
108
103
|
feature to the list in README.rst.
|
|
109
|
-
3. The pull request should work
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
3. The pull request should work with the supported Python versions. EDRIXS
|
|
105
|
+
requires Python 3.10 or newer, and the continuous-integration matrix
|
|
106
|
+
currently tests Python 3.10 through 3.14. Check the GitHub Actions results
|
|
107
|
+
at https://github.com/EDRIXS/edrixs/actions and make sure all required jobs
|
|
108
|
+
pass.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edrixs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: An open source toolkit for simulating RIXS spectra based on ED
|
|
5
5
|
Home-page: https://github.com/NSLS-II/edrixs
|
|
6
6
|
Author: Brookhaven National Lab
|
|
@@ -14,6 +14,7 @@ Requires-Python: >=3.10
|
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
License-File: AUTHORS.rst
|
|
16
16
|
Requires-Dist: numpy>=1.26
|
|
17
|
+
Requires-Dist: numba
|
|
17
18
|
Requires-Dist: scipy
|
|
18
19
|
Requires-Dist: sympy
|
|
19
20
|
Requires-Dist: matplotlib
|
|
@@ -41,7 +42,7 @@ edrixs
|
|
|
41
42
|
:target: https://mybinder.org/v2/gh/NSLS-II/edrixs.git/master?urlpath=lab
|
|
42
43
|
|
|
43
44
|
EDRIXS is an open source toolkit for simulating XAS and RIXS spectra based on exact diagonalization of model Hamiltonians.
|
|
44
|
-
It was started as part of `COMSCOPE project <https://www.bnl.gov/comscope
|
|
45
|
+
It was started as part of the `COMSCOPE project <https://www.bnl.gov/comscope/>`_ in the
|
|
45
46
|
Center for Computational Material Spectroscopy and Design, Brookhaven National Laboratory and is now maintained and
|
|
46
47
|
developed in collaboration between the `Condensed Matter Physics and Materials Science Division <https://www.bnl.gov/cmpmsd/>`_
|
|
47
48
|
and the `National Syncrotron Light Source II <https://www.bnl.gov/nsls2/>`_.
|
|
@@ -9,7 +9,7 @@ edrixs
|
|
|
9
9
|
:target: https://mybinder.org/v2/gh/NSLS-II/edrixs.git/master?urlpath=lab
|
|
10
10
|
|
|
11
11
|
EDRIXS is an open source toolkit for simulating XAS and RIXS spectra based on exact diagonalization of model Hamiltonians.
|
|
12
|
-
It was started as part of `COMSCOPE project <https://www.bnl.gov/comscope
|
|
12
|
+
It was started as part of the `COMSCOPE project <https://www.bnl.gov/comscope/>`_ in the
|
|
13
13
|
Center for Computational Material Spectroscopy and Design, Brookhaven National Laboratory and is now maintained and
|
|
14
14
|
developed in collaboration between the `Condensed Matter Physics and Materials Science Division <https://www.bnl.gov/cmpmsd/>`_
|
|
15
15
|
and the `National Syncrotron Light Source II <https://www.bnl.gov/nsls2/>`_.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""Sphinx directive rendering EDRIXS backend option registries."""
|
|
2
|
+
|
|
3
|
+
from docutils import nodes
|
|
4
|
+
from docutils.parsers.rst import Directive
|
|
5
|
+
|
|
6
|
+
from edrixs._backend_options import default_text
|
|
7
|
+
from edrixs.dense_backend.options import OPTIONS as DENSE_OPTIONS
|
|
8
|
+
from edrixs.fortran_backend.options import OPTIONS as FORTRAN_OPTIONS
|
|
9
|
+
from edrixs.petsc_backend.options import OPTIONS as PETSC_OPTIONS
|
|
10
|
+
from edrixs.scipy_backend.options import OPTIONS as SCIPY_OPTIONS
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
REGISTRIES = {
|
|
14
|
+
'dense': DENSE_OPTIONS,
|
|
15
|
+
'fortran': FORTRAN_OPTIONS,
|
|
16
|
+
'petsc': PETSC_OPTIONS,
|
|
17
|
+
'scipy': SCIPY_OPTIONS,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _entry(text, *, literal=False):
|
|
22
|
+
entry = nodes.entry()
|
|
23
|
+
paragraph = nodes.paragraph()
|
|
24
|
+
paragraph += nodes.literal(text=text) if literal else nodes.Text(text)
|
|
25
|
+
entry += paragraph
|
|
26
|
+
return entry
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _row(values, *, header=False):
|
|
30
|
+
row = nodes.row()
|
|
31
|
+
for index, value in enumerate(values):
|
|
32
|
+
row += _entry(value, literal=not header and index < 2)
|
|
33
|
+
return row
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class BackendOptionsDirective(Directive):
|
|
37
|
+
"""Render the option table for ``BACKEND OPERATION``."""
|
|
38
|
+
|
|
39
|
+
required_arguments = 2
|
|
40
|
+
|
|
41
|
+
def run(self):
|
|
42
|
+
backend, operation = self.arguments
|
|
43
|
+
try:
|
|
44
|
+
specifications = REGISTRIES[backend][operation]
|
|
45
|
+
except KeyError as exc:
|
|
46
|
+
raise self.error(
|
|
47
|
+
"unknown backend option table: {} {}".format(
|
|
48
|
+
backend, operation
|
|
49
|
+
)
|
|
50
|
+
) from exc
|
|
51
|
+
|
|
52
|
+
if not specifications:
|
|
53
|
+
return [nodes.paragraph(text='No backend-specific options.')]
|
|
54
|
+
|
|
55
|
+
table = nodes.table()
|
|
56
|
+
tgroup = nodes.tgroup(cols=3)
|
|
57
|
+
table += tgroup
|
|
58
|
+
for width in (20, 24, 56):
|
|
59
|
+
tgroup += nodes.colspec(colwidth=width)
|
|
60
|
+
|
|
61
|
+
head = nodes.thead()
|
|
62
|
+
head += _row(('Option', 'Default', 'Description'), header=True)
|
|
63
|
+
tgroup += head
|
|
64
|
+
|
|
65
|
+
body = nodes.tbody()
|
|
66
|
+
for name, specification in specifications.items():
|
|
67
|
+
body += _row((
|
|
68
|
+
name,
|
|
69
|
+
default_text(specification),
|
|
70
|
+
specification.description,
|
|
71
|
+
))
|
|
72
|
+
tgroup += body
|
|
73
|
+
return [table]
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def setup(app):
|
|
77
|
+
app.add_directive('backend-options', BackendOptionsDirective)
|
|
78
|
+
return {
|
|
79
|
+
'parallel_read_safe': True,
|
|
80
|
+
'parallel_write_safe': True,
|
|
81
|
+
}
|
|
@@ -13,14 +13,32 @@
|
|
|
13
13
|
# All configuration values have a default; values that are commented out
|
|
14
14
|
# serve to show the default.
|
|
15
15
|
|
|
16
|
-
# If extensions (or modules to document with autodoc) are in another directory,
|
|
17
|
-
# add these directories to sys.path here. If the directory is relative to the
|
|
18
|
-
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
19
|
-
#
|
|
20
16
|
import os
|
|
21
17
|
import sys
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
from importlib.metadata import PackageNotFoundError, version as distribution_version
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
|
|
21
|
+
source_dir = Path(__file__).resolve().parent
|
|
22
|
+
sys.path.insert(0, str(source_dir / '_ext'))
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
import edrixs
|
|
26
|
+
import edrixs.fedrixs
|
|
27
|
+
edrixs_version = distribution_version("edrixs")
|
|
28
|
+
except (ImportError, PackageNotFoundError) as exc:
|
|
29
|
+
raise RuntimeError(
|
|
30
|
+
"Building the EDRIXS documentation requires an installed EDRIXS "
|
|
31
|
+
"package with the native fedrixs extension."
|
|
32
|
+
) from exc
|
|
33
|
+
|
|
34
|
+
print(
|
|
35
|
+
"\n"
|
|
36
|
+
+ "=" * 79
|
|
37
|
+
+ f"\nBUILDING DOCS AGAINST INSTALLED EDRIXS {edrixs_version}\n"
|
|
38
|
+
+ f"Package: {Path(edrixs.__file__).resolve()}\n"
|
|
39
|
+
+ "=" * 79
|
|
40
|
+
+ "\n"
|
|
41
|
+
)
|
|
24
42
|
|
|
25
43
|
# -- General configuration ------------------------------------------------
|
|
26
44
|
|
|
@@ -32,6 +50,7 @@ sys.path.insert(0, os.path.abspath('../../edrixs'))
|
|
|
32
50
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
33
51
|
# ones.
|
|
34
52
|
extensions = [
|
|
53
|
+
'backend_options_directive',
|
|
35
54
|
'sphinx.ext.autodoc',
|
|
36
55
|
'sphinx.ext.autosummary',
|
|
37
56
|
'sphinx.ext.githubpages',
|
|
@@ -69,7 +88,7 @@ source_suffix = '.rst'
|
|
|
69
88
|
master_doc = 'index'
|
|
70
89
|
|
|
71
90
|
# General information about the project.
|
|
72
|
-
project = '
|
|
91
|
+
project = 'EDRIXS'
|
|
73
92
|
copyright = '2019, Brookhaven National Lab'
|
|
74
93
|
author = 'Brookhaven National Lab'
|
|
75
94
|
|
|
@@ -77,11 +96,19 @@ author = 'Brookhaven National Lab'
|
|
|
77
96
|
# |version| and |release|, also used in various other places throughout the
|
|
78
97
|
# built documents.
|
|
79
98
|
#
|
|
80
|
-
#import edrixs
|
|
81
99
|
# The short X.Y version.
|
|
82
|
-
|
|
100
|
+
version = ".".join(edrixs_version.split("+", maxsplit=1)[0].split(".")[:2])
|
|
83
101
|
# The full version, including alpha/beta/rc tags.
|
|
84
|
-
|
|
102
|
+
release = edrixs_version
|
|
103
|
+
|
|
104
|
+
# CI sets this to the documentation channel (for example, ``dev`` or
|
|
105
|
+
# ``0.1.3``). Local builds use the installed package version instead.
|
|
106
|
+
docs_version = os.environ.get("EDRIXS_DOCS_VERSION", release)
|
|
107
|
+
docs_site_root = os.environ.get("EDRIXS_DOCS_SITE_ROOT", "/edrixs/")
|
|
108
|
+
html_context = {
|
|
109
|
+
"docs_version": docs_version,
|
|
110
|
+
"docs_site_root": docs_site_root,
|
|
111
|
+
}
|
|
85
112
|
|
|
86
113
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
87
114
|
# for a list of supported languages.
|
|
@@ -121,6 +148,8 @@ html_logo = "EDRIXS_logo.png"
|
|
|
121
148
|
# relative to this directory. They are copied after the builtin static files,
|
|
122
149
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
123
150
|
html_static_path = ['_static']
|
|
151
|
+
html_css_files = ['version-switcher.css']
|
|
152
|
+
html_js_files = ['version-switcher.js']
|
|
124
153
|
|
|
125
154
|
# Custom sidebar templates, must be a dictionary that maps document names
|
|
126
155
|
# to template names.
|
|
@@ -165,7 +194,7 @@ latex_elements = {
|
|
|
165
194
|
# (source start file, target name, title,
|
|
166
195
|
# author, documentclass [howto, manual, or own class]).
|
|
167
196
|
latex_documents = [
|
|
168
|
-
(master_doc, 'edrixs.tex', '
|
|
197
|
+
(master_doc, 'edrixs.tex', 'EDRIXS Documentation',
|
|
169
198
|
'Contributors', 'manual'),
|
|
170
199
|
]
|
|
171
200
|
|
|
@@ -175,7 +204,7 @@ latex_documents = [
|
|
|
175
204
|
# One entry per manual page. List of tuples
|
|
176
205
|
# (source start file, name, description, authors, manual section).
|
|
177
206
|
man_pages = [
|
|
178
|
-
(master_doc, 'edrixs', '
|
|
207
|
+
(master_doc, 'edrixs', 'EDRIXS Documentation',
|
|
179
208
|
[author], 1)
|
|
180
209
|
]
|
|
181
210
|
|
|
@@ -186,7 +215,7 @@ man_pages = [
|
|
|
186
215
|
# (source start file, target name, title, author,
|
|
187
216
|
# dir menu entry, description, category)
|
|
188
217
|
texinfo_documents = [
|
|
189
|
-
(master_doc, 'edrixs', '
|
|
218
|
+
(master_doc, 'edrixs', 'EDRIXS Documentation',
|
|
190
219
|
author, 'edrixs', 'An open source toolkit for simulating RIXS spectra based on ED',
|
|
191
220
|
'Miscellaneous'),
|
|
192
221
|
]
|
|
@@ -203,11 +232,10 @@ intersphinx_mapping = {
|
|
|
203
232
|
'matplotlib': ('https://matplotlib.org', None),
|
|
204
233
|
}
|
|
205
234
|
|
|
206
|
-
from sphinx_gallery.sorting import FileNameSortKey
|
|
207
235
|
# sphinx gallery folders
|
|
208
236
|
sphinx_gallery_conf = {
|
|
209
237
|
'examples_dirs': '../../examples/sphinx/', # path to your example scripts
|
|
210
238
|
'filename_pattern': '/example_',
|
|
211
239
|
'gallery_dirs': 'auto_examples', # path to save gallery generated output,
|
|
212
|
-
'within_subsection_order': FileNameSortKey,
|
|
240
|
+
'within_subsection_order': 'FileNameSortKey',
|
|
213
241
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.. _reference:
|
|
2
2
|
|
|
3
3
|
################
|
|
4
|
-
|
|
4
|
+
EDRIXS Reference
|
|
5
5
|
################
|
|
6
6
|
|
|
7
7
|
:Release: |version|
|
|
@@ -23,7 +23,9 @@ included in EDRIXS, describing what they are and what they do.
|
|
|
23
23
|
fock_basis
|
|
24
24
|
iostream
|
|
25
25
|
manybody_operator
|
|
26
|
+
models
|
|
26
27
|
photon_transition
|
|
28
|
+
poles
|
|
27
29
|
plot_spectrum
|
|
28
30
|
rixs_utils
|
|
29
31
|
soc
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
models
|
|
2
|
+
======
|
|
3
|
+
Model constructors return eight values: seven orbital-space problem inputs
|
|
4
|
+
and a scalar ``shift`` equal to the filled core's shell-level energy. Coulomb
|
|
5
|
+
contributions are excluded from this shift, and the integrals remain unshifted.
|
|
6
|
+
Use it explicitly for dense or SciPy diagonalization::
|
|
7
|
+
|
|
8
|
+
*problem, shift = edrixs.model_1v1c(('p', 's'), shell_level=(0, -100))
|
|
9
|
+
hmat_i, hmat_n, trans_ops = edrixs.get_ops(*problem, backend='scipy')
|
|
10
|
+
eval_i, evec_i = edrixs.ed(hmat_i, shift=shift)
|
|
11
|
+
|
|
12
|
+
The returned eigenvalues retain their absolute energy reference. Fortran
|
|
13
|
+
callers pass only ``problem`` to ``get_ops`` and omit ``shift`` from ``ed``.
|
|
14
|
+
|
|
15
|
+
.. automodule:: edrixs.models
|
|
16
|
+
:members:
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
===============
|
|
2
|
+
Release History
|
|
3
|
+
===============
|
|
4
|
+
|
|
5
|
+
Unreleased
|
|
6
|
+
----------
|
|
7
|
+
|
|
8
|
+
New calculation interface
|
|
9
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
10
|
+
|
|
11
|
+
* Introduce a staged workflow that separates physical model construction,
|
|
12
|
+
many-body operator construction, diagonalization, and spectral calculations:
|
|
13
|
+
``model_*`` → ``get_ops`` → ``ed`` → ``xas`` / ``rixs``.
|
|
14
|
+
* Add backend-independent ``model_1v1c``, ``model_2v1c``, ``model_siam``, and
|
|
15
|
+
``model_siam_2d1p`` constructors, including sparse Coulomb tensors and a
|
|
16
|
+
charge-transfer parameterization for a d impurity, bath, and p core.
|
|
17
|
+
* Make SciPy the default backend, with sparse operator construction and Krylov
|
|
18
|
+
methods for ED, XAS, and RIXS. Dense calculations and native Fortran/MPI
|
|
19
|
+
solvers are also available through the staged interface.
|
|
20
|
+
* A PETSc-based backend is under development
|
|
21
|
+
* Add compact Fock-basis specifications with interchangeable combinadic and
|
|
22
|
+
explicit basis construction. Operator construction uses Numba by default;
|
|
23
|
+
``use_numba=False`` selects Python construction.
|
|
24
|
+
* Validate ``backend_kws`` by backend and operation, with typo suggestions,
|
|
25
|
+
documented defaults, and value constraints.
|
|
26
|
+
|
|
27
|
+
Numerical methods and utilities
|
|
28
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
29
|
+
|
|
30
|
+
* Support an energy-reference shift for SciPy and dense diagonalization while
|
|
31
|
+
returning eigenvalues in the original reference. Models return the shift
|
|
32
|
+
alongside their operator inputs. The Fortran backend warns and continues
|
|
33
|
+
when a nonzero shift is supplied.
|
|
34
|
+
* Reuse SciPy RIXS intermediate-state solves across outgoing polarization
|
|
35
|
+
channels sharing the same incoming polarization.
|
|
36
|
+
* Add conversions between Racah parameters and d-shell Slater integrals.
|
|
37
|
+
* Expand tests for model construction, basis ordering, fermionic signs,
|
|
38
|
+
backend consistency, and XAS/RIXS spectra.
|
|
39
|
+
|
|
40
|
+
Compatibility and migration
|
|
41
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
42
|
+
|
|
43
|
+
* Deprecate the legacy model-specific Python and Fortran solver wrappers in
|
|
44
|
+
favor of the staged interface. Existing wrappers emit deprecation warnings.
|
|
45
|
+
* Reject isotropic RIXS polarization; specify incoming and outgoing
|
|
46
|
+
polarization channels explicitly. Isotropic XAS remains supported.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Documentation and packaging
|
|
50
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
51
|
+
|
|
52
|
+
* Update the examples for the staged workflow and document the SciPy, dense,
|
|
53
|
+
and Fortran backend options and numerical-precision considerations.
|
|
54
|
+
* Clarify Slater-integral normalization and add versioned documentation and
|
|
55
|
+
stricter documentation validation.
|
|
56
|
+
* Correct the CMake extension name used by packaging, automate Docker Hub
|
|
57
|
+
release publishing, and update installation guidance and dependencies.
|
|
58
|
+
|
|
59
|
+
This page summarizes the user-visible changes in each tagged release. See the
|
|
60
|
+
`GitHub releases page <https://github.com/EDRIXS/edrixs/releases>`_ for the
|
|
61
|
+
complete release notes and downloadable artifacts.
|
|
62
|
+
|
|
63
|
+
v0.1.3 (2026-09-08)
|
|
64
|
+
--------------------
|
|
65
|
+
|
|
66
|
+
* Updated the build system to support installation on Apple silicon. This
|
|
67
|
+
release does not change the physics functionality.
|
|
68
|
+
* Revised the charge-transfer examples and documentation and made minor
|
|
69
|
+
example-maintenance improvements.
|
|
70
|
+
|
|
71
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.1.3>`__ |
|
|
72
|
+
`Changes since v0.1.2 <https://github.com/EDRIXS/edrixs/compare/v0.1.2...v0.1.3>`__
|
|
73
|
+
|
|
74
|
+
v0.1.2 (2026-05-06)
|
|
75
|
+
--------------------
|
|
76
|
+
|
|
77
|
+
* Fixed several small issues in the solvers, examples, and documentation,
|
|
78
|
+
including a missing spinor and outdated ``pkg_resources`` usage.
|
|
79
|
+
* Improved wheel generation, supported Python versions, development-container
|
|
80
|
+
setup, installation guidance, and documentation publishing.
|
|
81
|
+
* Added and clarified examples for scattering geometry, NiO, and execution-time
|
|
82
|
+
estimates.
|
|
83
|
+
|
|
84
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.1.2>`__ |
|
|
85
|
+
`Changes since v0.1.1 <https://github.com/EDRIXS/edrixs/compare/v0.1.1...v0.1.2>`__
|
|
86
|
+
|
|
87
|
+
v0.1.1 (2024-06-05)
|
|
88
|
+
--------------------
|
|
89
|
+
|
|
90
|
+
* Fixed the ``end_indx`` handling in the Fortran expectation-value driver and
|
|
91
|
+
corrected macOS compilation.
|
|
92
|
+
* Updated Docker packaging, installation documentation, and the publication
|
|
93
|
+
list.
|
|
94
|
+
|
|
95
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.1.1>`__ |
|
|
96
|
+
`Changes since v0.1.0 <https://github.com/EDRIXS/edrixs/compare/v0.1.0...v0.1.1>`__
|
|
97
|
+
|
|
98
|
+
v0.1.0 (2023-10-13)
|
|
99
|
+
--------------------
|
|
100
|
+
|
|
101
|
+
* Added a CMake-based build and improved macOS support.
|
|
102
|
+
* Added examples covering Hund's coupling and charge-transfer excitons, and
|
|
103
|
+
refreshed the existing examples and Binder setup.
|
|
104
|
+
* Expanded the documentation and publication list.
|
|
105
|
+
|
|
106
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.1.0>`__ |
|
|
107
|
+
`Changes since v0.0.8 <https://github.com/EDRIXS/edrixs/compare/v0.0.8...v0.1.0>`__
|
|
108
|
+
|
|
109
|
+
v0.0.8 (2022-10-28)
|
|
110
|
+
--------------------
|
|
111
|
+
|
|
112
|
+
* Fixed polarization normalization in the Python XAS solver.
|
|
113
|
+
* Added and revised RIXS, Hubbard-model, crystal-field, and transition examples,
|
|
114
|
+
along with substantial documentation and continuous-integration updates.
|
|
115
|
+
|
|
116
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.0.8>`__ |
|
|
117
|
+
`Changes since v0.0.7 <https://github.com/EDRIXS/edrixs/compare/v0.0.7...v0.0.8>`__
|
|
118
|
+
|
|
119
|
+
v0.0.7 (2020-09-07)
|
|
120
|
+
--------------------
|
|
121
|
+
|
|
122
|
+
* Improved the examples, documentation, and installation instructions.
|
|
123
|
+
* Added the missing Cu ``d10_2p5`` Slater parameters and fixed several small
|
|
124
|
+
issues.
|
|
125
|
+
|
|
126
|
+
`Changes since v0.0.6 <https://github.com/EDRIXS/edrixs/compare/v0.0.6...v0.0.7>`__
|
|
127
|
+
|
|
128
|
+
v0.0.6 (2020-07-08)
|
|
129
|
+
--------------------
|
|
130
|
+
|
|
131
|
+
* Added three gallery examples, including a charge-transfer calculation.
|
|
132
|
+
* Added utilities that derive impurity and bath energy levels from the
|
|
133
|
+
charge-transfer energy and ``U``, and fixed several bugs.
|
|
134
|
+
|
|
135
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.0.6>`__ |
|
|
136
|
+
`Changes since v0.0.5 <https://github.com/EDRIXS/edrixs/compare/v0.0.5...v0.0.6>`__
|
|
137
|
+
|
|
138
|
+
v0.0.5 (2020-06-03)
|
|
139
|
+
--------------------
|
|
140
|
+
|
|
141
|
+
* Updated the documentation and examples, including expectation-value and
|
|
142
|
+
Python-tips material.
|
|
143
|
+
|
|
144
|
+
`Release notes <https://github.com/EDRIXS/edrixs/releases/tag/v0.0.5>`__ |
|
|
145
|
+
`Changes since v0.0.4 <https://github.com/EDRIXS/edrixs/compare/v0.0.4...v0.0.5>`__
|
|
146
|
+
|
|
147
|
+
v0.0.4 (2019-07-01)
|
|
148
|
+
--------------------
|
|
149
|
+
|
|
150
|
+
* Corrected the source distribution and extension-linker configuration for
|
|
151
|
+
packaging, including Conda packaging.
|
|
152
|
+
|
|
153
|
+
`Changes since v0.0.3 <https://github.com/EDRIXS/edrixs/compare/v0.0.3...v0.0.4>`__
|
|
154
|
+
|
|
155
|
+
v0.0.3 (2019-06-28)
|
|
156
|
+
--------------------
|
|
157
|
+
|
|
158
|
+
* Included ``requirements.txt`` in the source distribution.
|
|
159
|
+
|
|
160
|
+
`Changes since v0.0.2 <https://github.com/EDRIXS/edrixs/compare/v0.0.2...v0.0.3>`__
|
|
161
|
+
|
|
162
|
+
v0.0.2 (2019-06-27)
|
|
163
|
+
--------------------
|
|
164
|
+
|
|
165
|
+
* Added simpler APIs for angular-momentum and many-body operators.
|
|
166
|
+
* Corrected isotropic XAS calculations and improved Docker/Jupyter support.
|
|
167
|
+
|
|
168
|
+
`Changes since v0.0.1 <https://github.com/EDRIXS/edrixs/compare/v0.0.1...v0.0.2>`__
|
|
169
|
+
|
|
170
|
+
v0.0.1 (2019-05-15)
|
|
171
|
+
--------------------
|
|
172
|
+
|
|
173
|
+
* Initial tagged release of EDRIXS.
|
|
174
|
+
|
|
175
|
+
`Source at v0.0.1 <https://github.com/EDRIXS/edrixs/tree/v0.0.1>`__
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.. _backend:
|
|
2
|
+
|
|
3
|
+
*******
|
|
4
|
+
Backend
|
|
5
|
+
*******
|
|
6
|
+
|
|
7
|
+
The :ref:`introduction` describes the four stages of a calculation. Stages two
|
|
8
|
+
to four -- building operators, diagonalizing, and assembling spectra --
|
|
9
|
+
delegate their numerical work to a backend selected with ``backend``:
|
|
10
|
+
|
|
11
|
+
* ``'dense'`` returns full NumPy matrices and uses exact dense
|
|
12
|
+
diagonalization and explicit eigenstate sums. It is intended for small
|
|
13
|
+
problems, reference calculations, and pedagogy.
|
|
14
|
+
* ``'scipy'`` returns SciPy sparse matrices and uses LOBPCG, Lanczos, and GMRES.
|
|
15
|
+
It is the default backend.
|
|
16
|
+
* ``'fortran'`` uses the native MPI solvers and communicates through files in
|
|
17
|
+
the current working directory. We provide the function
|
|
18
|
+
:func:`edrixs.get_ops_disk <edrixs.solvers.get_ops_disk>` to load the setup
|
|
19
|
+
from disk if desired.
|
|
20
|
+
* ``'petsc'`` reserves the PETSc backend contract but is not yet implemented.
|
|
21
|
+
|
|
22
|
+
Backend-specific numerical controls belong in a ``backend_kws`` mapping. The
|
|
23
|
+
mapping is specific to both the backend *and the operation*.
|
|
24
|
+
|
|
25
|
+
Numerical precision
|
|
26
|
+
===================
|
|
27
|
+
|
|
28
|
+
XAS and RIXS thermally average over the retained initial eigenstates. Request
|
|
29
|
+
enough eigenpairs from ``ed`` to keep every thermally populated state in the
|
|
30
|
+
ground-state manifold, including complete degenerate or nearly degenerate
|
|
31
|
+
multiplets; otherwise the Boltzmann average is incomplete.
|
|
32
|
+
|
|
33
|
+
EDRIXS uses established numerical linear-algebra packages, but floating-point
|
|
34
|
+
and iterative solvers are not exact. If numerical accuracy is a concern,
|
|
35
|
+
repeat the calculation with varied solver settings and check that the result
|
|
36
|
+
is unchanged. Relevant settings include ``tol`` or ``eigval_tol``,
|
|
37
|
+
``maxiter``, ``blocksize`` or ``ncv``, ``nkryl``, and the RIXS ``linsys_*``
|
|
38
|
+
options documented below.
|
|
39
|
+
|
|
40
|
+
.. _backend-options:
|
|
41
|
+
|
|
42
|
+
Backend keyword reference
|
|
43
|
+
=========================
|
|
44
|
+
|
|
45
|
+
Choose the backend whose keywords you need:
|
|
46
|
+
|
|
47
|
+
* :doc:`SciPy keywords <backends/scipy>`
|
|
48
|
+
* :doc:`Dense keywords <backends/dense>`
|
|
49
|
+
* :doc:`Fortran keywords <backends/fortran>`
|
|
50
|
+
* :doc:`PETSc status and keywords <backends/petsc>`
|
|
51
|
+
|
|
52
|
+
These references apply to the staged ``get_ops`` / ``ed`` / ``xas`` / ``rixs``
|
|
53
|
+
interface. The legacy ``ed_*_fort``, ``xas_*_fort``, and ``rixs_*_fort``
|
|
54
|
+
functions retain their existing explicit parameters.
|
|
55
|
+
|
|
56
|
+
.. toctree::
|
|
57
|
+
:hidden:
|
|
58
|
+
|
|
59
|
+
backends/scipy
|
|
60
|
+
backends/dense
|
|
61
|
+
backends/fortran
|
|
62
|
+
backends/petsc
|