Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Commit 42d6b10

Browse files
andersxcharnley
authored andcommitted
Fchl merge (#79)
* Commit of all 'secret' FCHL operator code * Also adding the actual FCHL operator files * Updated init for alchemy.py * Updated import of alchemy module * Removed old file * Updated manual for FCHL functionality - still needs tutorial/examples pages
1 parent 888fb89 commit 42d6b10

24 files changed

+10721
-829
lines changed

docs/source/qml.rst

+35-15
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Python API documentation
88
qml\.representations module
99
---------------------------
1010

11-
.. automodule:: qml.representations
11+
.. automodule:: qml.representations.representations
1212
:members:
1313
:undoc-members:
1414
:show-inheritance:
1515

1616
qml\.kernels module
1717
-------------------
1818

19-
.. automodule:: qml.kernels
19+
.. automodule:: qml.kernels.kernels
2020
:members:
2121
:undoc-members:
2222
:show-inheritance:
@@ -32,7 +32,7 @@ qml\.distance module
3232
qml\.math module
3333
----------------
3434

35-
.. automodule:: qml.math
35+
.. automodule:: qml.math.math
3636
:members:
3737
:undoc-members:
3838
:show-inheritance:
@@ -45,30 +45,44 @@ qml\.Compound class
4545
:undoc-members:
4646
:show-inheritance:
4747

48-
.. qml\.arad module
49-
.. ----------------
50-
..
51-
.. .. automodule:: qml.arad
52-
.. :members:
53-
.. :show-inheritance:
5448

55-
qml\.fchl module
49+
qml\.fchl module, representations
5650
----------------
5751

58-
.. automodule:: qml.representations.fchl
52+
.. automodule:: qml.fchl.fchl_representations
5953
:members:
6054
:show-inheritance:
6155

56+
qml\.fchl module, scalar kernels
57+
----------------
58+
.. automodule:: qml.fchl.fchl_scalar_kernels
59+
:members:
60+
:show-inheritance:
6261

63-
qml\.wrappers module
64-
--------------------
62+
qml\.fchl module, force kernels
63+
----------------
64+
65+
.. automodule:: qml.fchl.fchl_force_kernels
66+
:members:
67+
:show-inheritance:
6568

66-
.. automodule:: qml.kernels.wrappers
69+
qml\.fchl module, electric-field kernels
70+
----------------
71+
72+
.. automodule:: qml.fchl.fchl_electric_field_kernels
6773
:members:
68-
:undoc-members:
6974
:show-inheritance:
7075

7176

77+
.. qml\.wrappers module
78+
.. --------------------
79+
..
80+
.. .. automodule:: qml.kernels.wrappers
81+
.. :members:
82+
.. :undoc-members:
83+
.. :show-inheritance:
84+
85+
7286
.. qml\.data module
7387
.. ----------------
7488
..
@@ -85,6 +99,12 @@ qml\.wrappers module
8599
.. :undoc-members:
86100
.. :show-inheritance:
87101
102+
qml\.arad module
103+
----------------
104+
105+
.. automodule:: qml.arad.arad
106+
:members:
107+
:show-inheritance:
88108

89109
qml\.aglaia module
90110
------------------

qml/arad/arad.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from .farad_kernels import fget_atomic_kernels_arad
3434
from .farad_kernels import fget_atomic_symmetric_kernels_arad
3535

36-
from ..representations.alchemy import PTP
36+
from qml.data.alchemy import PTP
3737

3838
def getAngle(sp,norms):
3939
epsilon = 10.* np.finfo(float).eps

qml/data/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23+
2324
from .xyzdataprovider import XYZDataProvider
2425
from .compound import Compound
26+
from .alchemy import ELEMENT_NAME, NUCLEAR_CHARGE

qml/representations/alchemy.py qml/data/alchemy.py

+116
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,122 @@
2626
import numpy as np
2727
from copy import copy
2828

29+
ELEMENT_NAME = {
30+
1: 'H' ,
31+
2: 'He' ,
32+
3: 'Li' ,
33+
4: 'Be' ,
34+
5: 'B' ,
35+
6: 'C' ,
36+
7: 'N' ,
37+
8: 'O' ,
38+
9: 'F' ,
39+
10: 'Ne' ,
40+
11: 'Na' ,
41+
12: 'Mg' ,
42+
13: 'Al' ,
43+
14: 'Si' ,
44+
15: 'P' ,
45+
16: 'S' ,
46+
17: 'Cl' ,
47+
18: 'Ar' ,
48+
19: 'K' ,
49+
20: 'Ca' ,
50+
21: 'Sc' ,
51+
22: 'Ti' ,
52+
23: 'V' ,
53+
24: 'Cr' ,
54+
25: 'Mn' ,
55+
26: 'Fe' ,
56+
27: 'Co' ,
57+
28: 'Ni' ,
58+
29: 'Cu' ,
59+
30: 'Zn' ,
60+
31: 'Ga' ,
61+
32: 'Ge' ,
62+
33: 'As' ,
63+
34: 'Se' ,
64+
35: 'Br' ,
65+
36: 'Kr' ,
66+
37: 'Rb' ,
67+
38: 'Sr' ,
68+
39: 'Y' ,
69+
40: 'Zr' ,
70+
41: 'Nb' ,
71+
42: 'Mo' ,
72+
43: 'Tc' ,
73+
44: 'Ru' ,
74+
45: 'Rh' ,
75+
46: 'Pd' ,
76+
47: 'Ag' ,
77+
48: 'Cd' ,
78+
49: 'In' ,
79+
50: 'Sn' ,
80+
51: 'Sb' ,
81+
52: 'Te' ,
82+
53: 'I' ,
83+
54: 'Xe' ,
84+
55: 'Cs' ,
85+
56: 'Ba' ,
86+
57: 'La' ,
87+
58: 'Ce' ,
88+
59: 'Pr' ,
89+
60: 'Nd' ,
90+
61: 'Pm' ,
91+
62: 'Sm' ,
92+
63: 'Eu' ,
93+
64: 'Gd' ,
94+
65: 'Tb' ,
95+
66: 'Dy' ,
96+
67: 'Ho' ,
97+
68: 'Er' ,
98+
69: 'Tm' ,
99+
70: 'Yb' ,
100+
71: 'Lu' ,
101+
72: 'Hf' ,
102+
73: 'Ta' ,
103+
74: 'W' ,
104+
75: 'Re' ,
105+
76: 'Os' ,
106+
77: 'Ir' ,
107+
78: 'Pt' ,
108+
79: 'Au' ,
109+
80: 'Hg' ,
110+
81: 'Tl' ,
111+
82: 'Pb' ,
112+
83: 'Bi' ,
113+
84: 'Po' ,
114+
85: 'At' ,
115+
86: 'Rn' ,
116+
87: 'Fr' ,
117+
88: 'Ra' ,
118+
89: 'Ac' ,
119+
90: 'Th' ,
120+
91: 'Pa' ,
121+
92: 'U' ,
122+
93: 'Np' ,
123+
94: 'Pu' ,
124+
95: 'Am' ,
125+
96: 'Cm' ,
126+
97: 'Bk' ,
127+
98: 'Cf' ,
128+
99: 'Es' ,
129+
100: 'Fm' ,
130+
101: 'Md' ,
131+
102: 'No' ,
132+
103: 'Lr' ,
133+
104: 'Rf' ,
134+
105: 'Db' ,
135+
106: 'Sg' ,
136+
107: 'Bh' ,
137+
108: 'Hs' ,
138+
109: 'Mt' ,
139+
110: 'Ds' ,
140+
111: 'Rg' ,
141+
112: 'Cn' ,
142+
114: 'Uuq',
143+
116: 'Uuh'}
144+
29145
NUCLEAR_CHARGE = {
30146
'H' : 1,
31147
'He' : 2,

qml/data/compound.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import numpy as np
2626
import collections
2727

28-
from ..representations.alchemy import NUCLEAR_CHARGE
28+
from .alchemy import NUCLEAR_CHARGE
2929

3030
from ..representations import generate_coulomb_matrix
3131
from ..representations import generate_atomic_coulomb_matrix

qml/fchl/__init__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22
#
3-
# Copyright (c) 2017 Anders S. Christensen and Felix A. Faber
3+
# Copyright (c) 2017 Anders S. Christensen, Felix A. Faber
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -20,4 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
from .fchl import *
23+
from .fchl_representations import *
24+
from .fchl_scalar_kernels import *
25+
from .fchl_force_kernels import *
26+
from .fchl_electric_field_kernels import *

0 commit comments

Comments
 (0)