Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
64c0c08
Typo in doc-strings (fix issue #1559)
sunqm Mar 10, 2023
ea14db5
Fix _finalize method of UHF class (issue #1574) (#1621)
sunqm Mar 14, 2023
c18b6d5
Release 2.2 (#1619)
sunqm Mar 15, 2023
47d1fe4
Density fitting gradients and hessian for RSH functionals (#1630)
sunqm Mar 15, 2023
6a37eb7
Add SCS-MP2
Nov 11, 2022
fc82a94
fix mp scs test according to instructions in error message
verena-neufeld Mar 15, 2023
ebcf269
Fix flake8 config file for flake8>6
wangenau Mar 15, 2023
ae488d3
PBC DF K-build with a smaller overhead (#1550)
hongzhouye Mar 15, 2023
5bd220e
MAINT: Add starting configurations for f-in-core ECPs
bogdanoff Oct 11, 2022
6707f29
Improves initial guess for stability analysis (fix issue #1589)
sunqm Mar 15, 2023
c1a792d
pbc.df.CDERIArray compatibility improved (#1628)
sunqm Mar 16, 2023
82c8585
Read cubefile xs, ys, zs correctly (#1532)
tillhanke Mar 16, 2023
f39287a
ao2mo from scalar integral to complex GHF orbitals (#1411)
xubwa Mar 16, 2023
9ab2153
Fix SA-CASSCF tests
sunqm Mar 15, 2023
15920e6
DIIS instability due to numerical noises (fix issue #1524) (#1638)
sunqm Mar 16, 2023
737ed93
Adds UCISD with density-fitting (#1450)
maxnus Mar 17, 2023
5368de5
Pretty printing in mcscf module (#1475)
bogdanoff Mar 17, 2023
7aebc2c
Fix print format
sunqm Mar 18, 2023
9ef8040
Fix molecule orientation bug for C2v symmetry (issue #1464)
sunqm Mar 17, 2023
a1813e7
Remove deprecated distutils modules and version checking code (issue …
sunqm Mar 16, 2023
b195ad7
Fix Mole.decontract_basis method (Fix issue #1609)
sunqm Mar 10, 2023
9e0b87b
Fixes hybrid functional checks (#1646)
sunqm Mar 20, 2023
95b15d9
Updates github actions for release pipeline (#1639)
sunqm Mar 20, 2023
4350e9b
lo/boys: Use same centers for r2 and r integrals, fix charge center e…
wangenau Mar 20, 2023
58ee3f5
Moment resolved GF-CCSD (#1448)
obackhouse Mar 20, 2023
1258957
Update NLC functional example (fix issue #1367)
sunqm Mar 21, 2023
2129cc7
Update MANIFEST to include libxc.dylib (issue #1490)
sunqm Mar 21, 2023
ade9d02
Optimize qmmm interface (issue 1171)
sunqm Mar 20, 2023
e5f0555
An example for FCI transition density matrix
sunqm Mar 17, 2023
561aa36
Update MEP example
sunqm Mar 18, 2023
0ab65fb
Add some comments in symm module
sunqm Mar 18, 2023
812d650
Remove git submodule (fix issue #1392)
sunqm Mar 18, 2023
4bdd3c0
Updates examples for pbc linear-dependency basis
sunqm Mar 19, 2023
0819e99
Fix eom-ea eom-ip of mpi-krccsd (issue #1356)
sunqm Mar 19, 2023
8e2e5f6
Add example for issue #1205
sunqm Mar 20, 2023
7b9df12
Update example for issue #961
sunqm Mar 21, 2023
ec8618c
Fix multigrid vxc shape bug (#1647)
sunqm Mar 22, 2023
98f232f
MOM for GHF and DHF (fix issue #1461)
sunqm Mar 18, 2023
af54fd7
Check the number of roots during davidson diagonalization (#1654)
sunqm Mar 23, 2023
60193b4
Check and set MKL THREADS on the fly (fix issue #1102)
sunqm Mar 23, 2023
0fd3b93
GDF custom cderi file for rsh functional (#1664)
sunqm Mar 23, 2023
4a4b9e2
Clean up PBC TDDFT (#1658)
sunqm Mar 23, 2023
dd179a8
Cleanup logging messages for SACASSCF module (#1672)
sunqm Mar 27, 2023
2c7d42d
Update examples (#1675)
sunqm Mar 28, 2023
5cc2d9e
Frequency integration grid scaling factor as input to RPA calculation…
EgorTrushin Mar 28, 2023
c876e96
same fix as in PR #1675 for an example
verena-neufeld Mar 28, 2023
430a9db
Add low-level interface to Basis Set Exchange (#1166)
susilehtola Mar 29, 2023
3e9eeda
Update libcint to 5.3.0 (fix issue #1657)
sunqm Mar 22, 2023
df92512
Sanity check for update_from_chk (issue #1318)
sunqm Mar 22, 2023
6abf32e
fix chemcore bug when ecp exists
jeanwsr Apr 1, 2023
e2a8572
Release 2.2.1
sunqm Mar 31, 2023
9ae825a
Add examples and other cleanups (#1693)
sunqm Apr 3, 2023
eb7d904
Refactor NLC parser and integral code (#1681)
sunqm Apr 11, 2023
2065b43
Fix github action (#1702)
sunqm Apr 14, 2023
30236b4
Update geomeTRIC library interface (#1700)
sunqm Apr 14, 2023
b1522f2
support complex-valued h1e in fci_slow.absorb_h1e
kevinsung Apr 15, 2023
6eb7542
GHF density fitting (#1708)
sunqm Apr 19, 2023
0b957fb
Refactor tdrks-grad tduks-grad; Add TDDFT gradients for triplet states
sunqm Apr 17, 2023
4706c95
make cistring.gen_occslst a public function
kevinsung Apr 23, 2023
519a967
Create FUNDING.yml
sunqm Apr 26, 2023
7000be6
Refactors FCI cylindrical symmetry implementation (#1623)
sunqm Apr 30, 2023
a584f61
BUGFIX: SACASSCF grad fcasscf right track nelecas (#1721)
MatthewRHermes May 9, 2023
063af4c
Pass atom_symbol in all calls to ecp.core_configuration (#1723)
bogdanoff May 9, 2023
92f57dc
Fix bug in xc parser for hybrid LDA functional (#1738)
sunqm May 22, 2023
8eea7e8
Fix bug in pbcdft eval_rho2
sunqm May 18, 2023
a00d29c
Update ddcosmo to make it work the same to gaussian
sunqm May 28, 2023
35bc7d8
Fix conflict - keep both names for (MOM)GFCCSD
basilib Jun 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
[flake8]
# https://flake8.pycqa.org/en/2.5.5/warnings.html#error-codes
ignore = \
ignore =
# Indentation:
E126, E127, E128, E129, \
E126, E127, E128, E129,
# Whitespaces:
E201, E202, E203, E211, E221, E222, E225, E226, E228, E231, E241, \
E251, \
E201, E202, E203, E211, E221, E222, E225, E226, E228, E231, E241, E251,
# Comments:
E261, E262, E265, E266, \
E261, E262, E265, E266,
# Blank lines:
E301, E302, E303, E305, E306, \
E301, E302, E303, E305, E306,
# Imports:
E401, E402, \
E401, E402,
# Other:
E701, E731, E741, E275, \
E701, E731, E741, E275,
F401, C901, W391, W503, W504

exclude = test, .git, __pycache__, build, dist, __init__.py .eggs, *.egg
Expand Down
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [sunqm]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and Test
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
yum install -y epel-release && \
yum-config-manager --enable epel && \
yum install -y openblas-devel gcc cmake curl && \
cd ./pyscf/lib && curl -o deps.tar.gz -L "https://github.com/pyscf/pyscf-build-deps/blob/master/pyscf-2.2a-aarch64-deps.tar.gz?raw=true" && \
cd ./pyscf/lib && curl -o deps.tar.gz -L "https://github.com/pyscf/pyscf-build-deps/blob/master/pyscf-2.2-aarch64-deps.tar.gz?raw=true" && \
tar xzf deps.tar.gz && \
mkdir build && cd build && \
cmake -DBUILD_LIBXC=OFF -DBUILD_XCFUN=OFF -DBUILD_LIBCINT=OFF .. && \
Expand All @@ -80,9 +80,9 @@ jobs:
matrix:
python-version: ["3.7"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_linux/build_pyscf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

cd ./pyscf/lib
curl -L "https://github.com/pyscf/pyscf-build-deps/blob/master/pyscf-2.2a-deps.tar.gz?raw=true" | tar xzf -
curl -L "https://github.com/pyscf/pyscf-build-deps/blob/master/pyscf-2.2.1-deps.tar.gz?raw=true" | tar xzf -
mkdir build; cd build
cmake -DBUILD_LIBXC=OFF -DBUILD_XCFUN=OFF -DBUILD_LIBCINT=OFF ..
make -j4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_linux/python_deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
python -m pip install --upgrade pip
pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py pytest pytest-cov pytest-timer codecov
pip install "numpy!=1.16,!=1.17" "scipy!=1.5" h5py pytest pytest-cov pytest-timer
pip install pyberny geometric
pip install spglib

Expand Down
55 changes: 26 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release-pypi-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build wheels
uses: docker://pyscf/pyscf-pypa-env:latest
with:
Expand All @@ -30,23 +30,23 @@ jobs:
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ github.workspace }}/linux-wheels
packages-dir: ${{ github.workspace }}/linux-wheels
verbose: true

release-pypi-aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310]
pyver: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311]
fail-fast: false
env:
img: quay.io/pypa/manylinux2014_aarch64
img: quay.io/pypa/manylinux2014_aarch64:2023-03-12-25fd859
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Build Wheel
run: |
docker run --rm -v ${{ github.workspace }}:/src/pyscf:rw --workdir=/src/pyscf \
Expand All @@ -59,7 +59,7 @@ jobs:
export dst=${GITHUB_WORKSPACE:-/src/pyscf}/linux-wheels && \
export CMAKE_CONFIGURE_ARGS="-DWITH_F12=OFF" && \
mkdir -p /root/wheelhouse $src/linux-wheels && \
sed -i "/ if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python3.9/site-packages/auditwheel/wheel_abi.py && \
sed -i "/ if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/wheel_abi.py && \
/opt/python/${{ matrix.pyver }}/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
export whl=`ls /root/wheelhouse/pyscf-*-linux_*.whl` && \
auditwheel -v repair "$whl" --lib-sdir /lib -w $dst'
Expand All @@ -74,13 +74,13 @@ jobs:
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ github.workspace }}/linux-wheels
packages-dir: ${{ github.workspace }}/linux-wheels
verbose: true

release-pypi-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build sdist
run: |
python3 setup.py sdist
Expand All @@ -95,19 +95,19 @@ jobs:
#password: ${{ secrets.PYPI_TEST_API_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ github.workspace }}/dist
packages-dir: ${{ github.workspace }}/dist
verbose: true

release-pypi-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
Expand All @@ -128,22 +128,22 @@ jobs:
release-conda-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup conda
uses: actions/setup-python@v2
uses: s-weigand/setup-conda@v1
with:
python-version: ${{ matrix.python-version }}
update-conda: true
conda-channels: anaconda, conda-forge
- run: conda --version
- run: which python
- name: Publish to conda
run: |
$CONDA/bin/conda install -y anaconda-client conda-build
$CONDA/bin/conda build --output-folder . conda
export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }}
$CONDA/bin/conda config --set anaconda_upload yes
$CONDA/bin/anaconda upload linux-64/*.tar.bz2
conda install -y anaconda-client conda-build
conda config --set anaconda_upload yes
conda build --output-folder . conda

# Disable macos conda release for Error during compling:
# MACOSX_DEPLOYMENT_TARGET mismatch: now "10.9" but "10.15" during configure
Expand All @@ -154,9 +154,9 @@ jobs:
# python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
# fail-fast: false
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# - name: Setup conda
# uses: actions/setup-python@v2
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Publish to conda
Expand All @@ -168,14 +168,11 @@ jobs:
# $CONDA/bin/anaconda upload linux-64/*.tar.bz2

release-docker:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
needs: release-pypi-linux
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: pyscf
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

57 changes: 57 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
PySCF 2.2.1 (2023-03-29)
------------------------
* Added
- Density fitting gradients and hessian for RSH functionals
- SCS-MP2 and SCS-KMP2
- Configurations of f-in-core ECPs
- ao2mo integral transformation for GHF orbitals with scalar ERIs
- Interface to access basis Set Exchange DB
- DF-UCISD
- Moment resolved GF-CCSD
- MOM (maximum overlap method) for GHF and DHF
* Improved
- PBC GDF K-build performance
- Read cubegen for crystalline systems
* Fixes
- Outdated examples
- Update to libcint 5.3.0 to filter warning messages produced by 5.2.0
- PBC density fitting CDERIArray object backward compatibility
- DIIS numerical instability
- C2v molecule orientation when symmetry is enabled
- The missed HF exchange in RSH functional wB97
- Gauge origin of Boys localization
- Check the root numbers during Davidson diagonalization iterations
- Removed hard-coded environment variable MKL_NUM_THREADS=1
- Conflicts in GDF cderi tensor for RSH functionals


PySCF 2.2.0 (2023-03-09)
------------------------
* Added
- Molecular nuc grad with DF ERIs for ROHF, ROKS, CASSCF, SA-CASSCF
- K-point symmetry adapted crystalline orbital basis
- K-point symmetry for GDF, MDF, KCCSD
- VV10 gradients
- Spin density population analysis for MCSCF
- BCCD
- Cylindrical symmetry for FCI wavefunction
- Use a linearly independent basis in DIIS
- Full CI for complex integrals
- Maxwell-Boltzmann Velocity Distribution in BOMD
* Improved
- PBC integral accuracy for GDF, MDF, FFT, AFT
- PBC integral accuracy of 2D system for insufficient integral grids
- Update Libxc to Libxc-6
- get_monkhorst_pack_size for numerical noise
- Unit recognization unified
* Fixed
- MCSCF without initializing SCF
- Memory leaks in C kernels for CCSD(T)
- Fully spin-polarized UMP2, DF-UMP2, UCCSD, UCCSD(T) bugfixes
- numpy_helper.hermi_sum for non-contiguous array
- Padding and frozen orbitals bugs in KMP2
- PolEmbed interface and CASCI with PE
- Molecular density fitting hessian
- K-point symmetry adapted KS-DFT with SOSCF solvers


PySCF 2.1.1 (2022-09-21)
------------------------
* Added
Expand Down
9 changes: 4 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
include MANIFEST.in
include README.md setup.py CHANGELOG AUTHORS LICENSE NOTICE

global-exclude *.py[cod]
prune pyscf/lib/build

recursive-include pyscf *.dat
recursive-include pyscf/lib/deps *.so
include pyscf/lib/*.so pyscf/lib/config.h.in

# macos dynamic libraries
include pyscf/lib/*.dylib
include pyscf/lib/deps/lib*/libcint.[45].dylib
include pyscf/lib/deps/lib*/libxc.dylib
include pyscf/lib/deps/lib*/libxc.*.dylib
include pyscf/lib/deps/lib*/libxcfun.[23].dylib

include pyscf/geomopt/log.ini

# source code
prune pyscf/lib/build
recursive-include pyscf/lib *.c *.h CMakeLists.txt
recursive-exclude pyscf/lib *.cl

global-exclude *.py[cod]
prune pyscf/lib/build
6 changes: 6 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ Seunghoon Lee
Chia-Nan Yeh
Chun-Yu Chow
odidev (from puresoftware)
Nike Dattani
Egor Trushin
Wanja Schulze
Till Hanke
Kevin J. Sung
Jonathan Edward Moussa



Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Python-based Simulations of Chemistry Framework
[![Build Status](https://github.com/pyscf/pyscf/workflows/CI/badge.svg)](https://github.com/pyscf/pyscf/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/pyscf/pyscf/branch/master/graph/badge.svg)](https://codecov.io/gh/pyscf/pyscf)

2022-09-21
2023-03-29

* [Stable release 2.1.1](https://github.com/pyscf/pyscf/releases/tag/v2.1.1)
* [Stable release 2.2.1](https://github.com/pyscf/pyscf/releases/tag/v2.2.1)
* [Changelog](../master/CHANGELOG)
* [Documentation](http://www.pyscf.org)
* [Installation](#installation)
Expand Down
5 changes: 4 additions & 1 deletion conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ set -x -e
# find pyscf/lib/deps -name "*cint*" -exec rm {} \+
# rm pyscf-2.0-depsa-openblas.tar.gz

# C extensions must be installed with sequential BLAS library
# https://pyscf.org/install.html#using-optimized-blas
export CMAKE_CONFIGURE_ARGS="-DWITH_F12=OFF -DBLA_VENDOR=Intel10_64lp_seq"

# env PYTHON not defined in certain conda-build version
# $PYTHON -m pip install . -vv
export CMAKE_CONFIGURE_ARGS="-DWITH_F12=OFF"
pip install -v --prefix=$PREFIX .
5 changes: 5 additions & 0 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
python:
- 3.6
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
Loading