This repository contains a rigorous empirical study, raw datasets, and quantum error mitigation protocols executed on Dense Evolution (v8.0.7)—a high-performance Statevector quantum simulator. Utilizing 64-bit double precision (complex128) and hardware-accelerated static compilation via the JAX XLA engine, this project maps the non-linear physics of the Transverse Field Ising Model (TFIM), Tight-Binding Fermionic dynamics, and semiconductor solid-state thermodynamics.
-
scan_ising.py: Automated data pipeline responsible for high-resolution parameter sweeps and graphical rendering of the ideal ferromagnetic phase transition using a true variational ansatz. Producestransizione_fase_ising.csv. -
plot_ising.py: Computes the first-order numerical derivative (quantum susceptibility) from the CSV dataset to locate the exact critical phase boundary. Producescurva_transizione_ising.png. -
zne_mitigation.py: Mathematical implementation of a stochastic Richardson Zero-Noise Extrapolation (ZNE) protocol over discrete Pauli-Z phase dephasing channels with 2,000 hardware shot sampling. Producesdati_mitigazione_zne.csvandtransizione_ising_mitigata.png. -
vqe_gradient.py: Exact numerical finite-difference gradient tracker (h = 1e-5) mapping the variational energy landscape and locating stationary points. Producesvqe_gradient_landscape.csvandvqe_gradient_landscape.png. -
vqe_jax_grad.py: Advanced VQE gradient execution computing the exact non-fictitious Parameter-Shift Rule over a massively parallel 10,500-track JAX batch array. Producesvqe_jax_gradient.csvandvqe_jax_gradient.png. -
quantum_defect_scanner.py: Isotropic resilience topology mapper evaluating node-by-node quantum coherence under localized parameter-driven Kraus noise viarun_parametric_batch_jit(). Producesmappa_difetti_silicio.csvandmappa_difetti_silicio.png. -
next_gen_silicon.py: Solid-state bandstructure designer tracking continuous dispersion shifts induced by 5% mechanical lattice tensile strain via Harrison's hopping law. Producesbande_nuovo_silicio.csvandconfronto_nuovo_silicio.png. -
test_manufacturing_formula.py: Quantum lattice thermodynamics simulator modeling electron-phonon scattering and decoherence via Bose-Einstein statistical distributions over a 10–400 K temperature sweep. Producesvalidazione_fabbricazione_silicio.csvandvalidazione_fabbricazione.png. -
vqe_silicon_molecular.py: Variational Quantum Eigensolver tracking self-consistent Potential Energy Curves (PEC) and Born-Oppenheimer molecular dissociation limits for a silicon dimer. Producesvqe_molecola_silicio.csvandcurva_potenziale_silicio.png. -
transizione_fase_ising.csv: Raw tabular dataset (3,501 rows) capturing exact<H_zz>spin-spin correlations extracted directly from JAX statevector memory across the full g ∈ [0.0, 2.5] sweep. -
- tests/test_pennylane_comparison.py: Automated cross-validation suite integrating PennyLane as a baseline verification engine. It programmatically contrasts the JAX/XLA statevector predictions generated by Dense Evolution against PennyLane's analytical execution to enforce strict regression boundaries in the CI pipeline.
-
-
tests/test_analytical.py: Built-in mathematical validation suite executing 5 zero-external-dependency tests. It verifies Potential Energy Curve (PEC) physical boundaries, exact Parameter-Shift Rule (PSR) gradients on
$RY+\langle Z \rangle$ , Harrison's strain-hopping ratios, and time-reversal dispersion symmetries under machine-precision tolerances ($\le 10^{-10}$ ).
-
tests/test_analytical.py: Built-in mathematical validation suite executing 5 zero-external-dependency tests. It verifies Potential Energy Curve (PEC) physical boundaries, exact Parameter-Shift Rule (PSR) gradients on
We present a rigorous physical validation of the longitudinal spin-correlation order parameter
As the transverse field coupling strength
The ansatz deploys alternating CX–RZ–CX entangling blocks across all 11 nearest-neighbor qubit pairs on a 12-qubit chain, followed by parametric RX rotations scaled to the transverse field strength (<H_zz> order parameter is computed analytically from the statevector probability distribution via bitwise parity extraction.
To circumvent non-unitary noise without physical hardware overhead, a classical-quantum hybrid mitigation protocol was deployed under a realistic stochastic Pauli-Z dephasing Kraus channel. By scaling the noise density via stretching coefficients (
The protocol operates on Bloch wavevector states
The ZNE protocol successfully reconstructed the unperturbed, zero-noise ideal target trajectory, forcing the corrupted noisy minimum at
A brute-force numerical gradient sweep over the full VQE variational energy landscape was executed using a centered finite-difference scheme with step
The ansatz uses Givens rotation excitation-preserving blocks (CX–RY–CX–RY–CX chains) initialized from a single-excitation Fock state
The gradient landscape confirms the exact analytic minimum bound at:
with all stationary points and gradient zero-crossings fully resolved, and no vanishing gradient plateaus present under the compact excitation-preserving ansatz.
Note: This script (
vqe_gradient.py) uses classical finite-difference differentiation. For exact quantum-native analytical gradients via Parameter-Shift Rule, see Section 6 (vqe_jax_grad.py).
Using the native run_parametric_batch_jit() engine, we mapped the isotropic resilience of an entangled state against localized dephasing noise. A 12-qubit entangled chain is prepared by uniform RY(
The evaluation maps the systematic loss of
The system isolates an asymmetric boundary resilience, retaining exactly
We resolved the exact 1-electron fermionic Bloch state dispersion relation mapped via Jordan-Wigner transformations. By evaluating the pure exchange interactions (
This eliminates artificial scaling factors and rigid offsets, delivering an honest statevector simulation of tight-binding quantum dynamics under strict 1-fermion subspace conservation. The Bloch states are analytically constructed as
To evaluate the variational optimization landscape with absolute machine-epsilon stability, we successfully deployed an analytical Parameter-Shift Rule framework mapped across parallel virtual execution tracks:
By packing shifted parameters concurrently into run_parametric_batch_jit(), JAX XLA processed 10,500 continuous configurations in a single macro-batch execution cycle completed in 58.26 seconds on CPU. Each of the 3,500 (10500, 2) JAX float64 array.
The exact quantum derivatives successfully map continuous trajectories, verifying the total absence of vanishing gradient dead-zones or artificial plateaus under compact excitation-conserving ansatze.
We modeled a continuous dispersion profile mapping a high-mobility Strained Silicon configuration under a
The high-resolution 3,500-point k-space parameter sweep executed via JAX maps the physical contraction of the modal hopping energy from the standard
A quantum-statistical simulation of electron-phonon scattering decoherence was executed over a 10–400 K temperature sweep at 3,500 discrete points, modeling the thermal degradation of coherent electronic hopping in a silicon lattice.
The Debye-Bose-Einstein phonon occupancy is computed as:
with
This captures the physical mechanism by which thermally-activated phonon scattering reduces long-range electronic coherence. A fixed Bloch state
We mapped the exact Born-Oppenheimer Potential Energy Curve (PEC) for a silicon dimer system via a classical-quantum hybrid variational loop. The effective Hamiltonian tracks electronic hopping integrals
with
The 3,500-point variational sweep over
| Component | Version / Detail |
|---|---|
| Simulator | Dense Evolution v8.0.7 |
| Backend | DenseSVSimulator (Statevector) |
| Precision | complex128 (64-bit double) |
| Compilation | JAX XLA JIT static compilation |
| Parallelism | run_parametric_batch_jit() — up to 10,500 tracks/cycle |
| Gradient engine | Parameter-Shift Rule + finite-difference |
| Noise model | Stochastic Pauli-Z Kraus dephasing channel |
| Phonon model | Bose-Einstein / Debye |
| Bandstructure | Jordan-Wigner XY tight-binding, Harrison's law strain |
| Python deps | jax, jaxlib, numpy, pandas, matplotlib |
To guarantee the mathematical stability and absolute physical accuracy of the simulated quantum dynamics, the repository includes a strict continuous integration (CI) pipeline executed via GitHub Actions (ci.yml).
The test suite (test_pennylane_comparison.py) establishes an automated cross-validation layer by mirroring the statevector computations on two completely independent software architectures:
- Target Simulator: Dense Evolution (v8.0.7) accelerated via JAX XLA.
- Baseline Reference: PennyLane.
The pipeline runs on every code splotch or pull request, evaluating the numerical consistency of the 1D Transverse Field Ising Model (TFIM) expectation values, variational gradients, and Bloch state rotations. By testing the outputs across both engines, the CI automatically flags floating-point drift or algebraic regressions exceeding machine-epsilon tolerances.
To ensure absolute core-level stability without relying on third-party frameworks, the repository features a dedicated self-contained validation layer (test_analytical.py). This suite runs directly against exact mathematical identities and physics boundaries under machine-precision tolerances (
The suite enforces verification across five distinct physical and algorithmic benchmarks:
-
Potential Energy Curve (PEC) Topography (
test_pec_shape): Validates the qualitative Born-Oppenheimer energy landscape of molecular Silicon systems. It guarantees that the simulation resolves the correct three-region behavior: a steep repulsive wall at short range ($R = 1.4\text{ Å}, E > 0$ ), a stable binding well at intermediate distance ($R = 3.3\text{ Å}, E < 0$ ), and asymptotic stabilization near the dissociation limit ($R = 7.0\text{ Å}, |E| < 0.01\text{ eV}$ ). -
Bound-State Existence (
test_pec_minimum_is_negative): Scans the molecular valley ($R \in [2.5, 4.5]\text{ Å}$ ) to confirm numerical continuity, proving that a stable ground state exists without producing unphysical anomalies orNaN/Infsingularities. -
Exact Parameter-Shift Rule (
test_psr_exactness_ry_z): Mathematically benchmarks the VQE gradient engine (vqe_jax_grad.py). By tracking an$RY(\theta)|0\rangle$ state followed by a$\langle Z \rangle$ measurement, it verifies that the computed gradient perfectly mirrors the exact analytical identity$\frac{dE}{d\theta} = -\sin(\theta)$ . -
Harrison's Hopping Law (
test_harrison_strain_ratio): Verifies the bandstructure deformation engine under mechanical stress (next_gen_silicon.py). It enforces that the exact ratio of strained to unstrained tight-binding energies follows Harrison's solid-state scaling law,$t(\varepsilon) = \frac{t_0}{(1+\varepsilon)^2}$ , at every non-trivial$k$ -point across the Brillouin zone. -
Time-Reversal Dispersion Symmetry (
test_dispersion_time_reversal_symmetry): Checks the underlying algebraic symmetry of the tight-binding Bloch states, ensuring that the dispersion relation satisfies the strict time-reversal constraint$E(k) \equiv E(-k)$ to isolate and prevent unphysical symmetry-breaking artifacts.
# Install Dense Evolution
pip install dense-evolution
# Run experiments in order:
python scan_ising.py # → transizione_fase_ising.csv
python plot_ising.py # → curva_transizione_ising.png
python zne_mitigation.py # → dati_mitigazione_zne.csv, confronto_transizione_noisy.png
python vqe_gradient.py # → vqe_gradient_landscape.csv, vqe_gradient_landscape.png
python vqe_jax_grad.py # → vqe_jax_gradient.csv, vqe_jax_gradient.png
python quantum_defect_scanner.py # → mappa_difetti_silicio.csv, mappa_difetti_silicio.png
python next_gen_silicon.py # → bande_nuovo_silicio.csv, confronto_nuovo_silicio.png
python test_manufacturing_formula.py # → validazione_fabbricazione_silicio.csv, validazione_fabbricazione.png
python vqe_silicon_molecular.py # → vqe_molecola_silicio.csv, curva_potenziale_silicio.pngHardware note: All benchmarks were executed on CPU. The JAX XLA engine will automatically utilize GPU acceleration if available via
use_gpu=Truein the simulator constructor.
| CSV File | Description | Rows |
|---|---|---|
transizione_fase_ising.csv |
TFIM order parameter vs transverse field g | 3,500 |
dati_mitigazione_zne.csv |
ZNE ideal / noisy / mitigated energies vs k | 25 |
vqe_gradient_landscape.csv |
VQE energy and finite-diff gradient vs θ | 3,500 |
vqe_jax_gradient.csv |
VQE energy and PSR gradient vs θ (JAX batch) | 3,500 |
mappa_difetti_silicio.csv |
Residual qubit coherence vs defect node position | 12 |
bande_nuovo_silicio.csv |
Strained Si valence/conduction bands vs k | 3,500 |
validazione_fabbricazione_silicio.csv |
Phonon occupancy and hopping energy vs temperature | 3,500 |
vqe_molecola_silicio.csv |
Born-Oppenheimer PEC vs interatomic distance R | 3,500 |
MIT License — © 2026 Salvatore Pennacchio (tatopenn-cell) This repository depends on Dense Evolution, licensed under Business Source License 1.1. See https://github.com/tatopenn-cell/Dense-Evolution for license terms.







