Skip to main content

Mandacaru logo

License: MIT Python 3.14 PyPI version Documentation Status GitHub

Mandacaru

Mandacaru provides a Rust scientific core with a Python interface for electronic structure and fermionic quantum simulation. Rust owns molecular HF/DFT, variational optimization, scientific buffers and numerical kernels. Python provides input values, result views, ASE integration and external service adapters. There is no Python calculation engine or execution-engine selector.

Install and run

The base package requires Python 3.14 and NumPy. Platform wheels include the native extension. Building from source also requires Rust/Cargo.

python -m pip install mandacaru
import numpy as np
from mandacaru import Geometry, Mandacaru

geometry = Geometry((1, 1), np.array([[2.5,2.5,2.13], [2.5,2.5,2.87]]), np.eye(3)*5)
with Mandacaru(method="dft", xc="pbe", grid_spacing=.35,
               resources={"threads": 2}) as calculation:
    result = calculation.run(geometry)
    print(result.optimal_energy)  # eV
    print(result.forces())       # eV/angstrom

Install mandacaru[ase] for the optional mandacaru.integrations.ase.ASECalculator adapter. Molecular calculations accept standalone geometry values and do not require ASE.

Four-index Hamiltonians are built only when explicitly requested through result.hamiltonian, Hamiltonian export or a quantum calculation. HF and screened hybrid exchange use native Cholesky factors.

Source layout

Location Responsibility
Cargo.toml, Cargo.lock Native workspace and locked dependencies
crates/mandacaru-core Basis, models, molecular/periodic solvers, PAW and quantum algorithms
crates/mandacaru-kernels Low-level numerical kernels
crates/mandacaru-python PyO3 bindings and checked NumPy transfers
src/mandacaru Python interface, workflows, result views and integrations
build_hooks/native.py Native extension build hook
scripts Local architectural and installation checks
docs Sphinx manual

There are no Rust sources inside the Python package. No GitHub workflows are used.

Local checks

python scripts/check_architecture.py
cargo test --release --workspace
python -m pytest test/architecture
python -m sphinx -W --keep-going -b html docs/source /tmp/mandacaru-docs

Rebuild the editable extension after changing Rust:

python -m pip install --no-deps -e .

The manual describes native coverage, scientific conventions and remaining migration work. Unsupported models raise errors and do not select a Python numerical fallback.

Metadata

Release files for mandacaru 26.10.39

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

Source distribution (sdist)

Source distribution for mandacaru 26.10.39
File Size Uploaded Provenance Actions
mandacaru-26.10.39.tar.gz 1.2 MB Without provenance Details for mandacaru-26.10.39.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mandacaru 26.10.39
File Interpreter ABI Platform Actions
mandacaru-26.10.39-cp312-cp312-macosx_26_0_arm64.whl CPython 3.12 CPython 3.12 macOS 26.0+ ARM64 Details for mandacaru-26.10.39-cp312-cp312-macosx_26_0_arm64.whl

Total release size: 3.3 MB

Release files / mandacaru-26.10.39.tar.gz

Download URL mandacaru-26.10.39.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
c83fd0ee3ea81bacc26c520257e969861c7ef5b7bc669d1291e584bc9a11e497
BLAKE2b-256 checksum
How to use checksums
943faa5b0e441d98561102cbc9dfa36060ae1fac3c4cd028a1c8df636d053668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / mandacaru-26.10.39-cp312-cp312-macosx_26_0_arm64.whl

Download URL mandacaru-26.10.39-cp312-cp312-macosx_26_0_arm64.whl
Size 2.1 MB
Tags CPython 3.12 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
2ea09bb08a9204004978a36e9b9fa0fabc3042ea97110b1966c207ff4d20bc7a
BLAKE2b-256 checksum
How to use checksums
b9ac78093c7a3cb44ada99a33b7d848ee5c58a68ae14b846b227866984784497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for mandacaru 26.10.39

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

26.10.39 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