File tree 4 files changed +25
-5
lines changed
4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
from typing import TypedDict
16
16
17
- from jax import numpy as jnp
18
-
19
17
20
18
class System (TypedDict ):
21
- atoms : jnp .ndarray
22
- "(natom, ndim) Positions of the atoms."
23
-
24
19
ndim : int
Original file line number Diff line number Diff line change
1
+ # Copyright 2022-2024 Bytedance Ltd. and/or its affiliates
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from netobs .systems import System
16
+
17
+
18
+ class ElectronGas (System ):
19
+ spins : tuple [int , int ]
Original file line number Diff line number Diff line change 18
18
19
19
20
20
class MolecularSystem (System ):
21
+ atoms : jnp .ndarray
22
+ "(natom, ndim) Positions of the atoms."
23
+
21
24
charges : jnp .ndarray
22
25
"(natom,) Nuclear charges of the atoms."
23
26
Original file line number Diff line number Diff line change 23
23
24
24
25
25
class SolidSystem (System ):
26
+ atoms : jnp .ndarray
27
+ "(natom, ndim) Positions of the atoms."
28
+
26
29
charges : jnp .ndarray
27
30
"(natom,) Nuclear charges of the atoms."
28
31
You can’t perform that action at this time.
0 commit comments