CalChem
GPU-accelerated quantum chemistry software for organic and OPV materials.
CalChem 是一款面向有机光电材料(OPV)的量子化学计算软件,原生支持 GPU 加速,与 GROMACS 工作流深度集成,提供比 Gaussian 更现代、更高效、更易用的体验。
核心特性
- GPU 原生加速:Fock 矩阵构建、电子积分、DFT 网格全链路 GPU 加速
- OPV 场景优化:内置共轭体系默认参数(ωB97X-D/def2-TZVP + SMD 溶剂)
- GROMACS 一键对接:RESP/CM5 电荷直接生成 GROMACS 拓扑
- 现代接口:Python API + YAML 声明式输入 + 结构化 JSON 输出
- Gaussian 兼容:直接读取
.gjf输入和.fchk检查点 - 双平台支持:Windows + Linux 原生运行
安装
Windows (PowerShell)
# 自动安装脚本(安装到 D 盘)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-WebRequest -Uri https://raw.githubusercontent.com/CalChem/CalChem/main/scripts/install_windows.ps1 -OutFile install_calchem.ps1
.\install_calchem.ps1
手动安装
# 克隆仓库
git clone https://github.com/CalChem/CalChem.git
cd CalChem
# 创建虚拟环境(推荐 D 盘)
python -m venv D:\calchem-venv
D:\calchem-venv\Scripts\activate
# 安装
pip install -e ".[dev,gpu]"
快速开始
命令行
# 单点能计算
calchem run molecule.xyz --method b3lyp --basis def2-svp
# 几何优化
calchem opt molecule.xyz --method wb97xd --basis def2-tzvp --maxiter 100
# 显示分子信息
calchem info molecule.gjf
Python API
from calchem import Molecule
from calchem.api import single_point, optimize
# 加载分子
mol = Molecule.from_xyz("""
3
water
O 0.0 0.0 0.0
H 0.0 0.0 0.96
H 0.0 0.96 0.0
""")
# 单点能计算
result = single_point(mol, method="B3LYP", basis="def2-SVP")
print(f"Energy: {result.energy:.6f} Hartree")
# 几何优化
opt_result = optimize(mol, method="B3LYP", basis="def2-SVP")
print(f"Optimized energy: {opt_result.energy:.6f} Hartree")
opt_result.molecule.save_xyz("water_opt.xyz")
YAML 输入
molecule:
file: water.xyz
charge: 0
multiplicity: 1
calculation:
type: optimize
method: B3LYP
basis: def2-TZVP
functional: B3LYP
max_scf_cycles: 100
max_opt_cycles: 50
convergence: tight
output:
format: json
file: result.json
cube_files: [homo, lumo]
项目结构
calchem/
├── mol/ # 分子表示与几何
├── io/ # 输入输出 (xyz/gjf/gro/mol2/hdf5)
├── basis/ # 基组库
├── scf/ # SCF 主循环 (HF/DFT)
├── gpu/ # GPU 加速核心
├── grad/ # 梯度与频率
├── opt/ # 几何优化 (BFGS/Berny)
├── props/ # 性质分析 (电荷/多极矩/NMR)
├── excited/ # 激发态 (TDDFT/UV-Vis)
├── posthf/ # 后 HF (MP2/CCSD(T))
├── solvent/ # 溶剂效应 (PCM/SMD)
├── md/ # MD 集成 (GROMACS)
├── cli/ # 命令行接口
├── api/ # Python 高层 API
└── utils/ # 工具函数
路线图
- M1 ✅ 分子输入解析器与结构化输出
- M2 🔄 GPU 加速的 SCF 核心 (RHF/UHF/DFT)
- M3 几何优化器 (BFGS/Berny)
- M4 RESP/CM5 电荷拟合,GROMACS 对接
- M5 TDDFT 激发态与 UV-Vis 光谱
许可证
Apache-2.0
Metadata
Release files for calchem-qc 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calchem_qc-0.2.0.tar.gz | 2.4 MB | Without provenance | Details for calchem_qc-0.2.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calchem_qc-0.2.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for calchem_qc-0.2.0-cp310-abi3-win_amd64.whl |
| calchem_qc-0.2.0-cp310-abi3-manylinux_2_35_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.35+ x86-64 | Details for calchem_qc-0.2.0-cp310-abi3-manylinux_2_35_x86_64.whl |
Total release size: 7.1 MB
Release files / calchem_qc-0.2.0.tar.gz
| Download URL | calchem_qc-0.2.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eabfd1c647a103a5d5661f8122a204a656e6fe6ebbcdd522c5324ad2a7399e39
|
|
BLAKE2b-256 checksum How to use checksums |
acf6b4fe284542a8a54f466f30778650219d590fc9253a1a4cc7674c57fe3f79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / calchem_qc-0.2.0-cp310-abi3-win_amd64.whl
| Download URL | calchem_qc-0.2.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b4006c79a2ed0099f6da7221b67e141a4d8eecebaefc4485e0fc545f5e0821aa
|
|
BLAKE2b-256 checksum How to use checksums |
f6f15ac25dbb52eaa7c955fc71c7c0559e9359961587a82253b41810b969831d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / calchem_qc-0.2.0-cp310-abi3-manylinux_2_35_x86_64.whl
| Download URL | calchem_qc-0.2.0-cp310-abi3-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d729ad8e820c304b34ff81d6e0440d89ce11422b4584700b9e14fca2dcf2a63d
|
|
BLAKE2b-256 checksum How to use checksums |
60b2d5beb559daa4ec1775729037d8e2d2357754472453c1974fd4a8470bb07c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for calchem-qc 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.