An open API service indexing awesome lists of open source software.

https://github.com/tjira/zinq

Implementations of electronic structure methods and mathematical algorithms in Zig, focusing on clarity, simplicity, and modern system programming.
https://github.com/tjira/zinq

dirac-frenkel electronic-structure fewest-switches hartree-fock landau-zener mapping-approach quantum-dynamics surface-hopping variational-principle

Last synced: 3 months ago
JSON representation

Implementations of electronic structure methods and mathematical algorithms in Zig, focusing on clarity, simplicity, and modern system programming.

Awesome Lists containing this project

README

          

Zinq


Features
·
Compilation
·
Docs































A lightweight Zig framework for electronic structure theory, quantum chemistry, and mathematical algorithms. Written from scratch, it favors simple design and transparent implementation while relying on efficient algorithms.

## Features

Zinq provides tools for both time-independent and time-dependent quantum mechanical simulations.

### Time-Independent Quantum Mechanics

* **Integrals over Gaussian Basis Functions**
Compute integrals over Gaussian basis functions from .xyz geometries and basis files.

* **Hartree–Fock Methods**
Perform restricted or generalized Hartree-Fock calculation with DIIS accelerator.

* **Post-Hartree–Fock Methods**
Use variety of selected perturbative or variational post-Hartree–Fock methods.

* **Electronic Structure Analysis**
Compute energy derivatives and harmonic vibrational frequencies across supported methods.

### Time-Dependent Quantum Mechanics

* **Quantum Dynamics**
Simulate wavepacket dynamics in arbitrary dimensions and across multiple electronic states.

* **Dirac–Frenkel Variational Principle**
Propagate a parametrized wavefunction using the Dirac–Frenkel variational principle.

* **Surface Hopping**
Run nonadiabatic dynamics with various surface hopping algorithms.

## Getting Zinq

### Prebuilt Releases

You can download the latest binaries from the [releases](https://github.com/tjira/zinq/releases/latest) page. The releases are provided for Linux, Windows and MacOS with the common CPU architectures. All binaries are statically linked with no external runtime dependencies. For less common platforms, see the [compilation](#Compilation) section. The binaries can also be installed using `pip` from [PyPI](https://pypi.org/project/zinq).

### Compilation

Compiling Zinq is easy. Running `make` detects if a Zig compiler is available. If not, it automatically downloads the compiler to the project root and builds the binaries. The resulting executables are placed in the `zig-out/bin` directory. To verify the build, execute

```bash
./zig-out/bin/zinq
```

and check that the missing input message is displayed. If the message appears, the program is compiled correctly.

## Citation

If you use Zinq in your research, please cite the project on [Zenodo](https://doi.org/10.5281/zenodo.18386143) using the following general BibTeX entry. If you are referring to a specific version, please visit the Zenodo page and download the corresponding citation there.

```bibtex
@software{ZinqJira2026,
author = {Tomáš Jíra},
title = {tjira/zinq},
year = 2026,
publisher = {Zenodo},
doi = {10.5281/zenodo.18386143},
url = {https://doi.org/10.5281/zenodo.18386143},
}
```

## License

This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.

---