electroket
Installation
pip install electroket
Usage
import electroket as ek
print(ek.show_version()) # prints electroket's version
Library contents
electroket exposes several modules aimed at working with particles in continuous space:
hilbert– Hilbert spaces for particles and spinful particles in boxes or free space.geometry– simulation cells supporting periodic and open boundary conditions.molecule– helpers to define molecules and atomic properties including a small periodic table.operator– kinetic, potential and interaction operators for continuous systems.models– simple variational ansätze like Gaussian or Slater wave functions.sampler– Metropolis samplers with rules suitable for continuous variables.random– routines to generate random particle configurations.pyscf_utils– utilities to interface with PySCF and obtain SCF orbitals.
These modules are imported in electroket.__init__ so they can be accessed directly
from the top-level package.
Examples
Below is a minimal SR-VMC calculation for the H$_2$ molecule extracted from the Examples directory.
import netket as nk
import electroket as ek
from electroket.models import MolecularSlater
h2 = ek.Molecule(
atoms=[
("H", [0.0, 0.0, -0.35]),
("H", [0.0, 0.0, 0.35]),
],
units="angstrom",
)
ham = ek.operator.KineticEnergy(h2) + ek.operator.CoulombInteraction(h2)
model = MolecularSlater(h2)
sampler = ek.sampler.MetropolisSampler(
h2,
ek.sampler.GaussianRule(sigma=0.1),
)
vstate = nk.vqs.MCState(sampler, model, n_samples=500)
sr = nk.optimizer.SR(diag_shift=0.05)
opt = nk.optimizer.Sgd(learning_rate=0.01)
driver = nk.driver.VMC(
hamiltonian=ham,
optimizer=opt,
variational_state=vstate,
preconditioner=sr,
)
driver.run(n_iter=1000)
Metadata
Release files for electroket 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 |
|---|---|---|---|---|
| electroket-0.1.0.tar.gz | 34.4 kB | Without provenance | Details for electroket-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| electroket-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for electroket-0.1.0-py3-none-any.whl |
Total release size: 72.6 kB
Release files / electroket-0.1.0.tar.gz
| Download URL | electroket-0.1.0.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35fce632c4f3c7c90d82256370c7c2ad9963ade893262250460e2f795d1447f0
|
|
BLAKE2b-256 checksum How to use checksums |
7ac9dcef54b1a0c492f4770fe6a339f5fc1bd23288fd5c46e0017cabca852d18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / electroket-0.1.0-py3-none-any.whl
| Download URL | electroket-0.1.0-py3-none-any.whl |
|---|---|
| Size | 38.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d633a1c3028a36f33c6f88023ee14a88c7e151054be32ae0b14e47bff41db7e6
|
|
BLAKE2b-256 checksum How to use checksums |
9a59a52e1f39e68b66be0c37764d57ae930dd0283ed49a1778f2ac37c461f067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for electroket 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.