goldilocks-core
Give Goldilocks a crystal structure and it sets up a Quantum ESPRESSO calculation for you. It chooses the settings, tells you why it chose each one, and writes input files that are ready to run.
- In: a CIF or POSCAR file.
- Out: a folder with the input files, the pseudopotentials, a SLURM script, and a record of every setting and the reason for it.
Documentation: https://stfc.github.io/goldilocks-core/
Try it
In your browser, with nothing to install but Docker:
docker run --rm --publish 127.0.0.1:8000:8000 ghcr.io/stfc/goldilocks-core
Open http://127.0.0.1:8000, upload a structure, check the settings, and download the input files.
On the command line, with Python 3.12 or newer on Linux (x86-64) or on macOS 14 or newer with Apple silicon:
python3 -m venv .venv
. .venv/bin/activate
pip install goldilocks-core
goldilocks assets install default
goldilocks run "$(goldilocks examples path)/Si.cif" --out si-run
The first two lines make a virtual environment for Goldilocks. goldilocks assets install default downloads the models and the default
pseudopotential table, once. The last line sets up an SCF for the bundled silicon in si-run/.
For your own structure:
goldilocks run my_structure.cif --out my-run
Install covers the other ways, including the browser interface without Docker and a smaller install without a GPU.
What it decides for you
| Setting | How Goldilocks chooses it |
|---|---|
| k-point grid | A machine-learning model predicts the spacing your structure needs |
| Metal or insulator, and smearing | A machine-learning classifier |
| Spin polarization | A machine-learning classifier (mMACE) |
| Magnetic ordering | Ferromagnetic by default. Goldilocks lists the antiferromagnetic and ferrimagnetic candidates and can rank them; you choose |
| Pseudopotentials and cutoffs | A published table for the functional: PseudoDojo PBEsol by default, with PBE, LDA and SSSP tables |
| Hubbard U, dispersion correction, vacuum handling | Published rules, applied to your structure |
| Cluster resources | Estimated from the size of the calculation |
Anything you set yourself wins. It sets up these calculations:
| Task | What runs |
|---|---|
scf_single_point (default) |
One SCF |
relax, vc-relax |
Relax the atoms, or the atoms and the cell |
dos |
SCF, then the density of states |
band |
SCF, then the band structure along a high-symmetry path |
phonon, relax-phonon, vc-relax-phonon |
Phonons, their density of states and dispersion, optionally after a relaxation |
Common commands
| You want to | Command |
|---|---|
| See every choice and why, without writing files | goldilocks explain my_structure.cif |
| Set up another calculation | goldilocks run my_structure.cif --task band --out my-bands |
| Choose a setting yourself | goldilocks run my_structure.cif --set 'k_grid=[6,6,6]' --out my-run |
| List every setting | goldilocks settings |
| List candidate magnetic orderings | goldilocks magnetic-orderings my_structure.cif |
Each output folder must be new; Goldilocks never overwrites one.
Run the calculation
On your own machine, with Quantum ESPRESSO installed:
cd si-run
pw.x -in scf.in > scf.out
On a cluster, copy the folder there and submit it:
cd si-run
sbatch submit.sh
submit.sh is written for STFC's SCARF cluster. On another SLURM cluster,
edit its #SBATCH and module load lines first. Give the job a walltime
when you generate it, such as --set walltime_h=12.
Before you trust the numbers
The settings are a well-informed starting point, not a converged result.
Read the warnings in goldilocks.json, and test the k-points and cutoffs for
the property you need. How settings are
chosen explains each choice
and where it is weak.
Documentation
- First calculation: generate, check and run an input, step by step.
- Workbench: the browser interface.
- How settings are chosen: every setting, topic by topic.
- CLI reference and Python API.
- Use from an agent: MCP and the HTTP API.
Contributing and licence
To work on Goldilocks itself, see Contributing.
Code: BSD 3-Clause. Documentation and example structures: CC BY 4.0. Downloaded pseudopotentials keep their upstream licences.
Metadata
Release files for goldilocks-core 0.4.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 |
|---|---|---|---|---|
| goldilocks_core-0.4.0.tar.gz | 779.9 kB | Without provenance | Details for goldilocks_core-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goldilocks_core-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for goldilocks_core-0.4.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / goldilocks_core-0.4.0.tar.gz
| Download URL | goldilocks_core-0.4.0.tar.gz |
|---|---|
| Size | 779.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcafaf0855e33071bc5e73984a1a9b61db2c740892827ea292ee06f1c45def66
|
|
BLAKE2b-256 checksum How to use checksums |
301afd4b1a280032520e37f0cc2dc693be44aa81cdc5840500c4fd0ac665e481
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / goldilocks_core-0.4.0-py3-none-any.whl
| Download URL | goldilocks_core-0.4.0-py3-none-any.whl |
|---|---|
| Size | 850.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47ae3976c64e67b04c5937ea25062c32949e96f7f248e5342418459c624541b2
|
|
BLAKE2b-256 checksum How to use checksums |
deb50060b4e8c9b91184a2a63227103944c84c33f3b0292c5896d3a2e4c36864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for goldilocks-core 0.4.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.