This repository contains the official implementation of the Boundary-Aware Validity (BAV) framework. It provides a methodological layer to ensure inferential admissibility in finite-domain digital quantum simulations by identifying causality-safe temporal windows.
Digital quantum simulations are necessarily implemented in finite spatial domains and evaluated over finite temporal windows. While substantial effort has been devoted to controlling algorithmic error and hardware noise, the prior question of inferential admissibility remains under-formalized: when do time-resolved observables remain causally isolated from boundary effects such that spectral conclusions are physically meaningful?
We introduce a boundary-aware validity framework that establishes an operational criterion for inferential gating. The framework identifies measurable boundary markers, determines a causality-safe temporal window, and restricts spectral analysis to data supported by verified causal isolation. We demonstrate the framework in a lattice simulation of relativistic wavepacket dynamics.
-
Primary: Digital Quantum Simulation • Boundary-Aware Validity • Causal Isolation
-
Technical: Lattice Field Theory • Spectral Inference • Finite-Domain Dynamics • Inferential Admissibility • Zitterbewegung
The source code is available under MIT license at https://github.com/embits-digital/bav-dqs-framework. The project is structured as a modular Python package located in src/bav_dqs:
core/: Essential logic includingdetectors(boundary monitoring),engines(Qiskit integration),models(Dirac circuits), andoperators.utils/io/: Data management, supporting.h5format for high-fidelity simulation results.utils/runtime/: Execution scripts for running simulations and generating visualizations.configs/: YAML-based configuration management for reproducible experiments.tests/: Comprehensive suite of unit tests for framework validation.
The project uses pyproject.toml for dependency management. To install in editable mode:
git clone https://github.com/embits-digital/bav-dqs-framework
cd bav-dqs-framework
pip install -e .To generate report from sample data (similar to dirac simulations use case), just type:
python -m bav_dqs.utils.runtime.generate_plots --data_file=sample\dirac_simulation\dirac_simulation_20260312_175120.h5 --config=sample\dirac_simulation\dirac_simulation.yamlTo contribute to the project or run the tests, install the development dependencies using the [dev] selector:
pip install -e ".[dev]"
To run the default test suit:
python -m pytest
To execute a Dirac wavepacket simulation using a configuration file:
python -m bav_dqs.utils.runtime.run_dirac_simulation --config src/configs/dirac_simulation.yaml --results-dir ./resultsUse the generate_plots module to analyze existing results. Replace the --data_file path with your generated .h5 file
python -m bav_dqs.utils.runtime.generate_plots --data_file=results/dirac_simulation_20260309_020940.h5If you used a custom configuration file, you can specify the same settings to generate plots and tables based on the YAML file.
python -m bav_dqs.utils.runtime.generate_plots --data_file=test_results\dirac_simulation_20260310_201229.h5 --config src/configs/dirac_simulation.yamlThe simulation behavior is controlled via the src/configs/dirac_simulation.yaml file. Below are the key parameters for precision adjustment and validity control:
lattice.auto_threshold: Determines if the system calculates the threshold automatically.true: Enables warmup mode, setting the threshold based onp_min.false: Uses the static value defined inlattice.threshold.
lattice.threshold: Sensitivity value for boundary detection.
validity.stricted: Defines the simulation's rigor regarding safety limits.true: Immediately interrupts the current simulation ifn_safe < p_minand proceeds to the next configuration.false: Logs a violation warning but allows the execution to continue until completion.
To run simulations with different validation behaviors, point to your specific configuration files:
# Running with strict validation (halts on instability)
python -m bav_dqs.utils.runtime.run_dirac_simulation --config src/configs/strict_validation.yaml
# Running with automatic threshold (warmup mode enabled)
python -m bav_dqs.utils.runtime.run_dirac_simulation --config src/configs/auto_threshold_setup.yamlIf you use this framework or the associated data in your research, please cite:
Cordeiro, E. M. (2026). Boundary-Aware Validity Framework for Digital Quantum Simulation.
If you are a registered endorser on ArXiv for nlin.CD (quantum.ph), you can support this submission via the link or code below:
👉 Endorsement Link: https://arxiv.org/auth/endorse?x=49UWOT 👉 Endorsement Code: 49UWOT
If you are not an endorser but know someone in the field of Chaotic Dynamics or Quantum Simulation, I would greatly appreciate a tag or a share.
E. Moura Cordeiro, “Boundary-Aware Validity Framework for Digital Quantum Simulation”. Zenodo, Mar. 12, 2026. doi: 10.5281/zenodo.18974237.
Elionai Moura Cordeiro
EMBITS.DIGITAL, Brazil
Email: elionai@embits.digital