README: concise version with physical quantities, repo name phi4-generative
#1
by YangyangTan - opened
10 unmodified lines111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315410 unmodified lines- 10K<n<100K---# φ⁴ lattice field configurations near the critical pointMonte Carlo configurations of the scalar φ⁴ theory on periodic lattices close to thecritical point, as plain NumPy `.npy` arrays.| | κ | λ | L | configurations per L | size ||---|---|---|---|---|---|| 2D | 0.2705 | 0.022 | 16, 32, 64, 128 | 10240 | 1.8 GB || 3D | 0.1923 | 0.9 | 16, 32, 64, 128 | 2560 | 49 GB |## PhysicsLattice action in hopping-parameter form$$S[\phi] = \sum_x \Big[-2\kappa \sum_{\mu=1}^{D} \phi_x \phi_{x+\hat\mu} + (1-2\lambda)\phi_x^2 + \lambda\phi_x^4\Big]$$on an L^D lattice with periodic boundary conditions and Boltzmann weight exp(−S).In 2D the quartic coupling is λ = 0.022 and the hopping parameter κ = 0.2705. Forthis λ the critical point is κ_c ≈ 0.27088 (Binder-cumulant estimate at L = 128,where U₄ reaches the 2D Ising value 0.6106), so κ = 0.2705 lies slightly on thesymmetric side of κ_c and U₄ decreases with L.In 3D the couplings are λ = 0.9 and κ = 0.1923. The critical point for this λ isκ_c ≈ 0.19225 (Binder-cumulant crossing at L = 64), so κ = 0.1923 lies very slightlyon the ordered side of κ_c and U₄ grows with L. At L = 16 and 32 it is within errorsof the 3D Ising value 0.465.Both sets are therefore near-critical rather than exactly critical. The Bindercumulants in the tables below show how far each L is from the fixed point.## Files```README.md2D/phi4_2D_L16_kappa0.2705_lambda0.022.npy shape (10240, 16, 16) 21 MB2D/phi4_2D_L32_kappa0.2705_lambda0.022.npy shape (10240, 32, 32) 84 MB2D/phi4_2D_L64_kappa0.2705_lambda0.022.npy shape (10240, 64, 64) 336 MB2D/phi4_2D_L128_kappa0.2705_lambda0.022.npy shape (10240, 128, 128) 1342 MB3D/phi4_3D_L16_kappa0.1923_lambda0.9.npy shape (2560, 16, 16, 16) 84 MB3D/phi4_3D_L32_kappa0.1923_lambda0.9.npy shape (2560, 32, 32, 32) 671 MB3D/phi4_3D_L64_kappa0.1923_lambda0.9.npy shape (2560, 64, 64, 64) 5369 MB3D/phi4_3D_L128_kappa0.1923_lambda0.9.npy shape (2560, 128, 128, 128) 42950 MB```Every array is float64 with shape (n_cfg, L, …, L). Axis 0 is the Markov-chain orderof the sampler. The remaining axes are the lattice directions, all periodic. Thevalues are the raw field φ_x with no normalisation applied.The configurations were generated by Monte Carlo sampling with Wolff cluster updatescombined with Fourier-accelerated HMC. Each chain started from a random field and ran2000 warm-up iterations before production. In 2D every fifth production iteration wasstored, in 3D every tenth. The 3D L = 128 file holds ten independent chains of 256configurations each, concatenated along axis 0 (entries 0 to 255 are chain 1, 256 to511 chain 2, and so on). All other files are single chains.## DownloadInstall the Hugging Face Hub client and fetch the whole dataset or a part of it. The3D L = 128 file alone is 43 GB, so pick what you need.```bashpip install -U huggingface_hub# everything (51 GB) into ./phi4-critical-configshf download YangyangTan/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs# 2D only (1.8 GB)hf download YangyangTan/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs --include "2D/*"# one lattice size onlyhf download YangyangTan/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs --include "3D/*L64*"```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# 2D onlypath = snapshot_download("YangyangTan/phi4-critical-configs", repo_type="dataset",local_dir="phi4-critical-configs", allow_patterns=["2D/*"])# one file, returns its local pathf = hf_hub_download("YangyangTan/phi4-critical-configs","3D/phi4_3D_L32_kappa0.1923_lambda0.9.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 npphi = 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 configurationphi3 = np.load("phi4-critical-configs/3D/phi4_3D_L64_kappa0.1923_lambda0.9.npy", mmap_mode="r") # (2560, 64, 64, 64)````np.load(path, mmap_mode="r")` reads the large files lazily.## ObservablesComputed from the files as stored, with M = L⁻ᴰ Σ_x φ_x,χ = Lᴰ (⟨M²⟩ − ⟨|M|⟩²) and U₄ = 1 − ⟨M⁴⟩ / (3⟨M²⟩²). Errors are jackknife over 64blocks of consecutive configurations. τ_int is the integrated autocorrelation timealong axis 0 in units of stored configurations (Sokal window), measured for |M| andfor the action S. A value of 0.5 means consecutive configurations are uncorrelated.2D, κ = 0.2705, λ = 0.022| L | ⟨\|M\|⟩ | χ | U₄ | τ_int(\|M\|) | τ_int(S) ||---|---|---|---|---|---|| 16 | 0.8149(26) | 23.0(3) | 0.5524(18) | 0.53 | 0.56 || 32 | 0.7147(25) | 64.3(8) | 0.5672(16) | 0.58 | 0.60 || 64 | 0.6019(26) | 212(3) | 0.5551(20) | 0.64 | 0.66 || 128 | 0.4447(23) | 772(7) | 0.4815(27) | 0.69 | 0.79 |3D, κ = 0.1923, λ = 0.9| L | ⟨\|M\|⟩ | χ | U₄ | τ_int(\|M\|) | τ_int(S) ||---|---|---|---|---|---|| 16 | 0.2119(24) | 43.4(9) | 0.468(7) | 0.60 | 0.55 || 32 | 0.1497(14) | 172(4) | 0.472(6) | 0.53 | 0.54 || 64 | 0.1125(12) | 641(15) | 0.503(5) | 0.78 | 0.88 || 128 | 0.0973(9) | 2372(73) | 0.566(4) | 0.74 | 0.74 |The stored configurations are close to statistically independent in every file. Thelargest value, τ_int = 0.88 for S in 3D at L = 64, corresponds to an effectivesample size of about 2560 / (2 τ_int) ≈ 1450.## RelatedAn earlier, independent set of 2D κ = 0.2705 chains (not thinned, so neighbouringconfigurations are correlated at L = 128), together with κ = 0.26 and κ = 0.28 andL = 8, is available in `.npz` form athttps://huggingface.co/datasets/phi4-generative/2d-phi4-configs.10 unmodified lines111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310 unmodified lines- 10K<n<100K---# φ⁴ lattice configurations near the critical pointMonte Carlo configurations of the scalar φ⁴ theory on periodic lattices of volume V = L^D with action$$S[\phi] = \sum_x \Big[-2\kappa \sum_{\mu=1}^{D} \phi_x \phi_{x+\hat\mu} + (1-2\lambda)\phi_x^2 + \lambda\phi_x^4\Big]$$| D | κ | λ | κ_c | L | configurations per L | total size ||---|---|---|---|---|---|---|| 2 | 0.2705 | 0.022 | 0.27088 | 16, 32, 64, 128 | 10240 | 1.8 GB || 3 | 0.1923 | 0.9 | 0.19225 | 16, 32, 64, 128 | 2560 | 49 GB |κ_c is the critical point estimated from the Binder cumulant.## Files```2D/phi4_2D_L16_kappa0.2705_lambda0.022.npy (10240, 16, 16) 21 MB2D/phi4_2D_L32_kappa0.2705_lambda0.022.npy (10240, 32, 32) 84 MB2D/phi4_2D_L64_kappa0.2705_lambda0.022.npy (10240, 64, 64) 336 MB2D/phi4_2D_L128_kappa0.2705_lambda0.022.npy (10240, 128, 128) 1342 MB3D/phi4_3D_L16_kappa0.1923_lambda0.9.npy (2560, 16, 16, 16) 84 MB3D/phi4_3D_L32_kappa0.1923_lambda0.9.npy (2560, 32, 32, 32) 671 MB3D/phi4_3D_L64_kappa0.1923_lambda0.9.npy (2560, 64, 64, 64) 5369 MB3D/phi4_3D_L128_kappa0.1923_lambda0.9.npy (2560, 128, 128, 128) 42950 MB```Each array holds the float64 field values φ_x. Axis 0 runs over configurations inMonte Carlo order and the remaining axes are the periodic lattice directions. Theconfigurations were generated with Wolff cluster updates combined withFourier-accelerated HMC. The 3D L = 128 file consists of ten independent chains of256 configurations, concatenated along axis 0.## Download```bashpip install -U huggingface_hub# everything, 51 GBhf download phi4-generative/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs# 2D only, 1.8 GBhf download phi4-generative/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs --include "2D/*"# a single filehf download phi4-generative/phi4-critical-configs --repo-type dataset --local-dir phi4-critical-configs --include "3D/*L64*"``````pythonimport numpy as npfrom huggingface_hub import hf_hub_downloadf = hf_hub_download("phi4-generative/phi4-critical-configs","3D/phi4_3D_L32_kappa0.1923_lambda0.9.npy", repo_type="dataset")phi = np.load(f, mmap_mode="r") # (2560, 32, 32, 32)M = phi.mean(axis=(1, 2, 3)) # magnetisation per configuration```## Physical quantities$$M = \frac{1}{V}\sum_x \phi_x, \qquad \chi = V\langle M^2\rangle, \qquad U_4 = 1-\frac{\langle M^4\rangle}{3\langle M^2\rangle^2}, \qquad \xi_2 = \frac{\sqrt{\chi/F-1}}{2\sin(\pi/L)}$$$$F = \frac{1}{V}\Big\langle\Big|\sum_x e^{2\pi i x_\mu/L}\phi_x\Big|^2\Big\rangle$$F is the propagator at the smallest nonzero momentum, averaged over the D directionsμ, and ⟨S⟩/V is the action per site. Errors are jackknife over 64 blocks ofconsecutive configurations. The integrated autocorrelation time of |M| and S is atmost 0.9 configurations in every file, so the configurations are effectivelyindependent.2D, κ = 0.2705, λ = 0.022| L | ⟨φ²⟩ | ⟨S⟩/V | ⟨\|M\|⟩ | χ | U₄ | ξ₂/L ||---|---|---|---|---|---|---|| 16 | 1.5215(29) | 0.38758(49) | 0.8149(26) | 192.98(94) | 0.5524(18) | 0.7709(53) || 32 | 1.4698(19) | 0.39297(26) | 0.7147(25) | 587.3(32) | 0.5672(16) | 0.7374(53) || 64 | 1.4400(11) | 0.39619(18) | 0.6019(26) | 1696(11) | 0.5551(20) | 0.6512(55) || 128 | 1.41936(61) | 0.398604(90) | 0.4446(23) | 4011(32) | 0.4815(27) | 0.4797(38) |3D, κ = 0.1923, λ = 0.9| L | ⟨φ²⟩ | ⟨S⟩/V | ⟨\|M\|⟩ | χ | U₄ | ξ₂/L ||---|---|---|---|---|---|---|| 16 | 0.62329(34) | −0.12466(49) | 0.2119(24) | 227.3(42) | 0.4681(65) | 0.6478(99) || 32 | 0.61929(11) | −0.11846(16) | 0.1497(14) | 906(12) | 0.4721(64) | 0.6576(75) || 64 | 0.617963(58) | −0.116385(81) | 0.1125(12) | 3959(68) | 0.5032(48) | 0.7127(97) || 128 | 0.617684(26) | −0.116003(38) | 0.09725(87) | 22205(327) | 0.5658(35) | 0.917(12) |At κ = κ_c and large L, U₄ and ξ₂/L approach the Ising values 0.6107 and 0.9050 in 2D(Salas and Sokal, J. Stat. Phys. 98, 551 (2000)) and 0.4655 and 0.6431 in 3D(Hasenbusch, Phys. Rev. B 82, 174433 (2010)).
README.md+54-105