initial commit
Browse files- .gitattributes +4 -1
- README.md +100 -0
.gitattributes
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
@@ -5,7 +9,6 @@
|
|
| 5 |
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
###### this repo uses h5 format
|
| 2 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
###### hf formats
|
| 5 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 9 |
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 12 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 13 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# Quantum Electronic Integrals
|
| 6 |
+
|
| 7 |
+
This dataset contains quantum interaction integrals between randomly sampled pairs/quadruples of Gaussian-Type Orbitals (GTOs).
|
| 8 |
+
The targets were computed in julia using [GaussianBasis.jl](https://github.com/FermiQC/GaussianBasis.jl).
|
| 9 |
+
|
| 10 |
+
## Loading data from python
|
| 11 |
+
|
| 12 |
+
See [qml/data/integrals.py](https://github.com/aklipf/qml).
|
| 13 |
+
Loading a mono-electronic integral dataset should be as simple as:
|
| 14 |
+
|
| 15 |
+
```py
|
| 16 |
+
from qml.data import MonoIntegral
|
| 17 |
+
|
| 18 |
+
I_2_1 = MonoIntegral.h5read("integrals/mono_20k/mono_2_1.h5")
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The `MonoIntegral` class inherits its `h5read` method from the `TensorDict` mixin.
|
| 22 |
+
|
| 23 |
+
Each dataset contains its corresponding `TensorDict` dataclass, reading data from any
|
| 24 |
+
compatible HDF5 storage (containing enough keys).
|
| 25 |
+
|
| 26 |
+
# Mono-Electronic Integrals
|
| 27 |
+
|
| 28 |
+
See [mono_20k](https://huggingface.co/datasets/qml/integrals/tree/main/mono_20k)
|
| 29 |
+
and [mono_100k](https://huggingface.co/datasets/qml/integrals/tree/main/mono_100k)
|
| 30 |
+
for 2-electron integrals.
|
| 31 |
+
|
| 32 |
+
Each HDF5 file encodes an object of type:
|
| 33 |
+
|
| 34 |
+
```julia
|
| 35 |
+
# jqml/Data.jl
|
| 36 |
+
""" Object storing 1-electron integrals. """
|
| 37 |
+
struct MonoIntegral{T} <: ArrayFields
|
| 38 |
+
l :: Vector{Int64}
|
| 39 |
+
exp :: Union{SArray, Array{T}}
|
| 40 |
+
xyz :: Union{SArray, Array{T}}
|
| 41 |
+
overlap :: Array{T}
|
| 42 |
+
kinetic :: Array{T}
|
| 43 |
+
nuclear :: Array{T}
|
| 44 |
+
Z :: Array{Int64}
|
| 45 |
+
end
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
Input wave functions (ψ1, ψ2) are primitive, spherical GTO-shells
|
| 49 |
+
with unit coefficients, i.e.
|
| 50 |
+
|
| 51 |
+
ψ(C + r) = rˡ ⋅ Yₗₘ(r/|r|) ⋅ exp(-α |r|²)
|
| 52 |
+
|
| 53 |
+
where C is `ψ.center`, α is `ψ.exp`, and the magnetic quantum number m
|
| 54 |
+
takes all possible values in {-l, ..., l} within each subshell.
|
| 55 |
+
|
| 56 |
+
### Inputs:
|
| 57 |
+
- `xyz` : center of ψ2 (ψ1 is centered at 0)
|
| 58 |
+
- `l` : pair of angular momenta (l₁, l₂)
|
| 59 |
+
- `exp` : exponents (α₁, α₂)
|
| 60 |
+
- `Z` : atomic charges used to compute the nuclear integral.
|
| 61 |
+
|
| 62 |
+
### Targets:
|
| 63 |
+
- `overlap` integrals `S₁₂ = ∫ ψ1 ⋅ ψ2`
|
| 64 |
+
- `kinetic` integrals `T₁₂ = 1/2 * ∫ ∇ψ1 ⋅ ∇ψ2`
|
| 65 |
+
- `nuclear` attraction integrals
|
| 66 |
+
|
| 67 |
+
`N₁₂ = ∫ ψ1 ⋅ [(Z₁ / |r|) + (Z₂ / |r - xyz|)] ⋅ ψ2`
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### Note:
|
| 72 |
+
Mono-electronic integrals are square matrices of shape `D × D` with
|
| 73 |
+
|
| 74 |
+
D = (2 * l1 + 1) + (2 * l2 + 1)
|
| 75 |
+
|
| 76 |
+
Indices correspond to increasing values of `m1 ∈ {-l1, …, l1}` first,
|
| 77 |
+
then increasing values of `m2 ∈ {-l2, …, l2}`.
|
| 78 |
+
|
| 79 |
+
# Bi-Electronic Integrals
|
| 80 |
+
|
| 81 |
+
Batches of 2-electron integrals are returned in the
|
| 82 |
+
following sparse format:
|
| 83 |
+
|
| 84 |
+
```julia
|
| 85 |
+
"""Object for storing bi-electronic integrals"""
|
| 86 |
+
struct BiIntegral4c{T} <: ArrayFields
|
| 87 |
+
l :: Vector{Int64}
|
| 88 |
+
exp :: Array{T}
|
| 89 |
+
xyz :: Array{T}
|
| 90 |
+
ijkl :: Array{Int16}
|
| 91 |
+
Bijkl :: Array{Float64}
|
| 92 |
+
index :: Vector{Int64}
|
| 93 |
+
end
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
The `index` field has the same length as `ijkl` and `Bijkl`, and maps each integral element
|
| 97 |
+
to the index of the corresponding input GTOs.
|
| 98 |
+
|
| 99 |
+
See [bi_200](https://huggingface.co/datasets/qml/integrals/tree/main/bi_200)
|
| 100 |
+
|