DMET
A minimal DMET prototype based on PySCF, currently implementing:
- RHF reference state
- Lowdin-orthogonalized AO local basis
- Environment 1-RDM based bath/core orbital construction
- Fragment embedding Hamiltonian
- FCI as embedding solver
- One-shot DMET total energy estimation
This version focuses on "minimum runnable", and does not yet include DMET correlation potential self-consistency, chemical potential fitting, or more rigorous fragment energy partitioning.
Quick Start
from pyscf import gto
from dmet import RHFDMET, make_atom_fragments
mol = gto.M(
atom="""
H 0.0 0.0 0.0
H 0.0 0.0 0.8
H 0.0 0.0 1.6
H 0.0 0.0 2.4
""",
basis="sto-3g",
unit="Angstrom",
verbose=0,
)
dmet = RHFDMET(mol)
result = dmet.kernel(make_atom_fragments(mol))
print("RHF energy:", result.mean_field_energy)
print("DMET energy estimate:", result.total_energy)
for fragment in result.fragments:
print(
fragment.fragment.name,
"bath=",
fragment.bath_dimension,
"embed=",
fragment.embedding_dimension,
"E_emb=",
fragment.embedding_energy,
)
API
Fragment(name, ao_indices): Manually define a fragmentmake_atom_fragments(mol): One fragment per atomRHFDMET(mol, mf=None): Build a one-shot DMET solverRHFDMET.kernel(fragments): ReturnsDMETResult
For minimal end-to-end usage, you can also check the test file test_dmet.py.
Development
just test
License
MIT
Metadata
Release files for dmet 0.1.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 |
|---|---|---|---|---|
| dmet-0.1.0.tar.gz | 10.8 kB | Without provenance | Details for dmet-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dmet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dmet-0.1.0-py3-none-any.whl |
Total release size: 19.8 kB
Release files / dmet-0.1.0.tar.gz
| Download URL | dmet-0.1.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b517e786b45c5fa198e245fe6327cf4db3262de9b07e604c9f5bfbfce14625b
|
|
BLAKE2b-256 checksum How to use checksums |
e350d796d41450f232e8a7fc118e6033854e424a223615da4f3443f093d76027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / dmet-0.1.0-py3-none-any.whl
| Download URL | dmet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e782960703451e12f46b07842c281dca9cb1fef7102aa275003389b279ac2a3f
|
|
BLAKE2b-256 checksum How to use checksums |
929d5c04ec517718024e94b9ee2d9d97b5de4af196dca6bd4e33ffaf0d4dd7f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for dmet 0.1.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.