|
|
--- |
|
|
license: mit |
|
|
--- |
|
|
|
|
|
# Quantum Electronic Integrals |
|
|
|
|
|
This dataset contains quantum interaction integrals between randomly sampled pairs/quadruples of Gaussian-Type Orbitals (GTOs). |
|
|
The targets were computed in julia using [GaussianBasis.jl](https://github.com/FermiQC/GaussianBasis.jl). |
|
|
|
|
|
## Loading data from python |
|
|
|
|
|
See [qml/data/integrals.py](https://github.com/aklipf/qml). |
|
|
Loading a mono-electronic integral dataset should be as simple as: |
|
|
|
|
|
```py |
|
|
from qml.data import MonoIntegral |
|
|
|
|
|
I_2_1 = MonoIntegral.h5read("integrals/mono_20k/mono_2_1.h5") |
|
|
``` |
|
|
|
|
|
The `MonoIntegral` class inherits its `h5read` method from the `TensorDict` mixin. |
|
|
|
|
|
Each dataset contains its corresponding `TensorDict` dataclass, reading data from any |
|
|
compatible HDF5 storage (containing enough keys). |
|
|
|
|
|
# Mono-Electronic Integrals |
|
|
|
|
|
See [mono_20k](https://huggingface.co/datasets/qml/integrals/tree/main/mono_20k) |
|
|
and [mono_100k](https://huggingface.co/datasets/qml/integrals/tree/main/mono_100k) |
|
|
for 2-electron integrals. |
|
|
|
|
|
Each HDF5 file encodes an object of type: |
|
|
|
|
|
```julia |
|
|
# jqml/Data.jl |
|
|
""" Object storing 1-electron integrals. """ |
|
|
struct MonoIntegral{T} <: ArrayFields |
|
|
l :: Vector{Int64} |
|
|
exp :: Union{SArray, Array{T}} |
|
|
xyz :: Union{SArray, Array{T}} |
|
|
overlap :: Array{T} |
|
|
kinetic :: Array{T} |
|
|
nuclear :: Array{T} |
|
|
Z :: Array{Int64} |
|
|
end |
|
|
``` |
|
|
|
|
|
Input wave functions (Ο1, Ο2) are primitive, spherical GTO-shells |
|
|
with unit coefficients, i.e. |
|
|
|
|
|
Ο(C + r) = rΛ‘ β
Yββ(r/|r|) β
exp(-Ξ± |r|Β²) |
|
|
|
|
|
where C is `Ο.center`, Ξ± is `Ο.exp`, and the magnetic quantum number m |
|
|
takes all possible values in {-l, ..., l} within each subshell. |
|
|
|
|
|
### Inputs: |
|
|
- `xyz` : center of Ο2 (Ο1 is centered at 0) |
|
|
- `l` : pair of angular momenta (lβ, lβ) |
|
|
- `exp` : exponents (Ξ±β, Ξ±β) |
|
|
- `Z` : atomic charges used to compute the nuclear integral. |
|
|
|
|
|
### Targets: |
|
|
- `overlap` integrals `Sββ = β« Ο1 β
Ο2` |
|
|
- `kinetic` integrals `Tββ = 1/2 * β« βΟ1 β
βΟ2` |
|
|
- `nuclear` attraction integrals |
|
|
|
|
|
`Nββ = β« Ο1 β
[(Zβ / |r|) + (Zβ / |r - xyz|)] β
Ο2` |
|
|
|
|
|
|
|
|
|
|
|
### Note: |
|
|
Mono-electronic integrals are square matrices of shape `D Γ D` with |
|
|
|
|
|
D = (2 * l1 + 1) + (2 * l2 + 1) |
|
|
|
|
|
Indices correspond to increasing values of `m1 β {-l1, β¦, l1}` first, |
|
|
then increasing values of `m2 β {-l2, β¦, l2}`. |
|
|
|
|
|
# Bi-Electronic Integrals |
|
|
|
|
|
Batches of 2-electron integrals are returned in the |
|
|
following sparse format: |
|
|
|
|
|
```julia |
|
|
"""Object for storing bi-electronic integrals""" |
|
|
struct BiIntegral4c{T} <: ArrayFields |
|
|
l :: Vector{Int64} |
|
|
exp :: Array{T} |
|
|
xyz :: Array{T} |
|
|
ijkl :: Array{Int16} |
|
|
Bijkl :: Array{Float64} |
|
|
index :: Vector{Int64} |
|
|
end |
|
|
``` |
|
|
|
|
|
The `index` field has the same length as `ijkl` and `Bijkl`, and maps each integral element |
|
|
to the index of the corresponding input GTOs. |
|
|
|
|
|
See [bi_200](https://huggingface.co/datasets/qml/integrals/tree/main/bi_200) |
|
|
|
|
|
|