Skip to content

Commit 97427ba

Browse files
authored
Change license to Apache2 (pyscf#277)
* Change license to Apache2 * Update heads for newly added files
1 parent cb55121 commit 97427ba

File tree

336 files changed

+3622
-4345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+3622
-4345
lines changed

CONTRIBUTORS

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
The GPU4PySCF package includes contributions from
2+
3+
Qiming Sun (ByteDance Ltd)
4+
Xiaojie Wu (ByteDance Ltd)
5+
Konstantin Karandashev
6+
Chenghan Li (Caltech)
7+
Yuanheng Wang (ByteDance Ltd)
8+
Zhichen Pu (ByteDance Ltd)
9+
Wen Yan (ByteDance Ltd)
10+
Rui Li (Caltech)

LICENSE

+201-675
Large diffs are not rendered by default.

examples/00-h2o.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616

1717
##############################################################################

examples/01-h2o_with_dispersion.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
###########################################################
1717
# Example of DFT with Dispersion correction (dftd3/dftd4)

examples/02-h2o_geomopt.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
####################################################
1717
# Example of geometry optimization with DFT

examples/03-h2o_dzvp.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
####################################################
1717
# Example of DFT with different customized auxbasis

examples/04-h2o_esp.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
#########################################################
1717
# Example of calculating Electrostatic potential (ESP)

examples/05-h2o_multipole_moment.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
##########################################################
1717
# Example of compute dipole moment and quadrupole moment

examples/06-h2o_direct_scf.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
#######################################################
1717
# Example of DFT with direct SCF scheme

examples/07-transition_state.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
#############################################################
1717
# Example of transition state with geomeTRIC
@@ -77,4 +77,4 @@
7777
mol_eq = optimize(mf_GPU, maxsteps=100, transition=True, hessian='file:'+outfile.name)
7878
print("Optimized coordinate:")
7979
print(mol_eq.atom_coords())
80-
print('transition state search takes', time.time() - start_time, 's')
80+
print('transition state search takes', time.time() - start_time, 's')

examples/09-dump_electron_density.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
###############################################################
1717
# Example of evaluating and saving electron density on grids
@@ -53,4 +53,4 @@
5353
weights=weights,
5454
density=density,
5555
atnums=atnums,
56-
atcoords=atcoords)
56+
atcoords=atcoords)

examples/10-dft_with_ecp.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
####################################################
1717
# Example of DFT with ECP

examples/11-dft_with_nlc.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
#################################################
1717
# Example of DFT with nonlocal corrections

examples/12-remove_linear_dep.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2023 The GPU4PySCF Authors. All Rights Reserved.
1+
#!/usr/bin/env python
2+
# Copyright 2021-2024 The PySCF Developers. All Rights Reserved.
23
#
3-
# This program is free software: you can redistribute it and/or modify
4-
# it under the terms of the GNU General Public License as published by
5-
# the Free Software Foundation, either version 3 of the License, or
6-
# (at your option) any later version.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
77
#
8-
# This program is distributed in the hope that it will be useful,
9-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-
# GNU General Public License for more details.
8+
# http://www.apache.org/licenses/LICENSE-2.0
129
#
13-
# You should have received a copy of the GNU General Public License
14-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
1515

1616
################################################################
1717
# Example of removing the linear dependence of atomic orbitals

0 commit comments

Comments
 (0)