Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calchem-qc 0.2.2
File Size Uploaded Provenance Actions
calchem_qc-0.2.2.tar.gz 2.1 MB Without provenance Details for calchem_qc-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calchem-qc 0.2.2
File Interpreter ABI Platform Actions
calchem_qc-0.2.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for calchem_qc-0.2.2-cp310-abi3-win_amd64.whl

Total release size: 5.2 MB

Release files / calchem_qc-0.2.2.tar.gz

Download URL calchem_qc-0.2.2.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
35d592d9dcce43215aeb81c71248cb3a9bc86f8cefa0d0b4aed27115cc23b34b
BLAKE2b-256 checksum
How to use checksums
cbace3457d646977a5b9f7d5064fbd5fb9d1d8a3973e20d62487fb256516b27f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / calchem_qc-0.2.2-cp310-abi3-win_amd64.whl

Download URL calchem_qc-0.2.2-cp310-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4586abb384b6294f670c8b96c6ceb3a1422f6fd4d6fc2d258048b25403239d7f
BLAKE2b-256 checksum
How to use checksums
2a2b03daaed21fe8185150b01bcbfbe17761b9dc2841c0acfd538d13c8b7fc86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for calchem-qc 0.2.2

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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page