Fix/physics engine correction #38
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Complete rewrite of physics engine and solvers
This commit combines all the recent work to correct the repository's
foundational issues and implement new, user-specified models. It
replaces multiple flawed modules with correct, verifiable, and
well-documented code.
The changes include:
Core Physics Correction:
enhanced_hamiltonianinsrc/advanced_quantum_simulation.pyhas been corrected to use the physically sound unitary dressing
transformation (
Ĉ Ĥ₀ Ĉ†) instead of an incorrect additive form.Ĥ_RB(t)) has beencorrected to be a proper, operator-valued term, resolving the
original dimensional analysis errors.
Quantum Chemistry Solver Rewrite:
quantum_solver.py,hybrid_solver.py,molecular_hamiltonian.py) have been deleted.src/electronic_structure_solver.pyusing the industry-standardqiskit-naturelibrary. This ensures the underlying physics andmathematics are robust and correct.
New QFT "Cosmic Duality" Simulation:
the concepts of "Generation" and "Radiation".
H = ε(a†a) + g(a + a†)using creation and annihilation operators, which directly models
the creation and destruction of particles from a vacuum.
src/run_qft_simulation.py) and visualizationhave been added to demonstrate this "two-way motion".
Major Code Refactoring and Testing:
with distinct modules for core physics, the QHR model, visualization,
and the new solvers.
"Russell" physics and the new QFT model, verifying properties like
Hermiticity and correctness against known analytical results.
Documentation and Dependency Updates:
README.mdhas been extensively updated to reflect all newmodels and corrections.
requirements.txthas been updated to include all necessarydependencies for the new implementations.