This repository contains the complete numerical validation code for the paper: "Informational Structural Cost (CIS): Derivation, Thermodynamic Correspondence, and Predictive Power of the Ahuraic Framework's Core Organizational Quantity" (Mahdi Jalali, Cogniora Artificial Mind Institute, 2026) The validation is organized into two independent phases, systematically testing the CIS framework across different spin models, system sizes, and structural proxies. Phase 1 (Ising Model – TFIM): - Five spin-1/2 transverse-field Ising chains (Uniform, Fibonacci, Thue–Morse, Sturmian, Random) are studied. - The organisational coupling constant κ is calibrated using the correlation length ξ as a proxy for the structural rank ρ. - Blind predictions on quasiperiodic chains (L=13) yield errors ≤5% for Fibonacci and Thue–Morse, and up to ~7.6% for Sturmian and random chains. - Bootstrap analysis confirms the stability of κ_ξ (CV ≈ 16.5%, 95% CI: [0.0609, 0.0805]). - Finite-size scaling extracts the thermodynamic limit κ∞ ≈ 9.93. - Finite-temperature test verifies the thermodynamic correspondence ⟨ℐ⟩ = βF_org + S_org using the organisational Gibbs distribution. Phase 2 (XXZ & Heisenberg Models): - The framework is extended to Heisenberg and XXZ chains (Δ = 0.5, 1.0, 1.5). - Comparison of structural proxies: correlation length ξ, entanglement entropy S_ent, and spectral gap ΔE. - ξ is reliable only in gapless (critical) regimes; S_ent is confirmed as a more universal proxy across all tested regimes. - Recalibration using S_ent yields blind prediction errors <5% for all models. - Gapless vs. gapped behaviour is illustrated in the Heisenberg model (h=0.1 vs. h=0.5). Repository Contents: - Phase 1 scripts: `kappa_xi_analysis.py`, `extended_validation.py`, `finite_temperature_test.py`, `bootstrap_standalone.py`, `fss_analysis.py` - Phase 2 scripts: `models.py`, `observables.py`, `01_models_validation.py`, `02_model_dependent_kappa_validation.py`, `03_structural_proxy_comparison.py`, `04_calibrate_kappa_Sent.py`, `heisenberg_h01.py` - README files for both phases - `requirements.txt` (Python dependencies: NumPy, SciPy, Matplotlib, scikit-learn) All scripts are self-contained and produce output tables and figures (.txt and .png). The results are fully reproducible on any system with Python 3.7+ and the required libraries installed. License: CC BY 4.0 Citation: Please cite the accompanying paper and this repository as: Jalali, M., Jalali, S., & Jalali, P. (2026). Ahuraic Framework – Initial Numerical Validation Codes (v1.0). Zenodo. [DOI 10.5281/zenodo.21525486]
This repository contains the complete numerical validation code for the paper: "Informational Structural Cost (CIS): Derivation, Thermodynamic Correspondence, and Predictive Power of the Ahuraic Framework's Core Organizational Quantity" (Mahdi Jalali, Cogniora Artificial Mind Institute, 2026) The validation is organized into two independent phases, systematically testing the CIS framework across different spin models, system sizes, and structural proxies. Phase 1 (Ising Model – TFIM): - Five spin-1/2 transverse-field Ising chains (Uniform, Fibonacci, Thue–Morse, Sturmian, Random) are studied. - The organisational coupling constant κ is calibrated using the correlation length ξ as a proxy for the structural rank ρ. - Blind predictions on quasiperiodic chains (L=13) yield errors ≤5% for Fibonacci and Thue–Morse, and up to ~7.6% for Sturmian and random chains. - Bootstrap analysis confirms the stability of κ_ξ (CV ≈ 16.5%, 95% CI: [0.0609, 0.0805]). - Finite-size scaling extracts the thermodynamic limit κ∞ ≈ 9.93. - Finite-temperature test verifies the thermodynamic correspondence ⟨ℐ⟩ = βF_org + S_org using the organisational Gibbs distribution. Phase 2 (XXZ & Heisenberg Models): - The framework is extended to Heisenberg and XXZ chains (Δ = 0.5, 1.0, 1.5). - Comparison of structural proxies: correlation length ξ, entanglement entropy S_ent, and spectral gap ΔE. - ξ is reliable only in gapless (critical) regimes; S_ent is confirmed as a more universal proxy across all tested regimes. - Recalibration using S_ent yields blind prediction errors <5% for all models. - Gapless vs. gapped behaviour is illustrated in the Heisenberg model (h=0.1 vs. h=0.5). Repository Contents: - Phase 1 scripts: kappa_xi_analysis.py, extended_validation.py, finite_temperature_test.py, bootstrap_standalone.py, fss_analysis.py - Phase 2 scripts: models.py, observables.py, 01_models_validation.py, 02_model_dependent_kappa_validation.py, 03_structural_proxy_comparison.py, 04_calibrate_kappa_Sent.py, heisenberg_h01.py - README files for both phases - requirements.txt (Python dependencies: NumPy, SciPy, Matplotlib, scikit-learn) All scripts are self-contained and produce output tables and figures (.txt and .png). The results are fully reproducible on any system with Python 3.7+ and the required libraries installed. License: CC BY 4.0 Citation: Please cite the accompanying paper and this repository as: Jalali, M., Jalali, S., & Jalali, P. (2026). Ahuraic Framework – Initial Numerical Validation Codes (v1.0). Zenodo. [DOI 10.5281/zenodo.21525486]
This archive contains the numerical data and scripts used to generate the figures for the paper “Energy-selective quantum search with Ising Hamiltonian phase oracles”. The main numerical dataset is used for the scaling analysis of the correlation-induced resonance displacement φ₀ in the zero-field random Ising ensemble. The simulations use dimensionless units with σ_J = 1 and the Hamiltonian H(s) = 2 sum_{i<j} J_ij s_i s_j, where the couplings are independent Gaussian random variables, J_ij ~ N(0, 1), and h_i = 0. For each random Ising instance, the archive stores the truncated characteristic-function coefficients g_m = 2^{-n} Tr exp(-i m T H), m = 0, ..., 15. These coefficients are used to extract the local displacement φ₀ from the zero of the imaginary part of the response function C(φ) = 2 sum_{m=0}^{15} g_m (-1)^m exp(i m φ) - 1. The quantity plotted in the paper is the disorder-averaged second moment <φ₀²> and the scaled combination n⁶<φ₀²>. The Monte Carlo average is over independent disorder realizations only. For each realization, the trace over spin configurations is evaluated deterministically. The data cover even system sizes n = 18, 20, 22, ..., 36. For the largest systems, the computation splits the spins into two equal halves, performs GPU block contractions, and uses the zero-field spin-flip symmetry H(s)=H(-s) to reduce the sum by a factor of two. Archive contents - scripts/01_generate_phi0_coefficients.py Generates the characteristic-function coefficient files g_m for the random Ising ensemble. - scripts/02_analyze_phi0_scaling.py Computes φ₀, bootstrap confidence intervals, the finite-n covariance-sum comparison, and the scaling plots. - scripts/03_make_gaussian_amplification.py Generates the Gaussian amplification figure used as Fig. 1 in the paper. - data/phi0_coefficients/ Directory for the NumPy .npz files containing the characteristic-function coefficients. The production files have names of the form Nq_<n>_K_<K>.npz. The .npz files are saved without pickle objects. They can be read with standard NumPy using np.load. Typical usage To regenerate the Gaussian amplification figure: python scripts/03_make_gaussian_amplification.py --output-dir output/fig1_gaussian To analyze the φ₀ scaling data: python scripts/02_analyze_phi0_scaling.py \ --data-dir data/phi0_coefficients \ --output-dir output/phi0_scaling To run a short test calculation of the characteristic-function coefficients: python scripts/01_generate_phi0_coefficients.py \ --smoke-test \ --output-dir output/smoke_test_coefficients To regenerate the full production dataset on a CUDA-capable GPU: python scripts/01_generate_phi0_coefficients.py \ --production \ --output-dir data/phi0_coefficients The production calculations were performed using CuPy on an NVIDIA GPU. The analysis and plotting scripts use NumPy, pandas, and Matplotlib.
Replication Data and Code for: "Capturing the Universality Class of the 2D Ising Model via Symmetry-Corrected Machine Learning and Finite-Size Scaling" This repository contains the complete source code, simulation datasets, and analysis scripts required to reproduce all findings presented in the associated manuscript. The study introduces a symmetry-corrected machine learning pipeline (Gauge-Fixed PCA + Logistic Regression) to identify phase transitions and estimate critical temperatures with high precision, validated on the two-dimensional Ising model. Repository Contents: 01_generate_data.py — Generates 2D Ising model spin configurations using the Wolff cluster algorithm. Produces equilibrium datasets for lattice sizes L∈{32,48,64,96}L \in \{32, 48, 64, 96\} L∈{32,48,64,96} with 10,000 independent configurations per temperature point. 02_analysis_pipeline_v2.py — Core analysis script: performs gauge fixing (σ′=σ⋅sgn(m)\sigma' = \sigma \cdot \mathrm{sgn}(m) σ′=σ⋅sgn(m)), PCA dimensionality reduction (d=16d = 16 d=16, cross-validated), confusion-scheme classification with parabolic sub-grid interpolation, bootstrap uncertainty quantification (Nboot=50N_{\rm boot} = 50 Nboot=50), and pFMp_{\rm FM} pFM computation with isotonic calibration. Outputs summary_ml_v2.json. 03_plot_main_figures.py — Reproduces Figures 1–6 of the main manuscript. 04_plot_supplementary_v2.py — Reproduces Supplementary Figures S1–S5 and Table 1. ablation_preprocessing_S5.py — Standalone preprocessing ablation script: runs raw and ∣m∣|m| ∣m∣-only comparisons and generates Supplementary Figure S5. Does not modify main results. summary_ml_v2.json — Pre-computed results (gauge-fixed pipeline) for immediate reproduction of all main figures without re-running Monte Carlo simulations. summary_ml_v2_raw.json — Pre-computed ablation results: raw (no gauge fixing) preprocessing, L∈{32,64,96}L \in \{32, 64, 96\} L∈{32,64,96}. summary_ml_v2_absm.json — Pre-computed ablation results: ∣m∣|m| ∣m∣-only preprocessing, L∈{32,64,96}L \in \{32, 64, 96\} L∈{32,64,96}. Table1_Tc_Comparison.tex — LaTeX source for Table 1. requirements.txt — Python dependencies. README.txt — Step-by-step reproduction instructions. Methodology Highlights: System sizes: L∈{32,48,64,96}L \in \{32, 48, 64, 96\} L∈{32,48,64,96} 10,000 independent configurations per temperature point; Wolff cluster algorithm with 10410^4 104 thermalization steps Symmetry correction: global Z2\mathbb{Z}_2 Z2 gauge fixing prior to PCA Confusion scheme: validation cross-entropy minimization over T0∈[2.10,2.45]T_0 \in [2.10, 2.45] T0∈[2.10,2.45] (60 candidate values, band Δ=0.05\Delta = 0.05 Δ=0.05, 5-fold CV) Bootstrap: 50 configuration-level resamples; parabolic sub-grid interpolation for discretization bias reduction Key result: Tc≈2.2717(8)T_c \approx 2.2717(8) Tc≈2.2717(8) for L=96L = 96 L=96 (0.6%0.6\% 0.6% from Onsager); universality class confirmed via FSS data collapse with ν=1\nu = 1 ν=1
This repository contains the computational data and source code required to reproduce the numerical validations and figures presented in the manuscript "Exact Microcanonical Density of States and Fibonacci Convolutions in the 1D Ising Model" and its accompanying Supplemental Material. The dataset includes the following files: Numerical Validation.nb: This Wolfram Mathematica notebook contains the complete numerical verification of the exact combinatorial degeneracy formulas derived in the study. It implements three independent computational approaches—brute-force enumeration via the full Ising Hamiltonian, analytical combinatorial formulas based on Fibonacci/Lucas convolutions, and the algebraic transfer-matrix formalism. The code validates the exact macroscopic degeneracies across the full excitation spectrum for both open-chain and closed-ring topologies. Thermodynamic Quantities.nb: This Wolfram Mathematica notebook contains the numerical routines used to compute and generate the plots of the thermodynamic quantities presented in the appendix of the main manuscript. Software Requirements: To execute and modify the provided .nb files, Wolfram Mathematica is required.
This repository contains the numerical data and computational codes supporting the results presented in the manuscript: "Engineered non-Gaussian Coherence as a Thermodynamic Resource for Quantum Batteries". The archive (data_QB.zip) includes all datasets, Jupyter notebooks, and figure files required to reproduce the results reported in both the main text and the Supplemental Material. Each figure is organised in a separate directory containing the corresponding data (.txt), code (.ipynb), and generated plots (.png/.pdf). The provided materials are sufficient to reproduce all figures and results without restriction. Detailed instructions and directory structure are described in the accompanying README.txt file. This dataset is made openly available to ensure transparency and reproducibility of the reported results.
This dataset and code repository accompanies the article of the same title (version 5, May 2026) and provides all simulation data, source code, and raw terminal output necessary to reproduce and verify the results. Study summary We investigate the critical dynamics of the two-dimensional Ising model at the exact critical point (Tc ≈ 2.269185) using the local Metropolis Monte Carlo algorithm. The central focus is the characterization and comparison of two widely used correlation time estimators: the exponential decay criterion τ₁/e and the integrated autocorrelation time τ_int, following the convention of Sokal (1997). Simulations were performed for seven system sizes L ∈ {16, 24, 32, 48, 64, 96, 128} with up to 50 independent replicas per system size, using both Python (NumPy/PCG64) and C++ (std::mt19937, compiled with -O2) implementations. The two implementations were developed independently, enabling cross-validation of results across languages. Main findings The coefficient of variation (CV = std/mean) of τ_int converges to a physical floor of approximately 0.44–0.52 regardless of the number of replicas (8 or 50) or programming language, confirming that this floor is determined by the physics of the estimator under local Metropolis dynamics at criticality — not by statistical sampling limitations. The distribution of τ₁/e is genuinely bimodal at the critical point: individual replicas alternate between low (~200–500 MC steps) and high (~3000–5000 MC steps) correlation times for the same system size, with mean-to-median ratios of up to 2.6× and bimodal ratios (mean of upper half / mean of lower half) of up to 23.5×. This bimodality does not disappear with more replicas, confirming it is a physical property of the estimator. No detectable power-law scaling τ ~ L^z is found for L ≤ 128 in any of the six independent runs (R² < 0.14 in all log-log fits using all 7 system sizes). The accepted asymptotic value z ≈ 2.17 (Li & Sokal, 1989) implies an expected τ_int of approximately 73,600 MC steps at L = 128 — 76× larger than the observed value of 972. This quantifies the dominance of finite-size corrections in the range studied, and justifies treating the effective dynamic exponent z_eff as a continuously varying quantity rather than a fixed constant. The C++ implementation achieves speedups of 98× to 782× relative to Python depending on system size, enabling the full 50-replica run across all seven system sizes to complete in approximately 33 minutes. Cross-validation caveat Cross-validation between Python and C++ is fully valid for τ₁/e. For τ_int, the Python scripts used a fixed equilibration of n_equil = 3000 steps for all L — documentably insufficient for L ≥ 24 where τ_int > 600 (n_equil/τ < 3–5τ). This generates systematic underestimation of up to 86% at L = 64. The valid cross-validation for τ_int is between the C++-8 and C++-50 runs, where CV agreement (~0.52 in both) confirms the physical floor is robust. Connection to the EIE/ZIE framework This study provides the empirical foundation for the EIE/ZIE adaptive meta-control framework (Patent BR 10 2025 024459 4), justifying three architectural decisions: (1) τ_int as the preferred estimator of the correlation time τ_corr; (2) the effective dynamic exponent z_eff treated as a continuously estimated dynamic variable rather than a fixed constant; and (3) the dynamic freezing time τ_freeze introduced as an observable independent of τ_corr, motivated by the bimodal behavior of τ₁/e which reveals that the system alternates between regimes of high and low correlation persistence — a phenomenon invisible to conventional autocorrelation-based diagnostics. Repository contents Cpp/ — C++ source code (3 scripts) and simulation data (6 CSV files + raw terminal output) Python/ — Python source code (2 scripts) and simulation data (4 CSV files + raw screen output) Paper/ — Article in English (PDF) and Portuguese (PDF) README.md — Full repository documentation including file descriptions, column definitions, reproduction instructions, and physical parameters LICENSE.txt — CC BY 4.0 for data; MIT for code; patent notice Joemerson da Silva Lima — Independent Researcher, Cuiabá, Mato Grosso, Brazil joemerson93lima@gmail.com Patent BR 10 2025 024459 4
Manuscript and complete reproducibility package for a preregistration-style numerical study of spectral truncation in causal-set spacetime entanglement entropy. Recovering continuum-compatible entanglement-entropy scaling on a causal set requires truncating the Sorkin-Johnston spectrum twice, once on the full causal set and again after restriction to the subregion. Published treatments apply both truncations at the same prescribed geometric scale. This study varies the two stages independently on nested causal diamonds in 2d Minkowski spacetime: 80 Poisson sprinklings at nominal cardinalities 500-4000 form the primary ensemble, with 10 further sprinklings at 8000 reserved for a secondary extrapolation check. Varying the regional cutoff at fixed global cutoff changes the fitted coefficient substantially and produces different compatibility classifications at the same global truncation, so the classification is a property of the joint prescription rather than of the global cutoff alone. Weight interventions that hold the retained subspace and the regional projector fixed produce slope changes that are statistically resolved yet practically equivalent within a prespecified margin. The package contains the analysis plan frozen before the production runs, both production records (5686 rows over 90 sprinklings, zero gate-failed rows), the driver, analysis and validation code, the regression and injection test suites, the frozen analysis output, a dated post-unblinding amendment with its code diff and corrected output, every supplementary analysis as a re-runnable script with its random stream recorded, the figure-generation code, a cell-level rank-retention census and reconciliation report, an eligibility census, and the environment and commands needed to regenerate every table in the manuscript. Contents are organised in seven folders: 1_frozen, 2_amendment_A1, 3_supplementary, 4_figures, 5_census_reconciliation, 6_environment, paper.MANIFEST.json lists a SHA-256 for all files and verify_manifest.py checks them. Evidentiary status. The deposit is retrospective. Hashes establish consistency between the deposited files and the production records, which embed the SHA-256 of the plan they ran under; they do not independently establish chronology. The pre-production freeze is author-reported and no independently timestamped commitment exists. Amendment A1 was made after all results and the frozen verdicts had been seen; the frozen output is the prespecified result and the corrected output is reported alongside it, never in its place. Key identifiers. Frozen analysis plan SHA-256dc6b8bdb3faa8450de3a710204ba18a72e4ed0be54639bae990d945b328a2bf5; primary production record4e3d3a58b6028531884c1de36eae15ac6d30146d1fb2599b150f898bbcf4051f; secondary production record8bf402ccc471ae9331a43d8e6f3bc383861599269922bfe89aa51f29430c5a33. Verified by extracting the archive and re-running: manifest 53/53 files, validation test suites pass, regression suite 35/35, and the frozen-path analysis reproduces every contrast and slope line of the original output.