Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Capturing the Universality Class of the 2D Ising Model via Symmetry-Corrected Machine Learning and Finite-Size Scaling

Ali Tozar

Published Jan 1, 2026• 1 citation
Publisher

Abstract

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

DOI
10.5281/zenodo.18235186

Related papers

Critical dynamics of the two-dimensional Ising model: a reference study of correlation times using the Metropolis Monte Carlo method

Joemerson Lima

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

•May 14, 2026•0 citations

Data and code for "Energy-selective quantum search with Ising Hamiltonian phase oracles"

Andrey Zhukov, Andrey Zhukov, Andrey Lebedev +1 more

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.

•May 25, 2026•1 citation

Capturing the universality class of the 2D ising model via symmetry-corrected machine learning and finite-size scaling

Ali Tozar

Physica A Statistical Mechanics and its Applications•Mar 22, 2026•0 citations

Ahuraic Framework – Initial Numerical Validation Codes

Mauni Jalali, sediqeh jalali, pooya jalali

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]

•Jul 24, 2026•0 citations

Reproducibility package for "Fermionizing the ideal Bose gas via topological pumping"

Maciej Marciniak

The archive contains dataset and python scripts that can be used to reproduce figures presented in "Fermionizing the ideal Bose gas via topological pumping".

•May 12, 2025•1 citation

A Pre-Training Diagnostic for Amplitude-Encoding Failure in Quantum Classifiers, with Validated Symmetry-Breaking Remedies

Muhammad Huzaifa Farooq

Simulator-only study of when amplitude-encoded variational quantum classifiers fail, with validated fixes. Real amplitude encoding obeys rho(x) = rho(-x). When preprocessing (typically z-scoring) drives class means antipodal, encoded classes collapse and a loss barrier appears. This work provides a one-pass pre-training risk score (class-mean cosine, with class-mean trace distance T and a linear probe) plus three A/B-tested symmetry-breaking remedies. Headline: class-mean cosine predicts classical-minus-QNN balanced-accuracy gap across 15 public binary datasets at Spearman rho = -0.72 (dataset-permutation p = 0.0034), with 10 datasets held out from calibration. Fixed binary cutoffs do not transfer as universal constants; the transferable instrument is the continuous score. Remedies recover selectively on flagged datasets (breast cancer 0.784 → 0.961, d_z up to 6.5). Synthetic sweep isolates mechanism (Spearman 1.0, classical at ceiling). All exact statevector, verified to ~1e-7. Contents of this upload (A1_arXiv_bundle.zip):- A1_manuscript.md, appendix theory, related work, references- figures/: 5 PNGs (300 dpi)- tables/: diagnostic tables, remedy A/B CSVs, correlation JSONs for Tables 1,2,5-9- code/: src/, run_experiment.py, key reproduce scripts, requirements.txt Reproduce headline: python scripts/balanced_accuracy_validation.pyFull test suite in source repo: python -m pytest (191 passed). Author: Muhammad Huzaifa Farooq, Independent Researcher. Contact: huzaifa.farook@gmail.com. No specific funding. AI assistance (Claude Code) used for drafting/coding, all results verified by author.

•Sep 5, 2026•0 citations
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 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
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.
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]
Simulator-only study of when amplitude-encoded variational quantum classifiers fail, with validated fixes. Real amplitude encoding obeys rho(x) = rho(-x). When preprocessing (typically z-scoring) drives class means antipodal, encoded classes collapse and a loss barrier appears. This work provides a one-pass pre-training risk score (class-mean cosine, with class-mean trace distance T and a linear probe) plus three A/B-tested symmetry-breaking remedies. Headline: class-mean cosine predicts classical-minus-QNN balanced-accuracy gap across 15 public binary datasets at Spearman rho = -0.72 (dataset-permutation p = 0.0034), with 10 datasets held out from calibration. Fixed binary cutoffs do not transfer as universal constants; the transferable instrument is the continuous score. Remedies recover selectively on flagged datasets (breast cancer 0.784 → 0.961, d_z up to 6.5). Synthetic sweep isolates mechanism (Spearman 1.0, classical at ceiling). All exact statevector, verified to ~1e-7. Contents of this upload (A1_arXiv_bundle.zip):- A1_manuscript.md, appendix theory, related work, references- figures/: 5 PNGs (300 dpi)- tables/: diagnostic tables, remedy A/B CSVs, correlation JSONs for Tables 1,2,5-9- code/: src/, run_experiment.py, key reproduce scripts, requirements.txt Reproduce headline: python scripts/balanced_accuracy_validation.pyFull test suite in source repo: python -m pytest (191 passed). Author: Muhammad Huzaifa Farooq, Independent Researcher. Contact: huzaifa.farook@gmail.com. No specific funding. AI assistance (Claude Code) used for drafting/coding, all results verified by author.