README: drop sampler details, add download instructions
Browse files15 unmodified lines161718191920212222 unmodified lines45464748495051525354555657585960616263646566484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969715 unmodified lines113114115888990919293949596979811611711815 unmodified linesMonte Carlo configurations of the two-dimensional scalar φ⁴ theory on periodicsquare lattices at the near-critical hopping parameter κ = 0.2705 with λ = 0.022,for L = 16, 32, 64, 128. Each file holds 10240 configurations as a plain NumPy`.npy` array.`.npy` array. The whole dataset is 1.8 GB.
## Physics
22 unmodified linesEvery array is float64 with shape (n_cfg, L, L). Axis 0 is the Markov-chain orderof the sampler, so neighbouring entries are neighbouring sampler iterations. Axes 1and 2 are the two lattice directions, both periodic. The values are the raw fieldφ_x with no normalisation applied.
## Generation
Each chain was sampled with alternating Fourier-accelerated HMC and Wolff clusterupdates. One iteration is one HMC trajectory, integrated with leapfrog and amomentum-space mass matrix built from the lattice dispersion p̂² = Σ_μ 4 sin²(p_μ/2),followed by Wolff single-cluster flips φ → −φ of the embedded Z₂ spins, grown withbond probability 1 − exp(−4κ φ_x φ_y) for φ_x φ_y > 0. The cluster flips remove thecritical slowing down of the magnetisation mode. The HMC step size was tuned duringwarmup and then frozen. Configurations were stored after thermalisation in chainorder. Production acceptance rate and final step size of each chain are
| L | HMC acceptance | step size ε ||---|---|---|| 16 | 0.976 | 0.0911 || 32 | 0.964 | 0.0735 || 64 | 0.954 | 0.0521 || 128 | 0.947 | 0.0392 |φ_x with no normalisation applied. The configurations were generated by Monte Carlosampling with Wolff cluster updates combined with Fourier-accelerated HMC and werestored after thermalisation.
## Download
Install the Hugging Face Hub client and fetch the whole dataset or a single latticesize.
```bashpip install -U huggingface_hub
# everything (1.8 GB) into ./phi4-critical-configshf download YangyangTan/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs
# one lattice size onlyhf download YangyangTan/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs --include "2D/*L32*"```
With huggingface_hub older than 1.0 the command is `huggingface-cli download` withthe same arguments. The same from Python
```pythonfrom huggingface_hub import snapshot_download, hf_hub_download
# everythingpath = snapshot_download("YangyangTan/phi4-critical-configs", repo_type="dataset", local_dir="phi4-critical-configs")
# one file, returns its local pathf = hf_hub_download("YangyangTan/phi4-critical-configs", "2D/phi4_2D_L32_kappa0.2705_lambda0.022.npy", repo_type="dataset")```
If the dataset is private you must be logged in to an account that can see it. Run`hf auth login` once with a read token, or pass `token="hf_..."` to the Python calls.
## Usage
```pythonimport numpy as np
phi = np.load("phi4-critical-configs/2D/phi4_2D_L32_kappa0.2705_lambda0.022.npy") # (10240, 32, 32)M = phi.mean(axis=(1, 2)) # magnetisation per configuration```
The L = 128 file is 1.3 GB. `np.load(path, mmap_mode="r")` reads it lazily.
## Observables
15 unmodified linesneighbouring configurations are mildly correlated, so the effective number ofindependent configurations for |M| is about 10240 / (2 τ_int) ≈ 3300.
## Usage
```pythonimport numpy as np
phi = np.load("2D/phi4_2D_L32_kappa0.2705_lambda0.022.npy") # (10240, 32, 32)M = phi.mean(axis=(1, 2)) # magnetisation per configuration```
The L = 128 file is 1.3 GB. `np.load(path, mmap_mode="r")` reads it lazily.
## Related
The same κ = 0.2705 configurations, together with κ = 0.26 and κ = 0.28 and L = 8,README.md+48-31