Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyscf-vscf

A coupled two-coordinate potential-energy surface

pyscf-vscf provides reduced-dimensional vibrational calculations with a PySCF electronic-structure backend. It includes:

  • state-specific VSCF for n-mode Hamiltonians with one-mode potentials and explicit two-mode coupling corrections;
  • fitted 1MR/2MR and selected 3MR scalar/vector n-mode surfaces;
  • VCI on converged VSCF modals and a complete triatomic Jacobi J=0 operator;
  • 1D and 2D sinc-DVR solvers;
  • frozen local-bond, normal-coordinate, and constrained relaxed scans;
  • harmonic analysis and geometry optimization;
  • assigned transition frequencies and axis-projected and isotropic intensities; and
  • provenance-checked PES/DMS caches.

The package does not implement a full-dimensional PES generator or a general curvilinear or rovibrational kinetic-energy operator.

Install

pip install pyscf-vscf

PySCF and geomeTRIC are installed with the package. PySCF does not support native Windows, so Windows users should install it under WSL.

For development:

git clone https://github.com/diogovalada/pyscf-vscf.git
cd pyscf-vscf
uv sync --extra dev

VSCF Example

Run the PySCF-free example included in the wheel:

python -m pyscf_vscf.examples.vscf_two_mode

The corresponding API is:

from pyscf_vscf import NModePotential, VSCFSettings, vscf_spectrum

NModePotential represents

H = sum_i [T_i + V_i(q_i)] + sum_{i<j} V_ij(q_i, q_j)

Each V_ij is a coupling correction, not a complete pair potential. Coordinates are uniform grids in Angstrom.

PySCF Workflows

The command-line interface accepts XYZ and Midas MMOL geometries:

pyscf-vscf --xyz molecule.xyz --task harmonic
pyscf-vscf --xyz molecule.xyz --task 1d --bond 0-1 --npts 41
pyscf-vscf --help

The built-in backend supports Hartree-Fock (--method hf) and PySCF DFT exchange-correlation specifications. Scan functions also accept an injected energy/dipole evaluator through the Python API; there is not yet a packaged adapter for another electronic-structure program. Custom evaluators return Hartree energies and Cartesian Debye dipoles in the geometry frame. Use a stable custom backend_identity when writing and loading their caches.

Charge and spin are not reliably encoded in XYZ or MMOL files. Pass --charge and --spin for ions and open-shell systems.

Results And Caches

variational_1d and variational_2d return immutable TransitionRecord objects. Every record contains both the polarized-axis and isotropically averaged intensity conventions. Use record.as_dict() for JSON output.

Schema-v3 grid caches separate the causal cache identity from recorded provenance. Electronic method, basis, geometry, charge, spin, and scan grid control reuse; isotope masses, labels, runtime versions, and vibrational analysis policy do not invalidate the same Born-Oppenheimer surface. Array checksums are always verified.

See the intensity conventions, installation guide, and validation guide for details.

The evolving coordinate, fitted n-mode, triatomic J=0, VCI, and vector-DMS interfaces are documented in the advanced n-mode and VCI guide.

Validation

uv run ruff check src tests scripts
uv run ruff format --check src tests scripts
uv run pytest -q
uv run python scripts/validate_archived_grids.py --output /tmp/water-report.json
uv run python scripts/validate_nh3_three_mode.py --output /tmp/nh3-report.json

The test suite includes analytic numerical checks, tiny PySCF smoke tests, and archived H2O/HDO/D2O and NH3 molecular validations. The archives test solver correctness and convergence on stated reduced-dimensional Hamiltonians; they do not establish general spectroscopic accuracy.

License

MIT

Metadata

Release files for pyscf-vscf 0.2.0a1

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

Source distribution (sdist)

Source distribution for pyscf-vscf 0.2.0a1
File Size Uploaded
pyscf_vscf-0.2.0a1.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscf-vscf 0.2.0a1
File Interpreter ABI Platform
pyscf_vscf-0.2.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / pyscf_vscf-0.2.0a1.tar.gz

Download URL pyscf_vscf-0.2.0a1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
512bf54ac22cbda82c194d01529a28d5fc59119d6be2df6c8788aedab29332f0
BLAKE2b-256 checksum
How to use checksums
d967da1dc1b4bfe2ef8529bc4f3c49b2b85ca41a7ecbaf1f84a6f6a1b2077981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log

Release files / pyscf_vscf-0.2.0a1-py3-none-any.whl

Download URL pyscf_vscf-0.2.0a1-py3-none-any.whl
Size 140.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
266bb52a351247b431e8b18133cf7bc91f6dc55fa5f2cd6db0e57bd686b0a2f5
BLAKE2b-256 checksum
How to use checksums
868a08897263e9cf877f89bd37c73287692458c6e06772195776f8c355bc0582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log
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